2 # From configure.in Revision: 22513 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for Heimdal 1.1.
6 # Report bugs to <heimdal-bugs@h5l.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='Heimdal'
731 PACKAGE_TARNAME='heimdal'
732 PACKAGE_VERSION='1.1'
733 PACKAGE_STRING='Heimdal 1.1'
734 PACKAGE_BUGREPORT='heimdal-bugs@h5l.org'
736 ac_unique_file="kuser/kinit.c"
737 ac_default_prefix=/usr/heimdal
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
825 INSTALL_STRIP_PROGRAM
834 MAINTAINER_MODE_FALSE
877 LDFLAGS_VERSION_SCRIPT
881 OPENLDAP_MODULE_FALSE
892 do_roken_rename_FALSE
956 have_socket_wrapper_TRUE
957 have_socket_wrapper_FALSE
985 AIX_DYNAMIC_AFS_FALSE
1000 NEED_WRITEAUTH_FALSE
1009 FRAMEWORK_SECURITY_TRUE
1010 FRAMEWORK_SECURITY_FALSE
1024 ac_precious_vars='build_alias
1044 # Initialize some variables set by options.
1046 ac_init_version=false
1047 # The variables have the same names as the options, with
1048 # dashes changed to underlines.
1049 cache_file=/dev/null
1056 program_transform_name=s,x,x,
1064 # Installation directory options.
1065 # These are left unexpanded so users can "make install exec_prefix=/foo"
1066 # and all the variables that are supposed to be based on exec_prefix
1067 # by default will actually change.
1068 # Use braces instead of parens because sh, perl, etc. also accept them.
1069 # (The list follows the same order as the GNU Coding Standards.)
1070 bindir='${exec_prefix}/bin'
1071 sbindir='${exec_prefix}/sbin'
1072 libexecdir='${exec_prefix}/libexec'
1073 datarootdir='${prefix}/share'
1074 datadir='${datarootdir}'
1075 sysconfdir='${prefix}/etc'
1076 sharedstatedir='${prefix}/com'
1077 localstatedir='${prefix}/var'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1081 infodir='${datarootdir}/info'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1094 # If the previous option needs an argument, assign it.
1095 if test -n "$ac_prev"; then
1096 eval $ac_prev=\$ac_option
1102 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1132 -datadir | --datadir | --datadi | --datad)
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1144 -disable-* | --disable-*)
1145 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1151 eval enable_$ac_feature=no ;;
1153 -docdir | --docdir | --docdi | --doc | --do)
1155 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1156 docdir=$ac_optarg ;;
1158 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1160 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1161 dvidir=$ac_optarg ;;
1163 -enable-* | --enable-*)
1164 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1168 { (exit 1); exit 1; }; }
1169 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1170 eval enable_$ac_feature=\$ac_optarg ;;
1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174 | --exec | --exe | --ex)
1175 ac_prev=exec_prefix ;;
1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178 | --exec=* | --exe=* | --ex=*)
1179 exec_prefix=$ac_optarg ;;
1181 -gas | --gas | --ga | --g)
1182 # Obsolete; use --with-gas.
1185 -help | --help | --hel | --he | -h)
1186 ac_init_help=long ;;
1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188 ac_init_help=recursive ;;
1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190 ac_init_help=short ;;
1192 -host | --host | --hos | --ho)
1193 ac_prev=host_alias ;;
1194 -host=* | --host=* | --hos=* | --ho=*)
1195 host_alias=$ac_optarg ;;
1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201 htmldir=$ac_optarg ;;
1203 -includedir | --includedir | --includedi | --included | --include \
1204 | --includ | --inclu | --incl | --inc)
1205 ac_prev=includedir ;;
1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207 | --includ=* | --inclu=* | --incl=* | --inc=*)
1208 includedir=$ac_optarg ;;
1210 -infodir | --infodir | --infodi | --infod | --info | --inf)
1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213 infodir=$ac_optarg ;;
1215 -libdir | --libdir | --libdi | --libd)
1217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218 libdir=$ac_optarg ;;
1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221 | --libexe | --libex | --libe)
1222 ac_prev=libexecdir ;;
1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224 | --libexe=* | --libex=* | --libe=*)
1225 libexecdir=$ac_optarg ;;
1227 -localedir | --localedir | --localedi | --localed | --locale)
1228 ac_prev=localedir ;;
1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230 localedir=$ac_optarg ;;
1232 -localstatedir | --localstatedir | --localstatedi | --localstated \
1233 | --localstate | --localstat | --localsta | --localst | --locals)
1234 ac_prev=localstatedir ;;
1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237 localstatedir=$ac_optarg ;;
1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242 mandir=$ac_optarg ;;
1244 -nfp | --nfp | --nf)
1245 # Obsolete; use --without-fp.
1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249 | --no-cr | --no-c | -n)
1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258 | --oldin | --oldi | --old | --ol | --o)
1259 ac_prev=oldincludedir ;;
1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263 oldincludedir=$ac_optarg ;;
1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268 prefix=$ac_optarg ;;
1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271 | --program-pre | --program-pr | --program-p)
1272 ac_prev=program_prefix ;;
1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275 program_prefix=$ac_optarg ;;
1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278 | --program-suf | --program-su | --program-s)
1279 ac_prev=program_suffix ;;
1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282 program_suffix=$ac_optarg ;;
1284 -program-transform-name | --program-transform-name \
1285 | --program-transform-nam | --program-transform-na \
1286 | --program-transform-n | --program-transform- \
1287 | --program-transform | --program-transfor \
1288 | --program-transfo | --program-transf \
1289 | --program-trans | --program-tran \
1290 | --progr-tra | --program-tr | --program-t)
1291 ac_prev=program_transform_name ;;
1292 -program-transform-name=* | --program-transform-name=* \
1293 | --program-transform-nam=* | --program-transform-na=* \
1294 | --program-transform-n=* | --program-transform-=* \
1295 | --program-transform=* | --program-transfor=* \
1296 | --program-transfo=* | --program-transf=* \
1297 | --program-trans=* | --program-tran=* \
1298 | --progr-tra=* | --program-tr=* | --program-t=*)
1299 program_transform_name=$ac_optarg ;;
1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304 pdfdir=$ac_optarg ;;
1306 -psdir | --psdir | --psdi | --psd | --ps)
1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319 sbindir=$ac_optarg ;;
1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323 | --sharedst | --shareds | --shared | --share | --shar \
1325 ac_prev=sharedstatedir ;;
1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330 sharedstatedir=$ac_optarg ;;
1332 -site | --site | --sit)
1334 -site=* | --site=* | --sit=*)
1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340 srcdir=$ac_optarg ;;
1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343 | --syscon | --sysco | --sysc | --sys | --sy)
1344 ac_prev=sysconfdir ;;
1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347 sysconfdir=$ac_optarg ;;
1349 -target | --target | --targe | --targ | --tar | --ta | --t)
1350 ac_prev=target_alias ;;
1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352 target_alias=$ac_optarg ;;
1354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 -version | --version | --versio | --versi | --vers | -V)
1358 ac_init_version=: ;;
1361 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364 { echo "$as_me: error: invalid package name: $ac_package" >&2
1365 { (exit 1); exit 1; }; }
1366 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1367 eval with_$ac_package=\$ac_optarg ;;
1369 -without-* | --without-*)
1370 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 { echo "$as_me: error: invalid package name: $ac_package" >&2
1374 { (exit 1); exit 1; }; }
1375 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1376 eval with_$ac_package=no ;;
1379 # Obsolete; use --with-x.
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1396 -*) { echo "$as_me: error: unrecognized option: $ac_option
1397 Try \`$0 --help' for more information." >&2
1398 { (exit 1); exit 1; }; }
1402 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1405 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406 { (exit 1); exit 1; }; }
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1421 if test -n "$ac_prev"; then
1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423 { echo "$as_me: error: missing argument to $ac_option" >&2
1424 { (exit 1); exit 1; }; }
1427 # Be sure to have absolute directory names.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1433 eval ac_val=\$$ac_var
1435 [\\/$]* | ?:[\\/]* ) continue;;
1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439 { (exit 1); exit 1; }; }
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 { echo "$as_me: error: Working directory cannot be determined" >&2
1470 { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 { echo "$as_me: error: pwd does not report name of working directory" >&2
1473 { (exit 1); exit 1; }; }
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$0" ||
1481 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$0" : 'X\(//\)[^/]' \| \
1483 X"$0" : 'X\(//\)$' \| \
1484 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513 { (exit 1); exit 1; }; }
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1518 { (exit 1); exit 1; }; }
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 for ac_var in $ac_precious_vars; do
1531 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_${ac_var}_value=\$${ac_var}
1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1544 \`configure' configures Heimdal 1.1 to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1602 --program-prefix=PREFIX prepend PREFIX to installed program names
1603 --program-suffix=SUFFIX append SUFFIX to installed program names
1604 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1607 --x-includes=DIR X include files are in DIR
1608 --x-libraries=DIR X library files are in DIR
1611 --build=BUILD configure for building on BUILD [guessed]
1612 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1616 if test -n "$ac_init_help"; then
1617 case $ac_init_help in
1618 short | recursive ) echo "Configuration of Heimdal 1.1:";;
1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1625 --enable-maintainer-mode enable make rules and dependencies not useful
1626 (and sometimes confusing) to the casual installer
1627 --disable-largefile omit support for large files
1628 --enable-shared[=PKGS] build shared libraries [default=yes]
1629 --enable-static[=PKGS] build static libraries [default=yes]
1630 --enable-fast-install[=PKGS]
1631 optimize for fast installation [default=yes]
1632 --disable-libtool-lock avoid locking (might break parallel builds)
1633 --enable-hdb-openldap-module
1634 if you want support to build openldap hdb as shared
1636 --disable-pk-init if you want disable to PK-INIT support
1637 --enable-pthread-support
1638 if you want thread safe libraries
1639 --enable-dce if you want support for DCE/DFS PAG's
1640 --disable-afs-support if you don't want support for AFS
1641 --disable-berkeley-db if you don't want berkeley db
1642 --disable-ndbm-db if you don't want ndbm db
1643 --enable-developer enable developer warnings
1644 --enable-socket-wrapper use sambas socket-wrapper for testing
1645 --disable-otp if you don't want OTP support
1646 --enable-osfc2 enable some OSF C2 support
1647 --disable-mmap disable use of mmap
1648 --disable-afs-string-to-key
1649 disable use of weak AFS string-to-key functions
1650 --enable-bigendian the target is big endian
1651 --enable-littleendian the target is little endian
1652 --disable-dynamic-afs do not use loaded AFS library with AIX
1653 --enable-netinfo enable netinfo for configuration lookup
1654 --enable-kcm enable Kerberos Credentials Manager
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-pic try to use only PIC/non-PIC objects [default=use
1663 --with-tags[=TAGS] include additional configurations [automatic]
1664 --with-openldap=dir use openldap in dir
1665 --with-openldap-lib=dir use openldap libraries in dir
1666 --with-openldap-include=dir
1667 use openldap headers in dir
1668 --with-openldap-config=path
1669 config program for openldap
1670 --with-hdbdir Default location for KDC database
1671 [default=/var/heimdal]
1672 --with-openssl=dir use openssl in dir
1673 --with-openssl-lib=dir use openssl libraries in dir
1674 --with-openssl-include=dir
1675 use openssl headers in dir
1676 --without-ipv6 do not enable IPv6 support
1677 --with-readline=dir use readline in dir
1678 --with-readline-lib=dir use readline libraries in dir
1679 --with-readline-include=dir
1680 use readline headers in dir
1681 --with-readline-config=path
1682 config program for readline
1683 --with-hesiod=dir use hesiod in dir
1684 --with-hesiod-lib=dir use hesiod libraries in dir
1685 --with-hesiod-include=dir
1686 use hesiod headers in dir
1687 --with-hesiod-config=path
1688 config program for hesiod
1689 --with-x use the X Window System
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1700 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1701 the first program found out of: `bison -y', `byacc', `yacc'.
1702 YFLAGS The list of arguments that will be passed by default to $YACC.
1703 This script will default YFLAGS to the empty string to avoid a
1704 default value of `-d' given by some make applications.
1705 CXX C++ compiler command
1706 CXXFLAGS C++ compiler flags
1707 CXXCPP C++ preprocessor
1708 F77 Fortran 77 compiler command
1709 FFLAGS Fortran 77 compiler flags
1710 XMKMF Path to xmkmf, Makefile generator for X Window System
1712 Use these variables to override the choices made by `configure' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1715 Report bugs to <heimdal-bugs@h5l.org>.
1720 if test "$ac_init_help" = "recursive"; then
1721 # If there are subdirs, report their specific --help.
1722 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723 test -d "$ac_dir" || continue
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1743 .) # We are building in place.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1767 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1776 Heimdal configure 1.1
1777 generated by GNU Autoconf 2.61
1779 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1780 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1790 It was created by Heimdal $as_me 1.1, which was
1791 generated by GNU Autoconf 2.61. Invocation command line was
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 echo "PATH: $as_dir"
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1851 ac_must_keep_next=false
1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859 | -silent | --silent | --silen | --sile | --sil)
1862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1867 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1868 if test $ac_must_keep_next = true; then
1869 ac_must_keep_next=false # Got value, back to normal.
1872 *=* | --config-cache | -C | -disable-* | --disable-* \
1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875 | -with-* | --with-* | -without-* | --without-* | --x)
1876 case "$ac_configure_args0 " in
1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 -* ) ac_must_keep_next=true ;;
1883 ac_configure_args="$ac_configure_args '$ac_arg'"
1888 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1889 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log. We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897 # Save into config.log some information that might help in debugging.
1902 ## ---------------- ##
1903 ## Cache variables. ##
1904 ## ---------------- ##
1907 # The following way of writing the cache mishandles newlines in values,
1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910 eval ac_val=\$$ac_var
1914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1915 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1918 _ | IFS | as_nl) ;; #(
1919 *) $as_unset $ac_var ;;
1924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925 *${as_nl}ac_space=\ *)
1927 "s/'\''/'\''\\\\'\'''\''/g;
1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939 ## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##
1944 for ac_var in $ac_subst_vars
1946 eval ac_val=\$$ac_var
1948 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 echo "$ac_var='\''$ac_val'\''"
1954 if test -n "$ac_subst_files"; then
1956 ## ------------------- ##
1957 ## File substitutions. ##
1958 ## ------------------- ##
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1965 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 echo "$ac_var='\''$ac_val'\''"
1972 if test -s confdefs.h; then
1982 test "$ac_signal" != 0 &&
1983 echo "$as_me: caught signal $ac_signal"
1984 echo "$as_me: exit $exit_status"
1986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1990 for ac_signal in 1 2 13 15; do
1991 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1998 # Predefined preprocessor variables.
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer explicitly selected file to automatically selected ones.
2027 if test -n "$CONFIG_SITE"; then
2028 set x "$CONFIG_SITE"
2029 elif test "x$prefix" != xNONE; then
2030 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2032 set x "$ac_default_prefix/share/config.site" \
2033 "$ac_default_prefix/etc/config.site"
2038 if test -r "$ac_site_file"; then
2039 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2040 echo "$as_me: loading site script $ac_site_file" >&6;}
2041 sed 's/^/| /' "$ac_site_file" >&5
2046 if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special
2048 # files actually), so we avoid doing that.
2049 if test -f "$cache_file"; then
2050 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2051 echo "$as_me: loading cache $cache_file" >&6;}
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2058 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2059 echo "$as_me: creating cache $cache_file" >&6;}
2063 # Check that the precious variables saved in the cache have kept the same
2065 ac_cache_corrupted=false
2066 for ac_var in $ac_precious_vars; do
2067 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2068 eval ac_new_set=\$ac_env_${ac_var}_set
2069 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2070 eval ac_new_val=\$ac_env_${ac_var}_value
2071 case $ac_old_set,$ac_new_set in
2073 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2074 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2077 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2078 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2082 if test "x$ac_old_val" != "x$ac_new_val"; then
2083 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2084 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2085 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2086 echo "$as_me: former value: $ac_old_val" >&2;}
2087 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2088 echo "$as_me: current value: $ac_new_val" >&2;}
2089 ac_cache_corrupted=:
2092 # Pass precious variables to config.status.
2093 if test "$ac_new_set" = set; then
2095 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2096 *) ac_arg=$ac_var=$ac_new_val ;;
2098 case " $ac_configure_args " in
2099 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2100 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2104 if $ac_cache_corrupted; then
2105 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2106 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2107 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2108 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2109 { (exit 1); exit 1; }; }
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 ac_config_headers="$ac_config_headers include/config.h"
2147 am__api_version='1.10'
2150 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2151 if test -f "$ac_dir/install-sh"; then
2153 ac_install_sh="$ac_aux_dir/install-sh -c"
2155 elif test -f "$ac_dir/install.sh"; then
2157 ac_install_sh="$ac_aux_dir/install.sh -c"
2159 elif test -f "$ac_dir/shtool"; then
2161 ac_install_sh="$ac_aux_dir/shtool install -c"
2165 if test -z "$ac_aux_dir"; then
2166 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2167 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2168 { (exit 1); exit 1; }; }
2171 # These three variables are undocumented and unsupported,
2172 # and are intended to be withdrawn in a future Autoconf release.
2173 # They can cause serious problems if a builder's source tree is in a directory
2174 # whose full name contains unusual characters.
2175 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2176 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2177 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2180 # Find a good install program. We prefer a C program (faster),
2181 # so one script is as good as another. But avoid the broken or
2182 # incompatible versions:
2183 # SysV /etc/install, /usr/sbin/install
2184 # SunOS /usr/etc/install
2185 # IRIX /sbin/install
2187 # AmigaOS /C/install, which installs bootblocks on floppy discs
2188 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2189 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2190 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2191 # OS/2's system install, which has a completely different semantic
2192 # ./install, which can be erroneously created by make from ./install.sh.
2193 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2194 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2195 if test -z "$INSTALL"; then
2196 if test "${ac_cv_path_install+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 # Account for people who put trailing slashes in PATH elements.
2206 ./ | .// | /cC/* | \
2207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2211 # OSF1 and SCO ODT 3.0 have their own names for install.
2212 # Don't use installbsd from OSF since it installs stuff as root
2214 for ac_prog in ginstall scoinst install; do
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2217 if test $ac_prog = install &&
2218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # AIX install. It has an incompatible calling convention.
2221 elif test $ac_prog = install &&
2222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223 # program-specific install script used by HP pwplus--don't use.
2226 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2239 if test "${ac_cv_path_install+set}" = set; then
2240 INSTALL=$ac_cv_path_install
2242 # As a last resort, use the slow shell script. Don't cache a
2243 # value for INSTALL within a source directory, because that will
2244 # break other packages using the cache if that directory is
2245 # removed, or if the value is a relative name.
2246 INSTALL=$ac_install_sh
2249 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2250 echo "${ECHO_T}$INSTALL" >&6; }
2252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2253 # It thinks the first close brace ends the variable substitution.
2254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2260 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2261 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2264 echo timestamp > conftest.file
2265 # Do `set' in a subshell so we don't clobber the current shell's
2266 # arguments. Must try -L first in case configure is actually a
2267 # symlink; some systems play weird games with the mod time of symlinks
2268 # (eg FreeBSD returns the mod time of the symlink's containing
2271 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2272 if test "$*" = "X"; then
2274 set X `ls -t $srcdir/configure conftest.file`
2277 if test "$*" != "X $srcdir/configure conftest.file" \
2278 && test "$*" != "X conftest.file $srcdir/configure"; then
2280 # If neither matched, then we have a broken ls. This can happen
2281 # if, for instance, CONFIG_SHELL is bash and it inherits a
2282 # broken ls alias from the environment. This has actually
2283 # happened. Such a system could not be considered "sane".
2284 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2285 alias in your environment" >&5
2286 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2287 alias in your environment" >&2;}
2288 { (exit 1); exit 1; }; }
2291 test "$2" = conftest.file
2297 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2298 Check your system clock" >&5
2299 echo "$as_me: error: newly created file is older than distributed files!
2300 Check your system clock" >&2;}
2301 { (exit 1); exit 1; }; }
2303 { echo "$as_me:$LINENO: result: yes" >&5
2304 echo "${ECHO_T}yes" >&6; }
2305 test "$program_prefix" != NONE &&
2306 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2307 # Use a double $ so make ignores it.
2308 test "$program_suffix" != NONE &&
2309 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2310 # Double any \ or $. echo might interpret backslashes.
2311 # By default was `s,x,x', remove it if useless.
2312 cat <<\_ACEOF >conftest.sed
2313 s/[\\$]/&&/g;s/;s,x,x,$//
2315 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2318 # expand $ac_aux_dir to an absolute path
2319 am_aux_dir=`cd $ac_aux_dir && pwd`
2321 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2322 # Use eval to expand $SHELL
2323 if eval "$MISSING --run true"; then
2324 am_missing_run="$MISSING --run "
2327 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2328 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2331 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2332 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2333 if test -z "$MKDIR_P"; then
2334 if test "${ac_cv_path_mkdir+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2341 test -z "$as_dir" && as_dir=.
2342 for ac_prog in mkdir gmkdir; do
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2345 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2346 'mkdir (GNU coreutils) '* | \
2347 'mkdir (coreutils) '* | \
2348 'mkdir (fileutils) '4.1*)
2349 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2359 if test "${ac_cv_path_mkdir+set}" = set; then
2360 MKDIR_P="$ac_cv_path_mkdir -p"
2362 # As a last resort, use the slow shell script. Don't cache a
2363 # value for MKDIR_P within a source directory, because that will
2364 # break other packages using the cache if that directory is
2365 # removed, or if the value is a relative name.
2366 test -d ./--version && rmdir ./--version
2367 MKDIR_P="$ac_install_sh -d"
2370 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2371 echo "${ECHO_T}$MKDIR_P" >&6; }
2375 [\\/$]* | ?:[\\/]*) ;;
2376 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2379 for ac_prog in gawk mawk nawk awk
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_AWK+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$AWK"; then
2389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_AWK="$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$AWK"; then
2410 { echo "$as_me:$LINENO: result: $AWK" >&5
2411 echo "${ECHO_T}$AWK" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$AWK" && break
2421 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2422 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2423 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cat >conftest.make <<\_ACEOF
2430 @echo '@@@%%%=$(MAKE)=@@@%%%'
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2435 eval ac_cv_prog_make_${ac_make}_set=yes;;
2437 eval ac_cv_prog_make_${ac_make}_set=no;;
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442 { echo "$as_me:$LINENO: result: yes" >&5
2443 echo "${ECHO_T}yes" >&6; }
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2448 SET_MAKE="MAKE=${MAKE-make}"
2451 rm -rf .tst 2>/dev/null
2452 mkdir .tst 2>/dev/null
2453 if test -d .tst; then
2458 rmdir .tst 2>/dev/null
2460 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2461 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2462 # is not polluted with repeated "-I."
2463 am__isrc=' -I$(srcdir)'
2464 # test to see if srcdir already configured
2465 if test -f $srcdir/config.status; then
2466 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2467 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2468 { (exit 1); exit 1; }; }
2472 # test whether we have cygpath
2473 if test -z "$CYGPATH_W"; then
2474 if (cygpath --version) >/dev/null 2>/dev/null; then
2475 CYGPATH_W='cygpath -w'
2482 # Define the identity of the package.
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE "$PACKAGE"
2492 cat >>confdefs.h <<_ACEOF
2493 #define VERSION "$VERSION"
2496 # Some tools Automake needs.
2498 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2501 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2504 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2507 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2510 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2512 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2514 # Installed binaries are usually stripped using `strip' when the user
2515 # run `make install-strip'. However `strip' might not be the right
2516 # tool to use in cross-compilation environments, therefore Automake
2517 # will honor the `STRIP' environment variable to overrule this program.
2518 if test "$cross_compiling" != no; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_STRIP+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$STRIP"; then
2528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 STRIP=$ac_cv_prog_STRIP
2548 if test -n "$STRIP"; then
2549 { echo "$as_me:$LINENO: result: $STRIP" >&5
2550 echo "${ECHO_T}$STRIP" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2558 if test -z "$ac_cv_prog_STRIP"; then
2560 # Extract the first word of "strip", so it can be a program name with args.
2561 set dummy strip; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$ac_ct_STRIP"; then
2568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_STRIP="strip"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2588 if test -n "$ac_ct_STRIP"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2590 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2596 if test "x$ac_ct_STRIP" = x; then
2599 case $cross_compiling:$ac_tool_warned in
2601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2612 STRIP="$ac_cv_prog_STRIP"
2616 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2618 # We need awk for the "check" target. The system "awk" is bad on
2620 # Always define AMTAR for backward compatibility.
2622 AMTAR=${AMTAR-"${am_missing_run}tar"}
2624 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2630 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2631 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2632 # Check whether --enable-maintainer-mode was given.
2633 if test "${enable_maintainer_mode+set}" = set; then
2634 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2636 USE_MAINTAINER_MODE=no
2639 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2640 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2641 if test $USE_MAINTAINER_MODE = yes; then
2642 MAINTAINER_MODE_TRUE=
2643 MAINTAINER_MODE_FALSE='#'
2645 MAINTAINER_MODE_TRUE='#'
2646 MAINTAINER_MODE_FALSE=
2649 MAINT=$MAINTAINER_MODE_TRUE
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2729 echo "${ECHO_T}$ac_ct_CC" >&6; }
2731 { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2735 if test "x$ac_ct_CC" = x; then
2738 case $cross_compiling:$ac_tool_warned in
2740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet. If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&5
2743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2746 ac_tool_warned=yes ;;
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="${ac_tool_prefix}cc"
2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6; }
2788 { echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6; }
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2892 test -n "$CC" && break
2895 if test -z "$CC"; then
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_CC="$ac_prog"
2917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6; }
2931 { echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6; }
2936 test -n "$ac_ct_CC" && break
2939 if test "x$ac_ct_CC" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet. If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2959 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2965 # Provide some information about the compiler.
2966 echo "$as_me:$LINENO: checking for C compiler version" >&5
2967 ac_compiler=`set X $ac_compile; echo $2`
2968 { (ac_try="$ac_compiler --version >&5"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler --version >&5") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 { (ac_try="$ac_compiler -v >&5"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -v >&5") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988 { (ac_try="$ac_compiler -V >&5"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compiler -V >&5") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 ac_clean_files_save=$ac_clean_files
3015 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3016 # Try to create an executable without -o first, disregard a.out.
3017 # It will help us diagnose broken compilers, and finding out an intuition
3019 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3020 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3021 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023 # List of possible output files, starting from the most likely.
3024 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3025 # only as a last resort. b.out is created by i960 compilers.
3026 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3028 # The IRIX 6 linker writes into existing files which may not be
3029 # executable, retaining their permissions. Remove them first so a
3030 # subsequent execution test works.
3032 for ac_file in $ac_files
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3041 if { (ac_try="$ac_link_default"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_link_default") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3056 for ac_file in $ac_files ''
3058 test -f "$ac_file" || continue
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3063 # We found the default executable, but exeext='' is most
3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # We set ac_cv_exeext here because the later test for it is not
3072 # safe: cross compilers may not add the suffix if given an `-o'
3073 # argument, so we may need to know it at that point already.
3074 # Even if this section looks crufty: it has the advantage of
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3087 { echo "$as_me:$LINENO: result: $ac_file" >&5
3088 echo "${ECHO_T}$ac_file" >&6; }
3089 if test -z "$ac_file"; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext=$ac_cv_exeext
3102 # Check that the compiler produces executables we can run. If not, either
3103 # the compiler is broken, or we cross compile.
3104 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3105 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3107 # If not cross compiling, check that we can run a simple program.
3108 if test "$cross_compiling" != yes; then
3109 if { ac_try='./$ac_file'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3121 if test "$cross_compiling" = maybe; then
3124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3125 If you meant to cross compile, use \`--host'.
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: cannot run C compiled programs.
3128 If you meant to cross compile, use \`--host'.
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3134 { echo "$as_me:$LINENO: result: yes" >&5
3135 echo "${ECHO_T}yes" >&6; }
3137 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3138 ac_clean_files=$ac_clean_files_save
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3143 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3144 echo "${ECHO_T}$cross_compiling" >&6; }
3146 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3148 if { (ac_try="$ac_link"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_link") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; then
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160 # work properly (i.e., refer to `conftest.exe'), while it won't with
3162 for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }
3179 rm -f conftest$ac_cv_exeext
3180 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3181 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3186 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3187 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3188 if test "${ac_cv_objext+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.o conftest.obj
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 for ac_file in conftest.o conftest.obj conftest.*; do
3218 test -f "$ac_file" || continue;
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3221 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3236 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3239 echo "${ECHO_T}$ac_cv_objext" >&6; }
3240 OBJEXT=$ac_cv_objext
3242 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3243 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3244 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3274 grep -v '^ *+' conftest.er1 >conftest.err
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3294 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3296 GCC=`test $ac_compiler_gnu = yes && echo yes`
3297 ac_test_CFLAGS=${CFLAGS+set}
3298 ac_save_CFLAGS=$CFLAGS
3299 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_cc_g+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 ac_save_c_werror_flag=$ac_c_werror_flag
3305 ac_c_werror_flag=yes
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3370 grep -v '^ *+' conftest.er1 >conftest.err
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 ac_c_werror_flag=$ac_save_c_werror_flag
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_c_werror_flag=$ac_save_c_werror_flag
3434 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3436 if test "$ac_test_CFLAGS" = set; then
3437 CFLAGS=$ac_save_CFLAGS
3438 elif test $ac_cv_prog_cc_g = yes; then
3439 if test "$GCC" = yes; then
3445 if test "$GCC" = yes; then
3451 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3452 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_cc_c89+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 ac_cv_prog_cc_c89=no
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3482 s = g (p, va_arg (v,int));
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compile") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } && {
3533 test -z "$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3535 } && test -s conftest.$ac_objext; then
3536 ac_cv_prog_cc_c89=$ac_arg
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3544 rm -f core conftest.err conftest.$ac_objext
3545 test "x$ac_cv_prog_cc_c89" != "xno" && break
3547 rm -f conftest.$ac_ext
3552 case "x$ac_cv_prog_cc_c89" in
3554 { echo "$as_me:$LINENO: result: none needed" >&5
3555 echo "${ECHO_T}none needed" >&6; } ;;
3557 { echo "$as_me:$LINENO: result: unsupported" >&5
3558 echo "${ECHO_T}unsupported" >&6; } ;;
3560 CC="$CC $ac_cv_prog_cc_c89"
3561 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3562 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 if test "x$CC" != xcc; then
3573 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3574 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3576 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3577 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3579 set dummy $CC; ac_cc=`echo $2 |
3580 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3581 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 # Make sure it works both with $CC and with simple cc.
3600 # We do the test twice because some compilers refuse to overwrite an
3601 # existing .o file with -o, though they will create one.
3602 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3604 if { (case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_try") 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_try") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); };
3623 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3624 if test "x$CC" != xcc; then
3625 # Test first that cc exists at all.
3626 if { ac_try='cc -c conftest.$ac_ext >&5'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3638 if { (case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_try") 2>&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); };
3660 # cc exists but doesn't like -o.
3661 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3666 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3668 rm -f core conftest*
3671 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3672 { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3675 { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3678 cat >>confdefs.h <<\_ACEOF
3679 #define NO_MINUS_C_MINUS_O 1
3684 # FIXME: we rely on the cache variable name because
3685 # there is no other way.
3687 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3689 # Losing compiler, so override with the script.
3690 # FIXME: It is wrong to rewrite CC.
3691 # But if we don't then we get into trouble of one sort or another.
3692 # A longer-term fix would be to have automake use am__CC in this case,
3693 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3694 CC="$am_aux_dir/compile $CC"
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3704 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3705 # On Suns, sometimes $CPP names a directory.
3706 if test -n "$CPP" && test -d "$CPP"; then
3709 if test -z "$CPP"; then
3710 if test "${ac_cv_prog_CPP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 # Double quotes because CPP needs to be expanded
3714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3717 for ac_c_preproc_warn_flag in '' yes
3719 # Use a header file that comes with gcc, so configuring glibc
3720 # with a fresh cross-compiler works.
3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 # <limits.h> exists even on freestanding compilers.
3723 # On the NeXT, cc -E runs the code through the compiler's parser,
3724 # not just through cpp. "Syntax error" is here to catch this case.
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 # include <limits.h>
3734 # include <assert.h>
3738 if { (ac_try="$ac_cpp conftest.$ac_ext"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } >/dev/null && {
3751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 # Broken: fails on valid input.
3763 rm -f conftest.err conftest.$ac_ext
3765 # OK, works on sane cases. Now check whether nonexistent headers
3766 # can be detected and how.
3767 cat >conftest.$ac_ext <<_ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3773 #include <ac_nonexistent.h>
3775 if { (ac_try="$ac_cpp conftest.$ac_ext"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } >/dev/null && {
3788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3791 # Broken: success on invalid input.
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 # Passes both tests.
3802 rm -f conftest.err conftest.$ac_ext
3805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806 rm -f conftest.err conftest.$ac_ext
3807 if $ac_preproc_ok; then
3819 { echo "$as_me:$LINENO: result: $CPP" >&5
3820 echo "${ECHO_T}$CPP" >&6; }
3822 for ac_c_preproc_warn_flag in '' yes
3824 # Use a header file that comes with gcc, so configuring glibc
3825 # with a fresh cross-compiler works.
3826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3827 # <limits.h> exists even on freestanding compilers.
3828 # On the NeXT, cc -E runs the code through the compiler's parser,
3829 # not just through cpp. "Syntax error" is here to catch this case.
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3837 # include <limits.h>
3839 # include <assert.h>
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } >/dev/null && {
3856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3864 # Broken: fails on valid input.
3868 rm -f conftest.err conftest.$ac_ext
3870 # OK, works on sane cases. Now check whether nonexistent headers
3871 # can be detected and how.
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3880 if { (ac_try="$ac_cpp conftest.$ac_ext"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } >/dev/null && {
3893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3896 # Broken: success on invalid input.
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 # Passes both tests.
3907 rm -f conftest.err conftest.$ac_ext
3910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3911 rm -f conftest.err conftest.$ac_ext
3912 if $ac_preproc_ok; then
3915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3916 See \`config.log' for more details." >&5
3917 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3918 See \`config.log' for more details." >&2;}
3919 { (exit 1); exit 1; }; }
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3932 test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3934 # Make sure we can run config.sub.
3935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3937 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3938 { (exit 1); exit 1; }; }
3940 { echo "$as_me:$LINENO: checking build system type" >&5
3941 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3942 if test "${ac_cv_build+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_build_alias=$build_alias
3946 test "x$ac_build_alias" = x &&
3947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3948 test "x$ac_build_alias" = x &&
3949 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3950 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3951 { (exit 1); exit 1; }; }
3952 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3953 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3954 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3955 { (exit 1); exit 1; }; }
3958 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3959 echo "${ECHO_T}$ac_cv_build" >&6; }
3960 case $ac_cv_build in
3962 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3963 echo "$as_me: error: invalid value of canonical build" >&2;}
3964 { (exit 1); exit 1; }; };;
3967 ac_save_IFS=$IFS; IFS='-'
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3980 { echo "$as_me:$LINENO: checking host system type" >&5
3981 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3982 if test "${ac_cv_host+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if test "x$host_alias" = x; then
3986 ac_cv_host=$ac_cv_build
3988 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3989 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3990 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3991 { (exit 1); exit 1; }; }
3995 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3996 echo "${ECHO_T}$ac_cv_host" >&6; }
3999 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4000 echo "$as_me: error: invalid value of canonical host" >&2;}
4001 { (exit 1); exit 1; }; };;
4004 ac_save_IFS=$IFS; IFS='-'
4010 # Remember, the first character of IFS is used to create $*,
4011 # except with old shells:
4014 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4017 CANONICAL_HOST=$host
4024 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
4025 echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
4026 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
4027 echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
4029 if test "$hostname"; then
4030 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
4031 echo "$as_me: autobuild hostname... $hostname" >&6;}
4034 date=`date +%Y%m%d-%H%M%S`
4035 if test "$?" != 0; then
4038 if test "$date"; then
4039 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
4040 echo "$as_me: autobuild timestamp... $date" >&6;}
4045 # Check whether --enable-largefile was given.
4046 if test "${enable_largefile+set}" = set; then
4047 enableval=$enable_largefile;
4050 if test "$enable_largefile" != no; then
4052 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4053 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 ac_cv_sys_largefile_CC=no
4058 if test "$GCC" != yes; then
4061 # IRIX 6.2 and later do not support large files by default,
4062 # so use the C compiler's -n32 option if that helps.
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4086 rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f core conftest.err conftest.$ac_objext
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_sys_largefile_CC=' -n32'; break
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4138 rm -f core conftest.err conftest.$ac_objext
4142 rm -f conftest.$ac_ext
4145 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4146 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4147 if test "$ac_cv_sys_largefile_CC" != no; then
4148 CC=$CC$ac_cv_sys_largefile_CC
4151 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4152 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4153 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4164 /* Check that off_t can represent 2**63 - 1 correctly.
4165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166 since some C++ compilers masquerading as C compilers
4167 incorrectly reject 9223372036854775807. */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170 && LARGE_OFF_T % 2147483647 == 1)
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 ac_cv_sys_file_offset_bits=no; break
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #define _FILE_OFFSET_BITS 64
4213 #include <sys/types.h>
4214 /* Check that off_t can represent 2**63 - 1 correctly.
4215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4216 since some C++ compilers masquerading as C compilers
4217 incorrectly reject 9223372036854775807. */
4218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4220 && LARGE_OFF_T % 2147483647 == 1)
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest.$ac_objext; then
4247 ac_cv_sys_file_offset_bits=64; break
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_sys_file_offset_bits=unknown
4260 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4261 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4262 case $ac_cv_sys_file_offset_bits in #(
4265 cat >>confdefs.h <<_ACEOF
4266 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4271 if test $ac_cv_sys_file_offset_bits = unknown; then
4272 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4273 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4274 if test "${ac_cv_sys_large_files+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 #include <sys/types.h>
4285 /* Check that off_t can represent 2**63 - 1 correctly.
4286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287 since some C++ compilers masquerading as C compilers
4288 incorrectly reject 9223372036854775807. */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291 && LARGE_OFF_T % 2147483647 == 1)
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_compile") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest.$ac_objext; then
4318 ac_cv_sys_large_files=no; break
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #define _LARGE_FILES 1
4334 #include <sys/types.h>
4335 /* Check that off_t can represent 2**63 - 1 correctly.
4336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337 since some C++ compilers masquerading as C compilers
4338 incorrectly reject 9223372036854775807. */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341 && LARGE_OFF_T % 2147483647 == 1)
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_cv_sys_large_files=1; break
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_cv_sys_large_files=unknown
4381 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4382 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4383 case $ac_cv_sys_large_files in #(
4386 cat >>confdefs.h <<_ACEOF
4387 #define _LARGE_FILES $ac_cv_sys_large_files
4396 if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
4397 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
4399 if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
4400 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4405 cat >>confdefs.h <<\_ACEOF
4406 #define _GNU_SOURCE 1
4413 for ac_prog in 'bison -y' byacc
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_YACC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$YACC"; then
4423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_YACC="$ac_prog"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 YACC=$ac_cv_prog_YACC
4443 if test -n "$YACC"; then
4444 { echo "$as_me:$LINENO: result: $YACC" >&5
4445 echo "${ECHO_T}$YACC" >&6; }
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4452 test -n "$YACC" && break
4454 test -n "$YACC" || YACC="yacc"
4456 for ac_prog in flex lex
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_LEX+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$LEX"; then
4466 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_LEX="$ac_prog"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 if test -n "$LEX"; then
4487 { echo "$as_me:$LINENO: result: $LEX" >&5
4488 echo "${ECHO_T}$LEX" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 test -n "$LEX" && break
4497 test -n "$LEX" || LEX=":"
4499 if test "x$LEX" != "x:"; then
4500 cat >conftest.l <<_ACEOF
4506 e { yyless (input () != 0); }
4507 f { unput (yytext[0]); }
4508 . { BEGIN INITIAL; }
4510 #ifdef YYTEXT_POINTER
4511 extern char *yytext;
4516 return ! yylex () + ! yywrap ();
4519 { (ac_try="$LEX conftest.l"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$LEX conftest.l") 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }
4529 { echo "$as_me:$LINENO: checking lex output file root" >&5
4530 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4531 if test "${ac_cv_prog_lex_root+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 if test -f lex.yy.c; then
4536 ac_cv_prog_lex_root=lex.yy
4537 elif test -f lexyy.c; then
4538 ac_cv_prog_lex_root=lexyy
4540 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4541 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4542 { (exit 1); exit 1; }; }
4545 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4546 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4547 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4549 if test -z "${LEXLIB+set}"; then
4550 { echo "$as_me:$LINENO: checking lex library" >&5
4551 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4552 if test "${ac_cv_lib_lex+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_cv_lib_lex='none needed'
4558 for ac_lib in '' -lfl -ll; do
4559 LIBS="$ac_lib $ac_save_LIBS"
4560 cat >conftest.$ac_ext <<_ACEOF
4561 `cat $LEX_OUTPUT_ROOT.c`
4563 rm -f conftest.$ac_objext conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest$ac_exeext &&
4580 $as_test_x conftest$ac_exeext; then
4581 ac_cv_lib_lex=$ac_lib
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4590 conftest$ac_exeext conftest.$ac_ext
4591 test "$ac_cv_lib_lex" != 'none needed' && break
4596 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4597 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4598 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 # POSIX says lex can declare yytext either as a pointer or an array; the
4608 # default is implementation-dependent. Figure out which it is, since
4609 # not all implementations provide the %pointer and %array declarations.
4610 ac_cv_prog_lex_yytext_pointer=no
4612 LIBS="$LEXLIB $ac_save_LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #define YYTEXT_POINTER 1
4615 `cat $LEX_OUTPUT_ROOT.c`
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_link") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } && {
4631 test -z "$ac_c_werror_flag" ||
4632 test ! -s conftest.err
4633 } && test -s conftest$ac_exeext &&
4634 $as_test_x conftest$ac_exeext; then
4635 ac_cv_prog_lex_yytext_pointer=yes
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4644 conftest$ac_exeext conftest.$ac_ext
4648 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4649 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4650 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4652 cat >>confdefs.h <<\_ACEOF
4653 #define YYTEXT_POINTER 1
4657 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4660 if test "$LEX" = :; then
4661 LEX=${am_missing_run}flex
4663 for ac_prog in gawk mawk nawk awk
4665 # Extract the first word of "$ac_prog", so it can be a program name with args.
4666 set dummy $ac_prog; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_AWK+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 if test -n "$AWK"; then
4673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_AWK="$ac_prog"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 if test -n "$AWK"; then
4694 { echo "$as_me:$LINENO: result: $AWK" >&5
4695 echo "${ECHO_T}$AWK" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 test -n "$AWK" && break
4705 { echo "$as_me:$LINENO: checking for ln -s or something else" >&5
4706 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_LN_S+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if ln -s X conftestdata 2>/dev/null
4714 ac_cv_prog_LN_S="ln -s"
4717 if ln conftestdata1 conftestdata2; then
4725 LN_S="$ac_cv_prog_LN_S"
4726 { echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
4727 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6; }
4732 # Check whether --with-mips_abi was given.
4733 if test "${with_mips_abi+set}" = set; then
4734 withval=$with_mips_abi;
4740 with_mips_abi="${with_mips_abi:-yes}"
4741 if test -n "$GCC"; then
4743 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
4744 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
4746 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
4747 # GCC and revert back to O32. The same goes if O32 is asked for - old
4748 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
4750 # Don't you just love *all* the different SGI ABIs?
4752 case "${with_mips_abi}" in
4753 32|o32) abi='-mabi=32'; abilibdirext='' ;;
4754 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
4755 64) abi='-mabi=64'; abilibdirext='64' ;;
4756 no) abi=''; abilibdirext='';;
4757 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4758 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4761 if test -n "$abi" ; then
4762 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4763 { echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4764 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6; }
4765 if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 save_CFLAGS="$CFLAGS"
4770 CFLAGS="$CFLAGS $abi"
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4786 rm -f conftest.$ac_objext
4787 if { (ac_try="$ac_compile"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_compile") 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } && {
4800 test -z "$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 } && test -s conftest.$ac_objext; then
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS"
4815 ac_res=`eval echo \\\$$ac_foo`
4816 { echo "$as_me:$LINENO: result: $ac_res" >&5
4817 echo "${ECHO_T}$ac_res" >&6; }
4818 if test $ac_res = no; then
4819 # Try to figure out why that failed...
4822 save_CFLAGS="$CFLAGS"
4823 CFLAGS="$CFLAGS -mabi=n32"
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_compile") 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && {
4853 test -z "$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 } && test -s conftest.$ac_objext; then
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CLAGS="$save_CFLAGS"
4865 if test $ac_res = yes; then
4867 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4868 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4869 { (exit 1); exit 1; }; }
4876 if test $with_mips_abi = yes; then
4877 # Old GCC, default to O32
4882 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4883 echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4884 { (exit 1); exit 1; }; }
4888 fi #if test $ac_res = no; then
4889 fi #if test -n "$abi" ; then
4891 case "${with_mips_abi}" in
4892 32|o32) abi='-32'; abilibdirext='' ;;
4893 n32|yes) abi='-n32'; abilibdirext='32' ;;
4894 64) abi='-64'; abilibdirext='64' ;;
4895 no) abi=''; abilibdirext='';;
4896 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4897 echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
4900 fi #if test -n "$GCC"; then
4905 libdir="$libdir$abilibdirext"
4908 { echo "$as_me:$LINENO: checking for __attribute__" >&5
4909 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
4910 if test "${ac_cv___attribute__+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 static void foo(void) __attribute__ ((noreturn));
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4947 ac_cv___attribute__=yes
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_cv___attribute__=no
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 if test "$ac_cv___attribute__" = "yes"; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE___ATTRIBUTE__ 1
4965 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4966 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
4969 # Check whether --enable-shared was given.
4970 if test "${enable_shared+set}" = set; then
4971 enableval=$enable_shared; p=${PACKAGE-default}
4973 yes) enable_shared=yes ;;
4974 no) enable_shared=no ;;
4977 # Look at the argument we got. We use all the common list separators.
4978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4979 for pkg in $enableval; do
4981 if test "X$pkg" = "X$p"; then
4993 # Check whether --enable-static was given.
4994 if test "${enable_static+set}" = set; then
4995 enableval=$enable_static; p=${PACKAGE-default}
4997 yes) enable_static=yes ;;
4998 no) enable_static=no ;;
5001 # Look at the argument we got. We use all the common list separators.
5002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5003 for pkg in $enableval; do
5005 if test "X$pkg" = "X$p"; then
5017 # Check whether --enable-fast-install was given.
5018 if test "${enable_fast_install+set}" = set; then
5019 enableval=$enable_fast_install; p=${PACKAGE-default}
5021 yes) enable_fast_install=yes ;;
5022 no) enable_fast_install=no ;;
5024 enable_fast_install=no
5025 # Look at the argument we got. We use all the common list separators.
5026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5027 for pkg in $enableval; do
5029 if test "X$pkg" = "X$p"; then
5030 enable_fast_install=yes
5037 enable_fast_install=yes
5041 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5042 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5043 if test "${lt_cv_path_SED+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 # Loop through the user's path and test for sed and gsed.
5047 # Then use that list of sed's as ones to test for truncation.
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir=.
5053 for lt_ac_prog in sed gsed; do
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5056 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5063 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5064 # along with /bin/sed that truncates output.
5065 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5066 test ! -f $lt_ac_sed && continue
5067 cat /dev/null > conftest.in
5069 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5070 # Check for GNU sed and select it if it is found.
5071 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5072 lt_cv_path_SED=$lt_ac_sed
5076 cat conftest.in conftest.in >conftest.tmp
5077 mv conftest.tmp conftest.in
5078 cp conftest.in conftest.nl
5080 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5081 cmp -s conftest.out conftest.nl || break
5082 # 10000 chars as input seems more than enough
5083 test $lt_ac_count -gt 10 && break
5084 lt_ac_count=`expr $lt_ac_count + 1`
5085 if test $lt_ac_count -gt $lt_ac_max; then
5086 lt_ac_max=$lt_ac_count
5087 lt_cv_path_SED=$lt_ac_sed
5095 { echo "$as_me:$LINENO: result: $SED" >&5
5096 echo "${ECHO_T}$SED" >&6; }
5098 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5099 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 # Extract the first word of "grep ggrep" to use in msg output
5104 if test -z "$GREP"; then
5105 set dummy grep ggrep; ac_prog_name=$2
5106 if test "${ac_cv_path_GREP+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 ac_path_GREP_found=false
5110 # Loop through the user's path and test for each of PROGNAME-LIST
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5115 test -z "$as_dir" && as_dir=.
5116 for ac_prog in grep ggrep; do
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5120 # Check for GNU ac_path_GREP and select it if it is found.
5121 # Check for GNU $ac_path_GREP
5122 case `"$ac_path_GREP" --version 2>&1` in
5124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5130 cat "conftest.in" "conftest.in" >"conftest.tmp"
5131 mv "conftest.tmp" "conftest.in"
5132 cp "conftest.in" "conftest.nl"
5133 echo 'GREP' >> "conftest.nl"
5134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5136 ac_count=`expr $ac_count + 1`
5137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5138 # Best one so far, save it but keep looking for a better one
5139 ac_cv_path_GREP="$ac_path_GREP"
5140 ac_path_GREP_max=$ac_count
5142 # 10*(2^10) chars as input seems more than enough
5143 test $ac_count -gt 10 && break
5145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 $ac_path_GREP_found && break 3
5159 GREP="$ac_cv_path_GREP"
5160 if test -z "$GREP"; then
5161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5163 { (exit 1); exit 1; }; }
5167 ac_cv_path_GREP=$GREP
5172 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5173 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5174 GREP="$ac_cv_path_GREP"
5177 { echo "$as_me:$LINENO: checking for egrep" >&5
5178 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_EGREP+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5183 then ac_cv_path_EGREP="$GREP -E"
5185 # Extract the first word of "egrep" to use in msg output
5186 if test -z "$EGREP"; then
5187 set dummy egrep; ac_prog_name=$2
5188 if test "${ac_cv_path_EGREP+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 ac_path_EGREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in egrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5201 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5202 # Check for GNU ac_path_EGREP and select it if it is found.
5203 # Check for GNU $ac_path_EGREP
5204 case `"$ac_path_EGREP" --version 2>&1` in
5206 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5209 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 echo 'EGREP' >> "conftest.nl"
5216 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 ac_count=`expr $ac_count + 1`
5219 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_EGREP="$ac_path_EGREP"
5222 ac_path_EGREP_max=$ac_count
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231 $ac_path_EGREP_found && break 3
5241 EGREP="$ac_cv_path_EGREP"
5242 if test -z "$EGREP"; then
5243 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5244 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5245 { (exit 1); exit 1; }; }
5249 ac_cv_path_EGREP=$EGREP
5255 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5256 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5257 EGREP="$ac_cv_path_EGREP"
5261 # Check whether --with-gnu-ld was given.
5262 if test "${with_gnu_ld+set}" = set; then
5263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5269 if test "$GCC" = yes; then
5270 # Check if gcc -print-prog-name=ld gives a path.
5271 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5275 # gcc leaves a trailing carriage return which upsets mingw
5276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5281 # Accept absolute paths.
5283 re_direlt='/[^/][^/]*/\.\./'
5284 # Canonicalize the pathname of ld
5285 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5287 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5289 test -z "$LD" && LD="$ac_prog"
5292 # If it fails, then pretend we aren't using GCC.
5296 # If it is relative, then search for the first ld in PATH.
5300 elif test "$with_gnu_ld" = yes; then
5301 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5307 if test "${lt_cv_path_LD+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 if test -z "$LD"; then
5311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5312 for ac_dir in $PATH; do
5314 test -z "$ac_dir" && ac_dir=.
5315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5316 lt_cv_path_LD="$ac_dir/$ac_prog"
5317 # Check to see if the program is GNU ld. I'd rather use --version,
5318 # but apparently some variants of GNU ld only accept -v.
5319 # Break only if it was the GNU/non-GNU ld that we prefer.
5320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5321 *GNU* | *'with BFD'*)
5322 test "$with_gnu_ld" != no && break
5325 test "$with_gnu_ld" != yes && break
5332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5337 if test -n "$LD"; then
5338 { echo "$as_me:$LINENO: result: $LD" >&5
5339 echo "${ECHO_T}$LD" >&6; }
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5346 { (exit 1); exit 1; }; }
5347 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5353 case `$LD -v 2>&1 </dev/null` in
5354 *GNU* | *'with BFD'*)
5355 lt_cv_prog_gnu_ld=yes
5358 lt_cv_prog_gnu_ld=no
5362 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5364 with_gnu_ld=$lt_cv_prog_gnu_ld
5367 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 lt_cv_ld_reload_flag='-r'
5374 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5379 *) reload_flag=" $reload_flag" ;;
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5384 if test "$GCC" = yes; then
5385 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5393 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5394 if test "${lt_cv_path_NM+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 if test -n "$NM"; then
5398 # Let the user override the test.
5401 lt_nm_to_check="${ac_tool_prefix}nm"
5402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5403 lt_nm_to_check="$lt_nm_to_check nm"
5405 for lt_tmp_nm in $lt_nm_to_check; do
5406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5409 test -z "$ac_dir" && ac_dir=.
5410 tmp_nm="$ac_dir/$lt_tmp_nm"
5411 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5412 # Check to see if the nm accepts a BSD-compat flag.
5413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5414 # nm: unknown option "B" ignored
5415 # Tru64's nm complains that /dev/null is an invalid object file
5416 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5417 */dev/null* | *'Invalid file or object type'*)
5418 lt_cv_path_NM="$tmp_nm -B"
5422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5424 lt_cv_path_NM="$tmp_nm -p"
5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5429 continue # so that we can try to find one that supports BSD flags
5438 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5441 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5442 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5445 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5446 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5448 if test "$LN_S" = "ln -s"; then
5449 { echo "$as_me:$LINENO: result: yes" >&5
5450 echo "${ECHO_T}yes" >&6; }
5452 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5453 echo "${ECHO_T}no, using $LN_S" >&6; }
5456 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5457 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5458 if test "${lt_cv_deplibs_check_method+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 lt_cv_file_magic_cmd='$MAGIC_CMD'
5462 lt_cv_file_magic_test_file=
5463 lt_cv_deplibs_check_method='unknown'
5464 # Need to set the preceding variable on all platforms that support
5465 # interlibrary dependencies.
5466 # 'none' -- dependencies not supported.
5467 # `unknown' -- same as none, but documents that we really don't know.
5468 # 'pass_all' -- all dependencies passed with no checks.
5469 # 'test_compile' -- check by making test program.
5470 # 'file_magic [[regex]]' -- check by looking for files in library path
5471 # which responds to the $file_magic_cmd with a given extended regex.
5472 # If you have `file' or equivalent on your system and you're not sure
5473 # whether `pass_all' will *always* work, you probably want this one.
5477 lt_cv_deplibs_check_method=pass_all
5481 lt_cv_deplibs_check_method=pass_all
5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5486 lt_cv_file_magic_cmd='/usr/bin/file -L'
5487 lt_cv_file_magic_test_file=/shlib/libc.so
5491 # func_win32_libid is a shell function defined in ltmain.sh
5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5493 lt_cv_file_magic_cmd='func_win32_libid'
5497 # Base MSYS/MinGW do not provide the 'file' command needed by
5498 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5500 lt_cv_file_magic_cmd='$OBJDUMP -f'
5503 darwin* | rhapsody*)
5504 lt_cv_deplibs_check_method=pass_all
5507 freebsd* | kfreebsd*-gnu | dragonfly*)
5508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5511 # Not sure whether the presence of OpenBSD here was a mistake.
5512 # Let's accept both of them until this is cleared up.
5513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5514 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5519 lt_cv_deplibs_check_method=pass_all
5524 lt_cv_deplibs_check_method=pass_all
5527 hpux10.20* | hpux11*)
5528 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5535 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]'
5536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5540 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5550 irix5* | irix6* | nonstopux*)
5552 *-32|*"-32 ") libmagic=32-bit;;
5553 *-n32|*"-n32 ") libmagic=N32;;
5554 *-64|*"-64 ") libmagic=64-bit;;
5555 *) libmagic=never-match;;
5557 lt_cv_deplibs_check_method=pass_all
5560 # This must be Linux ELF.
5562 lt_cv_deplibs_check_method=pass_all
5566 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5575 lt_cv_file_magic_cmd=/usr/bin/file
5576 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5580 lt_cv_deplibs_check_method=unknown
5584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5591 osf3* | osf4* | osf5*)
5592 lt_cv_deplibs_check_method=pass_all
5596 lt_cv_deplibs_check_method=pass_all
5600 case $host_vendor in
5602 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]'
5603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5606 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_file_magic_cmd='/bin/file'
5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5613 lt_cv_file_magic_cmd='/bin/file'
5614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5615 lt_cv_file_magic_test_file=/lib/libc.so
5618 lt_cv_deplibs_check_method=pass_all
5621 lt_cv_deplibs_check_method=pass_all
5626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5632 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5634 file_magic_cmd=$lt_cv_file_magic_cmd
5635 deplibs_check_method=$lt_cv_deplibs_check_method
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5639 # If no C compiler was specified, use CC.
5642 # If no C compiler flags were specified, use CFLAGS.
5643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5645 # Allow CC to be a program name with arguments.
5648 # Check whether --enable-libtool-lock was given.
5649 if test "${enable_libtool_lock+set}" = set; then
5650 enableval=$enable_libtool_lock;
5653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5655 # Some flags need to be propagated to the compiler or linker for good
5659 # Find out which ABI we are using.
5660 echo 'int i;' > conftest.$ac_ext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; then
5666 case `/usr/bin/file conftest.$ac_objext` in
5678 # Find out which ABI we are using.
5679 echo '#line 5679 "configure"' > conftest.$ac_ext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; then
5685 if test "$lt_cv_prog_gnu_ld" = yes; then
5686 case `/usr/bin/file conftest.$ac_objext` in
5688 LD="${LD-ld} -melf32bsmip"
5691 LD="${LD-ld} -melf32bmipn32"
5694 LD="${LD-ld} -melf64bmip"
5698 case `/usr/bin/file conftest.$ac_objext` in
5714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5715 # Find out which ABI we are using.
5716 echo 'int i;' > conftest.$ac_ext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; then
5722 case `/usr/bin/file conftest.o` in
5726 LD="${LD-ld} -m elf_i386"
5728 ppc64-*linux*|powerpc64-*linux*)
5729 LD="${LD-ld} -m elf32ppclinux"
5732 LD="${LD-ld} -m elf_s390"
5735 LD="${LD-ld} -m elf32_sparc"
5742 LD="${LD-ld} -m elf_x86_64"
5744 ppc*-*linux*|powerpc*-*linux*)
5745 LD="${LD-ld} -m elf64ppc"
5748 LD="${LD-ld} -m elf64_s390"
5751 LD="${LD-ld} -m elf64_sparc"
5761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5762 SAVE_CFLAGS="$CFLAGS"
5763 CFLAGS="$CFLAGS -belf"
5764 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5766 if test "${lt_cv_cc_needs_belf+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (ac_try="$ac_link"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_link") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext &&
5807 $as_test_x conftest$ac_exeext; then
5808 lt_cv_cc_needs_belf=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 lt_cv_cc_needs_belf=no
5816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5817 conftest$ac_exeext conftest.$ac_ext
5819 ac_cpp='$CPP $CPPFLAGS'
5820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5826 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5827 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5828 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5829 CFLAGS="$SAVE_CFLAGS"
5833 # Find out which ABI we are using.
5834 echo 'int i;' > conftest.$ac_ext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; then
5840 case `/usr/bin/file conftest.o` in
5842 case $lt_cv_prog_gnu_ld in
5843 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5844 *) LD="${LD-ld} -64" ;;
5855 need_locks="$enable_libtool_lock"
5859 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5860 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5861 if test "${ac_cv_header_stdc+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5883 rm -f conftest.$ac_objext
5884 if { (ac_try="$ac_compile"
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_compile") 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } && {
5897 test -z "$ac_c_werror_flag" ||
5898 test ! -s conftest.err
5899 } && test -s conftest.$ac_objext; then
5900 ac_cv_header_stdc=yes
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5905 ac_cv_header_stdc=no
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910 if test $ac_cv_header_stdc = yes; then
5911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922 $EGREP "memchr" >/dev/null 2>&1; then
5925 ac_cv_header_stdc=no
5931 if test $ac_cv_header_stdc = yes; then
5932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5943 $EGREP "free" >/dev/null 2>&1; then
5946 ac_cv_header_stdc=no
5952 if test $ac_cv_header_stdc = yes; then
5953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5954 if test "$cross_compiling" = yes; then
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5965 #if ((' ' & 0x0FF) == 0x020)
5966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5969 # define ISLOWER(c) \
5970 (('a' <= (c) && (c) <= 'i') \
5971 || ('j' <= (c) && (c) <= 'r') \
5972 || ('s' <= (c) && (c) <= 'z'))
5973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5981 for (i = 0; i < 256; i++)
5982 if (XOR (islower (i), ISLOWER (i))
5983 || toupper (i) != TOUPPER (i))
5988 rm -f conftest$ac_exeext
5989 if { (ac_try="$ac_link"
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_link") 2>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5999 { (case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_try") 2>&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6010 echo "$as_me: program exited with status $ac_status" >&5
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_stdc=no
6017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6025 if test $ac_cv_header_stdc = yes; then
6027 cat >>confdefs.h <<\_ACEOF
6028 #define STDC_HEADERS 1
6033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6044 inttypes.h stdint.h unistd.h
6046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 $ac_includes_default
6060 #include <$ac_header>
6062 rm -f conftest.$ac_objext
6063 if { (ac_try="$ac_compile"
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 eval "$as_ac_Header=yes"
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 eval "$as_ac_Header=no"
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 ac_res=`eval echo '${'$as_ac_Header'}'`
6090 { echo "$as_me:$LINENO: result: $ac_res" >&5
6091 echo "${ECHO_T}$ac_res" >&6; }
6092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6103 for ac_header in dlfcn.h
6105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 ac_res=`eval echo '${'$as_ac_Header'}'`
6113 { echo "$as_me:$LINENO: result: $ac_res" >&5
6114 echo "${ECHO_T}$ac_res" >&6; }
6116 # Is the header compilable?
6117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6126 #include <$ac_header>
6128 rm -f conftest.$ac_objext
6129 if { (ac_try="$ac_compile"
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compile") 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && {
6142 test -z "$ac_c_werror_flag" ||
6143 test ! -s conftest.err
6144 } && test -s conftest.$ac_objext; then
6145 ac_header_compiler=yes
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_header_compiler=no
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6155 echo "${ECHO_T}$ac_header_compiler" >&6; }
6157 # Is the header present?
6158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #include <$ac_header>
6168 if { (ac_try="$ac_cpp conftest.$ac_ext"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null && {
6181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6182 test ! -s conftest.err
6184 ac_header_preproc=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_header_preproc=no
6192 rm -f conftest.err conftest.$ac_ext
6193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6194 echo "${ECHO_T}$ac_header_preproc" >&6; }
6196 # So? What about this header?
6197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6203 ac_header_preproc=yes
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6219 ## ----------------------------------- ##
6220 ## Report this to heimdal-bugs@h5l.org ##
6221 ## ----------------------------------- ##
6223 ) | sed "s/^/$as_me: WARNING: /" >&2
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 ac_cpp='$CXXCPP $CPPFLAGS'
6249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6252 if test -z "$CXX"; then
6253 if test -n "$CCC"; then
6256 if test -n "$ac_tool_prefix"; then
6257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_prog_CXX+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 if test -n "$CXX"; then
6267 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 if test -n "$CXX"; then
6288 { echo "$as_me:$LINENO: result: $CXX" >&5
6289 echo "${ECHO_T}$CXX" >&6; }
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6296 test -n "$CXX" && break
6299 if test -z "$CXX"; then
6301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6303 # Extract the first word of "$ac_prog", so it can be a program name with args.
6304 set dummy $ac_prog; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 if test -n "$ac_ct_CXX"; then
6311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_ac_ct_CXX="$ac_prog"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6331 if test -n "$ac_ct_CXX"; then
6332 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6333 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6340 test -n "$ac_ct_CXX" && break
6343 if test "x$ac_ct_CXX" = x; then
6346 case $cross_compiling:$ac_tool_warned in
6348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6349 whose name does not start with the host triplet. If you think this
6350 configuration is useful to you, please write to autoconf@gnu.org." >&5
6351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet. If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6354 ac_tool_warned=yes ;;
6362 # Provide some information about the compiler.
6363 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6364 ac_compiler=`set X $ac_compile; echo $2`
6365 { (ac_try="$ac_compiler --version >&5"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compiler --version >&5") 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }
6375 { (ac_try="$ac_compiler -v >&5"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compiler -v >&5") 2>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }
6385 { (ac_try="$ac_compiler -V >&5"
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compiler -V >&5") 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }
6396 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6397 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6398 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_cxx_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest.$ac_objext; then
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6448 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6449 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6450 GXX=`test $ac_compiler_gnu = yes && echo yes`
6451 ac_test_CXXFLAGS=${CXXFLAGS+set}
6452 ac_save_CXXFLAGS=$CXXFLAGS
6453 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6454 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6455 if test "${ac_cv_prog_cxx_g+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6459 ac_cxx_werror_flag=yes
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484 (eval "$ac_compile") 2>conftest.er1
6486 grep -v '^ *+' conftest.er1 >conftest.err
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_cxx_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest.$ac_objext; then
6494 ac_cv_prog_cxx_g=yes
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_cxx_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_cxx_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 ac_cv_prog_cxx_g=yes
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6590 if test "$ac_test_CXXFLAGS" = set; then
6591 CXXFLAGS=$ac_save_CXXFLAGS
6592 elif test $ac_cv_prog_cxx_g = yes; then
6593 if test "$GXX" = yes; then
6599 if test "$GXX" = yes; then
6606 ac_cpp='$CXXCPP $CPPFLAGS'
6607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6613 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6614 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6615 (test "X$CXX" != "Xg++"))) ; then
6617 ac_cpp='$CXXCPP $CPPFLAGS'
6618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6621 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6622 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6623 if test -z "$CXXCPP"; then
6624 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 # Double quotes because CXXCPP needs to be expanded
6628 for CXXCPP in "$CXX -E" "/lib/cpp"
6631 for ac_cxx_preproc_warn_flag in '' yes
6633 # Use a header file that comes with gcc, so configuring glibc
6634 # with a fresh cross-compiler works.
6635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6636 # <limits.h> exists even on freestanding compilers.
6637 # On the NeXT, cc -E runs the code through the compiler's parser,
6638 # not just through cpp. "Syntax error" is here to catch this case.
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6646 # include <limits.h>
6648 # include <assert.h>
6652 if { (ac_try="$ac_cpp conftest.$ac_ext"
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6660 grep -v '^ *+' conftest.er1 >conftest.err
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev/null && {
6665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6666 test ! -s conftest.err
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 # Broken: fails on valid input.
6677 rm -f conftest.err conftest.$ac_ext
6679 # OK, works on sane cases. Now check whether nonexistent headers
6680 # can be detected and how.
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <ac_nonexistent.h>
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null && {
6702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6703 test ! -s conftest.err
6705 # Broken: success on invalid input.
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 # Passes both tests.
6716 rm -f conftest.err conftest.$ac_ext
6719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6720 rm -f conftest.err conftest.$ac_ext
6721 if $ac_preproc_ok; then
6726 ac_cv_prog_CXXCPP=$CXXCPP
6729 CXXCPP=$ac_cv_prog_CXXCPP
6731 ac_cv_prog_CXXCPP=$CXXCPP
6733 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6734 echo "${ECHO_T}$CXXCPP" >&6; }
6736 for ac_cxx_preproc_warn_flag in '' yes
6738 # Use a header file that comes with gcc, so configuring glibc
6739 # with a fresh cross-compiler works.
6740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741 # <limits.h> exists even on freestanding compilers.
6742 # On the NeXT, cc -E runs the code through the compiler's parser,
6743 # not just through cpp. "Syntax error" is here to catch this case.
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6751 # include <limits.h>
6753 # include <assert.h>
6757 if { (ac_try="$ac_cpp conftest.$ac_ext"
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6765 grep -v '^ *+' conftest.er1 >conftest.err
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } >/dev/null && {
6770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6771 test ! -s conftest.err
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 # Broken: fails on valid input.
6782 rm -f conftest.err conftest.$ac_ext
6784 # OK, works on sane cases. Now check whether nonexistent headers
6785 # can be detected and how.
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #include <ac_nonexistent.h>
6794 if { (ac_try="$ac_cpp conftest.$ac_ext"
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6802 grep -v '^ *+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev/null && {
6807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6808 test ! -s conftest.err
6810 # Broken: success on invalid input.
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 # Passes both tests.
6821 rm -f conftest.err conftest.$ac_ext
6824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6825 rm -f conftest.err conftest.$ac_ext
6826 if $ac_preproc_ok; then
6829 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6830 See \`config.log' for more details." >&5
6831 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6832 See \`config.log' for more details." >&2;}
6833 { (exit 1); exit 1; }; }
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6846 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6847 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6849 if test -n "$ac_tool_prefix"; then
6850 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
6852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_F77+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$F77"; then
6860 ac_cv_prog_F77="$F77" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 if test -n "$F77"; then
6881 { echo "$as_me:$LINENO: result: $F77" >&5
6882 echo "${ECHO_T}$F77" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 test -n "$F77" && break
6892 if test -z "$F77"; then
6894 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
6896 # Extract the first word of "$ac_prog", so it can be a program name with args.
6897 set dummy $ac_prog; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 if test -n "$ac_ct_F77"; then
6904 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_ac_ct_F77="$ac_prog"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6924 if test -n "$ac_ct_F77"; then
6925 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6926 echo "${ECHO_T}$ac_ct_F77" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 test -n "$ac_ct_F77" && break
6936 if test "x$ac_ct_F77" = x; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942 whose name does not start with the host triplet. If you think this
6943 configuration is useful to you, please write to autoconf@gnu.org." >&5
6944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945 whose name does not start with the host triplet. If you think this
6946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947 ac_tool_warned=yes ;;
6954 # Provide some information about the compiler.
6955 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6956 ac_compiler=`set X $ac_compile; echo $2`
6957 { (ac_try="$ac_compiler --version >&5"
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compiler --version >&5") 2>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }
6967 { (ac_try="$ac_compiler -v >&5"
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973 (eval "$ac_compiler -v >&5") 2>&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }
6977 { (ac_try="$ac_compiler -V >&5"
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compiler -V >&5") 2>&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }
6989 # If we don't use `.F' as extension, the preprocessor is not run on the
6990 # input file. (Note that this only needs to work for GNU compilers.)
6993 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6994 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6995 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.$ac_ext <<_ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_f77_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7035 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7036 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7038 ac_test_FFLAGS=${FFLAGS+set}
7039 ac_save_FFLAGS=$FFLAGS
7041 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7042 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7043 if test "${ac_cv_prog_f77_g+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.$ac_ext <<_ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_f77_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 ac_cv_prog_f77_g=yes
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7081 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7082 if test "$ac_test_FFLAGS" = set; then
7083 FFLAGS=$ac_save_FFLAGS
7084 elif test $ac_cv_prog_f77_g = yes; then
7085 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7091 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7098 G77=`test $ac_compiler_gnu = yes && echo yes`
7100 ac_cpp='$CPP $CPPFLAGS'
7101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7109 # find the maximum length of command line arguments
7110 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7111 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7112 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 # On DJGPP, this test can blow up pretty badly due to problems in libc
7121 # (any single argument exceeding 2000 bytes causes a buffer overrun
7122 # during glob expansion). Even if it were fixed, the result of this
7123 # check would be larger than it should be.
7124 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7128 # Under GNU Hurd, this test is not required because there is
7129 # no limit to the length of command line arguments.
7130 # Libtool will interpret -1 as no limit whatsoever
7131 lt_cv_sys_max_cmd_len=-1;
7135 # On Win9x/ME, this test blows up -- it succeeds, but takes
7136 # about 5 minutes as the teststring grows exponentially.
7137 # Worse, since 9x/ME are not pre-emptively multitasking,
7138 # you end up with a "frozen" computer, even though with patience
7139 # the test eventually succeeds (with a max line length of 256k).
7140 # Instead, let's just punt: use the minimum linelength reported by
7141 # all of the supported platforms: 8192 (on NT/2K/XP).
7142 lt_cv_sys_max_cmd_len=8192;
7146 # On AmigaOS with pdksh, this test takes hours, literally.
7147 # So we just punt and use a minimum line length of 8192.
7148 lt_cv_sys_max_cmd_len=8192;
7151 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7152 # This has been around since 386BSD, at least. Likely further.
7153 if test -x /sbin/sysctl; then
7154 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7155 elif test -x /usr/sbin/sysctl; then
7156 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7158 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7160 # And add a safety zone
7161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7166 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7167 lt_cv_sys_max_cmd_len=196608
7171 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7172 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7173 # nice to cause kernel panics so lets avoid the loop below.
7174 # First set a reasonable default.
7175 lt_cv_sys_max_cmd_len=16384
7177 if test -x /sbin/sysconfig; then
7178 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7179 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7184 lt_cv_sys_max_cmd_len=102400
7186 sysv5* | sco5v6* | sysv4.2uw2*)
7187 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7188 if test -n "$kargmax"; then
7189 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7191 lt_cv_sys_max_cmd_len=32768
7195 # If test is not a shell built-in, we'll probably end up computing a
7196 # maximum length that is only half of the actual maximum length, but
7198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7199 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7200 = "XX$teststring") >/dev/null 2>&1 &&
7201 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7202 lt_cv_sys_max_cmd_len=$new_result &&
7203 test $i != 17 # 1/2 MB should be enough
7206 teststring=$teststring$teststring
7209 # Add a significant safety factor because C++ compilers can tack on massive
7210 # amounts of additional arguments before passing them to the linker.
7211 # It appears as though 1/2 is a usable value.
7212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7218 if test -n $lt_cv_sys_max_cmd_len ; then
7219 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7220 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7222 { echo "$as_me:$LINENO: result: none" >&5
7223 echo "${ECHO_T}none" >&6; }
7229 # Check for command to grab the raw symbol name followed by C symbol from nm.
7230 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7231 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7232 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 # These are sane defaults that work on at least a few old systems.
7237 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7239 # Character class describing NM global symbol codes.
7240 symcode='[BCDEGRST]'
7242 # Regexp to match symbols that can be accessed directly from C.
7243 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7245 # Transform an extracted symbol line into a proper C declaration
7246 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7248 # Transform an extracted symbol line into symbol name and symbol address
7249 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'"
7251 # Define system-specific variables.
7256 cygwin* | mingw* | pw32*)
7257 symcode='[ABCDGISTW]'
7259 hpux*) # Its linker distinguishes data from code symbols
7260 if test "$host_cpu" = ia64; then
7261 symcode='[ABCDEGRST]'
7263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7264 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'"
7267 if test "$host_cpu" = ia64; then
7268 symcode='[ABCDGIRSTW]'
7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7270 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'"
7274 symcode='[BCDEGRST]'
7277 symcode='[BCDEGQRST]'
7288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7296 # Handle CRLF in mingw tool chain
7300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7304 # If we're using GNU nm, then use its standard symbol codes.
7305 case `$NM -V 2>&1` in
7306 *GNU* | *'with BFD'*)
7307 symcode='[ABCDGIRSTW]' ;;
7310 # Try without a prefix undercore, then with it.
7311 for ac_symprfx in "" "_"; do
7313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7314 symxfrm="\\1 $ac_symprfx\\2 \\2"
7316 # Write the raw and C identifiers.
7317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7319 # Check to see that the pipe works correctly.
7323 cat > conftest.$ac_ext <<EOF
7328 void nm_test_func(){}
7332 int main(){nm_test_var='a';nm_test_func();return(0);}
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336 (eval $ac_compile) 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; then
7340 # Now try to grab the symbols.
7342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && test -s "$nlist"; then
7347 # Try sorting and uniquifying the output.
7348 if sort "$nlist" | uniq > "$nlist"T; then
7349 mv -f "$nlist"T "$nlist"
7354 # Make sure that we snagged all the symbols we need.
7355 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7356 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7357 cat <<EOF > conftest.$ac_ext
7363 # Now generate the symbol file.
7364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7366 cat <<EOF >> conftest.$ac_ext
7367 #if defined (__STDC__) && __STDC__
7368 # define lt_ptr_t void *
7370 # define lt_ptr_t char *
7374 /* The mapping between symbol names and symbols. */
7379 lt_preloaded_symbols[] =
7382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7383 cat <<\EOF >> conftest.$ac_ext
7391 # Now try linking the two files.
7392 mv conftest.$ac_objext conftstm.$ac_objext
7393 lt_save_LIBS="$LIBS"
7394 lt_save_CFLAGS="$CFLAGS"
7395 LIBS="conftstm.$ac_objext"
7396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7404 LIBS="$lt_save_LIBS"
7405 CFLAGS="$lt_save_CFLAGS"
7407 echo "cannot find nm_test_func in $nlist" >&5
7410 echo "cannot find nm_test_var in $nlist" >&5
7413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7416 echo "$progname: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7419 rm -f conftest* conftst*
7421 # Do not use the global_symbol_pipe unless it works.
7422 if test "$pipe_works" = yes; then
7425 lt_cv_sys_global_symbol_pipe=
7431 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7432 lt_cv_sys_global_symbol_to_cdecl=
7434 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7435 { echo "$as_me:$LINENO: result: failed" >&5
7436 echo "${ECHO_T}failed" >&6; }
7438 { echo "$as_me:$LINENO: result: ok" >&5
7439 echo "${ECHO_T}ok" >&6; }
7442 { echo "$as_me:$LINENO: checking for objdir" >&5
7443 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7444 if test "${lt_cv_objdir+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 rm -f .libs 2>/dev/null
7448 mkdir .libs 2>/dev/null
7449 if test -d .libs; then
7452 # MS-DOS does not allow filenames that begin with a dot.
7455 rmdir .libs 2>/dev/null
7457 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7458 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7459 objdir=$lt_cv_objdir
7467 # AIX sometimes has problems with the GCC collect2 program. For some
7468 # reason, if we set the COLLECT_NAMES environment variable, the problems
7469 # vanish in a puff of smoke.
7470 if test "X${COLLECT_NAMES+set}" != Xset; then
7472 export COLLECT_NAMES
7477 # Sed substitution that helps us do robust quoting. It backslashifies
7478 # metacharacters that are still active within double-quoted strings.
7479 Xsed='sed -e 1s/^X//'
7480 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7482 # Same as above, but do not quote variable references.
7483 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7485 # Sed substitution to delay expansion of an escaped shell variable in a
7486 # double_quote_subst'ed string.
7487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7489 # Sed substitution to avoid accidental globbing in evaled expressions
7490 no_glob_subst='s/\*/\\\*/g'
7496 default_ofile=libtool
7497 can_build_shared=yes
7499 # All known linkers require a `.a' archive for static linking (except MSVC,
7500 # which needs '.lib').
7502 ltmain="$ac_aux_dir/ltmain.sh"
7503 ofile="$default_ofile"
7504 with_gnu_ld="$lt_cv_prog_gnu_ld"
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}ar; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_prog_AR+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 if test -n "$AR"; then
7515 ac_cv_prog_AR="$AR" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_AR="${ac_tool_prefix}ar"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 if test -n "$AR"; then
7536 { echo "$as_me:$LINENO: result: $AR" >&5
7537 echo "${ECHO_T}$AR" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7545 if test -z "$ac_cv_prog_AR"; then
7547 # Extract the first word of "ar", so it can be a program name with args.
7548 set dummy ar; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 if test -n "$ac_ct_AR"; then
7555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_prog_ac_ct_AR="ar"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7575 if test -n "$ac_ct_AR"; then
7576 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7577 echo "${ECHO_T}$ac_ct_AR" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7583 if test "x$ac_ct_AR" = x; then
7586 case $cross_compiling:$ac_tool_warned in
7588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7589 whose name does not start with the host triplet. If you think this
7590 configuration is useful to you, please write to autoconf@gnu.org." >&5
7591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7592 whose name does not start with the host triplet. If you think this
7593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7594 ac_tool_warned=yes ;;
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_prog_RANLIB+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 if test -n "$RANLIB"; then
7611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 RANLIB=$ac_cv_prog_RANLIB
7631 if test -n "$RANLIB"; then
7632 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7633 echo "${ECHO_T}$RANLIB" >&6; }
7635 { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7641 if test -z "$ac_cv_prog_RANLIB"; then
7642 ac_ct_RANLIB=$RANLIB
7643 # Extract the first word of "ranlib", so it can be a program name with args.
7644 set dummy ranlib; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 if test -n "$ac_ct_RANLIB"; then
7651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_prog_ac_ct_RANLIB="ranlib"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7671 if test -n "$ac_ct_RANLIB"; then
7672 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7673 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7675 { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7679 if test "x$ac_ct_RANLIB" = x; then
7682 case $cross_compiling:$ac_tool_warned in
7684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7685 whose name does not start with the host triplet. If you think this
7686 configuration is useful to you, please write to autoconf@gnu.org." >&5
7687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7688 whose name does not start with the host triplet. If you think this
7689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7690 ac_tool_warned=yes ;;
7692 RANLIB=$ac_ct_RANLIB
7695 RANLIB="$ac_cv_prog_RANLIB"
7698 if test -n "$ac_tool_prefix"; then
7699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7700 set dummy ${ac_tool_prefix}strip; ac_word=$2
7701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703 if test "${ac_cv_prog_STRIP+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 if test -n "$STRIP"; then
7707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 STRIP=$ac_cv_prog_STRIP
7727 if test -n "$STRIP"; then
7728 { echo "$as_me:$LINENO: result: $STRIP" >&5
7729 echo "${ECHO_T}$STRIP" >&6; }
7731 { echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6; }
7737 if test -z "$ac_cv_prog_STRIP"; then
7739 # Extract the first word of "strip", so it can be a program name with args.
7740 set dummy strip; ac_word=$2
7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 if test -n "$ac_ct_STRIP"; then
7747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_prog_ac_ct_STRIP="strip"
7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7767 if test -n "$ac_ct_STRIP"; then
7768 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7769 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7771 { echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6; }
7775 if test "x$ac_ct_STRIP" = x; then
7778 case $cross_compiling:$ac_tool_warned in
7780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7781 whose name does not start with the host triplet. If you think this
7782 configuration is useful to you, please write to autoconf@gnu.org." >&5
7783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7784 whose name does not start with the host triplet. If you think this
7785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7786 ac_tool_warned=yes ;;
7791 STRIP="$ac_cv_prog_STRIP"
7796 old_CFLAGS="$CFLAGS"
7798 # Set sane defaults for various variables
7799 test -z "$AR" && AR=ar
7800 test -z "$AR_FLAGS" && AR_FLAGS=cru
7801 test -z "$AS" && AS=as
7802 test -z "$CC" && CC=cc
7803 test -z "$LTCC" && LTCC=$CC
7804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7805 test -z "$DLLTOOL" && DLLTOOL=dlltool
7806 test -z "$LD" && LD=ld
7807 test -z "$LN_S" && LN_S="ln -s"
7808 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7809 test -z "$NM" && NM=nm
7810 test -z "$SED" && SED=sed
7811 test -z "$OBJDUMP" && OBJDUMP=objdump
7812 test -z "$RANLIB" && RANLIB=:
7813 test -z "$STRIP" && STRIP=:
7814 test -z "$ac_objext" && ac_objext=o
7816 # Determine commands to create old-style static archives.
7817 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7818 old_postinstall_cmds='chmod 644 $oldlib'
7819 old_postuninstall_cmds=
7821 if test -n "$RANLIB"; then
7824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7830 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7833 for cc_temp in $compiler""; do
7835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7844 # Only perform the check for file, if the check method requires it
7845 case $deplibs_check_method in
7847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7848 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7849 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7858 lt_save_MAGIC_CMD="$MAGIC_CMD"
7859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861 for ac_dir in $ac_dummy; do
7863 test -z "$ac_dir" && ac_dir=.
7864 if test -f $ac_dir/${ac_tool_prefix}file; then
7865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7866 if test -n "$file_magic_test_file"; then
7867 case $deplibs_check_method in
7869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872 $EGREP "$file_magic_regex" > /dev/null; then
7877 *** Warning: the command libtool uses to detect shared libraries,
7878 *** $file_magic_cmd, produces output that libtool cannot recognize.
7879 *** The result is that libtool may fail to recognize shared libraries
7880 *** as such. This will affect the creation of libtool libraries that
7881 *** depend on shared libraries, but programs linked with such libtool
7882 *** libraries will work regardless of this problem. Nevertheless, you
7883 *** may want to report the problem to your system manager and/or to
7884 *** bug-libtool@gnu.org
7894 MAGIC_CMD="$lt_save_MAGIC_CMD"
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if test -n "$MAGIC_CMD"; then
7901 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7902 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7904 { echo "$as_me:$LINENO: result: no" >&5
7905 echo "${ECHO_T}no" >&6; }
7908 if test -z "$lt_cv_path_MAGIC_CMD"; then
7909 if test -n "$ac_tool_prefix"; then
7910 { echo "$as_me:$LINENO: checking for file" >&5
7911 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7912 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7920 lt_save_MAGIC_CMD="$MAGIC_CMD"
7921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7923 for ac_dir in $ac_dummy; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/file; then
7927 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7928 if test -n "$file_magic_test_file"; then
7929 case $deplibs_check_method in
7931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7934 $EGREP "$file_magic_regex" > /dev/null; then
7939 *** Warning: the command libtool uses to detect shared libraries,
7940 *** $file_magic_cmd, produces output that libtool cannot recognize.
7941 *** The result is that libtool may fail to recognize shared libraries
7942 *** as such. This will affect the creation of libtool libraries that
7943 *** depend on shared libraries, but programs linked with such libtool
7944 *** libraries will work regardless of this problem. Nevertheless, you
7945 *** may want to report the problem to your system manager and/or to
7946 *** bug-libtool@gnu.org
7956 MAGIC_CMD="$lt_save_MAGIC_CMD"
7961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962 if test -n "$MAGIC_CMD"; then
7963 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7964 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7966 { echo "$as_me:$LINENO: result: no" >&5
7967 echo "${ECHO_T}no" >&6; }
7982 # Check whether --enable-libtool-lock was given.
7983 if test "${enable_libtool_lock+set}" = set; then
7984 enableval=$enable_libtool_lock;
7987 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7990 # Check whether --with-pic was given.
7991 if test "${with_pic+set}" = set; then
7992 withval=$with_pic; pic_mode="$withval"
7997 test -z "$pic_mode" && pic_mode=default
7999 # Use C for the default configuration in the libtool script
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009 # Source file extension for C test sources.
8012 # Object file extension for compiled C test sources.
8016 # Code to be used in simple compile tests
8017 lt_simple_compile_test_code="int some_variable = 0;\n"
8019 # Code to be used in simple link tests
8020 lt_simple_link_test_code='int main(){return(0);}\n'
8023 # If no C compiler was specified, use CC.
8026 # If no C compiler flags were specified, use CFLAGS.
8027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8029 # Allow CC to be a program name with arguments.
8033 # save warnings/boilerplate of simple test code
8034 ac_outfile=conftest.$ac_objext
8035 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037 _lt_compiler_boilerplate=`cat conftest.err`
8040 ac_outfile=conftest.$ac_objext
8041 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_linker_boilerplate=`cat conftest.err`
8048 lt_prog_compiler_no_builtin_flag=
8050 if test "$GCC" = yes; then
8051 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8054 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8055 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8056 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 lt_cv_prog_compiler_rtti_exceptions=no
8060 ac_outfile=conftest.$ac_objext
8061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8062 lt_compiler_flag="-fno-rtti -fno-exceptions"
8063 # Insert the option either (1) after the last *FLAGS variable, or
8064 # (2) before a word containing "conftest.", or (3) at the end.
8065 # Note that $ac_compile itself does not contain backslashes and begins
8066 # with a dollar sign (not a hyphen), so the echo should work correctly.
8067 # The option is referenced via a variable to avoid confusing sed.
8068 lt_compile=`echo "$ac_compile" | $SED \
8069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8071 -e 's:$: $lt_compiler_flag:'`
8072 (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
8073 (eval "$lt_compile" 2>conftest.err)
8075 cat conftest.err >&5
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 if (exit $ac_status) && test -s "$ac_outfile"; then
8078 # The compiler can only warn and ignore the option if not recognized
8079 # So say no if there are warnings other than the usual output.
8080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8083 lt_cv_prog_compiler_rtti_exceptions=yes
8089 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8090 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8093 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8100 lt_prog_compiler_wl=
8101 lt_prog_compiler_pic=
8102 lt_prog_compiler_static=
8104 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8105 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8107 if test "$GCC" = yes; then
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_static='-static'
8113 # All AIX code is PIC.
8114 if test "$host_cpu" = ia64; then
8115 # AIX 5 now supports IA64 processor
8116 lt_prog_compiler_static='-Bstatic'
8121 # FIXME: we need at least 68020 code to build shared libraries, but
8122 # adding the `-m68020' flag to GCC prevents building anything better,
8124 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8128 # PIC is the default for these OSes.
8131 mingw* | pw32* | os2*)
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
8137 darwin* | rhapsody*)
8138 # PIC is the default on this platform
8139 # Common symbols not allowed in MH_DYLIB files
8140 lt_prog_compiler_pic='-fno-common'
8144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8145 # Instead, we relocate shared libraries at runtime.
8149 # Just because we use GCC doesn't mean we suddenly get shared libraries
8150 # on systems that don't support them.
8151 lt_prog_compiler_can_build_shared=no
8156 if test -d /usr/nec; then
8157 lt_prog_compiler_pic=-Kconform_pic
8162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8169 lt_prog_compiler_pic='-fPIC'
8175 lt_prog_compiler_pic='-fPIC'
8179 # PORTME Check for flag to pass linker flags through the system compiler.
8182 lt_prog_compiler_wl='-Wl,'
8183 if test "$host_cpu" = ia64; then
8184 # AIX 5 now supports IA64 processor
8185 lt_prog_compiler_static='-Bstatic'
8187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 case $cc_basename in
8195 lt_prog_compiler_pic='-qnocommon'
8196 lt_prog_compiler_wl='-Wl,'
8201 mingw* | pw32* | os2*)
8202 # This hack is so that the source file can tell whether it is being
8203 # built for inclusion in a dll (and should export symbols for example).
8204 lt_prog_compiler_pic='-DDLL_EXPORT'
8207 hpux9* | hpux10* | hpux11*)
8208 lt_prog_compiler_wl='-Wl,'
8209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8216 lt_prog_compiler_pic='+Z'
8219 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8220 lt_prog_compiler_static='${wl}-a ${wl}archive'
8223 irix5* | irix6* | nonstopux*)
8224 lt_prog_compiler_wl='-Wl,'
8225 # PIC (with -KPIC) is the default.
8226 lt_prog_compiler_static='-non_shared'
8230 lt_prog_compiler_pic='-KPIC'
8231 lt_prog_compiler_static='-Bstatic'
8235 case $cc_basename in
8237 lt_prog_compiler_wl='-Wl,'
8238 lt_prog_compiler_pic='-KPIC'
8239 lt_prog_compiler_static='-static'
8241 pgcc* | pgf77* | pgf90* | pgf95*)
8242 # Portland Group compilers (*not* the Pentium gcc compiler,
8243 # which looks to be a dead project)
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-fpic'
8246 lt_prog_compiler_static='-Bstatic'
8249 lt_prog_compiler_wl='-Wl,'
8250 # All Alpha code is PIC.
8251 lt_prog_compiler_static='-non_shared'
8256 osf3* | osf4* | osf5*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # All OSF/1 code is PIC.
8259 lt_prog_compiler_static='-non_shared'
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8265 case $cc_basename in
8267 lt_prog_compiler_wl='-Qoption ld ';;
8269 lt_prog_compiler_wl='-Wl,';;
8274 lt_prog_compiler_wl='-Qoption ld '
8275 lt_prog_compiler_pic='-PIC'
8276 lt_prog_compiler_static='-Bstatic'
8279 sysv4 | sysv4.2uw2* | sysv4.3*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-Bstatic'
8286 if test -d /usr/nec ;then
8287 lt_prog_compiler_pic='-Kconform_pic'
8288 lt_prog_compiler_static='-Bstatic'
8292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-Bstatic'
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_can_build_shared=no
8304 lt_prog_compiler_pic='-pic'
8305 lt_prog_compiler_static='-Bstatic'
8309 lt_prog_compiler_can_build_shared=no
8314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8315 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8318 # Check to make sure the PIC flag actually works.
8320 if test -n "$lt_prog_compiler_pic"; then
8322 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8324 if test "${lt_prog_compiler_pic_works+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 lt_prog_compiler_pic_works=no
8328 ac_outfile=conftest.$ac_objext
8329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 # The option is referenced via a variable to avoid confusing sed.
8336 lt_compile=`echo "$ac_compile" | $SED \
8337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339 -e 's:$: $lt_compiler_flag:'`
8340 (eval echo "\"\$as_me:8340: $lt_compile\"" >&5)
8341 (eval "$lt_compile" 2>conftest.err)
8343 cat conftest.err >&5
8344 echo "$as_me:8344: \$? = $ac_status" >&5
8345 if (exit $ac_status) && test -s "$ac_outfile"; then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings other than the usual output.
8348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351 lt_prog_compiler_pic_works=yes
8357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8358 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8360 if test x"$lt_prog_compiler_pic_works" = xyes; then
8361 case $lt_prog_compiler_pic in
8363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8366 lt_prog_compiler_pic=
8367 lt_prog_compiler_can_build_shared=no
8372 # For platforms which do not support PIC, -DPIC is meaningless:
8374 lt_prog_compiler_pic=
8377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8382 # Check to make sure the static flag actually works.
8384 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8385 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8386 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8387 if test "${lt_prog_compiler_static_works+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 lt_prog_compiler_static_works=no
8391 save_LDFLAGS="$LDFLAGS"
8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395 # The linker can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 if test -s conftest.err; then
8398 # Append any errors to the config.log.
8399 cat conftest.err 1>&5
8400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402 if diff conftest.exp conftest.er2 >/dev/null; then
8403 lt_prog_compiler_static_works=yes
8406 lt_prog_compiler_static_works=yes
8410 LDFLAGS="$save_LDFLAGS"
8413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8414 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8416 if test x"$lt_prog_compiler_static_works" = xyes; then
8419 lt_prog_compiler_static=
8423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8425 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 lt_cv_prog_compiler_c_o=no
8429 $rm -r conftest 2>/dev/null
8433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8435 lt_compiler_flag="-o out/conftest2.$ac_objext"
8436 # Insert the option either (1) after the last *FLAGS variable, or
8437 # (2) before a word containing "conftest.", or (3) at the end.
8438 # Note that $ac_compile itself does not contain backslashes and begins
8439 # with a dollar sign (not a hyphen), so the echo should work correctly.
8440 lt_compile=`echo "$ac_compile" | $SED \
8441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443 -e 's:$: $lt_compiler_flag:'`
8444 (eval echo "\"\$as_me:8444: $lt_compile\"" >&5)
8445 (eval "$lt_compile" 2>out/conftest.err)
8447 cat out/conftest.err >&5
8448 echo "$as_me:8448: \$? = $ac_status" >&5
8449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8451 # The compiler can only warn and ignore the option if not recognized
8452 # So say no if there are warnings
8453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8456 lt_cv_prog_compiler_c_o=yes
8461 # SGI C++ compiler will create directory out/ii_files/ for
8462 # template instantiation
8463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8464 $rm out/* && rmdir out
8470 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8474 hard_links="nottested"
8475 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8476 # do not overwrite the value of need_locks provided by the user
8477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8483 ln conftest.a conftest.b 2>&5 || hard_links=no
8484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8485 { echo "$as_me:$LINENO: result: $hard_links" >&5
8486 echo "${ECHO_T}$hard_links" >&6; }
8487 if test "$hard_links" = no; then
8488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8500 allow_undefined_flag=
8501 enable_shared_with_static_runtimes=no
8503 archive_expsym_cmds=
8504 old_archive_From_new_cmds=
8505 old_archive_from_expsyms_cmds=
8506 export_dynamic_flag_spec=
8507 whole_archive_flag_spec=
8508 thread_safe_flag_spec=
8509 hardcode_libdir_flag_spec=
8510 hardcode_libdir_flag_spec_ld=
8511 hardcode_libdir_separator=
8514 hardcode_shlibpath_var=unsupported
8515 link_all_deplibs=unknown
8516 hardcode_automatic=no
8519 always_export_symbols=no
8520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8521 # include_expsyms should be a list of space-separated symbols to be *always*
8522 # included in the symbol list
8524 # exclude_expsyms can be an extended regexp of symbols to exclude
8525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8527 # as well as any symbol that contains `d'.
8528 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8530 # platforms (ab)use it in PIC code, but their linkers get confused if
8531 # the symbol is explicitly referenced. Since portable code cannot
8532 # rely on this symbol name, it's probably fine to never include it in
8533 # preloaded symbol tables.
8534 extract_expsyms_cmds=
8535 # Just being paranoid about ensuring that cc_basename is set.
8536 for cc_temp in $compiler""; do
8538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8544 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8547 cygwin* | mingw* | pw32*)
8548 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8549 # When not using gcc, we currently assume that we are using
8550 # Microsoft Visual C++.
8551 if test "$GCC" != yes; then
8556 # we just hope/assume this is gcc and not c89 (= MSVC++)
8565 if test "$with_gnu_ld" = yes; then
8566 # If archive_cmds runs LD, not CC, wlarc should be empty
8569 # Set some defaults for GNU ld with shared library support. These
8570 # are reset later if shared libraries are not supported. Putting them
8571 # here allows them to be overridden if necessary.
8572 runpath_var=LD_RUN_PATH
8573 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8574 export_dynamic_flag_spec='${wl}--export-dynamic'
8575 # ancient GNU ld didn't support --whole-archive et. al.
8576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8577 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8579 whole_archive_flag_spec=
8581 supports_anon_versioning=no
8582 case `$LD -v 2>/dev/null` in
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8590 # See if GNU ld supports shared libraries.
8592 aix3* | aix4* | aix5*)
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test "$host_cpu" != ia64; then
8598 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to modify your PATH
8602 *** so that a non-GNU linker is found, and then restart.
8609 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)'
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_minus_L=yes
8613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8614 # that the semantics of dynamic libraries on AmigaOS, at least up
8615 # to version 4, is to share data among multiple programs linked
8616 # with the same dynamic library. Since this doesn't match the
8617 # behavior of shared libraries on other platforms, we can't use
8623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624 allow_undefined_flag=unsupported
8625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8626 # support --undefined. This deserves some investigation. FIXME
8627 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 cygwin* | mingw* | pw32*)
8634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8635 # as there is no search path for DLLs.
8636 hardcode_libdir_flag_spec='-L$libdir'
8637 allow_undefined_flag=unsupported
8638 always_export_symbols=no
8639 enable_shared_with_static_runtimes=yes
8640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8644 # If the export-symbols file already is a .def file (1st line
8645 # is EXPORTS), use it as is; otherwise, prepend...
8646 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8647 cp $export_symbols $output_objdir/$soname.def;
8649 echo EXPORTS > $output_objdir/$soname.def;
8650 cat $export_symbols >> $output_objdir/$soname.def;
8652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8660 hardcode_shlibpath_var=no
8661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8662 export_dynamic_flag_spec='${wl}-E'
8663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8664 # Instead, shared libraries are loaded at an image base (0x10000000 by
8665 # default) and relocated if they conflict, which is a slow very memory
8666 # consuming and fragmenting process. To avoid this, we pick a random,
8667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8668 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8670 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'
8674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8676 case $cc_basename,$host_cpu in
8677 pgcc*) # Portland Group C compiler
8678 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'
8679 tmp_addflag=' $pic_flag'
8681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8682 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'
8683 tmp_addflag=' $pic_flag -Mnomain' ;;
8684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8685 tmp_addflag=' -i_dynamic' ;;
8686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8687 tmp_addflag=' -i_dynamic -nofor_main' ;;
8688 ifc* | ifort*) # Intel Fortran compiler
8689 tmp_addflag=' -nofor_main' ;;
8691 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 if test $supports_anon_versioning = yes; then
8694 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8696 $echo "local: *; };" >> $output_objdir/$libname.ver~
8697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720 *** create shared libraries on Solaris systems. Therefore, libtool
8721 *** is disabling shared libraries support. We urge you to upgrade GNU
8722 *** binutils to release 2.9.1 or newer. Another option is to modify
8723 *** your PATH or compiler configuration so that the native linker is
8724 *** used, and then restart.
8727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736 case `$LD -v 2>&1` in
8737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742 *** reliably create shared libraries on SCO systems. Therefore, libtool
8743 *** is disabling shared libraries support. We urge you to upgrade GNU
8744 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_shlibpath_var=no
8770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779 if test "$ld_shlibs" = no; then
8781 hardcode_libdir_flag_spec=
8782 export_dynamic_flag_spec=
8783 whole_archive_flag_spec=
8786 # PORTME fill in a description of your system's linker (not GNU ld)
8789 allow_undefined_flag=unsupported
8790 always_export_symbols=yes
8791 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'
8792 # Note: this linker hardcodes the directories in LIBPATH if there
8793 # are no directories specified by -L.
8794 hardcode_minus_L=yes
8795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8796 # Neither direct hardcoding nor static linking is supported with a
8798 hardcode_direct=unsupported
8803 if test "$host_cpu" = ia64; then
8804 # On IA64, the linker does run time linking by default, so we don't
8805 # have to do anything special.
8806 aix_use_runtimelinking=no
8807 exp_sym_flag='-Bexport'
8810 # If we're using GNU nm, then we don't want the "-C" option.
8811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8813 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'
8815 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'
8817 aix_use_runtimelinking=no
8819 # Test if we are trying to use run time linking or normal
8820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8821 # need to do runtime linking.
8822 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8823 for ld_flag in $LDFLAGS; do
8824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8825 aix_use_runtimelinking=yes
8832 exp_sym_flag='-bexport'
8833 no_entry_flag='-bnoentry'
8836 # When large executables or shared objects are built, AIX ld can
8837 # have problems creating the table of contents. If linking a library
8838 # or program results in "error TOC overflow" add -mminimal-toc to
8839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8844 hardcode_libdir_separator=':'
8845 link_all_deplibs=yes
8847 if test "$GCC" = yes; then
8848 case $host_os in aix4.[012]|aix4.[012].*)
8849 # We only want to do this on AIX 4.2 and lower, the check
8850 # below for broken collect2 doesn't work under 4.3+
8851 collect2name=`${CC} -print-prog-name=collect2`
8852 if test -f "$collect2name" && \
8853 strings "$collect2name" | grep resolve_lib_name >/dev/null
8855 # We have reworked collect2
8858 # We have old collect2
8859 hardcode_direct=unsupported
8860 # It fails to find uninstalled libraries when the uninstalled
8861 # path is not listed in the libpath. Setting hardcode_minus_L
8862 # to unsupported forces relinking
8863 hardcode_minus_L=yes
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_libdir_separator=
8869 shared_flag='-shared'
8870 if test "$aix_use_runtimelinking" = yes; then
8871 shared_flag="$shared_flag "'${wl}-G'
8875 if test "$host_cpu" = ia64; then
8876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8877 # chokes on -Wl,-G. The following line is correct:
8880 if test "$aix_use_runtimelinking" = yes; then
8881 shared_flag='${wl}-G'
8883 shared_flag='${wl}-bM:SRE'
8888 # It seems that -bexpall does not export symbols beginning with
8889 # underscore (_), so it is better to generate a list of symbols to export.
8890 always_export_symbols=yes
8891 if test "$aix_use_runtimelinking" = yes; then
8892 # Warning - without using the other runtime loading flags (-brtl),
8893 # -berok will link without error, but may produce a broken library.
8894 allow_undefined_flag='-berok'
8895 # Determine the default libpath from the value encoded in an empty executable.
8896 cat >conftest.$ac_ext <<_ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (ac_try="$ac_link"
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_link") 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest$ac_exeext &&
8928 $as_test_x conftest$ac_exeext; then
8930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8932 # Check for a 64-bit object if we didn't find anything.
8933 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943 conftest$ac_exeext conftest.$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 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"
8949 if test "$host_cpu" = ia64; then
8950 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8951 allow_undefined_flag="-z nodefs"
8952 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"
8954 # Determine the default libpath from the value encoded in an empty executable.
8955 cat >conftest.$ac_ext <<_ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8991 # Check for a 64-bit object if we didn't find anything.
8992 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
9001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9002 conftest$ac_exeext conftest.$ac_ext
9003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9006 # Warning - without using the other run time loading flags,
9007 # -berok will link without error, but may produce a broken library.
9008 no_undefined_flag=' ${wl}-bernotok'
9009 allow_undefined_flag=' ${wl}-berok'
9010 # Exported symbols can be pulled into shared objects from archives
9011 whole_archive_flag_spec='$convenience'
9012 archive_cmds_need_lc=yes
9013 # This is similar to how AIX traditionally builds its shared libraries.
9014 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'
9020 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)'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_minus_L=yes
9023 # see comment about different semantics on the GNU ld section
9028 export_dynamic_flag_spec=-rdynamic
9031 cygwin* | mingw* | pw32*)
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 # hardcode_libdir_flag_spec is actually meaningless, as there is
9035 # no search path for DLLs.
9036 hardcode_libdir_flag_spec=' '
9037 allow_undefined_flag=unsupported
9038 # Tell ltmain to make .lib files, not .a files.
9040 # Tell ltmain to make .dll files, not .so files.
9042 # FIXME: Setting linknames here is a bad hack.
9043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9044 # The linker will automatically build a .lib file if we build a DLL.
9045 old_archive_From_new_cmds='true'
9046 # FIXME: Should let the user specify the lib program.
9047 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9048 fix_srcfile_path='`cygpath -w "$srcfile"`'
9049 enable_shared_with_static_runtimes=yes
9052 darwin* | rhapsody*)
9054 rhapsody* | darwin1.[012])
9055 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9058 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9059 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9061 case ${MACOSX_DEPLOYMENT_TARGET} in
9063 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9066 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9072 archive_cmds_need_lc=no
9074 hardcode_automatic=yes
9075 hardcode_shlibpath_var=unsupported
9076 whole_archive_flag_spec=''
9077 link_all_deplibs=yes
9078 if test "$GCC" = yes ; then
9079 output_verbose_link_cmd='echo'
9080 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9081 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9083 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}'
9084 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}'
9086 case $cc_basename in
9088 output_verbose_link_cmd='echo'
9089 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9090 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9092 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9093 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}'
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_shlibpath_var=no
9112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113 # support. Future versions do this automatically, but an explicit c++rt0.o
9114 # does not break anything, and helps significantly (at the cost of a little
9117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118 hardcode_libdir_flag_spec='-R$libdir'
9120 hardcode_shlibpath_var=no
9123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_minus_L=yes
9128 hardcode_shlibpath_var=no
9131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132 freebsd* | kfreebsd*-gnu | dragonfly*)
9133 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134 hardcode_libdir_flag_spec='-R$libdir'
9136 hardcode_shlibpath_var=no
9140 if test "$GCC" = yes; then
9141 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'
9143 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'
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_separator=:
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9152 export_dynamic_flag_spec='${wl}-E'
9156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9161 if test "$with_gnu_ld" = no; then
9162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163 hardcode_libdir_separator=:
9166 export_dynamic_flag_spec='${wl}-E'
9168 # hardcode_minus_L: Not really in the search PATH,
9169 # but as the default location of the library.
9170 hardcode_minus_L=yes
9175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200 if test "$with_gnu_ld" = no; then
9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202 hardcode_libdir_separator=:
9206 hardcode_libdir_flag_spec_ld='+b $libdir'
9208 hardcode_shlibpath_var=no
9212 export_dynamic_flag_spec='${wl}-E'
9214 # hardcode_minus_L: Not really in the search PATH,
9215 # but as the default location of the library.
9216 hardcode_minus_L=yes
9222 irix5* | irix6* | nonstopux*)
9223 if test "$GCC" = yes; then
9224 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'
9226 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'
9227 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9230 hardcode_libdir_separator=:
9231 link_all_deplibs=yes
9235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9240 hardcode_libdir_flag_spec='-R$libdir'
9242 hardcode_shlibpath_var=no
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_shlibpath_var=no
9255 hardcode_shlibpath_var=no
9256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 export_dynamic_flag_spec='${wl}-E'
9263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265 hardcode_libdir_flag_spec='-R$libdir'
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 allow_undefined_flag=unsupported
9279 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'
9280 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9284 if test "$GCC" = yes; then
9285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286 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'
9288 allow_undefined_flag=' -expect_unresolved \*'
9289 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'
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 hardcode_libdir_separator=:
9295 osf4* | osf5*) # as osf3* with the addition of -msym flag
9296 if test "$GCC" = yes; then
9297 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9298 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'
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 allow_undefined_flag=' -expect_unresolved \*'
9302 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'
9303 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9304 $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'
9306 # Both c and cxx compiler support -rpath directly
9307 hardcode_libdir_flag_spec='-rpath $libdir'
9309 hardcode_libdir_separator=:
9313 no_undefined_flag=' -z text'
9314 if test "$GCC" = yes; then
9316 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9318 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9325 hardcode_libdir_flag_spec='-R$libdir'
9326 hardcode_shlibpath_var=no
9328 solaris2.[0-5] | solaris2.[0-5].*) ;;
9330 # The compiler driver will combine linker options so we
9331 # cannot just pass the convience library names through
9332 # without $wl, iff we do not link with $LD.
9333 # Luckily, gcc supports the same syntax we need for Sun Studio.
9334 # Supported since Solaris 2.6 (maybe 2.5.1?)
9337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9339 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9342 link_all_deplibs=yes
9346 if test "x$host_vendor" = xsequent; then
9347 # Use $CC to link under sequent, because it throws in some extra .o
9348 # files that make .init and .fini sections work.
9349 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9353 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_minus_L=yes
9356 hardcode_shlibpath_var=no
9360 case $host_vendor in
9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_direct=yes # is this really true???
9366 ## LD is ld it makes a PLAMLIB
9367 ## CC just makes a GrossModule.
9368 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9369 reload_cmds='$CC -r -o $output$reload_objs'
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9377 runpath_var='LD_RUN_PATH'
9378 hardcode_shlibpath_var=no
9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383 hardcode_shlibpath_var=no
9384 export_dynamic_flag_spec='-Bexport'
9388 if test -d /usr/nec; then
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_shlibpath_var=no
9391 runpath_var=LD_RUN_PATH
9392 hardcode_runpath_var=yes
9397 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9398 no_undefined_flag='${wl}-z,text'
9399 archive_cmds_need_lc=no
9400 hardcode_shlibpath_var=no
9401 runpath_var='LD_RUN_PATH'
9403 if test "$GCC" = yes; then
9404 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 sysv5* | sco3.2v5* | sco5v6*)
9413 # Note: We can NOT use -z defs as we might desire, because we do not
9414 # link with -lc, and that would cause any symbols used from libc to
9415 # always be unresolved, which means just about no library would
9416 # ever link correctly. If we're not using GNU ld we use -z text
9417 # though, which does catch some bad symbols but isn't as heavy-handed
9419 no_undefined_flag='${wl}-z,text'
9420 allow_undefined_flag='${wl}-z,nodefs'
9421 archive_cmds_need_lc=no
9422 hardcode_shlibpath_var=no
9423 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9424 hardcode_libdir_separator=':'
9425 link_all_deplibs=yes
9426 export_dynamic_flag_spec='${wl}-Bexport'
9427 runpath_var='LD_RUN_PATH'
9429 if test "$GCC" = yes; then
9430 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_shlibpath_var=no
9450 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9451 echo "${ECHO_T}$ld_shlibs" >&6; }
9452 test "$ld_shlibs" = no && can_build_shared=no
9455 # Do we need to explicitly link libc?
9457 case "x$archive_cmds_need_lc" in
9459 # Assume -lc should be added
9460 archive_cmds_need_lc=yes
9462 if test "$enable_shared" = yes && test "$GCC" = yes; then
9463 case $archive_cmds in
9465 # FIXME: we may have to deal with multi-command sequences.
9468 # Test whether the compiler implicitly links with -lc since on some
9469 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9470 # to ld, don't add -lc before -lgcc.
9471 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9472 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } 2>conftest.err; then
9483 libobjs=conftest.$ac_objext
9485 wl=$lt_prog_compiler_wl
9486 pic_flag=$lt_prog_compiler_pic
9492 lt_save_allow_undefined_flag=$allow_undefined_flag
9493 allow_undefined_flag=
9494 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9495 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }
9500 archive_cmds_need_lc=no
9502 archive_cmds_need_lc=yes
9504 allow_undefined_flag=$lt_save_allow_undefined_flag
9506 cat conftest.err 1>&5
9509 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9510 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9517 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9520 libname_spec='lib$name'
9528 shlibpath_overrides_runpath=unknown
9530 dynamic_linker="$host_os ld.so"
9531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9532 if test "$GCC" = yes; then
9533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9535 # if the path contains ";" then we assume it to be the separator
9536 # otherwise default to the standard path separator (i.e. ":") - it is
9537 # assumed that no part of a normal pathname contains ";" but that should
9538 # okay in the real world where ";" in dirpaths is itself problematic.
9539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9546 need_lib_prefix=unknown
9547 hardcode_into_libs=no
9549 # when you set need_version to no, make sure it does not cause -set_version
9550 # flags to be left without arguments
9551 need_version=unknown
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9557 shlibpath_var=LIBPATH
9559 # AIX 3 has no versioning support, so we append a major version to the name.
9560 soname_spec='${libname}${release}${shared_ext}$major'
9567 hardcode_into_libs=yes
9568 if test "$host_cpu" = ia64; then
9569 # AIX 5 supports IA64
9570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9571 shlibpath_var=LD_LIBRARY_PATH
9573 # With GCC up to 2.95.x, collect2 would create an import file
9574 # for dependence libraries. The import file would start with
9575 # the line `#! .'. This would cause the generated library to
9576 # depend on `.', always an invalid library. This was fixed in
9577 # development snapshots of GCC prior to 3.0.
9579 aix4 | aix4.[01] | aix4.[01].*)
9580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9590 # soname into executable. Probably we can add versioning support to
9591 # collect2, so additional links can be useful in future.
9592 if test "$aix_use_runtimelinking" = yes; then
9593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9594 # instead of lib<name>.a to let people know that these are not
9595 # typical AIX shared libraries.
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 # We preserve .a as extension for shared libraries through AIX4.2
9599 # and later when we are not doing run time linking.
9600 library_names_spec='${libname}${release}.a $libname.a'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LIBPATH
9608 library_names_spec='$libname.ixlibrary $libname.a'
9609 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9610 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'
9614 library_names_spec='${libname}${shared_ext}'
9615 dynamic_linker="$host_os ld.so"
9616 shlibpath_var=LIBRARY_PATH
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9628 # the default ld.so.conf also contains /usr/contrib/lib and
9629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9630 # libtool to hard-code these into programs
9633 cygwin* | mingw* | pw32*)
9634 version_type=windows
9639 case $GCC,$host_os in
9640 yes,cygwin* | yes,mingw* | yes,pw32*)
9641 library_names_spec='$libname.dll.a'
9642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9643 postinstall_cmds='base_file=`basename \${file}`~
9644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9645 dldir=$destdir/`dirname \$dlpath`~
9646 test -d \$dldir || mkdir -p \$dldir~
9647 $install_prog $dir/$dlname \$dldir/$dlname~
9648 chmod a+x \$dldir/$dlname'
9649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9650 dlpath=$dir/\$dldll~
9652 shlibpath_overrides_runpath=yes
9656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9661 # MinGW DLLs use traditional 'lib' prefix
9662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9664 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9665 # It is most probably a Windows format PATH printed by
9666 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9667 # path with ; separators, and with drive letters. We can handle the
9668 # drive letters (cygwin fileutils understands them), so leave them,
9669 # especially as we might pass files found there to a mingw objdump,
9670 # which wouldn't understand a cygwinified path. Ahh.
9671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9677 # pw32 DLLs use 'pw' prefix rather than 'lib'
9678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9687 dynamic_linker='Win32 ld.exe'
9688 # FIXME: first we should search . and the directory the executable is in
9692 darwin* | rhapsody*)
9693 dynamic_linker="$host_os dyld"
9697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
9698 soname_spec='${libname}${release}${major}$shared_ext'
9699 shlibpath_overrides_runpath=yes
9700 shlibpath_var=DYLD_LIBRARY_PATH
9701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9702 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9703 if test "$GCC" = yes; then
9704 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9706 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 shlibpath_var=LD_LIBRARY_PATH
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 shlibpath_overrides_runpath=no
9732 hardcode_into_libs=yes
9733 dynamic_linker='GNU ld.so'
9736 freebsd* | dragonfly*)
9737 # DragonFly does not have aout. When/if they implement a new
9738 # versioning mechanism, adjust this.
9739 if test -x /usr/bin/objformat; then
9740 objformat=`/usr/bin/objformat`
9743 freebsd[123]*) objformat=aout ;;
9747 version_type=freebsd-$objformat
9748 case $version_type in
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9759 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9764 freebsd3.[01]* | freebsdelf3.[01]*)
9765 shlibpath_overrides_runpath=yes
9766 hardcode_into_libs=yes
9768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9770 shlibpath_overrides_runpath=no
9771 hardcode_into_libs=yes
9773 freebsd*) # from 4.6 on
9774 shlibpath_overrides_runpath=yes
9775 hardcode_into_libs=yes
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 hardcode_into_libs=yes
9790 hpux9* | hpux10* | hpux11*)
9791 # Give a soname corresponding to the major version so that dld.sl refuses to
9792 # link against other versions.
9799 hardcode_into_libs=yes
9800 dynamic_linker="$host_os dld.so"
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 if test "X$HPUX_IA64_MODE" = X32; then
9806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9814 hardcode_into_libs=yes
9815 dynamic_linker="$host_os dld.sl"
9816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9825 dynamic_linker="$host_os dld.sl"
9826 shlibpath_var=SHLIB_PATH
9827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 soname_spec='${libname}${release}${shared_ext}$major'
9832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9833 postinstall_cmds='chmod 555 $lib'
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=no
9845 hardcode_into_libs=yes
9848 irix5* | irix6* | nonstopux*)
9850 nonstopux*) version_type=nonstopux ;;
9852 if test "$lt_cv_prog_gnu_ld" = yes; then
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9863 irix5* | nonstopux*)
9867 case $LD in # libtool.m4 will add one of these switches to LD
9868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9869 libsuff= shlibsuff= libmagic=32-bit;;
9870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9871 libsuff=32 shlibsuff=N32 libmagic=N32;;
9872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9873 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9874 *) libsuff= shlibsuff= libmagic=never-match;;
9878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9879 shlibpath_overrides_runpath=no
9880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9882 hardcode_into_libs=yes
9885 # No shared lib support for Linux oldld, aout, or coff.
9886 linux*oldld* | linux*aout* | linux*coff*)
9890 # This must be Linux ELF.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=no
9900 # This implies no fast_install, which is unacceptable.
9901 # Some rework will be needed to allow for fast_install
9902 # before this can be enabled.
9903 hardcode_into_libs=yes
9905 # Append ld.so.conf contents to the search path
9906 if test -f /etc/ld.so.conf; then
9907 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9911 # We used to test for /lib/ld.so.1 and disable shared libraries on
9912 # powerpc, because MkLinux only supported shared libraries with the
9913 # GNU dynamic linker. Since this was broken with cross compilers,
9914 # most powerpc-linux boxes support dynamic linking these days and
9915 # people can always --disable-shared, the test was removed, and we
9916 # assume the GNU/Linux dynamic linker is in use.
9917 dynamic_linker='GNU/Linux ld.so'
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=no
9928 hardcode_into_libs=yes
9929 dynamic_linker='GNU ld.so'
9936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9939 dynamic_linker='NetBSD (a.out) ld.so'
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 dynamic_linker='NetBSD ld.elf_so'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath=yes
9947 hardcode_into_libs=yes
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=yes
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=yes
9969 sys_lib_dlsearch_path_spec="/usr/lib"
9971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9974 *) need_version=no ;;
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9981 openbsd2.[89] | openbsd2.[89].*)
9982 shlibpath_overrides_runpath=no
9985 shlibpath_overrides_runpath=yes
9989 shlibpath_overrides_runpath=yes
9994 libname_spec='$name'
9997 library_names_spec='$libname${shared_ext} $libname.a'
9998 dynamic_linker='OS/2 ld.exe'
9999 shlibpath_var=LIBPATH
10002 osf3* | osf4* | osf5*)
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=yes
10021 hardcode_into_libs=yes
10022 # ldd complains unless libraries are executable
10023 postinstall_cmds='chmod +x $lib'
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes
10032 if test "$with_gnu_ld" = yes; then
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 case $host_vendor in
10045 shlibpath_overrides_runpath=no
10047 export_dynamic_flag_spec='${wl}-Blargedynsym'
10048 runpath_var=LD_RUN_PATH
10056 shlibpath_overrides_runpath=no
10057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10063 if test -d /usr/nec ;then
10065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10066 soname_spec='$libname${shared_ext}.$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10072 version_type=freebsd-elf
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 hardcode_into_libs=yes
10079 if test "$with_gnu_ld" = yes; then
10080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10081 shlibpath_overrides_runpath=no
10083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10084 shlibpath_overrides_runpath=yes
10087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10091 sys_lib_dlsearch_path_spec='/usr/lib'
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10105 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10106 echo "${ECHO_T}$dynamic_linker" >&6; }
10107 test "$dynamic_linker" = no && can_build_shared=no
10109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10110 if test "$GCC" = yes; then
10111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10114 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10117 if test -n "$hardcode_libdir_flag_spec" || \
10118 test -n "$runpath_var" || \
10119 test "X$hardcode_automatic" = "Xyes" ; then
10121 # We can hardcode non-existant directories.
10122 if test "$hardcode_direct" != no &&
10123 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10124 # have to relink, otherwise we might link with an installed library
10125 # when we should be linking with a yet-to-be-installed one
10126 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10127 test "$hardcode_minus_L" != no; then
10128 # Linking always hardcodes the temporary library directory.
10129 hardcode_action=relink
10131 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10132 hardcode_action=immediate
10135 # We cannot hardcode anything, or else we can only hardcode existing
10137 hardcode_action=unsupported
10139 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10140 echo "${ECHO_T}$hardcode_action" >&6; }
10142 if test "$hardcode_action" = relink; then
10143 # Fast installation is not supported
10144 enable_fast_install=no
10145 elif test "$shlibpath_overrides_runpath" = yes ||
10146 test "$enable_shared" = no; then
10147 # Fast installation is not necessary
10148 enable_fast_install=needless
10153 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10156 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10157 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10158 { echo "$as_me:$LINENO: result: yes" >&5
10159 echo "${ECHO_T}yes" >&6; }
10161 # FIXME - insert some real tests, host_os isn't really good enough
10164 if test -n "$STRIP" ; then
10165 striplib="$STRIP -x"
10166 { echo "$as_me:$LINENO: result: yes" >&5
10167 echo "${ECHO_T}yes" >&6; }
10169 { echo "$as_me:$LINENO: result: no" >&5
10170 echo "${ECHO_T}no" >&6; }
10174 { echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6; }
10180 if test "x$enable_dlopen" != xyes; then
10181 enable_dlopen=unknown
10182 enable_dlopen_self=unknown
10183 enable_dlopen_self_static=unknown
10190 lt_cv_dlopen="load_add_on"
10192 lt_cv_dlopen_self=yes
10196 lt_cv_dlopen="LoadLibrary"
10201 lt_cv_dlopen="dlopen"
10206 # if libdl is installed we need to link against it
10207 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_check_lib_save_LIBS=$LIBS
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10245 grep -v '^ *+' conftest.er1 >conftest.err
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest$ac_exeext &&
10253 $as_test_x conftest$ac_exeext; then
10254 ac_cv_lib_dl_dlopen=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dl_dlopen=no
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10268 if test $ac_cv_lib_dl_dlopen = yes; then
10269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10272 lt_cv_dlopen="dyld"
10274 lt_cv_dlopen_self=yes
10281 { echo "$as_me:$LINENO: checking for shl_load" >&5
10282 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10283 if test "${ac_cv_func_shl_load+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10294 #define shl_load innocuous_shl_load
10296 /* System header to define __stub macros and hopefully few prototypes,
10297 which can conflict with char shl_load (); below.
10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10299 <limits.h> exists even on freestanding compilers. */
10302 # include <limits.h>
10304 # include <assert.h>
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10316 /* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
10319 #if defined __stub_shl_load || defined __stub___shl_load
10326 return shl_load ();
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest$ac_exeext &&
10348 $as_test_x conftest$ac_exeext; then
10349 ac_cv_func_shl_load=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_cv_func_shl_load=no
10357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358 conftest$ac_exeext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10361 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10362 if test $ac_cv_func_shl_load = yes; then
10363 lt_cv_dlopen="shl_load"
10365 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10366 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10367 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 ac_check_lib_save_LIBS=$LIBS
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10379 /* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10389 return shl_load ();
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (ac_try="$ac_link"
10396 case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_link") 2>conftest.er1
10403 grep -v '^ *+' conftest.er1 >conftest.err
10405 cat conftest.err >&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } && {
10408 test -z "$ac_c_werror_flag" ||
10409 test ! -s conftest.err
10410 } && test -s conftest$ac_exeext &&
10411 $as_test_x conftest$ac_exeext; then
10412 ac_cv_lib_dld_shl_load=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_cv_lib_dld_shl_load=no
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10425 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10426 if test $ac_cv_lib_dld_shl_load = yes; then
10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10429 { echo "$as_me:$LINENO: checking for dlopen" >&5
10430 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10431 if test "${ac_cv_func_dlopen+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10442 #define dlopen innocuous_dlopen
10444 /* System header to define __stub macros and hopefully few prototypes,
10445 which can conflict with char dlopen (); below.
10446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10447 <limits.h> exists even on freestanding compilers. */
10450 # include <limits.h>
10452 # include <assert.h>
10457 /* Override any GCC internal prototype to avoid an error.
10458 Use char because int might match the return type of a GCC
10459 builtin and then its argument prototype would still apply. */
10464 /* The GNU C library defines this for functions which it implements
10465 to always fail with ENOSYS. Some functions are actually named
10466 something starting with __ and the normal name is an alias. */
10467 #if defined __stub_dlopen || defined __stub___dlopen
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10497 ac_cv_func_dlopen=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_cv_func_dlopen=no
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10508 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10509 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10510 if test $ac_cv_func_dlopen = yes; then
10511 lt_cv_dlopen="dlopen"
10513 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10514 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10515 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 ac_check_lib_save_LIBS=$LIBS
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest$ac_exeext &&
10559 $as_test_x conftest$ac_exeext; then
10560 ac_cv_lib_dl_dlopen=yes
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_lib_dl_dlopen=no
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10574 if test $ac_cv_lib_dl_dlopen = yes; then
10575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10577 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10578 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10579 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lsvld $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
10624 ac_cv_lib_svld_dlopen=yes
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_cv_lib_svld_dlopen=no
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10636 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10637 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10638 if test $ac_cv_lib_svld_dlopen = yes; then
10639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10641 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10642 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10643 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10665 return dld_link ();
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
10679 grep -v '^ *+' conftest.er1 >conftest.err
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && {
10684 test -z "$ac_c_werror_flag" ||
10685 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
10688 ac_cv_lib_dld_dld_link=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_cv_lib_dld_dld_link=no
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10702 if test $ac_cv_lib_dld_dld_link = yes; then
10703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10724 if test "x$lt_cv_dlopen" != xno; then
10730 case $lt_cv_dlopen in
10732 save_CPPFLAGS="$CPPFLAGS"
10733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10735 save_LDFLAGS="$LDFLAGS"
10736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10739 LIBS="$lt_cv_dlopen_libs $LIBS"
10741 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10742 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10743 if test "${lt_cv_dlopen_self+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 if test "$cross_compiling" = yes; then :
10747 lt_cv_dlopen_self=cross
10749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10750 lt_status=$lt_dlunknown
10751 cat > conftest.$ac_ext <<EOF
10752 #line 10752 "configure"
10753 #include "confdefs.h"
10762 # define LT_DLGLOBAL RTLD_GLOBAL
10765 # define LT_DLGLOBAL DL_GLOBAL
10767 # define LT_DLGLOBAL 0
10771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10772 find out it does not work in some platform. */
10773 #ifndef LT_DLLAZY_OR_NOW
10775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10778 # define LT_DLLAZY_OR_NOW DL_LAZY
10781 # define LT_DLLAZY_OR_NOW RTLD_NOW
10784 # define LT_DLLAZY_OR_NOW DL_NOW
10786 # define LT_DLLAZY_OR_NOW 0
10794 extern "C" void exit (int);
10797 void fnord() { int i=42;}
10800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10801 int status = $lt_dlunknown;
10805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10807 /* dlclose (self); */
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10820 (./conftest; exit; ) >&5 2>/dev/null
10822 case x$lt_status in
10823 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10824 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10825 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828 # compilation failed
10829 lt_cv_dlopen_self=no
10836 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10837 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10839 if test "x$lt_cv_dlopen_self" = xyes; then
10840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10841 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10842 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10843 if test "${lt_cv_dlopen_self_static+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 if test "$cross_compiling" = yes; then :
10847 lt_cv_dlopen_self_static=cross
10849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10850 lt_status=$lt_dlunknown
10851 cat > conftest.$ac_ext <<EOF
10852 #line 10852 "configure"
10853 #include "confdefs.h"
10862 # define LT_DLGLOBAL RTLD_GLOBAL
10865 # define LT_DLGLOBAL DL_GLOBAL
10867 # define LT_DLGLOBAL 0
10871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10872 find out it does not work in some platform. */
10873 #ifndef LT_DLLAZY_OR_NOW
10875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10878 # define LT_DLLAZY_OR_NOW DL_LAZY
10881 # define LT_DLLAZY_OR_NOW RTLD_NOW
10884 # define LT_DLLAZY_OR_NOW DL_NOW
10886 # define LT_DLLAZY_OR_NOW 0
10894 extern "C" void exit (int);
10897 void fnord() { int i=42;}
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10907 /* dlclose (self); */
10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916 (eval $ac_link) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10920 (./conftest; exit; ) >&5 2>/dev/null
10922 case x$lt_status in
10923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10925 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10928 # compilation failed
10929 lt_cv_dlopen_self_static=no
10936 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10940 CPPFLAGS="$save_CPPFLAGS"
10941 LDFLAGS="$save_LDFLAGS"
10946 case $lt_cv_dlopen_self in
10947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10948 *) enable_dlopen_self=unknown ;;
10951 case $lt_cv_dlopen_self_static in
10952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10953 *) enable_dlopen_self_static=unknown ;;
10958 # Report which library types will actually be built
10959 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10961 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10962 echo "${ECHO_T}$can_build_shared" >&6; }
10964 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10966 test "$can_build_shared" = "no" && enable_shared=no
10968 # On AIX, shared libraries and static libraries use the same namespace, and
10969 # are all built from PIC.
10972 test "$enable_shared" = yes && enable_static=no
10973 if test -n "$RANLIB"; then
10974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10975 postinstall_cmds='$RANLIB $lib'
10980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10981 test "$enable_shared" = yes && enable_static=no
10985 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10986 echo "${ECHO_T}$enable_shared" >&6; }
10988 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10989 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10990 # Make sure either enable_shared or enable_static is yes.
10991 test "$enable_shared" = yes || enable_static=yes
10992 { echo "$as_me:$LINENO: result: $enable_static" >&5
10993 echo "${ECHO_T}$enable_static" >&6; }
10995 # The else clause should only fire when bootstrapping the
10996 # libtool distribution, otherwise you forgot to ship ltmain.sh
10997 # with your package, and you will get complaints that there are
10998 # no rules to generate ltmain.sh.
10999 if test -f "$ltmain"; then
11000 # See if we are running on zsh, and set the options which allow our commands through
11001 # without removal of \ escapes.
11002 if test -n "${ZSH_VERSION+set}" ; then
11003 setopt NO_GLOB_SUBST
11005 # Now quote all the things that may contain metacharacters while being
11006 # careful not to overquote the AC_SUBSTed values. We take copies of the
11007 # variables and quote the copies for generation of the libtool script.
11008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11012 deplibs_check_method reload_flag reload_cmds need_locks \
11013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11014 lt_cv_sys_global_symbol_to_c_name_address \
11015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11016 old_postinstall_cmds old_postuninstall_cmds \
11020 lt_prog_compiler_wl \
11021 lt_prog_compiler_pic \
11022 lt_prog_compiler_static \
11023 lt_prog_compiler_no_builtin_flag \
11024 export_dynamic_flag_spec \
11025 thread_safe_flag_spec \
11026 whole_archive_flag_spec \
11027 enable_shared_with_static_runtimes \
11029 old_archive_from_new_cmds \
11034 compiler_lib_search_path \
11036 archive_expsym_cmds \
11038 postuninstall_cmds \
11039 old_archive_from_expsyms_cmds \
11040 allow_undefined_flag \
11041 no_undefined_flag \
11042 export_symbols_cmds \
11043 hardcode_libdir_flag_spec \
11044 hardcode_libdir_flag_spec_ld \
11045 hardcode_libdir_separator \
11046 hardcode_automatic \
11048 module_expsym_cmds \
11049 lt_cv_prog_compiler_c_o \
11051 include_expsyms; do
11054 old_archive_cmds | \
11055 old_archive_from_new_cmds | \
11057 archive_expsym_cmds | \
11059 module_expsym_cmds | \
11060 old_archive_from_expsyms_cmds | \
11061 export_symbols_cmds | \
11062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11063 postinstall_cmds | postuninstall_cmds | \
11064 old_postinstall_cmds | old_postuninstall_cmds | \
11065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11066 # Double-quote double-evaled strings.
11067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11076 *'\$0 --fallback-echo"')
11077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11081 cfgfile="${ofile}T"
11082 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11084 { echo "$as_me:$LINENO: creating $ofile" >&5
11085 echo "$as_me: creating $ofile" >&6;}
11087 cat <<__EOF__ >> "$cfgfile"
11090 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11091 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11092 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11094 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11095 # Free Software Foundation, Inc.
11097 # This file is part of GNU Libtool:
11098 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11100 # This program is free software; you can redistribute it and/or modify
11101 # it under the terms of the GNU General Public License as published by
11102 # the Free Software Foundation; either version 2 of the License, or
11103 # (at your option) any later version.
11105 # This program is distributed in the hope that it will be useful, but
11106 # WITHOUT ANY WARRANTY; without even the implied warranty of
11107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11108 # General Public License for more details.
11110 # You should have received a copy of the GNU General Public License
11111 # along with this program; if not, write to the Free Software
11112 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11114 # As a special exception to the GNU General Public License, if you
11115 # distribute this file as part of a program that contains a
11116 # configuration script generated by Autoconf, you may include it under
11117 # the same distribution terms that you use for the rest of that program.
11119 # A sed program that does not truncate output.
11122 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11123 Xsed="$SED -e 1s/^X//"
11125 # The HP-UX ksh and POSIX shell print the target directory to stdout
11126 # if CDPATH is set.
11127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11129 # The names of the tagged configurations supported by this script.
11132 # ### BEGIN LIBTOOL CONFIG
11134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11136 # Shell to use when invoking shell scripts.
11139 # Whether or not to build shared libraries.
11140 build_libtool_libs=$enable_shared
11142 # Whether or not to build static libraries.
11143 build_old_libs=$enable_static
11145 # Whether or not to add -lc for building shared libraries.
11146 build_libtool_need_lc=$archive_cmds_need_lc
11148 # Whether or not to disallow shared libs when runtime libs are static
11149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11151 # Whether or not to optimize for fast installation.
11152 fast_install=$enable_fast_install
11155 host_alias=$host_alias
11159 # The build system.
11160 build_alias=$build_alias
11164 # An echo program that does not interpret backslashes.
11169 AR_FLAGS=$lt_AR_FLAGS
11174 # LTCC compiler flags.
11175 LTCFLAGS=$lt_LTCFLAGS
11177 # A language-specific compiler.
11180 # Is the compiler the GNU C compiler?
11186 # The linker used to build libraries.
11189 # Whether we need hard or soft links.
11192 # A BSD-compatible nm program.
11195 # A symbol stripping program
11198 # Used to examine libraries when file_magic_cmd begins "file"
11199 MAGIC_CMD=$MAGIC_CMD
11201 # Used on cygwin: DLL creation program.
11204 # Used on cygwin: object dumper.
11207 # Used on cygwin: assembler.
11210 # The name of the directory that contains temporary libtool files.
11213 # How to create reloadable object files.
11214 reload_flag=$lt_reload_flag
11215 reload_cmds=$lt_reload_cmds
11217 # How to pass a linker flag through the compiler.
11218 wl=$lt_lt_prog_compiler_wl
11220 # Object file suffix (normally "o").
11221 objext="$ac_objext"
11223 # Old archive suffix (normally "a").
11226 # Shared library suffix (normally ".so").
11227 shrext_cmds='$shrext_cmds'
11229 # Executable file suffix (normally "").
11232 # Additional compiler flags for building library objects.
11233 pic_flag=$lt_lt_prog_compiler_pic
11236 # What is the maximum length of a command?
11237 max_cmd_len=$lt_cv_sys_max_cmd_len
11239 # Does compiler simultaneously support -c and -o options?
11240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11242 # Must we lock files when doing compilation?
11243 need_locks=$lt_need_locks
11245 # Do we need the lib prefix for modules?
11246 need_lib_prefix=$need_lib_prefix
11248 # Do we need a version for libraries?
11249 need_version=$need_version
11251 # Whether dlopen is supported.
11252 dlopen_support=$enable_dlopen
11254 # Whether dlopen of programs is supported.
11255 dlopen_self=$enable_dlopen_self
11257 # Whether dlopen of statically linked programs is supported.
11258 dlopen_self_static=$enable_dlopen_self_static
11260 # Compiler flag to prevent dynamic linking.
11261 link_static_flag=$lt_lt_prog_compiler_static
11263 # Compiler flag to turn off builtin functions.
11264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11266 # Compiler flag to allow reflexive dlopens.
11267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11269 # Compiler flag to generate shared objects directly from archives.
11270 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11272 # Compiler flag to generate thread-safe objects.
11273 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11275 # Library versioning type.
11276 version_type=$version_type
11278 # Format of library name prefix.
11279 libname_spec=$lt_libname_spec
11281 # List of archive names. First name is the real one, the rest are links.
11282 # The last name is the one that the linker finds with -lNAME.
11283 library_names_spec=$lt_library_names_spec
11285 # The coded name of the library, if different from the real name.
11286 soname_spec=$lt_soname_spec
11288 # Commands used to build and install an old-style archive.
11290 old_archive_cmds=$lt_old_archive_cmds
11291 old_postinstall_cmds=$lt_old_postinstall_cmds
11292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11294 # Create an old-style archive from a shared archive.
11295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11297 # Create a temporary old-style archive to link instead of a shared archive.
11298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11300 # Commands used to build and install a shared archive.
11301 archive_cmds=$lt_archive_cmds
11302 archive_expsym_cmds=$lt_archive_expsym_cmds
11303 postinstall_cmds=$lt_postinstall_cmds
11304 postuninstall_cmds=$lt_postuninstall_cmds
11306 # Commands used to build a loadable module (assumed same as above if empty)
11307 module_cmds=$lt_module_cmds
11308 module_expsym_cmds=$lt_module_expsym_cmds
11310 # Commands to strip libraries.
11311 old_striplib=$lt_old_striplib
11312 striplib=$lt_striplib
11314 # Dependencies to place before the objects being linked to create a
11316 predep_objects=$lt_predep_objects
11318 # Dependencies to place after the objects being linked to create a
11320 postdep_objects=$lt_postdep_objects
11322 # Dependencies to place before the objects being linked to create a
11324 predeps=$lt_predeps
11326 # Dependencies to place after the objects being linked to create a
11328 postdeps=$lt_postdeps
11330 # The library search path used internally by the compiler when linking
11331 # a shared library.
11332 compiler_lib_search_path=$lt_compiler_lib_search_path
11334 # Method to check whether dependent libraries are shared objects.
11335 deplibs_check_method=$lt_deplibs_check_method
11337 # Command to use when deplibs_check_method == file_magic.
11338 file_magic_cmd=$lt_file_magic_cmd
11340 # Flag that allows shared libraries with undefined symbols to be built.
11341 allow_undefined_flag=$lt_allow_undefined_flag
11343 # Flag that forces no undefined symbols.
11344 no_undefined_flag=$lt_no_undefined_flag
11346 # Commands used to finish a libtool library installation in a directory.
11347 finish_cmds=$lt_finish_cmds
11349 # Same as above, but a single script fragment to be evaled but not shown.
11350 finish_eval=$lt_finish_eval
11352 # Take the output of nm and produce a listing of raw symbols and C names.
11353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11355 # Transform the output of nm in a proper C declaration
11356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11358 # Transform the output of nm in a C name address pair
11359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11361 # This is the shared library runtime path variable.
11362 runpath_var=$runpath_var
11364 # This is the shared library path variable.
11365 shlibpath_var=$shlibpath_var
11367 # Is shlibpath searched before the hard-coded library search path?
11368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11370 # How to hardcode a shared library path into an executable.
11371 hardcode_action=$hardcode_action
11373 # Whether we should hardcode library paths into libraries.
11374 hardcode_into_libs=$hardcode_into_libs
11376 # Flag to hardcode \$libdir into a binary during linking.
11377 # This must work even if \$libdir does not exist.
11378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11380 # If ld is used when linking, flag to hardcode \$libdir into
11381 # a binary during linking. This must work even if \$libdir does
11383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11385 # Whether we need a single -rpath flag with a separated argument.
11386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11389 # resulting binary.
11390 hardcode_direct=$hardcode_direct
11392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_minus_L=$hardcode_minus_L
11396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11397 # the resulting binary.
11398 hardcode_shlibpath_var=$hardcode_shlibpath_var
11400 # Set to yes if building a shared library automatically hardcodes DIR into the library
11401 # and all subsequent libraries and executables linked against it.
11402 hardcode_automatic=$hardcode_automatic
11404 # Variables whose values should be saved in libtool wrapper scripts and
11405 # restored at relink time.
11406 variables_saved_for_relink="$variables_saved_for_relink"
11408 # Whether libtool must link a program against all its dependency libraries.
11409 link_all_deplibs=$link_all_deplibs
11411 # Compile-time system search path for libraries
11412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11414 # Run-time system search path for libraries
11415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11417 # Fix the shell variable \$srcfile for the compiler.
11418 fix_srcfile_path="$fix_srcfile_path"
11420 # Set to yes if exported symbols are required.
11421 always_export_symbols=$always_export_symbols
11423 # The commands to list exported symbols.
11424 export_symbols_cmds=$lt_export_symbols_cmds
11426 # The commands to extract the exported symbol list from a shared archive.
11427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11429 # Symbols that should not be listed in the preloaded symbols.
11430 exclude_expsyms=$lt_exclude_expsyms
11432 # Symbols that must always be exported.
11433 include_expsyms=$lt_include_expsyms
11435 # ### END LIBTOOL CONFIG
11442 cat <<\EOF >> "$cfgfile"
11444 # AIX sometimes has problems with the GCC collect2 program. For some
11445 # reason, if we set the COLLECT_NAMES environment variable, the problems
11446 # vanish in a puff of smoke.
11447 if test "X${COLLECT_NAMES+set}" != Xset; then
11449 export COLLECT_NAMES
11455 # We use sed instead of cat because bash on DJGPP gets confused if
11456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11457 # text mode, it properly converts lines to CR/LF. This bash problem
11458 # is reportedly fixed, but why not run on old versions too?
11459 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11461 mv -f "$cfgfile" "$ofile" || \
11462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11466 # If there is no Makefile yet, we rely on a make rule to execute
11467 # `config.status --recheck' to rerun these tests and create the
11468 # libtool script then.
11469 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11470 if test -f "$ltmain_in"; then
11471 test -f Makefile && make "$ltmain"
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485 # Check whether --with-tags was given.
11486 if test "${with_tags+set}" = set; then
11487 withval=$with_tags; tagnames="$withval"
11491 if test -f "$ltmain" && test -n "$tagnames"; then
11492 if test ! -f "${ofile}"; then
11493 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11494 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11497 if test -z "$LTCC"; then
11498 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11499 if test -z "$LTCC"; then
11500 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11501 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11504 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11507 if test -z "$LTCFLAGS"; then
11508 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11511 # Extract list of available tagged configurations in $ofile.
11512 # Note that this assumes the entire list is on one line.
11513 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11516 for tagname in $tagnames; do
11518 # Check whether tagname contains only valid characters
11519 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11521 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11522 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11523 { (exit 1); exit 1; }; }
11527 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11529 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11530 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11531 { (exit 1); exit 1; }; }
11534 # Update the list of available tags.
11535 if test -n "$tagname"; then
11536 echo appending configuration tag \"$tagname\" to $ofile
11540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11542 (test "X$CXX" != "Xg++"))) ; then
11544 ac_cpp='$CXXCPP $CPPFLAGS'
11545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11552 archive_cmds_need_lc_CXX=no
11553 allow_undefined_flag_CXX=
11554 always_export_symbols_CXX=no
11555 archive_expsym_cmds_CXX=
11556 export_dynamic_flag_spec_CXX=
11557 hardcode_direct_CXX=no
11558 hardcode_libdir_flag_spec_CXX=
11559 hardcode_libdir_flag_spec_ld_CXX=
11560 hardcode_libdir_separator_CXX=
11561 hardcode_minus_L_CXX=no
11562 hardcode_shlibpath_var_CXX=unsupported
11563 hardcode_automatic_CXX=no
11565 module_expsym_cmds_CXX=
11566 link_all_deplibs_CXX=unknown
11567 old_archive_cmds_CXX=$old_archive_cmds
11568 no_undefined_flag_CXX=
11569 whole_archive_flag_spec_CXX=
11570 enable_shared_with_static_runtimes_CXX=no
11572 # Dependencies to place before and after the object being linked:
11573 predep_objects_CXX=
11574 postdep_objects_CXX=
11577 compiler_lib_search_path_CXX=
11579 # Source file extension for C++ test sources.
11582 # Object file extension for compiled C++ test sources.
11586 # Code to be used in simple compile tests
11587 lt_simple_compile_test_code="int some_variable = 0;\n"
11589 # Code to be used in simple link tests
11590 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11592 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11594 # If no C compiler was specified, use CC.
11597 # If no C compiler flags were specified, use CFLAGS.
11598 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11600 # Allow CC to be a program name with arguments.
11604 # save warnings/boilerplate of simple test code
11605 ac_outfile=conftest.$ac_objext
11606 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11608 _lt_compiler_boilerplate=`cat conftest.err`
11611 ac_outfile=conftest.$ac_objext
11612 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11614 _lt_linker_boilerplate=`cat conftest.err`
11618 # Allow CC to be a program name with arguments.
11623 lt_save_with_gnu_ld=$with_gnu_ld
11624 lt_save_path_LD=$lt_cv_path_LD
11625 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11626 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11628 $as_unset lt_cv_prog_gnu_ld
11630 if test -n "${lt_cv_path_LDCXX+set}"; then
11631 lt_cv_path_LD=$lt_cv_path_LDCXX
11633 $as_unset lt_cv_path_LD
11635 test -z "${LDCXX+set}" || LD=$LDCXX
11639 for cc_temp in $compiler""; do
11641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11647 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11650 # We don't want -fno-exception wen compiling C++ code, so set the
11651 # no_builtin_flag separately
11652 if test "$GXX" = yes; then
11653 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11655 lt_prog_compiler_no_builtin_flag_CXX=
11658 if test "$GXX" = yes; then
11659 # Set up default GNU C++ configuration
11662 # Check whether --with-gnu-ld was given.
11663 if test "${with_gnu_ld+set}" = set; then
11664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11670 if test "$GCC" = yes; then
11671 # Check if gcc -print-prog-name=ld gives a path.
11672 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11676 # gcc leaves a trailing carriage return which upsets mingw
11677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11682 # Accept absolute paths.
11684 re_direlt='/[^/][^/]*/\.\./'
11685 # Canonicalize the pathname of ld
11686 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11688 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11690 test -z "$LD" && LD="$ac_prog"
11693 # If it fails, then pretend we aren't using GCC.
11697 # If it is relative, then search for the first ld in PATH.
11698 with_gnu_ld=unknown
11701 elif test "$with_gnu_ld" = yes; then
11702 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11705 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11708 if test "${lt_cv_path_LD+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 if test -z "$LD"; then
11712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11713 for ac_dir in $PATH; do
11715 test -z "$ac_dir" && ac_dir=.
11716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11717 lt_cv_path_LD="$ac_dir/$ac_prog"
11718 # Check to see if the program is GNU ld. I'd rather use --version,
11719 # but apparently some variants of GNU ld only accept -v.
11720 # Break only if it was the GNU/non-GNU ld that we prefer.
11721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11722 *GNU* | *'with BFD'*)
11723 test "$with_gnu_ld" != no && break
11726 test "$with_gnu_ld" != yes && break
11733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11737 LD="$lt_cv_path_LD"
11738 if test -n "$LD"; then
11739 { echo "$as_me:$LINENO: result: $LD" >&5
11740 echo "${ECHO_T}$LD" >&6; }
11742 { echo "$as_me:$LINENO: result: no" >&5
11743 echo "${ECHO_T}no" >&6; }
11745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11747 { (exit 1); exit 1; }; }
11748 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11754 case `$LD -v 2>&1 </dev/null` in
11755 *GNU* | *'with BFD'*)
11756 lt_cv_prog_gnu_ld=yes
11759 lt_cv_prog_gnu_ld=no
11763 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11765 with_gnu_ld=$lt_cv_prog_gnu_ld
11769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11770 # archiving commands below assume that GNU ld is being used.
11771 if test "$with_gnu_ld" = yes; then
11772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773 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'
11775 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11778 # If archive_cmds runs LD, not CC, wlarc should be empty
11779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11780 # investigate it a little bit more. (MM)
11783 # ancient GNU ld didn't support --whole-archive et. al.
11784 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11785 grep 'no-whole-archive' > /dev/null; then
11786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11788 whole_archive_flag_spec_CXX=
11794 # A generic and very simple default shared library creation
11795 # command for GNU C++ for the case where it uses the native
11796 # linker, instead of GNU ld. If possible, this setting should
11797 # overridden to take advantage of the native linker features on
11798 # the platform it is being used on.
11799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11802 # Commands to make compiler produce verbose output that lists
11803 # what "hidden" libraries, object files and flags are used when
11804 # linking a shared library.
11805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11813 # PORTME: fill in a description of your system's C++ link characteristics
11814 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11819 # FIXME: insert proper C++ library support
11823 if test "$host_cpu" = ia64; then
11824 # On IA64, the linker does run time linking by default, so we don't
11825 # have to do anything special.
11826 aix_use_runtimelinking=no
11827 exp_sym_flag='-Bexport'
11830 aix_use_runtimelinking=no
11832 # Test if we are trying to use run time linking or normal
11833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11834 # need to do runtime linking.
11835 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11836 for ld_flag in $LDFLAGS; do
11839 aix_use_runtimelinking=yes
11847 exp_sym_flag='-bexport'
11848 no_entry_flag='-bnoentry'
11851 # When large executables or shared objects are built, AIX ld can
11852 # have problems creating the table of contents. If linking a library
11853 # or program results in "error TOC overflow" add -mminimal-toc to
11854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11857 archive_cmds_CXX=''
11858 hardcode_direct_CXX=yes
11859 hardcode_libdir_separator_CXX=':'
11860 link_all_deplibs_CXX=yes
11862 if test "$GXX" = yes; then
11863 case $host_os in aix4.[012]|aix4.[012].*)
11864 # We only want to do this on AIX 4.2 and lower, the check
11865 # below for broken collect2 doesn't work under 4.3+
11866 collect2name=`${CC} -print-prog-name=collect2`
11867 if test -f "$collect2name" && \
11868 strings "$collect2name" | grep resolve_lib_name >/dev/null
11870 # We have reworked collect2
11871 hardcode_direct_CXX=yes
11873 # We have old collect2
11874 hardcode_direct_CXX=unsupported
11875 # It fails to find uninstalled libraries when the uninstalled
11876 # path is not listed in the libpath. Setting hardcode_minus_L
11877 # to unsupported forces relinking
11878 hardcode_minus_L_CXX=yes
11879 hardcode_libdir_flag_spec_CXX='-L$libdir'
11880 hardcode_libdir_separator_CXX=
11884 shared_flag='-shared'
11885 if test "$aix_use_runtimelinking" = yes; then
11886 shared_flag="$shared_flag "'${wl}-G'
11890 if test "$host_cpu" = ia64; then
11891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11892 # chokes on -Wl,-G. The following line is correct:
11895 if test "$aix_use_runtimelinking" = yes; then
11896 shared_flag='${wl}-G'
11898 shared_flag='${wl}-bM:SRE'
11903 # It seems that -bexpall does not export symbols beginning with
11904 # underscore (_), so it is better to generate a list of symbols to export.
11905 always_export_symbols_CXX=yes
11906 if test "$aix_use_runtimelinking" = yes; then
11907 # Warning - without using the other runtime loading flags (-brtl),
11908 # -berok will link without error, but may produce a broken library.
11909 allow_undefined_flag_CXX='-berok'
11910 # Determine the default libpath from the value encoded in an empty executable.
11911 cat >conftest.$ac_ext <<_ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } && {
11940 test -z "$ac_cxx_werror_flag" ||
11941 test ! -s conftest.err
11942 } && test -s conftest$ac_exeext &&
11943 $as_test_x conftest$ac_exeext; then
11945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11947 # Check for a 64-bit object if we didn't find anything.
11948 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958 conftest$ac_exeext conftest.$ac_ext
11959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11963 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"
11965 if test "$host_cpu" = ia64; then
11966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11967 allow_undefined_flag_CXX="-z nodefs"
11968 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"
11970 # Determine the default libpath from the value encoded in an empty executable.
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_link") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } && {
12000 test -z "$ac_cxx_werror_flag" ||
12001 test ! -s conftest.err
12002 } && test -s conftest$ac_exeext &&
12003 $as_test_x conftest$ac_exeext; then
12005 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12007 # Check for a 64-bit object if we didn't find anything.
12008 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12018 conftest$ac_exeext conftest.$ac_ext
12019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12021 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12022 # Warning - without using the other run time loading flags,
12023 # -berok will link without error, but may produce a broken library.
12024 no_undefined_flag_CXX=' ${wl}-bernotok'
12025 allow_undefined_flag_CXX=' ${wl}-berok'
12026 # Exported symbols can be pulled into shared objects from archives
12027 whole_archive_flag_spec_CXX='$convenience'
12028 archive_cmds_need_lc_CXX=yes
12029 # This is similar to how AIX traditionally builds its shared libraries.
12030 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'
12036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12037 allow_undefined_flag_CXX=unsupported
12038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12039 # support --undefined. This deserves some investigation. FIXME
12040 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 case $cc_basename in
12049 # FIXME: insert proper C++ library support
12055 cygwin* | mingw* | pw32*)
12056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12057 # as there is no search path for DLLs.
12058 hardcode_libdir_flag_spec_CXX='-L$libdir'
12059 allow_undefined_flag_CXX=unsupported
12060 always_export_symbols_CXX=no
12061 enable_shared_with_static_runtimes_CXX=yes
12063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12064 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'
12065 # If the export-symbols file already is a .def file (1st line
12066 # is EXPORTS), use it as is; otherwise, prepend...
12067 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12068 cp $export_symbols $output_objdir/$soname.def;
12070 echo EXPORTS > $output_objdir/$soname.def;
12071 cat $export_symbols >> $output_objdir/$soname.def;
12073 $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'
12078 darwin* | rhapsody*)
12080 rhapsody* | darwin1.[012])
12081 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12085 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12087 case ${MACOSX_DEPLOYMENT_TARGET} in
12089 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12092 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12098 archive_cmds_need_lc_CXX=no
12099 hardcode_direct_CXX=no
12100 hardcode_automatic_CXX=yes
12101 hardcode_shlibpath_var_CXX=unsupported
12102 whole_archive_flag_spec_CXX=''
12103 link_all_deplibs_CXX=yes
12105 if test "$GXX" = yes ; then
12106 lt_int_apple_cc_single_mod=no
12107 output_verbose_link_cmd='echo'
12108 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12109 lt_int_apple_cc_single_mod=yes
12111 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12112 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12114 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'
12116 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12118 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12119 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}'
12121 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}'
12123 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}'
12125 case $cc_basename in
12127 output_verbose_link_cmd='echo'
12128 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12129 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12131 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12132 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}'
12142 case $cc_basename in
12144 # FIXME: insert proper C++ library support
12148 # Green Hills C++ Compiler
12149 # FIXME: insert proper C++ library support
12153 # FIXME: insert proper C++ library support
12159 # C++ shared libraries reported to be fairly broken before switch to ELF
12163 archive_cmds_need_lc_CXX=no
12165 freebsd* | kfreebsd*-gnu | dragonfly*)
12166 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12174 hardcode_libdir_separator_CXX=:
12175 export_dynamic_flag_spec_CXX='${wl}-E'
12176 hardcode_direct_CXX=yes
12177 hardcode_minus_L_CXX=yes # Not in the search PATH,
12178 # but as the default
12179 # location of the library.
12181 case $cc_basename in
12183 # FIXME: insert proper C++ library support
12187 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'
12188 # Commands to make compiler produce verbose output that lists
12189 # what "hidden" libraries, object files and flags are used when
12190 # linking a shared library.
12192 # There doesn't appear to be a way to prevent this compiler from
12193 # explicitly linking system object files so we need to strip them
12194 # from the output so that they don't get included in the library
12196 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'
12199 if test "$GXX" = yes; then
12200 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'
12202 # FIXME: insert proper C++ library support
12209 if test $with_gnu_ld = no; then
12210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12211 hardcode_libdir_separator_CXX=:
12215 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12218 export_dynamic_flag_spec_CXX='${wl}-E'
12224 hardcode_direct_CXX=no
12225 hardcode_shlibpath_var_CXX=no
12228 hardcode_direct_CXX=yes
12229 hardcode_minus_L_CXX=yes # Not in the search PATH,
12230 # but as the default
12231 # location of the library.
12235 case $cc_basename in
12237 # FIXME: insert proper C++ library support
12243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12252 # Commands to make compiler produce verbose output that lists
12253 # what "hidden" libraries, object files and flags are used when
12254 # linking a shared library.
12256 # There doesn't appear to be a way to prevent this compiler from
12257 # explicitly linking system object files so we need to strip them
12258 # from the output so that they don't get included in the library
12260 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'
12263 if test "$GXX" = yes; then
12264 if test $with_gnu_ld = no; then
12267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12273 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'
12278 # FIXME: insert proper C++ library support
12285 hardcode_direct_CXX=no
12286 hardcode_shlibpath_var_CXX=no
12287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12288 export_dynamic_flag_spec_CXX='${wl}-E'
12289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12290 # Instead, shared libraries are loaded at an image base (0x10000000 by
12291 # default) and relocated if they conflict, which is a slow very memory
12292 # consuming and fragmenting process. To avoid this, we pick a random,
12293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12294 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12295 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'
12296 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'
12299 case $cc_basename in
12302 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'
12304 # Archives containing C++ object files must be created using
12305 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12306 # necessary to make sure instantiated templates are included
12308 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12311 if test "$GXX" = yes; then
12312 if test "$with_gnu_ld" = no; then
12313 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'
12315 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'
12318 link_all_deplibs_CXX=yes
12321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12322 hardcode_libdir_separator_CXX=:
12325 case $cc_basename in
12327 # Kuck and Associates, Inc. (KAI) C++ Compiler
12329 # KCC will only create a shared library if the output file
12330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12331 # to its proper name (with version) after linking.
12332 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'
12333 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'
12334 # Commands to make compiler produce verbose output that lists
12335 # what "hidden" libraries, object files and flags are used when
12336 # linking a shared library.
12338 # There doesn't appear to be a way to prevent this compiler from
12339 # explicitly linking system object files so we need to strip them
12340 # from the output so that they don't get included in the library
12342 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'
12344 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12347 # Archives containing C++ object files must be created using
12348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12354 # version 8.0 and above of icpc choke on multiply defined symbols
12355 # if we add $predep_objects and $postdep_objects, however 7.1 and
12356 # earlier do not add the objects themselves.
12357 case `$CC -V 2>&1` in
12359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360 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'
12362 *) # Version 8.0 or newer
12365 ia64*) tmp_idyn=' -i_dynamic';;
12367 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368 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'
12371 archive_cmds_need_lc_CXX=no
12372 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12374 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12377 # Portland Group C++ compiler
12378 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12379 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'
12381 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12383 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'
12387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12388 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'
12390 runpath_var=LD_RUN_PATH
12391 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12392 hardcode_libdir_separator_CXX=:
12394 # Commands to make compiler produce verbose output that lists
12395 # what "hidden" libraries, object files and flags are used when
12396 # linking a shared library.
12398 # There doesn't appear to be a way to prevent this compiler from
12399 # explicitly linking system object files so we need to strip them
12400 # from the output so that they don't get included in the library
12402 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'
12407 # FIXME: insert proper C++ library support
12411 # FIXME: insert proper C++ library support
12415 case $cc_basename in
12417 # FIXME: insert proper C++ library support
12421 # FIXME: insert proper C++ library support
12427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12428 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12430 hardcode_libdir_flag_spec_CXX='-R$libdir'
12431 hardcode_direct_CXX=yes
12432 hardcode_shlibpath_var_CXX=no
12434 # Workaround some broken pre-1.5 toolchains
12435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12438 # C++ shared libraries are fairly broken
12442 hardcode_direct_CXX=yes
12443 hardcode_shlibpath_var_CXX=no
12444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12447 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12448 export_dynamic_flag_spec_CXX='${wl}-E'
12449 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12451 output_verbose_link_cmd='echo'
12454 case $cc_basename in
12456 # Kuck and Associates, Inc. (KAI) C++ Compiler
12458 # KCC will only create a shared library if the output file
12459 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12460 # to its proper name (with version) after linking.
12461 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'
12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12464 hardcode_libdir_separator_CXX=:
12466 # Archives containing C++ object files must be created using
12467 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12468 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12472 # Rational C++ 2.4.1
12473 # FIXME: insert proper C++ library support
12477 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12478 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'
12480 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12481 hardcode_libdir_separator_CXX=:
12483 # Commands to make compiler produce verbose output that lists
12484 # what "hidden" libraries, object files and flags are used when
12485 # linking a shared library.
12487 # There doesn't appear to be a way to prevent this compiler from
12488 # explicitly linking system object files so we need to strip them
12489 # from the output so that they don't get included in the library
12491 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'
12494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12496 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'
12498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12499 hardcode_libdir_separator_CXX=:
12501 # Commands to make compiler produce verbose output that lists
12502 # what "hidden" libraries, object files and flags are used when
12503 # linking a shared library.
12504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12507 # FIXME: insert proper C++ library support
12514 case $cc_basename in
12516 # Kuck and Associates, Inc. (KAI) C++ Compiler
12518 # KCC will only create a shared library if the output file
12519 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12520 # to its proper name (with version) after linking.
12521 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'
12523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12524 hardcode_libdir_separator_CXX=:
12526 # Archives containing C++ object files must be created using
12527 # the KAI C++ compiler.
12528 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12531 # Rational C++ 2.4.1
12532 # FIXME: insert proper C++ library support
12536 allow_undefined_flag_CXX=' -expect_unresolved \*'
12537 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'
12538 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12539 echo "-hidden">> $lib.exp~
12540 $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~
12543 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12544 hardcode_libdir_separator_CXX=:
12546 # Commands to make compiler produce verbose output that lists
12547 # what "hidden" libraries, object files and flags are used when
12548 # linking a shared library.
12550 # There doesn't appear to be a way to prevent this compiler from
12551 # explicitly linking system object files so we need to strip them
12552 # from the output so that they don't get included in the library
12554 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'
12557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12558 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12559 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'
12561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12562 hardcode_libdir_separator_CXX=:
12564 # Commands to make compiler produce verbose output that lists
12565 # what "hidden" libraries, object files and flags are used when
12566 # linking a shared library.
12567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12570 # FIXME: insert proper C++ library support
12577 # FIXME: insert proper C++ library support
12581 case $cc_basename in
12584 # FIXME: insert proper C++ library support
12589 # FIXME: insert proper C++ library support
12593 # FIXME: insert proper C++ library support
12599 case $cc_basename in
12601 # Sun C++ 4.2, 5.x and Centerline C++
12602 archive_cmds_need_lc_CXX=yes
12603 no_undefined_flag_CXX=' -zdefs'
12604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12605 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12606 $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'
12608 hardcode_libdir_flag_spec_CXX='-R$libdir'
12609 hardcode_shlibpath_var_CXX=no
12611 solaris2.[0-5] | solaris2.[0-5].*) ;;
12613 # The C++ compiler is used as linker so we must use $wl
12614 # flag to pass the commands to the underlying system
12615 # linker. We must also pass each convience library through
12616 # to the system linker between allextract/defaultextract.
12617 # The C++ compiler will combine linker options so we
12618 # cannot just pass the convience library names through
12620 # Supported since Solaris 2.6 (maybe 2.5.1?)
12621 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12624 link_all_deplibs_CXX=yes
12626 output_verbose_link_cmd='echo'
12628 # Archives containing C++ object files must be created using
12629 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12630 # necessary to make sure instantiated templates are included
12632 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12635 # Green Hills C++ Compiler
12636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12638 # The C++ compiler must be used to create the archive.
12639 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12642 # GNU C++ compiler with Solaris linker
12643 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12644 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12645 if $CC --version | grep -v '^2\.7' > /dev/null; then
12646 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12647 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12648 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12650 # Commands to make compiler produce verbose output that lists
12651 # what "hidden" libraries, object files and flags are used when
12652 # linking a shared library.
12653 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12655 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12657 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12658 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12659 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12661 # Commands to make compiler produce verbose output that lists
12662 # what "hidden" libraries, object files and flags are used when
12663 # linking a shared library.
12664 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12667 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12673 no_undefined_flag_CXX='${wl}-z,text'
12674 archive_cmds_need_lc_CXX=no
12675 hardcode_shlibpath_var_CXX=no
12676 runpath_var='LD_RUN_PATH'
12678 case $cc_basename in
12680 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12689 sysv5* | sco3.2v5* | sco5v6*)
12690 # Note: We can NOT use -z defs as we might desire, because we do not
12691 # link with -lc, and that would cause any symbols used from libc to
12692 # always be unresolved, which means just about no library would
12693 # ever link correctly. If we're not using GNU ld we use -z text
12694 # though, which does catch some bad symbols but isn't as heavy-handed
12696 # For security reasons, it is highly recommended that you always
12697 # use absolute paths for naming shared libraries, and exclude the
12698 # DT_RUNPATH tag from executables and libraries. But doing so
12699 # requires that you compile everything twice, which is a pain.
12700 # So that behaviour is only enabled if SCOABSPATH is set to a
12701 # non-empty value in the environment. Most likely only useful for
12702 # creating official distributions of packages.
12703 # This is a hack until libtool officially supports absolute path
12704 # names for shared libraries.
12705 no_undefined_flag_CXX='${wl}-z,text'
12706 allow_undefined_flag_CXX='${wl}-z,nodefs'
12707 archive_cmds_need_lc_CXX=no
12708 hardcode_shlibpath_var_CXX=no
12709 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12710 hardcode_libdir_separator_CXX=':'
12711 link_all_deplibs_CXX=yes
12712 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12713 runpath_var='LD_RUN_PATH'
12715 case $cc_basename in
12717 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12721 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12727 case $cc_basename in
12729 # NonStop-UX NCC 3.20
12730 # FIXME: insert proper C++ library support
12734 # FIXME: insert proper C++ library support
12740 # FIXME: insert proper C++ library support
12744 # FIXME: insert proper C++ library support
12748 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12749 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12750 test "$ld_shlibs_CXX" = no && can_build_shared=no
12756 cat > conftest.$ac_ext <<EOF
12760 Foo (void) { a = 0; }
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767 (eval $ac_compile) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; then
12771 # Parse the compiler output and extract the necessary
12772 # objects, libraries and library flags.
12774 # Sentinel used to keep track of whether or not we are before
12775 # the conftest object file.
12776 pre_test_object_deps_done=no
12778 # The `*' in the case matches for architectures that use `case' in
12779 # $output_verbose_cmd can trigger glob expansion during the loop
12780 # eval without this substitution.
12781 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12783 for p in `eval $output_verbose_link_cmd`; do
12787 # Some compilers place space between "-{L,R}" and the path.
12788 # Remove the space.
12789 if test $p = "-L" \
12790 || test $p = "-R"; then
12797 if test "$pre_test_object_deps_done" = no; then
12800 # Internal compiler library paths should come after those
12801 # provided the user. The postdeps already come after the
12802 # user supplied libs so there is no need to process them.
12803 if test -z "$compiler_lib_search_path_CXX"; then
12804 compiler_lib_search_path_CXX="${prev}${p}"
12806 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12809 # The "-l" case would never come before the object being
12810 # linked, so don't bother handling this case.
12813 if test -z "$postdeps_CXX"; then
12814 postdeps_CXX="${prev}${p}"
12816 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12822 # This assumes that the test object file only shows up
12823 # once in the compiler output.
12824 if test "$p" = "conftest.$objext"; then
12825 pre_test_object_deps_done=yes
12829 if test "$pre_test_object_deps_done" = no; then
12830 if test -z "$predep_objects_CXX"; then
12831 predep_objects_CXX="$p"
12833 predep_objects_CXX="$predep_objects_CXX $p"
12836 if test -z "$postdep_objects_CXX"; then
12837 postdep_objects_CXX="$p"
12839 postdep_objects_CXX="$postdep_objects_CXX $p"
12844 *) ;; # Ignore the rest.
12852 echo "libtool.m4: error: problem compiling CXX test program"
12855 $rm -f confest.$objext
12857 # PORTME: override above test on systems where it is broken
12860 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12861 # hack all around it, let's just trust "g++" to DTRT.
12862 predep_objects_CXX=
12863 postdep_objects_CXX=
12868 case $cc_basename in
12870 # Adding this requires a known-good setup of shared libraries for
12871 # Sun compiler versions before 5.6, else PIC objects from an old
12872 # archive will be linked into the output, leading to subtle bugs.
12873 postdeps_CXX='-lCstd -lCrun'
12880 case " $postdeps_CXX " in
12881 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12884 lt_prog_compiler_wl_CXX=
12885 lt_prog_compiler_pic_CXX=
12886 lt_prog_compiler_static_CXX=
12888 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12889 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12891 # C++ specific cases for pic, static, wl, etc.
12892 if test "$GXX" = yes; then
12893 lt_prog_compiler_wl_CXX='-Wl,'
12894 lt_prog_compiler_static_CXX='-static'
12898 # All AIX code is PIC.
12899 if test "$host_cpu" = ia64; then
12900 # AIX 5 now supports IA64 processor
12901 lt_prog_compiler_static_CXX='-Bstatic'
12905 # FIXME: we need at least 68020 code to build shared libraries, but
12906 # adding the `-m68020' flag to GCC prevents building anything better,
12908 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12910 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12911 # PIC is the default for these OSes.
12913 mingw* | os2* | pw32*)
12914 # This hack is so that the source file can tell whether it is being
12915 # built for inclusion in a dll (and should export symbols for example).
12916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12918 darwin* | rhapsody*)
12919 # PIC is the default on this platform
12920 # Common symbols not allowed in MH_DYLIB files
12921 lt_prog_compiler_pic_CXX='-fno-common'
12924 # DJGPP does not support shared libraries at all
12925 lt_prog_compiler_pic_CXX=
12928 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12929 # Instead, we relocate shared libraries at runtime.
12932 if test -d /usr/nec; then
12933 lt_prog_compiler_pic_CXX=-Kconform_pic
12937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12938 # not for PA HP-UX.
12943 lt_prog_compiler_pic_CXX='-fPIC'
12948 lt_prog_compiler_pic_CXX='-fPIC'
12954 # All AIX code is PIC.
12955 if test "$host_cpu" = ia64; then
12956 # AIX 5 now supports IA64 processor
12957 lt_prog_compiler_static_CXX='-Bstatic'
12959 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12963 case $cc_basename in
12965 # Green Hills C++ Compiler
12966 # _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"
12971 # PIC is the default on this platform
12972 # Common symbols not allowed in MH_DYLIB files
12973 case $cc_basename in
12975 lt_prog_compiler_pic_CXX='-qnocommon'
12976 lt_prog_compiler_wl_CXX='-Wl,'
12981 case $cc_basename in
12983 lt_prog_compiler_pic_CXX='-KPIC'
12986 # Green Hills C++ Compiler
12987 lt_prog_compiler_pic_CXX='-pic'
12993 freebsd* | kfreebsd*-gnu | dragonfly*)
12994 # FreeBSD uses GNU C++
12996 hpux9* | hpux10* | hpux11*)
12997 case $cc_basename in
12999 lt_prog_compiler_wl_CXX='-Wl,'
13000 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13001 if test "$host_cpu" != ia64; then
13002 lt_prog_compiler_pic_CXX='+Z'
13006 lt_prog_compiler_wl_CXX='-Wl,'
13007 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13013 lt_prog_compiler_pic_CXX='+Z'
13022 # This is c89, which is MS Visual C++ (no shared libs)
13023 # Anyone wants to do a port?
13025 irix5* | irix6* | nonstopux*)
13026 case $cc_basename in
13028 lt_prog_compiler_wl_CXX='-Wl,'
13029 lt_prog_compiler_static_CXX='-non_shared'
13030 # CC pic flag -KPIC is the default.
13037 case $cc_basename in
13040 lt_prog_compiler_wl_CXX='--backend -Wl,'
13041 lt_prog_compiler_pic_CXX='-fPIC'
13045 lt_prog_compiler_wl_CXX='-Wl,'
13046 lt_prog_compiler_pic_CXX='-KPIC'
13047 lt_prog_compiler_static_CXX='-static'
13050 # Portland Group C++ compiler.
13051 lt_prog_compiler_wl_CXX='-Wl,'
13052 lt_prog_compiler_pic_CXX='-fpic'
13053 lt_prog_compiler_static_CXX='-Bstatic'
13057 # Make sure the PIC flag is empty. It appears that all Alpha
13058 # Linux and Compaq Tru64 Unix objects are PIC.
13059 lt_prog_compiler_pic_CXX=
13060 lt_prog_compiler_static_CXX='-non_shared'
13071 case $cc_basename in
13073 lt_prog_compiler_pic_CXX='-W c,exportall'
13081 osf3* | osf4* | osf5*)
13082 case $cc_basename in
13084 lt_prog_compiler_wl_CXX='--backend -Wl,'
13087 # Rational C++ 2.4.1
13088 lt_prog_compiler_pic_CXX='-pic'
13091 # Digital/Compaq C++
13092 lt_prog_compiler_wl_CXX='-Wl,'
13093 # Make sure the PIC flag is empty. It appears that all Alpha
13094 # Linux and Compaq Tru64 Unix objects are PIC.
13095 lt_prog_compiler_pic_CXX=
13096 lt_prog_compiler_static_CXX='-non_shared'
13105 case $cc_basename in
13107 # Sun C++ 4.2, 5.x and Centerline C++
13108 lt_prog_compiler_pic_CXX='-KPIC'
13109 lt_prog_compiler_static_CXX='-Bstatic'
13110 lt_prog_compiler_wl_CXX='-Qoption ld '
13113 # Green Hills C++ Compiler
13114 lt_prog_compiler_pic_CXX='-PIC'
13121 case $cc_basename in
13124 lt_prog_compiler_pic_CXX='-pic'
13125 lt_prog_compiler_static_CXX='-Bstatic'
13129 lt_prog_compiler_pic_CXX='-pic'
13136 case $cc_basename in
13138 # NonStop-UX NCC 3.20
13139 lt_prog_compiler_pic_CXX='-KPIC'
13145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13146 case $cc_basename in
13148 lt_prog_compiler_wl_CXX='-Wl,'
13149 lt_prog_compiler_pic_CXX='-KPIC'
13150 lt_prog_compiler_static_CXX='-Bstatic'
13157 lt_prog_compiler_can_build_shared_CXX=no
13162 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13163 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13166 # Check to make sure the PIC flag actually works.
13168 if test -n "$lt_prog_compiler_pic_CXX"; then
13170 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13171 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13172 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 lt_prog_compiler_pic_works_CXX=no
13176 ac_outfile=conftest.$ac_objext
13177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13178 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13179 # Insert the option either (1) after the last *FLAGS variable, or
13180 # (2) before a word containing "conftest.", or (3) at the end.
13181 # Note that $ac_compile itself does not contain backslashes and begins
13182 # with a dollar sign (not a hyphen), so the echo should work correctly.
13183 # The option is referenced via a variable to avoid confusing sed.
13184 lt_compile=`echo "$ac_compile" | $SED \
13185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187 -e 's:$: $lt_compiler_flag:'`
13188 (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13189 (eval "$lt_compile" 2>conftest.err)
13191 cat conftest.err >&5
13192 echo "$as_me:13192: \$? = $ac_status" >&5
13193 if (exit $ac_status) && test -s "$ac_outfile"; then
13194 # The compiler can only warn and ignore the option if not recognized
13195 # So say no if there are warnings other than the usual output.
13196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13199 lt_prog_compiler_pic_works_CXX=yes
13205 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13206 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13208 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13209 case $lt_prog_compiler_pic_CXX in
13211 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13214 lt_prog_compiler_pic_CXX=
13215 lt_prog_compiler_can_build_shared_CXX=no
13220 # For platforms which do not support PIC, -DPIC is meaningless:
13222 lt_prog_compiler_pic_CXX=
13225 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13230 # Check to make sure the static flag actually works.
13232 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13233 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13234 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13235 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 lt_prog_compiler_static_works_CXX=no
13239 save_LDFLAGS="$LDFLAGS"
13240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13241 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13243 # The linker can only warn and ignore the option if not recognized
13244 # So say no if there are warnings
13245 if test -s conftest.err; then
13246 # Append any errors to the config.log.
13247 cat conftest.err 1>&5
13248 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13250 if diff conftest.exp conftest.er2 >/dev/null; then
13251 lt_prog_compiler_static_works_CXX=yes
13254 lt_prog_compiler_static_works_CXX=yes
13258 LDFLAGS="$save_LDFLAGS"
13261 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13262 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13264 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13267 lt_prog_compiler_static_CXX=
13271 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13273 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 lt_cv_prog_compiler_c_o_CXX=no
13277 $rm -r conftest 2>/dev/null
13281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13283 lt_compiler_flag="-o out/conftest2.$ac_objext"
13284 # Insert the option either (1) after the last *FLAGS variable, or
13285 # (2) before a word containing "conftest.", or (3) at the end.
13286 # Note that $ac_compile itself does not contain backslashes and begins
13287 # with a dollar sign (not a hyphen), so the echo should work correctly.
13288 lt_compile=`echo "$ac_compile" | $SED \
13289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13291 -e 's:$: $lt_compiler_flag:'`
13292 (eval echo "\"\$as_me:13292: $lt_compile\"" >&5)
13293 (eval "$lt_compile" 2>out/conftest.err)
13295 cat out/conftest.err >&5
13296 echo "$as_me:13296: \$? = $ac_status" >&5
13297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13299 # The compiler can only warn and ignore the option if not recognized
13300 # So say no if there are warnings
13301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13304 lt_cv_prog_compiler_c_o_CXX=yes
13309 # SGI C++ compiler will create directory out/ii_files/ for
13310 # template instantiation
13311 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13312 $rm out/* && rmdir out
13318 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13322 hard_links="nottested"
13323 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13324 # do not overwrite the value of need_locks provided by the user
13325 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13326 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13331 ln conftest.a conftest.b 2>&5 || hard_links=no
13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333 { echo "$as_me:$LINENO: result: $hard_links" >&5
13334 echo "${ECHO_T}$hard_links" >&6; }
13335 if test "$hard_links" = no; then
13336 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13337 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13344 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13345 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13350 # If we're using GNU nm, then we don't want the "-C" option.
13351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13353 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'
13355 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'
13359 export_symbols_cmds_CXX="$ltdll_cmds"
13362 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'
13365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13369 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13370 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13371 test "$ld_shlibs_CXX" = no && can_build_shared=no
13374 # Do we need to explicitly link libc?
13376 case "x$archive_cmds_need_lc_CXX" in
13378 # Assume -lc should be added
13379 archive_cmds_need_lc_CXX=yes
13381 if test "$enable_shared" = yes && test "$GCC" = yes; then
13382 case $archive_cmds_CXX in
13384 # FIXME: we may have to deal with multi-command sequences.
13387 # Test whether the compiler implicitly links with -lc since on some
13388 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13389 # to ld, don't add -lc before -lgcc.
13390 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396 (eval $ac_compile) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } 2>conftest.err; then
13402 libobjs=conftest.$ac_objext
13404 wl=$lt_prog_compiler_wl_CXX
13405 pic_flag=$lt_prog_compiler_pic_CXX
13411 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13412 allow_undefined_flag_CXX=
13413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13414 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }
13419 archive_cmds_need_lc_CXX=no
13421 archive_cmds_need_lc_CXX=yes
13423 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13425 cat conftest.err 1>&5
13428 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13429 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13436 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13437 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13438 library_names_spec=
13439 libname_spec='lib$name'
13443 postuninstall_cmds=
13447 shlibpath_overrides_runpath=unknown
13449 dynamic_linker="$host_os ld.so"
13450 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13451 if test "$GCC" = yes; then
13452 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13453 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13454 # if the path contains ";" then we assume it to be the separator
13455 # otherwise default to the standard path separator (i.e. ":") - it is
13456 # assumed that no part of a normal pathname contains ";" but that should
13457 # okay in the real world where ";" in dirpaths is itself problematic.
13458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13465 need_lib_prefix=unknown
13466 hardcode_into_libs=no
13468 # when you set need_version to no, make sure it does not cause -set_version
13469 # flags to be left without arguments
13470 need_version=unknown
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13476 shlibpath_var=LIBPATH
13478 # AIX 3 has no versioning support, so we append a major version to the name.
13479 soname_spec='${libname}${release}${shared_ext}$major'
13486 hardcode_into_libs=yes
13487 if test "$host_cpu" = ia64; then
13488 # AIX 5 supports IA64
13489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13490 shlibpath_var=LD_LIBRARY_PATH
13492 # With GCC up to 2.95.x, collect2 would create an import file
13493 # for dependence libraries. The import file would start with
13494 # the line `#! .'. This would cause the generated library to
13495 # depend on `.', always an invalid library. This was fixed in
13496 # development snapshots of GCC prior to 3.0.
13498 aix4 | aix4.[01] | aix4.[01].*)
13499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13501 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13504 can_build_shared=no
13508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13509 # soname into executable. Probably we can add versioning support to
13510 # collect2, so additional links can be useful in future.
13511 if test "$aix_use_runtimelinking" = yes; then
13512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13513 # instead of lib<name>.a to let people know that these are not
13514 # typical AIX shared libraries.
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 # We preserve .a as extension for shared libraries through AIX4.2
13518 # and later when we are not doing run time linking.
13519 library_names_spec='${libname}${release}.a $libname.a'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13522 shlibpath_var=LIBPATH
13527 library_names_spec='$libname.ixlibrary $libname.a'
13528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13529 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'
13533 library_names_spec='${libname}${shared_ext}'
13534 dynamic_linker="$host_os ld.so"
13535 shlibpath_var=LIBRARY_PATH
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13547 # the default ld.so.conf also contains /usr/contrib/lib and
13548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13549 # libtool to hard-code these into programs
13552 cygwin* | mingw* | pw32*)
13553 version_type=windows
13558 case $GCC,$host_os in
13559 yes,cygwin* | yes,mingw* | yes,pw32*)
13560 library_names_spec='$libname.dll.a'
13561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13562 postinstall_cmds='base_file=`basename \${file}`~
13563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13564 dldir=$destdir/`dirname \$dlpath`~
13565 test -d \$dldir || mkdir -p \$dldir~
13566 $install_prog $dir/$dlname \$dldir/$dlname~
13567 chmod a+x \$dldir/$dlname'
13568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13569 dlpath=$dir/\$dldll~
13571 shlibpath_overrides_runpath=yes
13575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13577 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13580 # MinGW DLLs use traditional 'lib' prefix
13581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13583 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13584 # It is most probably a Windows format PATH printed by
13585 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13586 # path with ; separators, and with drive letters. We can handle the
13587 # drive letters (cygwin fileutils understands them), so leave them,
13588 # especially as we might pass files found there to a mingw objdump,
13589 # which wouldn't understand a cygwinified path. Ahh.
13590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13596 # pw32 DLLs use 'pw' prefix rather than 'lib'
13597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13606 dynamic_linker='Win32 ld.exe'
13607 # FIXME: first we should search . and the directory the executable is in
13611 darwin* | rhapsody*)
13612 dynamic_linker="$host_os dyld"
13613 version_type=darwin
13616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
13617 soname_spec='${libname}${release}${major}$shared_ext'
13618 shlibpath_overrides_runpath=yes
13619 shlibpath_var=DYLD_LIBRARY_PATH
13620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13621 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13622 if test "$GCC" = yes; then
13623 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13625 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13648 soname_spec='${libname}${release}${shared_ext}$major'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=no
13651 hardcode_into_libs=yes
13652 dynamic_linker='GNU ld.so'
13655 freebsd* | dragonfly*)
13656 # DragonFly does not have aout. When/if they implement a new
13657 # versioning mechanism, adjust this.
13658 if test -x /usr/bin/objformat; then
13659 objformat=`/usr/bin/objformat`
13662 freebsd[123]*) objformat=aout ;;
13663 *) objformat=elf ;;
13666 version_type=freebsd-$objformat
13667 case $version_type in
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13678 shlibpath_var=LD_LIBRARY_PATH
13681 shlibpath_overrides_runpath=yes
13683 freebsd3.[01]* | freebsdelf3.[01]*)
13684 shlibpath_overrides_runpath=yes
13685 hardcode_into_libs=yes
13687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13689 shlibpath_overrides_runpath=no
13690 hardcode_into_libs=yes
13692 freebsd*) # from 4.6 on
13693 shlibpath_overrides_runpath=yes
13694 hardcode_into_libs=yes
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13704 soname_spec='${libname}${release}${shared_ext}$major'
13705 shlibpath_var=LD_LIBRARY_PATH
13706 hardcode_into_libs=yes
13709 hpux9* | hpux10* | hpux11*)
13710 # Give a soname corresponding to the major version so that dld.sl refuses to
13711 # link against other versions.
13718 hardcode_into_libs=yes
13719 dynamic_linker="$host_os dld.so"
13720 shlibpath_var=LD_LIBRARY_PATH
13721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723 soname_spec='${libname}${release}${shared_ext}$major'
13724 if test "X$HPUX_IA64_MODE" = X32; then
13725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13733 hardcode_into_libs=yes
13734 dynamic_linker="$host_os dld.sl"
13735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13744 dynamic_linker="$host_os dld.sl"
13745 shlibpath_var=SHLIB_PATH
13746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13751 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13752 postinstall_cmds='chmod 555 $lib'
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=no
13764 hardcode_into_libs=yes
13767 irix5* | irix6* | nonstopux*)
13769 nonstopux*) version_type=nonstopux ;;
13771 if test "$lt_cv_prog_gnu_ld" = yes; then
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13782 irix5* | nonstopux*)
13783 libsuff= shlibsuff=
13786 case $LD in # libtool.m4 will add one of these switches to LD
13787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13788 libsuff= shlibsuff= libmagic=32-bit;;
13789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13790 libsuff=32 shlibsuff=N32 libmagic=N32;;
13791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13793 *) libsuff= shlibsuff= libmagic=never-match;;
13797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13798 shlibpath_overrides_runpath=no
13799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13801 hardcode_into_libs=yes
13804 # No shared lib support for Linux oldld, aout, or coff.
13805 linux*oldld* | linux*aout* | linux*coff*)
13809 # This must be Linux ELF.
13814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13815 soname_spec='${libname}${release}${shared_ext}$major'
13816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13817 shlibpath_var=LD_LIBRARY_PATH
13818 shlibpath_overrides_runpath=no
13819 # This implies no fast_install, which is unacceptable.
13820 # Some rework will be needed to allow for fast_install
13821 # before this can be enabled.
13822 hardcode_into_libs=yes
13824 # Append ld.so.conf contents to the search path
13825 if test -f /etc/ld.so.conf; then
13826 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13830 # We used to test for /lib/ld.so.1 and disable shared libraries on
13831 # powerpc, because MkLinux only supported shared libraries with the
13832 # GNU dynamic linker. Since this was broken with cross compilers,
13833 # most powerpc-linux boxes support dynamic linking these days and
13834 # people can always --disable-shared, the test was removed, and we
13835 # assume the GNU/Linux dynamic linker is in use.
13836 dynamic_linker='GNU/Linux ld.so'
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13844 soname_spec='${libname}${release}${shared_ext}$major'
13845 shlibpath_var=LD_LIBRARY_PATH
13846 shlibpath_overrides_runpath=no
13847 hardcode_into_libs=yes
13848 dynamic_linker='GNU ld.so'
13855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13858 dynamic_linker='NetBSD (a.out) ld.so'
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13861 soname_spec='${libname}${release}${shared_ext}$major'
13862 dynamic_linker='NetBSD ld.elf_so'
13864 shlibpath_var=LD_LIBRARY_PATH
13865 shlibpath_overrides_runpath=yes
13866 hardcode_into_libs=yes
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 shlibpath_overrides_runpath=yes
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 shlibpath_overrides_runpath=yes
13888 sys_lib_dlsearch_path_spec="/usr/lib"
13890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13892 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13893 *) need_version=no ;;
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13897 shlibpath_var=LD_LIBRARY_PATH
13898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13900 openbsd2.[89] | openbsd2.[89].*)
13901 shlibpath_overrides_runpath=no
13904 shlibpath_overrides_runpath=yes
13908 shlibpath_overrides_runpath=yes
13913 libname_spec='$name'
13916 library_names_spec='$libname${shared_ext} $libname.a'
13917 dynamic_linker='OS/2 ld.exe'
13918 shlibpath_var=LIBPATH
13921 osf3* | osf4* | osf5*)
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 shlibpath_overrides_runpath=yes
13940 hardcode_into_libs=yes
13941 # ldd complains unless libraries are executable
13942 postinstall_cmds='chmod +x $lib'
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=yes
13951 if test "$with_gnu_ld" = yes; then
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 case $host_vendor in
13964 shlibpath_overrides_runpath=no
13966 export_dynamic_flag_spec='${wl}-Blargedynsym'
13967 runpath_var=LD_RUN_PATH
13975 shlibpath_overrides_runpath=no
13976 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13982 if test -d /usr/nec ;then
13984 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13985 soname_spec='$libname${shared_ext}.$major'
13986 shlibpath_var=LD_LIBRARY_PATH
13990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13991 version_type=freebsd-elf
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 shlibpath_var=LD_LIBRARY_PATH
13997 hardcode_into_libs=yes
13998 if test "$with_gnu_ld" = yes; then
13999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14000 shlibpath_overrides_runpath=no
14002 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14003 shlibpath_overrides_runpath=yes
14006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14010 sys_lib_dlsearch_path_spec='/usr/lib'
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 shlibpath_var=LD_LIBRARY_PATH
14024 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14025 echo "${ECHO_T}$dynamic_linker" >&6; }
14026 test "$dynamic_linker" = no && can_build_shared=no
14028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14029 if test "$GCC" = yes; then
14030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14033 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14034 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14035 hardcode_action_CXX=
14036 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14037 test -n "$runpath_var_CXX" || \
14038 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14040 # We can hardcode non-existant directories.
14041 if test "$hardcode_direct_CXX" != no &&
14042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14043 # have to relink, otherwise we might link with an installed library
14044 # when we should be linking with a yet-to-be-installed one
14045 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14046 test "$hardcode_minus_L_CXX" != no; then
14047 # Linking always hardcodes the temporary library directory.
14048 hardcode_action_CXX=relink
14050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14051 hardcode_action_CXX=immediate
14054 # We cannot hardcode anything, or else we can only hardcode existing
14056 hardcode_action_CXX=unsupported
14058 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14059 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14061 if test "$hardcode_action_CXX" = relink; then
14062 # Fast installation is not supported
14063 enable_fast_install=no
14064 elif test "$shlibpath_overrides_runpath" = yes ||
14065 test "$enable_shared" = no; then
14066 # Fast installation is not necessary
14067 enable_fast_install=needless
14071 # The else clause should only fire when bootstrapping the
14072 # libtool distribution, otherwise you forgot to ship ltmain.sh
14073 # with your package, and you will get complaints that there are
14074 # no rules to generate ltmain.sh.
14075 if test -f "$ltmain"; then
14076 # See if we are running on zsh, and set the options which allow our commands through
14077 # without removal of \ escapes.
14078 if test -n "${ZSH_VERSION+set}" ; then
14079 setopt NO_GLOB_SUBST
14081 # Now quote all the things that may contain metacharacters while being
14082 # careful not to overquote the AC_SUBSTed values. We take copies of the
14083 # variables and quote the copies for generation of the libtool script.
14084 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14086 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14087 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14088 deplibs_check_method reload_flag reload_cmds need_locks \
14089 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14090 lt_cv_sys_global_symbol_to_c_name_address \
14091 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14092 old_postinstall_cmds old_postuninstall_cmds \
14096 lt_prog_compiler_wl_CXX \
14097 lt_prog_compiler_pic_CXX \
14098 lt_prog_compiler_static_CXX \
14099 lt_prog_compiler_no_builtin_flag_CXX \
14100 export_dynamic_flag_spec_CXX \
14101 thread_safe_flag_spec_CXX \
14102 whole_archive_flag_spec_CXX \
14103 enable_shared_with_static_runtimes_CXX \
14104 old_archive_cmds_CXX \
14105 old_archive_from_new_cmds_CXX \
14106 predep_objects_CXX \
14107 postdep_objects_CXX \
14110 compiler_lib_search_path_CXX \
14112 archive_expsym_cmds_CXX \
14113 postinstall_cmds_CXX \
14114 postuninstall_cmds_CXX \
14115 old_archive_from_expsyms_cmds_CXX \
14116 allow_undefined_flag_CXX \
14117 no_undefined_flag_CXX \
14118 export_symbols_cmds_CXX \
14119 hardcode_libdir_flag_spec_CXX \
14120 hardcode_libdir_flag_spec_ld_CXX \
14121 hardcode_libdir_separator_CXX \
14122 hardcode_automatic_CXX \
14124 module_expsym_cmds_CXX \
14125 lt_cv_prog_compiler_c_o_CXX \
14126 exclude_expsyms_CXX \
14127 include_expsyms_CXX; do
14130 old_archive_cmds_CXX | \
14131 old_archive_from_new_cmds_CXX | \
14132 archive_cmds_CXX | \
14133 archive_expsym_cmds_CXX | \
14134 module_cmds_CXX | \
14135 module_expsym_cmds_CXX | \
14136 old_archive_from_expsyms_cmds_CXX | \
14137 export_symbols_cmds_CXX | \
14138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14139 postinstall_cmds | postuninstall_cmds | \
14140 old_postinstall_cmds | old_postuninstall_cmds | \
14141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14142 # Double-quote double-evaled strings.
14143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14152 *'\$0 --fallback-echo"')
14153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14159 cat <<__EOF__ >> "$cfgfile"
14160 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14162 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14164 # Shell to use when invoking shell scripts.
14167 # Whether or not to build shared libraries.
14168 build_libtool_libs=$enable_shared
14170 # Whether or not to build static libraries.
14171 build_old_libs=$enable_static
14173 # Whether or not to add -lc for building shared libraries.
14174 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14176 # Whether or not to disallow shared libs when runtime libs are static
14177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14179 # Whether or not to optimize for fast installation.
14180 fast_install=$enable_fast_install
14183 host_alias=$host_alias
14187 # The build system.
14188 build_alias=$build_alias
14192 # An echo program that does not interpret backslashes.
14197 AR_FLAGS=$lt_AR_FLAGS
14202 # LTCC compiler flags.
14203 LTCFLAGS=$lt_LTCFLAGS
14205 # A language-specific compiler.
14206 CC=$lt_compiler_CXX
14208 # Is the compiler the GNU C compiler?
14214 # The linker used to build libraries.
14217 # Whether we need hard or soft links.
14220 # A BSD-compatible nm program.
14223 # A symbol stripping program
14226 # Used to examine libraries when file_magic_cmd begins "file"
14227 MAGIC_CMD=$MAGIC_CMD
14229 # Used on cygwin: DLL creation program.
14232 # Used on cygwin: object dumper.
14235 # Used on cygwin: assembler.
14238 # The name of the directory that contains temporary libtool files.
14241 # How to create reloadable object files.
14242 reload_flag=$lt_reload_flag
14243 reload_cmds=$lt_reload_cmds
14245 # How to pass a linker flag through the compiler.
14246 wl=$lt_lt_prog_compiler_wl_CXX
14248 # Object file suffix (normally "o").
14249 objext="$ac_objext"
14251 # Old archive suffix (normally "a").
14254 # Shared library suffix (normally ".so").
14255 shrext_cmds='$shrext_cmds'
14257 # Executable file suffix (normally "").
14260 # Additional compiler flags for building library objects.
14261 pic_flag=$lt_lt_prog_compiler_pic_CXX
14264 # What is the maximum length of a command?
14265 max_cmd_len=$lt_cv_sys_max_cmd_len
14267 # Does compiler simultaneously support -c and -o options?
14268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14270 # Must we lock files when doing compilation?
14271 need_locks=$lt_need_locks
14273 # Do we need the lib prefix for modules?
14274 need_lib_prefix=$need_lib_prefix
14276 # Do we need a version for libraries?
14277 need_version=$need_version
14279 # Whether dlopen is supported.
14280 dlopen_support=$enable_dlopen
14282 # Whether dlopen of programs is supported.
14283 dlopen_self=$enable_dlopen_self
14285 # Whether dlopen of statically linked programs is supported.
14286 dlopen_self_static=$enable_dlopen_self_static
14288 # Compiler flag to prevent dynamic linking.
14289 link_static_flag=$lt_lt_prog_compiler_static_CXX
14291 # Compiler flag to turn off builtin functions.
14292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14294 # Compiler flag to allow reflexive dlopens.
14295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14297 # Compiler flag to generate shared objects directly from archives.
14298 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14300 # Compiler flag to generate thread-safe objects.
14301 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14303 # Library versioning type.
14304 version_type=$version_type
14306 # Format of library name prefix.
14307 libname_spec=$lt_libname_spec
14309 # List of archive names. First name is the real one, the rest are links.
14310 # The last name is the one that the linker finds with -lNAME.
14311 library_names_spec=$lt_library_names_spec
14313 # The coded name of the library, if different from the real name.
14314 soname_spec=$lt_soname_spec
14316 # Commands used to build and install an old-style archive.
14318 old_archive_cmds=$lt_old_archive_cmds_CXX
14319 old_postinstall_cmds=$lt_old_postinstall_cmds
14320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14322 # Create an old-style archive from a shared archive.
14323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14325 # Create a temporary old-style archive to link instead of a shared archive.
14326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14328 # Commands used to build and install a shared archive.
14329 archive_cmds=$lt_archive_cmds_CXX
14330 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14331 postinstall_cmds=$lt_postinstall_cmds
14332 postuninstall_cmds=$lt_postuninstall_cmds
14334 # Commands used to build a loadable module (assumed same as above if empty)
14335 module_cmds=$lt_module_cmds_CXX
14336 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14338 # Commands to strip libraries.
14339 old_striplib=$lt_old_striplib
14340 striplib=$lt_striplib
14342 # Dependencies to place before the objects being linked to create a
14344 predep_objects=$lt_predep_objects_CXX
14346 # Dependencies to place after the objects being linked to create a
14348 postdep_objects=$lt_postdep_objects_CXX
14350 # Dependencies to place before the objects being linked to create a
14352 predeps=$lt_predeps_CXX
14354 # Dependencies to place after the objects being linked to create a
14356 postdeps=$lt_postdeps_CXX
14358 # The library search path used internally by the compiler when linking
14359 # a shared library.
14360 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14362 # Method to check whether dependent libraries are shared objects.
14363 deplibs_check_method=$lt_deplibs_check_method
14365 # Command to use when deplibs_check_method == file_magic.
14366 file_magic_cmd=$lt_file_magic_cmd
14368 # Flag that allows shared libraries with undefined symbols to be built.
14369 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14371 # Flag that forces no undefined symbols.
14372 no_undefined_flag=$lt_no_undefined_flag_CXX
14374 # Commands used to finish a libtool library installation in a directory.
14375 finish_cmds=$lt_finish_cmds
14377 # Same as above, but a single script fragment to be evaled but not shown.
14378 finish_eval=$lt_finish_eval
14380 # Take the output of nm and produce a listing of raw symbols and C names.
14381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14383 # Transform the output of nm in a proper C declaration
14384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14386 # Transform the output of nm in a C name address pair
14387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14389 # This is the shared library runtime path variable.
14390 runpath_var=$runpath_var
14392 # This is the shared library path variable.
14393 shlibpath_var=$shlibpath_var
14395 # Is shlibpath searched before the hard-coded library search path?
14396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14398 # How to hardcode a shared library path into an executable.
14399 hardcode_action=$hardcode_action_CXX
14401 # Whether we should hardcode library paths into libraries.
14402 hardcode_into_libs=$hardcode_into_libs
14404 # Flag to hardcode \$libdir into a binary during linking.
14405 # This must work even if \$libdir does not exist.
14406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14408 # If ld is used when linking, flag to hardcode \$libdir into
14409 # a binary during linking. This must work even if \$libdir does
14411 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14413 # Whether we need a single -rpath flag with a separated argument.
14414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14416 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14417 # resulting binary.
14418 hardcode_direct=$hardcode_direct_CXX
14420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14421 # resulting binary.
14422 hardcode_minus_L=$hardcode_minus_L_CXX
14424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14425 # the resulting binary.
14426 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14428 # Set to yes if building a shared library automatically hardcodes DIR into the library
14429 # and all subsequent libraries and executables linked against it.
14430 hardcode_automatic=$hardcode_automatic_CXX
14432 # Variables whose values should be saved in libtool wrapper scripts and
14433 # restored at relink time.
14434 variables_saved_for_relink="$variables_saved_for_relink"
14436 # Whether libtool must link a program against all its dependency libraries.
14437 link_all_deplibs=$link_all_deplibs_CXX
14439 # Compile-time system search path for libraries
14440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14442 # Run-time system search path for libraries
14443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14445 # Fix the shell variable \$srcfile for the compiler.
14446 fix_srcfile_path="$fix_srcfile_path_CXX"
14448 # Set to yes if exported symbols are required.
14449 always_export_symbols=$always_export_symbols_CXX
14451 # The commands to list exported symbols.
14452 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14454 # The commands to extract the exported symbol list from a shared archive.
14455 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14457 # Symbols that should not be listed in the preloaded symbols.
14458 exclude_expsyms=$lt_exclude_expsyms_CXX
14460 # Symbols that must always be exported.
14461 include_expsyms=$lt_include_expsyms_CXX
14463 # ### END LIBTOOL TAG CONFIG: $tagname
14469 # If there is no Makefile yet, we rely on a make rule to execute
14470 # `config.status --recheck' to rerun these tests and create the
14471 # libtool script then.
14472 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14473 if test -f "$ltmain_in"; then
14474 test -f Makefile && make "$ltmain"
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14489 with_gnu_ldcxx=$with_gnu_ld
14490 with_gnu_ld=$lt_save_with_gnu_ld
14491 lt_cv_path_LDCXX=$lt_cv_path_LD
14492 lt_cv_path_LD=$lt_save_path_LD
14493 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14494 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14502 if test -n "$F77" && test "X$F77" != "Xno"; then
14505 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14506 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14510 archive_cmds_need_lc_F77=no
14511 allow_undefined_flag_F77=
14512 always_export_symbols_F77=no
14513 archive_expsym_cmds_F77=
14514 export_dynamic_flag_spec_F77=
14515 hardcode_direct_F77=no
14516 hardcode_libdir_flag_spec_F77=
14517 hardcode_libdir_flag_spec_ld_F77=
14518 hardcode_libdir_separator_F77=
14519 hardcode_minus_L_F77=no
14520 hardcode_automatic_F77=no
14522 module_expsym_cmds_F77=
14523 link_all_deplibs_F77=unknown
14524 old_archive_cmds_F77=$old_archive_cmds
14525 no_undefined_flag_F77=
14526 whole_archive_flag_spec_F77=
14527 enable_shared_with_static_runtimes_F77=no
14529 # Source file extension for f77 test sources.
14532 # Object file extension for compiled f77 test sources.
14536 # Code to be used in simple compile tests
14537 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14539 # Code to be used in simple link tests
14540 lt_simple_link_test_code=" program t\n end\n"
14542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14544 # If no C compiler was specified, use CC.
14547 # If no C compiler flags were specified, use CFLAGS.
14548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14550 # Allow CC to be a program name with arguments.
14554 # save warnings/boilerplate of simple test code
14555 ac_outfile=conftest.$ac_objext
14556 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14558 _lt_compiler_boilerplate=`cat conftest.err`
14561 ac_outfile=conftest.$ac_objext
14562 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14564 _lt_linker_boilerplate=`cat conftest.err`
14568 # Allow CC to be a program name with arguments.
14573 for cc_temp in $compiler""; do
14575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14581 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14584 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14585 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14586 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14587 echo "${ECHO_T}$can_build_shared" >&6; }
14589 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14590 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14591 test "$can_build_shared" = "no" && enable_shared=no
14593 # On AIX, shared libraries and static libraries use the same namespace, and
14594 # are all built from PIC.
14597 test "$enable_shared" = yes && enable_static=no
14598 if test -n "$RANLIB"; then
14599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14600 postinstall_cmds='$RANLIB $lib'
14604 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14605 test "$enable_shared" = yes && enable_static=no
14609 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14610 echo "${ECHO_T}$enable_shared" >&6; }
14612 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14613 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14614 # Make sure either enable_shared or enable_static is yes.
14615 test "$enable_shared" = yes || enable_static=yes
14616 { echo "$as_me:$LINENO: result: $enable_static" >&5
14617 echo "${ECHO_T}$enable_static" >&6; }
14622 lt_prog_compiler_wl_F77=
14623 lt_prog_compiler_pic_F77=
14624 lt_prog_compiler_static_F77=
14626 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14627 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14629 if test "$GCC" = yes; then
14630 lt_prog_compiler_wl_F77='-Wl,'
14631 lt_prog_compiler_static_F77='-static'
14635 # All AIX code is PIC.
14636 if test "$host_cpu" = ia64; then
14637 # AIX 5 now supports IA64 processor
14638 lt_prog_compiler_static_F77='-Bstatic'
14643 # FIXME: we need at least 68020 code to build shared libraries, but
14644 # adding the `-m68020' flag to GCC prevents building anything better,
14646 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14649 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650 # PIC is the default for these OSes.
14653 mingw* | pw32* | os2*)
14654 # This hack is so that the source file can tell whether it is being
14655 # built for inclusion in a dll (and should export symbols for example).
14656 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14659 darwin* | rhapsody*)
14660 # PIC is the default on this platform
14661 # Common symbols not allowed in MH_DYLIB files
14662 lt_prog_compiler_pic_F77='-fno-common'
14666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14667 # Instead, we relocate shared libraries at runtime.
14671 # Just because we use GCC doesn't mean we suddenly get shared libraries
14672 # on systems that don't support them.
14673 lt_prog_compiler_can_build_shared_F77=no
14678 if test -d /usr/nec; then
14679 lt_prog_compiler_pic_F77=-Kconform_pic
14684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14685 # not for PA HP-UX.
14691 lt_prog_compiler_pic_F77='-fPIC'
14697 lt_prog_compiler_pic_F77='-fPIC'
14701 # PORTME Check for flag to pass linker flags through the system compiler.
14704 lt_prog_compiler_wl_F77='-Wl,'
14705 if test "$host_cpu" = ia64; then
14706 # AIX 5 now supports IA64 processor
14707 lt_prog_compiler_static_F77='-Bstatic'
14709 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14713 # PIC is the default on this platform
14714 # Common symbols not allowed in MH_DYLIB files
14715 case $cc_basename in
14717 lt_prog_compiler_pic_F77='-qnocommon'
14718 lt_prog_compiler_wl_F77='-Wl,'
14723 mingw* | pw32* | os2*)
14724 # This hack is so that the source file can tell whether it is being
14725 # built for inclusion in a dll (and should export symbols for example).
14726 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14729 hpux9* | hpux10* | hpux11*)
14730 lt_prog_compiler_wl_F77='-Wl,'
14731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14732 # not for PA HP-UX.
14738 lt_prog_compiler_pic_F77='+Z'
14741 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14742 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14745 irix5* | irix6* | nonstopux*)
14746 lt_prog_compiler_wl_F77='-Wl,'
14747 # PIC (with -KPIC) is the default.
14748 lt_prog_compiler_static_F77='-non_shared'
14752 lt_prog_compiler_pic_F77='-KPIC'
14753 lt_prog_compiler_static_F77='-Bstatic'
14757 case $cc_basename in
14759 lt_prog_compiler_wl_F77='-Wl,'
14760 lt_prog_compiler_pic_F77='-KPIC'
14761 lt_prog_compiler_static_F77='-static'
14763 pgcc* | pgf77* | pgf90* | pgf95*)
14764 # Portland Group compilers (*not* the Pentium gcc compiler,
14765 # which looks to be a dead project)
14766 lt_prog_compiler_wl_F77='-Wl,'
14767 lt_prog_compiler_pic_F77='-fpic'
14768 lt_prog_compiler_static_F77='-Bstatic'
14771 lt_prog_compiler_wl_F77='-Wl,'
14772 # All Alpha code is PIC.
14773 lt_prog_compiler_static_F77='-non_shared'
14778 osf3* | osf4* | osf5*)
14779 lt_prog_compiler_wl_F77='-Wl,'
14780 # All OSF/1 code is PIC.
14781 lt_prog_compiler_static_F77='-non_shared'
14785 lt_prog_compiler_pic_F77='-KPIC'
14786 lt_prog_compiler_static_F77='-Bstatic'
14787 case $cc_basename in
14788 f77* | f90* | f95*)
14789 lt_prog_compiler_wl_F77='-Qoption ld ';;
14791 lt_prog_compiler_wl_F77='-Wl,';;
14796 lt_prog_compiler_wl_F77='-Qoption ld '
14797 lt_prog_compiler_pic_F77='-PIC'
14798 lt_prog_compiler_static_F77='-Bstatic'
14801 sysv4 | sysv4.2uw2* | sysv4.3*)
14802 lt_prog_compiler_wl_F77='-Wl,'
14803 lt_prog_compiler_pic_F77='-KPIC'
14804 lt_prog_compiler_static_F77='-Bstatic'
14808 if test -d /usr/nec ;then
14809 lt_prog_compiler_pic_F77='-Kconform_pic'
14810 lt_prog_compiler_static_F77='-Bstatic'
14814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14815 lt_prog_compiler_wl_F77='-Wl,'
14816 lt_prog_compiler_pic_F77='-KPIC'
14817 lt_prog_compiler_static_F77='-Bstatic'
14821 lt_prog_compiler_wl_F77='-Wl,'
14822 lt_prog_compiler_can_build_shared_F77=no
14826 lt_prog_compiler_pic_F77='-pic'
14827 lt_prog_compiler_static_F77='-Bstatic'
14831 lt_prog_compiler_can_build_shared_F77=no
14836 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14837 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14840 # Check to make sure the PIC flag actually works.
14842 if test -n "$lt_prog_compiler_pic_F77"; then
14844 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14845 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14846 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 lt_prog_compiler_pic_works_F77=no
14850 ac_outfile=conftest.$ac_objext
14851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14852 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14853 # Insert the option either (1) after the last *FLAGS variable, or
14854 # (2) before a word containing "conftest.", or (3) at the end.
14855 # Note that $ac_compile itself does not contain backslashes and begins
14856 # with a dollar sign (not a hyphen), so the echo should work correctly.
14857 # The option is referenced via a variable to avoid confusing sed.
14858 lt_compile=`echo "$ac_compile" | $SED \
14859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14861 -e 's:$: $lt_compiler_flag:'`
14862 (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
14863 (eval "$lt_compile" 2>conftest.err)
14865 cat conftest.err >&5
14866 echo "$as_me:14866: \$? = $ac_status" >&5
14867 if (exit $ac_status) && test -s "$ac_outfile"; then
14868 # The compiler can only warn and ignore the option if not recognized
14869 # So say no if there are warnings other than the usual output.
14870 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14873 lt_prog_compiler_pic_works_F77=yes
14879 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14880 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14882 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14883 case $lt_prog_compiler_pic_F77 in
14885 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14888 lt_prog_compiler_pic_F77=
14889 lt_prog_compiler_can_build_shared_F77=no
14894 # For platforms which do not support PIC, -DPIC is meaningless:
14896 lt_prog_compiler_pic_F77=
14899 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14904 # Check to make sure the static flag actually works.
14906 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14907 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14909 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 lt_prog_compiler_static_works_F77=no
14913 save_LDFLAGS="$LDFLAGS"
14914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14915 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14917 # The linker can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test -s conftest.err; then
14920 # Append any errors to the config.log.
14921 cat conftest.err 1>&5
14922 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if diff conftest.exp conftest.er2 >/dev/null; then
14925 lt_prog_compiler_static_works_F77=yes
14928 lt_prog_compiler_static_works_F77=yes
14932 LDFLAGS="$save_LDFLAGS"
14935 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14936 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14938 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14941 lt_prog_compiler_static_F77=
14945 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14947 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 lt_cv_prog_compiler_c_o_F77=no
14951 $rm -r conftest 2>/dev/null
14955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14957 lt_compiler_flag="-o out/conftest2.$ac_objext"
14958 # Insert the option either (1) after the last *FLAGS variable, or
14959 # (2) before a word containing "conftest.", or (3) at the end.
14960 # Note that $ac_compile itself does not contain backslashes and begins
14961 # with a dollar sign (not a hyphen), so the echo should work correctly.
14962 lt_compile=`echo "$ac_compile" | $SED \
14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14965 -e 's:$: $lt_compiler_flag:'`
14966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
14967 (eval "$lt_compile" 2>out/conftest.err)
14969 cat out/conftest.err >&5
14970 echo "$as_me:14970: \$? = $ac_status" >&5
14971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14973 # The compiler can only warn and ignore the option if not recognized
14974 # So say no if there are warnings
14975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14978 lt_cv_prog_compiler_c_o_F77=yes
14983 # SGI C++ compiler will create directory out/ii_files/ for
14984 # template instantiation
14985 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14986 $rm out/* && rmdir out
14992 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14993 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14996 hard_links="nottested"
14997 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14998 # do not overwrite the value of need_locks provided by the user
14999 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15000 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15005 ln conftest.a conftest.b 2>&5 || hard_links=no
15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15007 { echo "$as_me:$LINENO: result: $hard_links" >&5
15008 echo "${ECHO_T}$hard_links" >&6; }
15009 if test "$hard_links" = no; then
15010 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15011 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15018 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15019 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15022 allow_undefined_flag_F77=
15023 enable_shared_with_static_runtimes_F77=no
15025 archive_expsym_cmds_F77=
15026 old_archive_From_new_cmds_F77=
15027 old_archive_from_expsyms_cmds_F77=
15028 export_dynamic_flag_spec_F77=
15029 whole_archive_flag_spec_F77=
15030 thread_safe_flag_spec_F77=
15031 hardcode_libdir_flag_spec_F77=
15032 hardcode_libdir_flag_spec_ld_F77=
15033 hardcode_libdir_separator_F77=
15034 hardcode_direct_F77=no
15035 hardcode_minus_L_F77=no
15036 hardcode_shlibpath_var_F77=unsupported
15037 link_all_deplibs_F77=unknown
15038 hardcode_automatic_F77=no
15040 module_expsym_cmds_F77=
15041 always_export_symbols_F77=no
15042 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15043 # include_expsyms should be a list of space-separated symbols to be *always*
15044 # included in the symbol list
15045 include_expsyms_F77=
15046 # exclude_expsyms can be an extended regexp of symbols to exclude
15047 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15048 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15049 # as well as any symbol that contains `d'.
15050 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15051 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15052 # platforms (ab)use it in PIC code, but their linkers get confused if
15053 # the symbol is explicitly referenced. Since portable code cannot
15054 # rely on this symbol name, it's probably fine to never include it in
15055 # preloaded symbol tables.
15056 extract_expsyms_cmds=
15057 # Just being paranoid about ensuring that cc_basename is set.
15058 for cc_temp in $compiler""; do
15060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15069 cygwin* | mingw* | pw32*)
15070 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15071 # When not using gcc, we currently assume that we are using
15072 # Microsoft Visual C++.
15073 if test "$GCC" != yes; then
15078 # we just hope/assume this is gcc and not c89 (= MSVC++)
15087 if test "$with_gnu_ld" = yes; then
15088 # If archive_cmds runs LD, not CC, wlarc should be empty
15091 # Set some defaults for GNU ld with shared library support. These
15092 # are reset later if shared libraries are not supported. Putting them
15093 # here allows them to be overridden if necessary.
15094 runpath_var=LD_RUN_PATH
15095 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15096 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15097 # ancient GNU ld didn't support --whole-archive et. al.
15098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15099 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15101 whole_archive_flag_spec_F77=
15103 supports_anon_versioning=no
15104 case `$LD -v 2>/dev/null` in
15105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15108 *\ 2.11.*) ;; # other 2.11 versions
15109 *) supports_anon_versioning=yes ;;
15112 # See if GNU ld supports shared libraries.
15114 aix3* | aix4* | aix5*)
15115 # On AIX/PPC, the GNU linker is very broken
15116 if test "$host_cpu" != ia64; then
15120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15121 *** to be unable to reliably create shared libraries on AIX.
15122 *** Therefore, libtool is disabling shared libraries support. If you
15123 *** really care for shared libraries, you may want to modify your PATH
15124 *** so that a non-GNU linker is found, and then restart.
15131 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)'
15132 hardcode_libdir_flag_spec_F77='-L$libdir'
15133 hardcode_minus_L_F77=yes
15135 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15136 # that the semantics of dynamic libraries on AmigaOS, at least up
15137 # to version 4, is to share data among multiple programs linked
15138 # with the same dynamic library. Since this doesn't match the
15139 # behavior of shared libraries on other platforms, we can't use
15145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15146 allow_undefined_flag_F77=unsupported
15147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15148 # support --undefined. This deserves some investigation. FIXME
15149 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 cygwin* | mingw* | pw32*)
15156 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15157 # as there is no search path for DLLs.
15158 hardcode_libdir_flag_spec_F77='-L$libdir'
15159 allow_undefined_flag_F77=unsupported
15160 always_export_symbols_F77=no
15161 enable_shared_with_static_runtimes_F77=yes
15162 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15164 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15166 # If the export-symbols file already is a .def file (1st line
15167 # is EXPORTS), use it as is; otherwise, prepend...
15168 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15169 cp $export_symbols $output_objdir/$soname.def;
15171 echo EXPORTS > $output_objdir/$soname.def;
15172 cat $export_symbols >> $output_objdir/$soname.def;
15174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15181 hardcode_direct_F77=no
15182 hardcode_shlibpath_var_F77=no
15183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15184 export_dynamic_flag_spec_F77='${wl}-E'
15185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15186 # Instead, shared libraries are loaded at an image base (0x10000000 by
15187 # default) and relocated if they conflict, which is a slow very memory
15188 # consuming and fragmenting process. To avoid this, we pick a random,
15189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15191 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'
15192 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'
15196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15198 case $cc_basename,$host_cpu in
15199 pgcc*) # Portland Group C compiler
15200 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'
15201 tmp_addflag=' $pic_flag'
15203 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15204 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'
15205 tmp_addflag=' $pic_flag -Mnomain' ;;
15206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15207 tmp_addflag=' -i_dynamic' ;;
15208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15209 tmp_addflag=' -i_dynamic -nofor_main' ;;
15210 ifc* | ifort*) # Intel Fortran compiler
15211 tmp_addflag=' -nofor_main' ;;
15213 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215 if test $supports_anon_versioning = yes; then
15216 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15218 $echo "local: *; };" >> $output_objdir/$libname.ver~
15219 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15228 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15231 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15232 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15237 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15241 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15242 *** create shared libraries on Solaris systems. Therefore, libtool
15243 *** is disabling shared libraries support. We urge you to upgrade GNU
15244 *** binutils to release 2.9.1 or newer. Another option is to modify
15245 *** your PATH or compiler configuration so that the native linker is
15246 *** used, and then restart.
15249 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15258 case `$LD -v 2>&1` in
15259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15263 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15264 *** reliably create shared libraries on SCO systems. Therefore, libtool
15265 *** is disabling shared libraries support. We urge you to upgrade GNU
15266 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15267 *** your PATH or compiler configuration so that the native linker is
15268 *** used, and then restart.
15273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15274 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15285 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_direct_F77=yes
15288 hardcode_shlibpath_var_F77=no
15292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15294 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15301 if test "$ld_shlibs_F77" = no; then
15303 hardcode_libdir_flag_spec_F77=
15304 export_dynamic_flag_spec_F77=
15305 whole_archive_flag_spec_F77=
15308 # PORTME fill in a description of your system's linker (not GNU ld)
15311 allow_undefined_flag_F77=unsupported
15312 always_export_symbols_F77=yes
15313 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'
15314 # Note: this linker hardcodes the directories in LIBPATH if there
15315 # are no directories specified by -L.
15316 hardcode_minus_L_F77=yes
15317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15318 # Neither direct hardcoding nor static linking is supported with a
15320 hardcode_direct_F77=unsupported
15325 if test "$host_cpu" = ia64; then
15326 # On IA64, the linker does run time linking by default, so we don't
15327 # have to do anything special.
15328 aix_use_runtimelinking=no
15329 exp_sym_flag='-Bexport'
15332 # If we're using GNU nm, then we don't want the "-C" option.
15333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15334 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15335 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'
15337 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'
15339 aix_use_runtimelinking=no
15341 # Test if we are trying to use run time linking or normal
15342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15343 # need to do runtime linking.
15344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15345 for ld_flag in $LDFLAGS; do
15346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15347 aix_use_runtimelinking=yes
15354 exp_sym_flag='-bexport'
15355 no_entry_flag='-bnoentry'
15358 # When large executables or shared objects are built, AIX ld can
15359 # have problems creating the table of contents. If linking a library
15360 # or program results in "error TOC overflow" add -mminimal-toc to
15361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15364 archive_cmds_F77=''
15365 hardcode_direct_F77=yes
15366 hardcode_libdir_separator_F77=':'
15367 link_all_deplibs_F77=yes
15369 if test "$GCC" = yes; then
15370 case $host_os in aix4.[012]|aix4.[012].*)
15371 # We only want to do this on AIX 4.2 and lower, the check
15372 # below for broken collect2 doesn't work under 4.3+
15373 collect2name=`${CC} -print-prog-name=collect2`
15374 if test -f "$collect2name" && \
15375 strings "$collect2name" | grep resolve_lib_name >/dev/null
15377 # We have reworked collect2
15378 hardcode_direct_F77=yes
15380 # We have old collect2
15381 hardcode_direct_F77=unsupported
15382 # It fails to find uninstalled libraries when the uninstalled
15383 # path is not listed in the libpath. Setting hardcode_minus_L
15384 # to unsupported forces relinking
15385 hardcode_minus_L_F77=yes
15386 hardcode_libdir_flag_spec_F77='-L$libdir'
15387 hardcode_libdir_separator_F77=
15391 shared_flag='-shared'
15392 if test "$aix_use_runtimelinking" = yes; then
15393 shared_flag="$shared_flag "'${wl}-G'
15397 if test "$host_cpu" = ia64; then
15398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15399 # chokes on -Wl,-G. The following line is correct:
15402 if test "$aix_use_runtimelinking" = yes; then
15403 shared_flag='${wl}-G'
15405 shared_flag='${wl}-bM:SRE'
15410 # It seems that -bexpall does not export symbols beginning with
15411 # underscore (_), so it is better to generate a list of symbols to export.
15412 always_export_symbols_F77=yes
15413 if test "$aix_use_runtimelinking" = yes; then
15414 # Warning - without using the other runtime loading flags (-brtl),
15415 # -berok will link without error, but may produce a broken library.
15416 allow_undefined_flag_F77='-berok'
15417 # Determine the default libpath from the value encoded in an empty executable.
15418 cat >conftest.$ac_ext <<_ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_link") 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_f77_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext &&
15440 $as_test_x conftest$ac_exeext; then
15442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15444 # Check for a 64-bit object if we didn't find anything.
15445 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15458 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15459 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"
15461 if test "$host_cpu" = ia64; then
15462 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15463 allow_undefined_flag_F77="-z nodefs"
15464 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"
15466 # Determine the default libpath from the value encoded in an empty executable.
15467 cat >conftest.$ac_ext <<_ACEOF
15472 rm -f conftest.$ac_objext conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_f77_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest$ac_exeext &&
15489 $as_test_x conftest$ac_exeext; then
15491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15493 # Check for a 64-bit object if we didn't find anything.
15494 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504 conftest$ac_exeext conftest.$ac_ext
15505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15507 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15508 # Warning - without using the other run time loading flags,
15509 # -berok will link without error, but may produce a broken library.
15510 no_undefined_flag_F77=' ${wl}-bernotok'
15511 allow_undefined_flag_F77=' ${wl}-berok'
15512 # Exported symbols can be pulled into shared objects from archives
15513 whole_archive_flag_spec_F77='$convenience'
15514 archive_cmds_need_lc_F77=yes
15515 # This is similar to how AIX traditionally builds its shared libraries.
15516 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'
15522 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)'
15523 hardcode_libdir_flag_spec_F77='-L$libdir'
15524 hardcode_minus_L_F77=yes
15525 # see comment about different semantics on the GNU ld section
15530 export_dynamic_flag_spec_F77=-rdynamic
15533 cygwin* | mingw* | pw32*)
15534 # When not using gcc, we currently assume that we are using
15535 # Microsoft Visual C++.
15536 # hardcode_libdir_flag_spec is actually meaningless, as there is
15537 # no search path for DLLs.
15538 hardcode_libdir_flag_spec_F77=' '
15539 allow_undefined_flag_F77=unsupported
15540 # Tell ltmain to make .lib files, not .a files.
15542 # Tell ltmain to make .dll files, not .so files.
15544 # FIXME: Setting linknames here is a bad hack.
15545 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15546 # The linker will automatically build a .lib file if we build a DLL.
15547 old_archive_From_new_cmds_F77='true'
15548 # FIXME: Should let the user specify the lib program.
15549 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15550 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15551 enable_shared_with_static_runtimes_F77=yes
15554 darwin* | rhapsody*)
15556 rhapsody* | darwin1.[012])
15557 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15561 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15563 case ${MACOSX_DEPLOYMENT_TARGET} in
15565 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15568 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15574 archive_cmds_need_lc_F77=no
15575 hardcode_direct_F77=no
15576 hardcode_automatic_F77=yes
15577 hardcode_shlibpath_var_F77=unsupported
15578 whole_archive_flag_spec_F77=''
15579 link_all_deplibs_F77=yes
15580 if test "$GCC" = yes ; then
15581 output_verbose_link_cmd='echo'
15582 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15583 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15585 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}'
15586 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}'
15588 case $cc_basename in
15590 output_verbose_link_cmd='echo'
15591 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15594 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15595 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}'
15605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_libdir_flag_spec_F77='-L$libdir'
15607 hardcode_shlibpath_var_F77=no
15614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15615 # support. Future versions do this automatically, but an explicit c++rt0.o
15616 # does not break anything, and helps significantly (at the cost of a little
15619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15620 hardcode_libdir_flag_spec_F77='-R$libdir'
15621 hardcode_direct_F77=yes
15622 hardcode_shlibpath_var_F77=no
15625 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15627 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15628 hardcode_direct_F77=yes
15629 hardcode_minus_L_F77=yes
15630 hardcode_shlibpath_var_F77=no
15633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15634 freebsd* | kfreebsd*-gnu | dragonfly*)
15635 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15636 hardcode_libdir_flag_spec_F77='-R$libdir'
15637 hardcode_direct_F77=yes
15638 hardcode_shlibpath_var_F77=no
15642 if test "$GCC" = yes; then
15643 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'
15645 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'
15647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15648 hardcode_libdir_separator_F77=:
15649 hardcode_direct_F77=yes
15651 # hardcode_minus_L: Not really in the search PATH,
15652 # but as the default location of the library.
15653 hardcode_minus_L_F77=yes
15654 export_dynamic_flag_spec_F77='${wl}-E'
15658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15661 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15663 if test "$with_gnu_ld" = no; then
15664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15665 hardcode_libdir_separator_F77=:
15667 hardcode_direct_F77=yes
15668 export_dynamic_flag_spec_F77='${wl}-E'
15670 # hardcode_minus_L: Not really in the search PATH,
15671 # but as the default location of the library.
15672 hardcode_minus_L_F77=yes
15677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15680 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15702 if test "$with_gnu_ld" = no; then
15703 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15704 hardcode_libdir_separator_F77=:
15708 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15709 hardcode_direct_F77=no
15710 hardcode_shlibpath_var_F77=no
15713 hardcode_direct_F77=yes
15714 export_dynamic_flag_spec_F77='${wl}-E'
15716 # hardcode_minus_L: Not really in the search PATH,
15717 # but as the default location of the library.
15718 hardcode_minus_L_F77=yes
15724 irix5* | irix6* | nonstopux*)
15725 if test "$GCC" = yes; then
15726 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'
15728 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'
15729 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15732 hardcode_libdir_separator_F77=:
15733 link_all_deplibs_F77=yes
15737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15738 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15740 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15742 hardcode_libdir_flag_spec_F77='-R$libdir'
15743 hardcode_direct_F77=yes
15744 hardcode_shlibpath_var_F77=no
15748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_direct_F77=yes
15750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15751 hardcode_libdir_separator_F77=:
15752 hardcode_shlibpath_var_F77=no
15756 hardcode_direct_F77=yes
15757 hardcode_shlibpath_var_F77=no
15758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15760 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15762 export_dynamic_flag_spec_F77='${wl}-E'
15765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15767 hardcode_libdir_flag_spec_F77='-R$libdir'
15770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15771 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15778 hardcode_libdir_flag_spec_F77='-L$libdir'
15779 hardcode_minus_L_F77=yes
15780 allow_undefined_flag_F77=unsupported
15781 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'
15782 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15786 if test "$GCC" = yes; then
15787 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15788 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'
15790 allow_undefined_flag_F77=' -expect_unresolved \*'
15791 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'
15793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15794 hardcode_libdir_separator_F77=:
15797 osf4* | osf5*) # as osf3* with the addition of -msym flag
15798 if test "$GCC" = yes; then
15799 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15800 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'
15801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15803 allow_undefined_flag_F77=' -expect_unresolved \*'
15804 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'
15805 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~
15806 $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'
15808 # Both c and cxx compiler support -rpath directly
15809 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15811 hardcode_libdir_separator_F77=:
15815 no_undefined_flag_F77=' -z text'
15816 if test "$GCC" = yes; then
15818 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15823 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15827 hardcode_libdir_flag_spec_F77='-R$libdir'
15828 hardcode_shlibpath_var_F77=no
15830 solaris2.[0-5] | solaris2.[0-5].*) ;;
15832 # The compiler driver will combine linker options so we
15833 # cannot just pass the convience library names through
15834 # without $wl, iff we do not link with $LD.
15835 # Luckily, gcc supports the same syntax we need for Sun Studio.
15836 # Supported since Solaris 2.6 (maybe 2.5.1?)
15839 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15841 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15844 link_all_deplibs_F77=yes
15848 if test "x$host_vendor" = xsequent; then
15849 # Use $CC to link under sequent, because it throws in some extra .o
15850 # files that make .init and .fini sections work.
15851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15855 hardcode_libdir_flag_spec_F77='-L$libdir'
15856 hardcode_direct_F77=yes
15857 hardcode_minus_L_F77=yes
15858 hardcode_shlibpath_var_F77=no
15862 case $host_vendor in
15864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_direct_F77=yes # is this really true???
15868 ## LD is ld it makes a PLAMLIB
15869 ## CC just makes a GrossModule.
15870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15871 reload_cmds_F77='$CC -r -o $output$reload_objs'
15872 hardcode_direct_F77=no
15875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15879 runpath_var='LD_RUN_PATH'
15880 hardcode_shlibpath_var_F77=no
15884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15885 hardcode_shlibpath_var_F77=no
15886 export_dynamic_flag_spec_F77='-Bexport'
15890 if test -d /usr/nec; then
15891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15892 hardcode_shlibpath_var_F77=no
15893 runpath_var=LD_RUN_PATH
15894 hardcode_runpath_var=yes
15899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15900 no_undefined_flag_F77='${wl}-z,text'
15901 archive_cmds_need_lc_F77=no
15902 hardcode_shlibpath_var_F77=no
15903 runpath_var='LD_RUN_PATH'
15905 if test "$GCC" = yes; then
15906 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15907 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15910 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15914 sysv5* | sco3.2v5* | sco5v6*)
15915 # Note: We can NOT use -z defs as we might desire, because we do not
15916 # link with -lc, and that would cause any symbols used from libc to
15917 # always be unresolved, which means just about no library would
15918 # ever link correctly. If we're not using GNU ld we use -z text
15919 # though, which does catch some bad symbols but isn't as heavy-handed
15921 no_undefined_flag_F77='${wl}-z,text'
15922 allow_undefined_flag_F77='${wl}-z,nodefs'
15923 archive_cmds_need_lc_F77=no
15924 hardcode_shlibpath_var_F77=no
15925 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15926 hardcode_libdir_separator_F77=':'
15927 link_all_deplibs_F77=yes
15928 export_dynamic_flag_spec_F77='${wl}-Bexport'
15929 runpath_var='LD_RUN_PATH'
15931 if test "$GCC" = yes; then
15932 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15936 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15942 hardcode_libdir_flag_spec_F77='-L$libdir'
15943 hardcode_shlibpath_var_F77=no
15952 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15953 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15954 test "$ld_shlibs_F77" = no && can_build_shared=no
15957 # Do we need to explicitly link libc?
15959 case "x$archive_cmds_need_lc_F77" in
15961 # Assume -lc should be added
15962 archive_cmds_need_lc_F77=yes
15964 if test "$enable_shared" = yes && test "$GCC" = yes; then
15965 case $archive_cmds_F77 in
15967 # FIXME: we may have to deal with multi-command sequences.
15970 # Test whether the compiler implicitly links with -lc since on some
15971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15972 # to ld, don't add -lc before -lgcc.
15973 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15974 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } 2>conftest.err; then
15985 libobjs=conftest.$ac_objext
15987 wl=$lt_prog_compiler_wl_F77
15988 pic_flag=$lt_prog_compiler_pic_F77
15994 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15995 allow_undefined_flag_F77=
15996 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15997 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }
16002 archive_cmds_need_lc_F77=no
16004 archive_cmds_need_lc_F77=yes
16006 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16008 cat conftest.err 1>&5
16011 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16012 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16019 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16020 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16021 library_names_spec=
16022 libname_spec='lib$name'
16026 postuninstall_cmds=
16030 shlibpath_overrides_runpath=unknown
16032 dynamic_linker="$host_os ld.so"
16033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16034 if test "$GCC" = yes; then
16035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16036 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16037 # if the path contains ";" then we assume it to be the separator
16038 # otherwise default to the standard path separator (i.e. ":") - it is
16039 # assumed that no part of a normal pathname contains ";" but that should
16040 # okay in the real world where ";" in dirpaths is itself problematic.
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16048 need_lib_prefix=unknown
16049 hardcode_into_libs=no
16051 # when you set need_version to no, make sure it does not cause -set_version
16052 # flags to be left without arguments
16053 need_version=unknown
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16059 shlibpath_var=LIBPATH
16061 # AIX 3 has no versioning support, so we append a major version to the name.
16062 soname_spec='${libname}${release}${shared_ext}$major'
16069 hardcode_into_libs=yes
16070 if test "$host_cpu" = ia64; then
16071 # AIX 5 supports IA64
16072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16073 shlibpath_var=LD_LIBRARY_PATH
16075 # With GCC up to 2.95.x, collect2 would create an import file
16076 # for dependence libraries. The import file would start with
16077 # the line `#! .'. This would cause the generated library to
16078 # depend on `.', always an invalid library. This was fixed in
16079 # development snapshots of GCC prior to 3.0.
16081 aix4 | aix4.[01] | aix4.[01].*)
16082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16084 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16087 can_build_shared=no
16091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16092 # soname into executable. Probably we can add versioning support to
16093 # collect2, so additional links can be useful in future.
16094 if test "$aix_use_runtimelinking" = yes; then
16095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16096 # instead of lib<name>.a to let people know that these are not
16097 # typical AIX shared libraries.
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 # We preserve .a as extension for shared libraries through AIX4.2
16101 # and later when we are not doing run time linking.
16102 library_names_spec='${libname}${release}.a $libname.a'
16103 soname_spec='${libname}${release}${shared_ext}$major'
16105 shlibpath_var=LIBPATH
16110 library_names_spec='$libname.ixlibrary $libname.a'
16111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16112 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'
16116 library_names_spec='${libname}${shared_ext}'
16117 dynamic_linker="$host_os ld.so"
16118 shlibpath_var=LIBRARY_PATH
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16127 shlibpath_var=LD_LIBRARY_PATH
16128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16130 # the default ld.so.conf also contains /usr/contrib/lib and
16131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16132 # libtool to hard-code these into programs
16135 cygwin* | mingw* | pw32*)
16136 version_type=windows
16141 case $GCC,$host_os in
16142 yes,cygwin* | yes,mingw* | yes,pw32*)
16143 library_names_spec='$libname.dll.a'
16144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16145 postinstall_cmds='base_file=`basename \${file}`~
16146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16147 dldir=$destdir/`dirname \$dlpath`~
16148 test -d \$dldir || mkdir -p \$dldir~
16149 $install_prog $dir/$dlname \$dldir/$dlname~
16150 chmod a+x \$dldir/$dlname'
16151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16152 dlpath=$dir/\$dldll~
16154 shlibpath_overrides_runpath=yes
16158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16160 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16163 # MinGW DLLs use traditional 'lib' prefix
16164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16166 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16167 # It is most probably a Windows format PATH printed by
16168 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16169 # path with ; separators, and with drive letters. We can handle the
16170 # drive letters (cygwin fileutils understands them), so leave them,
16171 # especially as we might pass files found there to a mingw objdump,
16172 # which wouldn't understand a cygwinified path. Ahh.
16173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16179 # pw32 DLLs use 'pw' prefix rather than 'lib'
16180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16189 dynamic_linker='Win32 ld.exe'
16190 # FIXME: first we should search . and the directory the executable is in
16194 darwin* | rhapsody*)
16195 dynamic_linker="$host_os dyld"
16196 version_type=darwin
16199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
16200 soname_spec='${libname}${release}${major}$shared_ext'
16201 shlibpath_overrides_runpath=yes
16202 shlibpath_var=DYLD_LIBRARY_PATH
16203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16205 if test "$GCC" = yes; then
16206 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16208 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=no
16234 hardcode_into_libs=yes
16235 dynamic_linker='GNU ld.so'
16238 freebsd* | dragonfly*)
16239 # DragonFly does not have aout. When/if they implement a new
16240 # versioning mechanism, adjust this.
16241 if test -x /usr/bin/objformat; then
16242 objformat=`/usr/bin/objformat`
16245 freebsd[123]*) objformat=aout ;;
16246 *) objformat=elf ;;
16249 version_type=freebsd-$objformat
16250 case $version_type in
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16261 shlibpath_var=LD_LIBRARY_PATH
16264 shlibpath_overrides_runpath=yes
16266 freebsd3.[01]* | freebsdelf3.[01]*)
16267 shlibpath_overrides_runpath=yes
16268 hardcode_into_libs=yes
16270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16272 shlibpath_overrides_runpath=no
16273 hardcode_into_libs=yes
16275 freebsd*) # from 4.6 on
16276 shlibpath_overrides_runpath=yes
16277 hardcode_into_libs=yes
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 hardcode_into_libs=yes
16292 hpux9* | hpux10* | hpux11*)
16293 # Give a soname corresponding to the major version so that dld.sl refuses to
16294 # link against other versions.
16301 hardcode_into_libs=yes
16302 dynamic_linker="$host_os dld.so"
16303 shlibpath_var=LD_LIBRARY_PATH
16304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 if test "X$HPUX_IA64_MODE" = X32; then
16308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16316 hardcode_into_libs=yes
16317 dynamic_linker="$host_os dld.sl"
16318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 soname_spec='${libname}${release}${shared_ext}$major'
16322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16327 dynamic_linker="$host_os dld.sl"
16328 shlibpath_var=SHLIB_PATH
16329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
16334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16335 postinstall_cmds='chmod 555 $lib'
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=no
16347 hardcode_into_libs=yes
16350 irix5* | irix6* | nonstopux*)
16352 nonstopux*) version_type=nonstopux ;;
16354 if test "$lt_cv_prog_gnu_ld" = yes; then
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16365 irix5* | nonstopux*)
16366 libsuff= shlibsuff=
16369 case $LD in # libtool.m4 will add one of these switches to LD
16370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16371 libsuff= shlibsuff= libmagic=32-bit;;
16372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16373 libsuff=32 shlibsuff=N32 libmagic=N32;;
16374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16376 *) libsuff= shlibsuff= libmagic=never-match;;
16380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16381 shlibpath_overrides_runpath=no
16382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16384 hardcode_into_libs=yes
16387 # No shared lib support for Linux oldld, aout, or coff.
16388 linux*oldld* | linux*aout* | linux*coff*)
16392 # This must be Linux ELF.
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=no
16402 # This implies no fast_install, which is unacceptable.
16403 # Some rework will be needed to allow for fast_install
16404 # before this can be enabled.
16405 hardcode_into_libs=yes
16407 # Append ld.so.conf contents to the search path
16408 if test -f /etc/ld.so.conf; then
16409 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16413 # We used to test for /lib/ld.so.1 and disable shared libraries on
16414 # powerpc, because MkLinux only supported shared libraries with the
16415 # GNU dynamic linker. Since this was broken with cross compilers,
16416 # most powerpc-linux boxes support dynamic linking these days and
16417 # people can always --disable-shared, the test was removed, and we
16418 # assume the GNU/Linux dynamic linker is in use.
16419 dynamic_linker='GNU/Linux ld.so'
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=no
16430 hardcode_into_libs=yes
16431 dynamic_linker='GNU ld.so'
16438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16441 dynamic_linker='NetBSD (a.out) ld.so'
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 dynamic_linker='NetBSD ld.elf_so'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 shlibpath_overrides_runpath=yes
16449 hardcode_into_libs=yes
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 shlibpath_overrides_runpath=yes
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16471 sys_lib_dlsearch_path_spec="/usr/lib"
16473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16476 *) need_version=no ;;
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16483 openbsd2.[89] | openbsd2.[89].*)
16484 shlibpath_overrides_runpath=no
16487 shlibpath_overrides_runpath=yes
16491 shlibpath_overrides_runpath=yes
16496 libname_spec='$name'
16499 library_names_spec='$libname${shared_ext} $libname.a'
16500 dynamic_linker='OS/2 ld.exe'
16501 shlibpath_var=LIBPATH
16504 osf3* | osf4* | osf5*)
16508 soname_spec='${libname}${release}${shared_ext}$major'
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes
16523 hardcode_into_libs=yes
16524 # ldd complains unless libraries are executable
16525 postinstall_cmds='chmod +x $lib'
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 shlibpath_overrides_runpath=yes
16534 if test "$with_gnu_ld" = yes; then
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 case $host_vendor in
16547 shlibpath_overrides_runpath=no
16549 export_dynamic_flag_spec='${wl}-Blargedynsym'
16550 runpath_var=LD_RUN_PATH
16558 shlibpath_overrides_runpath=no
16559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16565 if test -d /usr/nec ;then
16567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16568 soname_spec='$libname${shared_ext}.$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16574 version_type=freebsd-elf
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 hardcode_into_libs=yes
16581 if test "$with_gnu_ld" = yes; then
16582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16583 shlibpath_overrides_runpath=no
16585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16586 shlibpath_overrides_runpath=yes
16589 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16593 sys_lib_dlsearch_path_spec='/usr/lib'
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 shlibpath_var=LD_LIBRARY_PATH
16607 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16608 echo "${ECHO_T}$dynamic_linker" >&6; }
16609 test "$dynamic_linker" = no && can_build_shared=no
16611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16612 if test "$GCC" = yes; then
16613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16616 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16617 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16618 hardcode_action_F77=
16619 if test -n "$hardcode_libdir_flag_spec_F77" || \
16620 test -n "$runpath_var_F77" || \
16621 test "X$hardcode_automatic_F77" = "Xyes" ; then
16623 # We can hardcode non-existant directories.
16624 if test "$hardcode_direct_F77" != no &&
16625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16626 # have to relink, otherwise we might link with an installed library
16627 # when we should be linking with a yet-to-be-installed one
16628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16629 test "$hardcode_minus_L_F77" != no; then
16630 # Linking always hardcodes the temporary library directory.
16631 hardcode_action_F77=relink
16633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16634 hardcode_action_F77=immediate
16637 # We cannot hardcode anything, or else we can only hardcode existing
16639 hardcode_action_F77=unsupported
16641 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16642 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16644 if test "$hardcode_action_F77" = relink; then
16645 # Fast installation is not supported
16646 enable_fast_install=no
16647 elif test "$shlibpath_overrides_runpath" = yes ||
16648 test "$enable_shared" = no; then
16649 # Fast installation is not necessary
16650 enable_fast_install=needless
16654 # The else clause should only fire when bootstrapping the
16655 # libtool distribution, otherwise you forgot to ship ltmain.sh
16656 # with your package, and you will get complaints that there are
16657 # no rules to generate ltmain.sh.
16658 if test -f "$ltmain"; then
16659 # See if we are running on zsh, and set the options which allow our commands through
16660 # without removal of \ escapes.
16661 if test -n "${ZSH_VERSION+set}" ; then
16662 setopt NO_GLOB_SUBST
16664 # Now quote all the things that may contain metacharacters while being
16665 # careful not to overquote the AC_SUBSTed values. We take copies of the
16666 # variables and quote the copies for generation of the libtool script.
16667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16671 deplibs_check_method reload_flag reload_cmds need_locks \
16672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16673 lt_cv_sys_global_symbol_to_c_name_address \
16674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16675 old_postinstall_cmds old_postuninstall_cmds \
16679 lt_prog_compiler_wl_F77 \
16680 lt_prog_compiler_pic_F77 \
16681 lt_prog_compiler_static_F77 \
16682 lt_prog_compiler_no_builtin_flag_F77 \
16683 export_dynamic_flag_spec_F77 \
16684 thread_safe_flag_spec_F77 \
16685 whole_archive_flag_spec_F77 \
16686 enable_shared_with_static_runtimes_F77 \
16687 old_archive_cmds_F77 \
16688 old_archive_from_new_cmds_F77 \
16689 predep_objects_F77 \
16690 postdep_objects_F77 \
16693 compiler_lib_search_path_F77 \
16695 archive_expsym_cmds_F77 \
16696 postinstall_cmds_F77 \
16697 postuninstall_cmds_F77 \
16698 old_archive_from_expsyms_cmds_F77 \
16699 allow_undefined_flag_F77 \
16700 no_undefined_flag_F77 \
16701 export_symbols_cmds_F77 \
16702 hardcode_libdir_flag_spec_F77 \
16703 hardcode_libdir_flag_spec_ld_F77 \
16704 hardcode_libdir_separator_F77 \
16705 hardcode_automatic_F77 \
16707 module_expsym_cmds_F77 \
16708 lt_cv_prog_compiler_c_o_F77 \
16709 exclude_expsyms_F77 \
16710 include_expsyms_F77; do
16713 old_archive_cmds_F77 | \
16714 old_archive_from_new_cmds_F77 | \
16715 archive_cmds_F77 | \
16716 archive_expsym_cmds_F77 | \
16717 module_cmds_F77 | \
16718 module_expsym_cmds_F77 | \
16719 old_archive_from_expsyms_cmds_F77 | \
16720 export_symbols_cmds_F77 | \
16721 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16722 postinstall_cmds | postuninstall_cmds | \
16723 old_postinstall_cmds | old_postuninstall_cmds | \
16724 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16725 # Double-quote double-evaled strings.
16726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16735 *'\$0 --fallback-echo"')
16736 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16742 cat <<__EOF__ >> "$cfgfile"
16743 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16745 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16747 # Shell to use when invoking shell scripts.
16750 # Whether or not to build shared libraries.
16751 build_libtool_libs=$enable_shared
16753 # Whether or not to build static libraries.
16754 build_old_libs=$enable_static
16756 # Whether or not to add -lc for building shared libraries.
16757 build_libtool_need_lc=$archive_cmds_need_lc_F77
16759 # Whether or not to disallow shared libs when runtime libs are static
16760 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16762 # Whether or not to optimize for fast installation.
16763 fast_install=$enable_fast_install
16766 host_alias=$host_alias
16770 # The build system.
16771 build_alias=$build_alias
16775 # An echo program that does not interpret backslashes.
16780 AR_FLAGS=$lt_AR_FLAGS
16785 # LTCC compiler flags.
16786 LTCFLAGS=$lt_LTCFLAGS
16788 # A language-specific compiler.
16789 CC=$lt_compiler_F77
16791 # Is the compiler the GNU C compiler?
16797 # The linker used to build libraries.
16800 # Whether we need hard or soft links.
16803 # A BSD-compatible nm program.
16806 # A symbol stripping program
16809 # Used to examine libraries when file_magic_cmd begins "file"
16810 MAGIC_CMD=$MAGIC_CMD
16812 # Used on cygwin: DLL creation program.
16815 # Used on cygwin: object dumper.
16818 # Used on cygwin: assembler.
16821 # The name of the directory that contains temporary libtool files.
16824 # How to create reloadable object files.
16825 reload_flag=$lt_reload_flag
16826 reload_cmds=$lt_reload_cmds
16828 # How to pass a linker flag through the compiler.
16829 wl=$lt_lt_prog_compiler_wl_F77
16831 # Object file suffix (normally "o").
16832 objext="$ac_objext"
16834 # Old archive suffix (normally "a").
16837 # Shared library suffix (normally ".so").
16838 shrext_cmds='$shrext_cmds'
16840 # Executable file suffix (normally "").
16843 # Additional compiler flags for building library objects.
16844 pic_flag=$lt_lt_prog_compiler_pic_F77
16847 # What is the maximum length of a command?
16848 max_cmd_len=$lt_cv_sys_max_cmd_len
16850 # Does compiler simultaneously support -c and -o options?
16851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16853 # Must we lock files when doing compilation?
16854 need_locks=$lt_need_locks
16856 # Do we need the lib prefix for modules?
16857 need_lib_prefix=$need_lib_prefix
16859 # Do we need a version for libraries?
16860 need_version=$need_version
16862 # Whether dlopen is supported.
16863 dlopen_support=$enable_dlopen
16865 # Whether dlopen of programs is supported.
16866 dlopen_self=$enable_dlopen_self
16868 # Whether dlopen of statically linked programs is supported.
16869 dlopen_self_static=$enable_dlopen_self_static
16871 # Compiler flag to prevent dynamic linking.
16872 link_static_flag=$lt_lt_prog_compiler_static_F77
16874 # Compiler flag to turn off builtin functions.
16875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16877 # Compiler flag to allow reflexive dlopens.
16878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16880 # Compiler flag to generate shared objects directly from archives.
16881 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16883 # Compiler flag to generate thread-safe objects.
16884 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16886 # Library versioning type.
16887 version_type=$version_type
16889 # Format of library name prefix.
16890 libname_spec=$lt_libname_spec
16892 # List of archive names. First name is the real one, the rest are links.
16893 # The last name is the one that the linker finds with -lNAME.
16894 library_names_spec=$lt_library_names_spec
16896 # The coded name of the library, if different from the real name.
16897 soname_spec=$lt_soname_spec
16899 # Commands used to build and install an old-style archive.
16901 old_archive_cmds=$lt_old_archive_cmds_F77
16902 old_postinstall_cmds=$lt_old_postinstall_cmds
16903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16905 # Create an old-style archive from a shared archive.
16906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16908 # Create a temporary old-style archive to link instead of a shared archive.
16909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16911 # Commands used to build and install a shared archive.
16912 archive_cmds=$lt_archive_cmds_F77
16913 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16914 postinstall_cmds=$lt_postinstall_cmds
16915 postuninstall_cmds=$lt_postuninstall_cmds
16917 # Commands used to build a loadable module (assumed same as above if empty)
16918 module_cmds=$lt_module_cmds_F77
16919 module_expsym_cmds=$lt_module_expsym_cmds_F77
16921 # Commands to strip libraries.
16922 old_striplib=$lt_old_striplib
16923 striplib=$lt_striplib
16925 # Dependencies to place before the objects being linked to create a
16927 predep_objects=$lt_predep_objects_F77
16929 # Dependencies to place after the objects being linked to create a
16931 postdep_objects=$lt_postdep_objects_F77
16933 # Dependencies to place before the objects being linked to create a
16935 predeps=$lt_predeps_F77
16937 # Dependencies to place after the objects being linked to create a
16939 postdeps=$lt_postdeps_F77
16941 # The library search path used internally by the compiler when linking
16942 # a shared library.
16943 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16945 # Method to check whether dependent libraries are shared objects.
16946 deplibs_check_method=$lt_deplibs_check_method
16948 # Command to use when deplibs_check_method == file_magic.
16949 file_magic_cmd=$lt_file_magic_cmd
16951 # Flag that allows shared libraries with undefined symbols to be built.
16952 allow_undefined_flag=$lt_allow_undefined_flag_F77
16954 # Flag that forces no undefined symbols.
16955 no_undefined_flag=$lt_no_undefined_flag_F77
16957 # Commands used to finish a libtool library installation in a directory.
16958 finish_cmds=$lt_finish_cmds
16960 # Same as above, but a single script fragment to be evaled but not shown.
16961 finish_eval=$lt_finish_eval
16963 # Take the output of nm and produce a listing of raw symbols and C names.
16964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16966 # Transform the output of nm in a proper C declaration
16967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16969 # Transform the output of nm in a C name address pair
16970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16972 # This is the shared library runtime path variable.
16973 runpath_var=$runpath_var
16975 # This is the shared library path variable.
16976 shlibpath_var=$shlibpath_var
16978 # Is shlibpath searched before the hard-coded library search path?
16979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16981 # How to hardcode a shared library path into an executable.
16982 hardcode_action=$hardcode_action_F77
16984 # Whether we should hardcode library paths into libraries.
16985 hardcode_into_libs=$hardcode_into_libs
16987 # Flag to hardcode \$libdir into a binary during linking.
16988 # This must work even if \$libdir does not exist.
16989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16991 # If ld is used when linking, flag to hardcode \$libdir into
16992 # a binary during linking. This must work even if \$libdir does
16994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16996 # Whether we need a single -rpath flag with a separated argument.
16997 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16999 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17000 # resulting binary.
17001 hardcode_direct=$hardcode_direct_F77
17003 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17004 # resulting binary.
17005 hardcode_minus_L=$hardcode_minus_L_F77
17007 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17008 # the resulting binary.
17009 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17011 # Set to yes if building a shared library automatically hardcodes DIR into the library
17012 # and all subsequent libraries and executables linked against it.
17013 hardcode_automatic=$hardcode_automatic_F77
17015 # Variables whose values should be saved in libtool wrapper scripts and
17016 # restored at relink time.
17017 variables_saved_for_relink="$variables_saved_for_relink"
17019 # Whether libtool must link a program against all its dependency libraries.
17020 link_all_deplibs=$link_all_deplibs_F77
17022 # Compile-time system search path for libraries
17023 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17025 # Run-time system search path for libraries
17026 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17028 # Fix the shell variable \$srcfile for the compiler.
17029 fix_srcfile_path="$fix_srcfile_path_F77"
17031 # Set to yes if exported symbols are required.
17032 always_export_symbols=$always_export_symbols_F77
17034 # The commands to list exported symbols.
17035 export_symbols_cmds=$lt_export_symbols_cmds_F77
17037 # The commands to extract the exported symbol list from a shared archive.
17038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17040 # Symbols that should not be listed in the preloaded symbols.
17041 exclude_expsyms=$lt_exclude_expsyms_F77
17043 # Symbols that must always be exported.
17044 include_expsyms=$lt_include_expsyms_F77
17046 # ### END LIBTOOL TAG CONFIG: $tagname
17052 # If there is no Makefile yet, we rely on a make rule to execute
17053 # `config.status --recheck' to rerun these tests and create the
17054 # libtool script then.
17055 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17056 if test -f "$ltmain_in"; then
17057 test -f Makefile && make "$ltmain"
17063 ac_cpp='$CPP $CPPFLAGS'
17064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17076 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17079 # Source file extension for Java test sources.
17082 # Object file extension for compiled Java test sources.
17086 # Code to be used in simple compile tests
17087 lt_simple_compile_test_code="class foo {}\n"
17089 # Code to be used in simple link tests
17090 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17092 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17094 # If no C compiler was specified, use CC.
17097 # If no C compiler flags were specified, use CFLAGS.
17098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17100 # Allow CC to be a program name with arguments.
17104 # save warnings/boilerplate of simple test code
17105 ac_outfile=conftest.$ac_objext
17106 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17107 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17108 _lt_compiler_boilerplate=`cat conftest.err`
17111 ac_outfile=conftest.$ac_objext
17112 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17113 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17114 _lt_linker_boilerplate=`cat conftest.err`
17118 # Allow CC to be a program name with arguments.
17123 for cc_temp in $compiler""; do
17125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17135 archive_cmds_need_lc_GCJ=no
17137 old_archive_cmds_GCJ=$old_archive_cmds
17140 lt_prog_compiler_no_builtin_flag_GCJ=
17142 if test "$GCC" = yes; then
17143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 lt_cv_prog_compiler_rtti_exceptions=no
17152 ac_outfile=conftest.$ac_objext
17153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17154 lt_compiler_flag="-fno-rtti -fno-exceptions"
17155 # Insert the option either (1) after the last *FLAGS variable, or
17156 # (2) before a word containing "conftest.", or (3) at the end.
17157 # Note that $ac_compile itself does not contain backslashes and begins
17158 # with a dollar sign (not a hyphen), so the echo should work correctly.
17159 # The option is referenced via a variable to avoid confusing sed.
17160 lt_compile=`echo "$ac_compile" | $SED \
17161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17163 -e 's:$: $lt_compiler_flag:'`
17164 (eval echo "\"\$as_me:17164: $lt_compile\"" >&5)
17165 (eval "$lt_compile" 2>conftest.err)
17167 cat conftest.err >&5
17168 echo "$as_me:17168: \$? = $ac_status" >&5
17169 if (exit $ac_status) && test -s "$ac_outfile"; then
17170 # The compiler can only warn and ignore the option if not recognized
17171 # So say no if there are warnings other than the usual output.
17172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17175 lt_cv_prog_compiler_rtti_exceptions=yes
17181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17192 lt_prog_compiler_wl_GCJ=
17193 lt_prog_compiler_pic_GCJ=
17194 lt_prog_compiler_static_GCJ=
17196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17199 if test "$GCC" = yes; then
17200 lt_prog_compiler_wl_GCJ='-Wl,'
17201 lt_prog_compiler_static_GCJ='-static'
17205 # All AIX code is PIC.
17206 if test "$host_cpu" = ia64; then
17207 # AIX 5 now supports IA64 processor
17208 lt_prog_compiler_static_GCJ='-Bstatic'
17213 # FIXME: we need at least 68020 code to build shared libraries, but
17214 # adding the `-m68020' flag to GCC prevents building anything better,
17216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17220 # PIC is the default for these OSes.
17223 mingw* | pw32* | os2*)
17224 # This hack is so that the source file can tell whether it is being
17225 # built for inclusion in a dll (and should export symbols for example).
17226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17229 darwin* | rhapsody*)
17230 # PIC is the default on this platform
17231 # Common symbols not allowed in MH_DYLIB files
17232 lt_prog_compiler_pic_GCJ='-fno-common'
17236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17237 # Instead, we relocate shared libraries at runtime.
17241 # Just because we use GCC doesn't mean we suddenly get shared libraries
17242 # on systems that don't support them.
17243 lt_prog_compiler_can_build_shared_GCJ=no
17248 if test -d /usr/nec; then
17249 lt_prog_compiler_pic_GCJ=-Kconform_pic
17254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17255 # not for PA HP-UX.
17261 lt_prog_compiler_pic_GCJ='-fPIC'
17267 lt_prog_compiler_pic_GCJ='-fPIC'
17271 # PORTME Check for flag to pass linker flags through the system compiler.
17274 lt_prog_compiler_wl_GCJ='-Wl,'
17275 if test "$host_cpu" = ia64; then
17276 # AIX 5 now supports IA64 processor
17277 lt_prog_compiler_static_GCJ='-Bstatic'
17279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17283 # PIC is the default on this platform
17284 # Common symbols not allowed in MH_DYLIB files
17285 case $cc_basename in
17287 lt_prog_compiler_pic_GCJ='-qnocommon'
17288 lt_prog_compiler_wl_GCJ='-Wl,'
17293 mingw* | pw32* | os2*)
17294 # This hack is so that the source file can tell whether it is being
17295 # built for inclusion in a dll (and should export symbols for example).
17296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17299 hpux9* | hpux10* | hpux11*)
17300 lt_prog_compiler_wl_GCJ='-Wl,'
17301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17302 # not for PA HP-UX.
17308 lt_prog_compiler_pic_GCJ='+Z'
17311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17315 irix5* | irix6* | nonstopux*)
17316 lt_prog_compiler_wl_GCJ='-Wl,'
17317 # PIC (with -KPIC) is the default.
17318 lt_prog_compiler_static_GCJ='-non_shared'
17322 lt_prog_compiler_pic_GCJ='-KPIC'
17323 lt_prog_compiler_static_GCJ='-Bstatic'
17327 case $cc_basename in
17329 lt_prog_compiler_wl_GCJ='-Wl,'
17330 lt_prog_compiler_pic_GCJ='-KPIC'
17331 lt_prog_compiler_static_GCJ='-static'
17333 pgcc* | pgf77* | pgf90* | pgf95*)
17334 # Portland Group compilers (*not* the Pentium gcc compiler,
17335 # which looks to be a dead project)
17336 lt_prog_compiler_wl_GCJ='-Wl,'
17337 lt_prog_compiler_pic_GCJ='-fpic'
17338 lt_prog_compiler_static_GCJ='-Bstatic'
17341 lt_prog_compiler_wl_GCJ='-Wl,'
17342 # All Alpha code is PIC.
17343 lt_prog_compiler_static_GCJ='-non_shared'
17348 osf3* | osf4* | osf5*)
17349 lt_prog_compiler_wl_GCJ='-Wl,'
17350 # All OSF/1 code is PIC.
17351 lt_prog_compiler_static_GCJ='-non_shared'
17355 lt_prog_compiler_pic_GCJ='-KPIC'
17356 lt_prog_compiler_static_GCJ='-Bstatic'
17357 case $cc_basename in
17358 f77* | f90* | f95*)
17359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17361 lt_prog_compiler_wl_GCJ='-Wl,';;
17366 lt_prog_compiler_wl_GCJ='-Qoption ld '
17367 lt_prog_compiler_pic_GCJ='-PIC'
17368 lt_prog_compiler_static_GCJ='-Bstatic'
17371 sysv4 | sysv4.2uw2* | sysv4.3*)
17372 lt_prog_compiler_wl_GCJ='-Wl,'
17373 lt_prog_compiler_pic_GCJ='-KPIC'
17374 lt_prog_compiler_static_GCJ='-Bstatic'
17378 if test -d /usr/nec ;then
17379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17380 lt_prog_compiler_static_GCJ='-Bstatic'
17384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17385 lt_prog_compiler_wl_GCJ='-Wl,'
17386 lt_prog_compiler_pic_GCJ='-KPIC'
17387 lt_prog_compiler_static_GCJ='-Bstatic'
17391 lt_prog_compiler_wl_GCJ='-Wl,'
17392 lt_prog_compiler_can_build_shared_GCJ=no
17396 lt_prog_compiler_pic_GCJ='-pic'
17397 lt_prog_compiler_static_GCJ='-Bstatic'
17401 lt_prog_compiler_can_build_shared_GCJ=no
17406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17410 # Check to make sure the PIC flag actually works.
17412 if test -n "$lt_prog_compiler_pic_GCJ"; then
17414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 lt_prog_compiler_pic_works_GCJ=no
17420 ac_outfile=conftest.$ac_objext
17421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17423 # Insert the option either (1) after the last *FLAGS variable, or
17424 # (2) before a word containing "conftest.", or (3) at the end.
17425 # Note that $ac_compile itself does not contain backslashes and begins
17426 # with a dollar sign (not a hyphen), so the echo should work correctly.
17427 # The option is referenced via a variable to avoid confusing sed.
17428 lt_compile=`echo "$ac_compile" | $SED \
17429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17431 -e 's:$: $lt_compiler_flag:'`
17432 (eval echo "\"\$as_me:17432: $lt_compile\"" >&5)
17433 (eval "$lt_compile" 2>conftest.err)
17435 cat conftest.err >&5
17436 echo "$as_me:17436: \$? = $ac_status" >&5
17437 if (exit $ac_status) && test -s "$ac_outfile"; then
17438 # The compiler can only warn and ignore the option if not recognized
17439 # So say no if there are warnings other than the usual output.
17440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17443 lt_prog_compiler_pic_works_GCJ=yes
17449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17453 case $lt_prog_compiler_pic_GCJ in
17455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17458 lt_prog_compiler_pic_GCJ=
17459 lt_prog_compiler_can_build_shared_GCJ=no
17464 # For platforms which do not support PIC, -DPIC is meaningless:
17466 lt_prog_compiler_pic_GCJ=
17469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17474 # Check to make sure the static flag actually works.
17476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 lt_prog_compiler_static_works_GCJ=no
17483 save_LDFLAGS="$LDFLAGS"
17484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17487 # The linker can only warn and ignore the option if not recognized
17488 # So say no if there are warnings
17489 if test -s conftest.err; then
17490 # Append any errors to the config.log.
17491 cat conftest.err 1>&5
17492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17494 if diff conftest.exp conftest.er2 >/dev/null; then
17495 lt_prog_compiler_static_works_GCJ=yes
17498 lt_prog_compiler_static_works_GCJ=yes
17502 LDFLAGS="$save_LDFLAGS"
17505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17511 lt_prog_compiler_static_GCJ=
17515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 lt_cv_prog_compiler_c_o_GCJ=no
17521 $rm -r conftest 2>/dev/null
17525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17527 lt_compiler_flag="-o out/conftest2.$ac_objext"
17528 # Insert the option either (1) after the last *FLAGS variable, or
17529 # (2) before a word containing "conftest.", or (3) at the end.
17530 # Note that $ac_compile itself does not contain backslashes and begins
17531 # with a dollar sign (not a hyphen), so the echo should work correctly.
17532 lt_compile=`echo "$ac_compile" | $SED \
17533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17535 -e 's:$: $lt_compiler_flag:'`
17536 (eval echo "\"\$as_me:17536: $lt_compile\"" >&5)
17537 (eval "$lt_compile" 2>out/conftest.err)
17539 cat out/conftest.err >&5
17540 echo "$as_me:17540: \$? = $ac_status" >&5
17541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17543 # The compiler can only warn and ignore the option if not recognized
17544 # So say no if there are warnings
17545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17548 lt_cv_prog_compiler_c_o_GCJ=yes
17553 # SGI C++ compiler will create directory out/ii_files/ for
17554 # template instantiation
17555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17556 $rm out/* && rmdir out
17562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17566 hard_links="nottested"
17567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17568 # do not overwrite the value of need_locks provided by the user
17569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17575 ln conftest.a conftest.b 2>&5 || hard_links=no
17576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17577 { echo "$as_me:$LINENO: result: $hard_links" >&5
17578 echo "${ECHO_T}$hard_links" >&6; }
17579 if test "$hard_links" = no; then
17580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17592 allow_undefined_flag_GCJ=
17593 enable_shared_with_static_runtimes_GCJ=no
17595 archive_expsym_cmds_GCJ=
17596 old_archive_From_new_cmds_GCJ=
17597 old_archive_from_expsyms_cmds_GCJ=
17598 export_dynamic_flag_spec_GCJ=
17599 whole_archive_flag_spec_GCJ=
17600 thread_safe_flag_spec_GCJ=
17601 hardcode_libdir_flag_spec_GCJ=
17602 hardcode_libdir_flag_spec_ld_GCJ=
17603 hardcode_libdir_separator_GCJ=
17604 hardcode_direct_GCJ=no
17605 hardcode_minus_L_GCJ=no
17606 hardcode_shlibpath_var_GCJ=unsupported
17607 link_all_deplibs_GCJ=unknown
17608 hardcode_automatic_GCJ=no
17610 module_expsym_cmds_GCJ=
17611 always_export_symbols_GCJ=no
17612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17613 # include_expsyms should be a list of space-separated symbols to be *always*
17614 # included in the symbol list
17615 include_expsyms_GCJ=
17616 # exclude_expsyms can be an extended regexp of symbols to exclude
17617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17619 # as well as any symbol that contains `d'.
17620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17622 # platforms (ab)use it in PIC code, but their linkers get confused if
17623 # the symbol is explicitly referenced. Since portable code cannot
17624 # rely on this symbol name, it's probably fine to never include it in
17625 # preloaded symbol tables.
17626 extract_expsyms_cmds=
17627 # Just being paranoid about ensuring that cc_basename is set.
17628 for cc_temp in $compiler""; do
17630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17639 cygwin* | mingw* | pw32*)
17640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17641 # When not using gcc, we currently assume that we are using
17642 # Microsoft Visual C++.
17643 if test "$GCC" != yes; then
17648 # we just hope/assume this is gcc and not c89 (= MSVC++)
17657 if test "$with_gnu_ld" = yes; then
17658 # If archive_cmds runs LD, not CC, wlarc should be empty
17661 # Set some defaults for GNU ld with shared library support. These
17662 # are reset later if shared libraries are not supported. Putting them
17663 # here allows them to be overridden if necessary.
17664 runpath_var=LD_RUN_PATH
17665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17667 # ancient GNU ld didn't support --whole-archive et. al.
17668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17671 whole_archive_flag_spec_GCJ=
17673 supports_anon_versioning=no
17674 case `$LD -v 2>/dev/null` in
17675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17678 *\ 2.11.*) ;; # other 2.11 versions
17679 *) supports_anon_versioning=yes ;;
17682 # See if GNU ld supports shared libraries.
17684 aix3* | aix4* | aix5*)
17685 # On AIX/PPC, the GNU linker is very broken
17686 if test "$host_cpu" != ia64; then
17690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17691 *** to be unable to reliably create shared libraries on AIX.
17692 *** Therefore, libtool is disabling shared libraries support. If you
17693 *** really care for shared libraries, you may want to modify your PATH
17694 *** so that a non-GNU linker is found, and then restart.
17701 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)'
17702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17703 hardcode_minus_L_GCJ=yes
17705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17706 # that the semantics of dynamic libraries on AmigaOS, at least up
17707 # to version 4, is to share data among multiple programs linked
17708 # with the same dynamic library. Since this doesn't match the
17709 # behavior of shared libraries on other platforms, we can't use
17715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17716 allow_undefined_flag_GCJ=unsupported
17717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17718 # support --undefined. This deserves some investigation. FIXME
17719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17725 cygwin* | mingw* | pw32*)
17726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17727 # as there is no search path for DLLs.
17728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17729 allow_undefined_flag_GCJ=unsupported
17730 always_export_symbols_GCJ=no
17731 enable_shared_with_static_runtimes_GCJ=yes
17732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17735 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17736 # If the export-symbols file already is a .def file (1st line
17737 # is EXPORTS), use it as is; otherwise, prepend...
17738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17739 cp $export_symbols $output_objdir/$soname.def;
17741 echo EXPORTS > $output_objdir/$soname.def;
17742 cat $export_symbols >> $output_objdir/$soname.def;
17744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17751 hardcode_direct_GCJ=no
17752 hardcode_shlibpath_var_GCJ=no
17753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17754 export_dynamic_flag_spec_GCJ='${wl}-E'
17755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17756 # Instead, shared libraries are loaded at an image base (0x10000000 by
17757 # default) and relocated if they conflict, which is a slow very memory
17758 # consuming and fragmenting process. To avoid this, we pick a random,
17759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17761 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'
17762 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'
17766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17768 case $cc_basename,$host_cpu in
17769 pgcc*) # Portland Group C compiler
17770 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'
17771 tmp_addflag=' $pic_flag'
17773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17774 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'
17775 tmp_addflag=' $pic_flag -Mnomain' ;;
17776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17777 tmp_addflag=' -i_dynamic' ;;
17778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17779 tmp_addflag=' -i_dynamic -nofor_main' ;;
17780 ifc* | ifort*) # Intel Fortran compiler
17781 tmp_addflag=' -nofor_main' ;;
17783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17785 if test $supports_anon_versioning = yes; then
17786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17788 $echo "local: *; };" >> $output_objdir/$libname.ver~
17789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17812 *** create shared libraries on Solaris systems. Therefore, libtool
17813 *** is disabling shared libraries support. We urge you to upgrade GNU
17814 *** binutils to release 2.9.1 or newer. Another option is to modify
17815 *** your PATH or compiler configuration so that the native linker is
17816 *** used, and then restart.
17819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17828 case `$LD -v 2>&1` in
17829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17834 *** reliably create shared libraries on SCO systems. Therefore, libtool
17835 *** is disabling shared libraries support. We urge you to upgrade GNU
17836 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17837 *** your PATH or compiler configuration so that the native linker is
17838 *** used, and then restart.
17843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17857 hardcode_direct_GCJ=yes
17858 hardcode_shlibpath_var_GCJ=no
17862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17871 if test "$ld_shlibs_GCJ" = no; then
17873 hardcode_libdir_flag_spec_GCJ=
17874 export_dynamic_flag_spec_GCJ=
17875 whole_archive_flag_spec_GCJ=
17878 # PORTME fill in a description of your system's linker (not GNU ld)
17881 allow_undefined_flag_GCJ=unsupported
17882 always_export_symbols_GCJ=yes
17883 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'
17884 # Note: this linker hardcodes the directories in LIBPATH if there
17885 # are no directories specified by -L.
17886 hardcode_minus_L_GCJ=yes
17887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17888 # Neither direct hardcoding nor static linking is supported with a
17890 hardcode_direct_GCJ=unsupported
17895 if test "$host_cpu" = ia64; then
17896 # On IA64, the linker does run time linking by default, so we don't
17897 # have to do anything special.
17898 aix_use_runtimelinking=no
17899 exp_sym_flag='-Bexport'
17902 # If we're using GNU nm, then we don't want the "-C" option.
17903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17905 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'
17907 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'
17909 aix_use_runtimelinking=no
17911 # Test if we are trying to use run time linking or normal
17912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17913 # need to do runtime linking.
17914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17915 for ld_flag in $LDFLAGS; do
17916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17917 aix_use_runtimelinking=yes
17924 exp_sym_flag='-bexport'
17925 no_entry_flag='-bnoentry'
17928 # When large executables or shared objects are built, AIX ld can
17929 # have problems creating the table of contents. If linking a library
17930 # or program results in "error TOC overflow" add -mminimal-toc to
17931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17934 archive_cmds_GCJ=''
17935 hardcode_direct_GCJ=yes
17936 hardcode_libdir_separator_GCJ=':'
17937 link_all_deplibs_GCJ=yes
17939 if test "$GCC" = yes; then
17940 case $host_os in aix4.[012]|aix4.[012].*)
17941 # We only want to do this on AIX 4.2 and lower, the check
17942 # below for broken collect2 doesn't work under 4.3+
17943 collect2name=`${CC} -print-prog-name=collect2`
17944 if test -f "$collect2name" && \
17945 strings "$collect2name" | grep resolve_lib_name >/dev/null
17947 # We have reworked collect2
17948 hardcode_direct_GCJ=yes
17950 # We have old collect2
17951 hardcode_direct_GCJ=unsupported
17952 # It fails to find uninstalled libraries when the uninstalled
17953 # path is not listed in the libpath. Setting hardcode_minus_L
17954 # to unsupported forces relinking
17955 hardcode_minus_L_GCJ=yes
17956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957 hardcode_libdir_separator_GCJ=
17961 shared_flag='-shared'
17962 if test "$aix_use_runtimelinking" = yes; then
17963 shared_flag="$shared_flag "'${wl}-G'
17967 if test "$host_cpu" = ia64; then
17968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17969 # chokes on -Wl,-G. The following line is correct:
17972 if test "$aix_use_runtimelinking" = yes; then
17973 shared_flag='${wl}-G'
17975 shared_flag='${wl}-bM:SRE'
17980 # It seems that -bexpall does not export symbols beginning with
17981 # underscore (_), so it is better to generate a list of symbols to export.
17982 always_export_symbols_GCJ=yes
17983 if test "$aix_use_runtimelinking" = yes; then
17984 # Warning - without using the other runtime loading flags (-brtl),
17985 # -berok will link without error, but may produce a broken library.
17986 allow_undefined_flag_GCJ='-berok'
17987 # Determine the default libpath from the value encoded in an empty executable.
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
18003 rm -f conftest.$ac_objext conftest$ac_exeext
18004 if { (ac_try="$ac_link"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18010 (eval "$ac_link") 2>conftest.er1
18012 grep -v '^ *+' conftest.er1 >conftest.err
18014 cat conftest.err >&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } && {
18017 test -z "$ac_c_werror_flag" ||
18018 test ! -s conftest.err
18019 } && test -s conftest$ac_exeext &&
18020 $as_test_x conftest$ac_exeext; then
18022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18024 # Check for a 64-bit object if we didn't find anything.
18025 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18035 conftest$ac_exeext conftest.$ac_ext
18036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18038 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18039 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"
18041 if test "$host_cpu" = ia64; then
18042 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18043 allow_undefined_flag_GCJ="-z nodefs"
18044 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"
18046 # Determine the default libpath from the value encoded in an empty executable.
18047 cat >conftest.$ac_ext <<_ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18083 # Check for a 64-bit object if we didn't find anything.
18084 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18094 conftest$ac_exeext conftest.$ac_ext
18095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18097 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18098 # Warning - without using the other run time loading flags,
18099 # -berok will link without error, but may produce a broken library.
18100 no_undefined_flag_GCJ=' ${wl}-bernotok'
18101 allow_undefined_flag_GCJ=' ${wl}-berok'
18102 # Exported symbols can be pulled into shared objects from archives
18103 whole_archive_flag_spec_GCJ='$convenience'
18104 archive_cmds_need_lc_GCJ=yes
18105 # This is similar to how AIX traditionally builds its shared libraries.
18106 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'
18112 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)'
18113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18114 hardcode_minus_L_GCJ=yes
18115 # see comment about different semantics on the GNU ld section
18120 export_dynamic_flag_spec_GCJ=-rdynamic
18123 cygwin* | mingw* | pw32*)
18124 # When not using gcc, we currently assume that we are using
18125 # Microsoft Visual C++.
18126 # hardcode_libdir_flag_spec is actually meaningless, as there is
18127 # no search path for DLLs.
18128 hardcode_libdir_flag_spec_GCJ=' '
18129 allow_undefined_flag_GCJ=unsupported
18130 # Tell ltmain to make .lib files, not .a files.
18132 # Tell ltmain to make .dll files, not .so files.
18134 # FIXME: Setting linknames here is a bad hack.
18135 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18136 # The linker will automatically build a .lib file if we build a DLL.
18137 old_archive_From_new_cmds_GCJ='true'
18138 # FIXME: Should let the user specify the lib program.
18139 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18140 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18141 enable_shared_with_static_runtimes_GCJ=yes
18144 darwin* | rhapsody*)
18146 rhapsody* | darwin1.[012])
18147 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18151 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18153 case ${MACOSX_DEPLOYMENT_TARGET} in
18155 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18158 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18164 archive_cmds_need_lc_GCJ=no
18165 hardcode_direct_GCJ=no
18166 hardcode_automatic_GCJ=yes
18167 hardcode_shlibpath_var_GCJ=unsupported
18168 whole_archive_flag_spec_GCJ=''
18169 link_all_deplibs_GCJ=yes
18170 if test "$GCC" = yes ; then
18171 output_verbose_link_cmd='echo'
18172 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18173 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18175 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}'
18176 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}'
18178 case $cc_basename in
18180 output_verbose_link_cmd='echo'
18181 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18182 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18184 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18185 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}'
18195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18197 hardcode_shlibpath_var_GCJ=no
18204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18205 # support. Future versions do this automatically, but an explicit c++rt0.o
18206 # does not break anything, and helps significantly (at the cost of a little
18209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18210 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18211 hardcode_direct_GCJ=yes
18212 hardcode_shlibpath_var_GCJ=no
18215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_direct_GCJ=yes
18219 hardcode_minus_L_GCJ=yes
18220 hardcode_shlibpath_var_GCJ=no
18223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18224 freebsd* | kfreebsd*-gnu | dragonfly*)
18225 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18226 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18227 hardcode_direct_GCJ=yes
18228 hardcode_shlibpath_var_GCJ=no
18232 if test "$GCC" = yes; then
18233 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'
18235 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'
18237 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18238 hardcode_libdir_separator_GCJ=:
18239 hardcode_direct_GCJ=yes
18241 # hardcode_minus_L: Not really in the search PATH,
18242 # but as the default location of the library.
18243 hardcode_minus_L_GCJ=yes
18244 export_dynamic_flag_spec_GCJ='${wl}-E'
18248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18249 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18251 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18253 if test "$with_gnu_ld" = no; then
18254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18255 hardcode_libdir_separator_GCJ=:
18257 hardcode_direct_GCJ=yes
18258 export_dynamic_flag_spec_GCJ='${wl}-E'
18260 # hardcode_minus_L: Not really in the search PATH,
18261 # but as the default location of the library.
18262 hardcode_minus_L_GCJ=yes
18267 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18270 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18273 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18282 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18285 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18288 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18292 if test "$with_gnu_ld" = no; then
18293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18294 hardcode_libdir_separator_GCJ=:
18298 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18299 hardcode_direct_GCJ=no
18300 hardcode_shlibpath_var_GCJ=no
18303 hardcode_direct_GCJ=yes
18304 export_dynamic_flag_spec_GCJ='${wl}-E'
18306 # hardcode_minus_L: Not really in the search PATH,
18307 # but as the default location of the library.
18308 hardcode_minus_L_GCJ=yes
18314 irix5* | irix6* | nonstopux*)
18315 if test "$GCC" = yes; then
18316 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'
18318 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'
18319 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18322 hardcode_libdir_separator_GCJ=:
18323 link_all_deplibs_GCJ=yes
18327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18328 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18330 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18332 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18333 hardcode_direct_GCJ=yes
18334 hardcode_shlibpath_var_GCJ=no
18338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339 hardcode_direct_GCJ=yes
18340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18341 hardcode_libdir_separator_GCJ=:
18342 hardcode_shlibpath_var_GCJ=no
18346 hardcode_direct_GCJ=yes
18347 hardcode_shlibpath_var_GCJ=no
18348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18349 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18350 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18352 export_dynamic_flag_spec_GCJ='${wl}-E'
18355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18356 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18357 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18360 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18369 hardcode_minus_L_GCJ=yes
18370 allow_undefined_flag_GCJ=unsupported
18371 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'
18372 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18376 if test "$GCC" = yes; then
18377 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18378 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'
18380 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18381 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'
18383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18384 hardcode_libdir_separator_GCJ=:
18387 osf4* | osf5*) # as osf3* with the addition of -msym flag
18388 if test "$GCC" = yes; then
18389 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18390 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'
18391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18393 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18394 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'
18395 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~
18396 $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'
18398 # Both c and cxx compiler support -rpath directly
18399 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18401 hardcode_libdir_separator_GCJ=:
18405 no_undefined_flag_GCJ=' -z text'
18406 if test "$GCC" = yes; then
18408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18413 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18418 hardcode_shlibpath_var_GCJ=no
18420 solaris2.[0-5] | solaris2.[0-5].*) ;;
18422 # The compiler driver will combine linker options so we
18423 # cannot just pass the convience library names through
18424 # without $wl, iff we do not link with $LD.
18425 # Luckily, gcc supports the same syntax we need for Sun Studio.
18426 # Supported since Solaris 2.6 (maybe 2.5.1?)
18429 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18431 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18434 link_all_deplibs_GCJ=yes
18438 if test "x$host_vendor" = xsequent; then
18439 # Use $CC to link under sequent, because it throws in some extra .o
18440 # files that make .init and .fini sections work.
18441 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18443 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18446 hardcode_direct_GCJ=yes
18447 hardcode_minus_L_GCJ=yes
18448 hardcode_shlibpath_var_GCJ=no
18452 case $host_vendor in
18454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18455 hardcode_direct_GCJ=yes # is this really true???
18458 ## LD is ld it makes a PLAMLIB
18459 ## CC just makes a GrossModule.
18460 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18461 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18462 hardcode_direct_GCJ=no
18465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18469 runpath_var='LD_RUN_PATH'
18470 hardcode_shlibpath_var_GCJ=no
18474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18475 hardcode_shlibpath_var_GCJ=no
18476 export_dynamic_flag_spec_GCJ='-Bexport'
18480 if test -d /usr/nec; then
18481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_shlibpath_var_GCJ=no
18483 runpath_var=LD_RUN_PATH
18484 hardcode_runpath_var=yes
18489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18490 no_undefined_flag_GCJ='${wl}-z,text'
18491 archive_cmds_need_lc_GCJ=no
18492 hardcode_shlibpath_var_GCJ=no
18493 runpath_var='LD_RUN_PATH'
18495 if test "$GCC" = yes; then
18496 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18497 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18499 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18500 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18504 sysv5* | sco3.2v5* | sco5v6*)
18505 # Note: We can NOT use -z defs as we might desire, because we do not
18506 # link with -lc, and that would cause any symbols used from libc to
18507 # always be unresolved, which means just about no library would
18508 # ever link correctly. If we're not using GNU ld we use -z text
18509 # though, which does catch some bad symbols but isn't as heavy-handed
18511 no_undefined_flag_GCJ='${wl}-z,text'
18512 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18513 archive_cmds_need_lc_GCJ=no
18514 hardcode_shlibpath_var_GCJ=no
18515 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18516 hardcode_libdir_separator_GCJ=':'
18517 link_all_deplibs_GCJ=yes
18518 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18519 runpath_var='LD_RUN_PATH'
18521 if test "$GCC" = yes; then
18522 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18525 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18533 hardcode_shlibpath_var_GCJ=no
18542 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18543 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18544 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18547 # Do we need to explicitly link libc?
18549 case "x$archive_cmds_need_lc_GCJ" in
18551 # Assume -lc should be added
18552 archive_cmds_need_lc_GCJ=yes
18554 if test "$enable_shared" = yes && test "$GCC" = yes; then
18555 case $archive_cmds_GCJ in
18557 # FIXME: we may have to deal with multi-command sequences.
18560 # Test whether the compiler implicitly links with -lc since on some
18561 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18562 # to ld, don't add -lc before -lgcc.
18563 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18564 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } 2>conftest.err; then
18575 libobjs=conftest.$ac_objext
18577 wl=$lt_prog_compiler_wl_GCJ
18578 pic_flag=$lt_prog_compiler_pic_GCJ
18584 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18585 allow_undefined_flag_GCJ=
18586 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18587 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }
18592 archive_cmds_need_lc_GCJ=no
18594 archive_cmds_need_lc_GCJ=yes
18596 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18598 cat conftest.err 1>&5
18601 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18602 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18609 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18610 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18611 library_names_spec=
18612 libname_spec='lib$name'
18616 postuninstall_cmds=
18620 shlibpath_overrides_runpath=unknown
18622 dynamic_linker="$host_os ld.so"
18623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18624 if test "$GCC" = yes; then
18625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18626 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18627 # if the path contains ";" then we assume it to be the separator
18628 # otherwise default to the standard path separator (i.e. ":") - it is
18629 # assumed that no part of a normal pathname contains ";" but that should
18630 # okay in the real world where ";" in dirpaths is itself problematic.
18631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18638 need_lib_prefix=unknown
18639 hardcode_into_libs=no
18641 # when you set need_version to no, make sure it does not cause -set_version
18642 # flags to be left without arguments
18643 need_version=unknown
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18649 shlibpath_var=LIBPATH
18651 # AIX 3 has no versioning support, so we append a major version to the name.
18652 soname_spec='${libname}${release}${shared_ext}$major'
18659 hardcode_into_libs=yes
18660 if test "$host_cpu" = ia64; then
18661 # AIX 5 supports IA64
18662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18663 shlibpath_var=LD_LIBRARY_PATH
18665 # With GCC up to 2.95.x, collect2 would create an import file
18666 # for dependence libraries. The import file would start with
18667 # the line `#! .'. This would cause the generated library to
18668 # depend on `.', always an invalid library. This was fixed in
18669 # development snapshots of GCC prior to 3.0.
18671 aix4 | aix4.[01] | aix4.[01].*)
18672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18674 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18677 can_build_shared=no
18681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18682 # soname into executable. Probably we can add versioning support to
18683 # collect2, so additional links can be useful in future.
18684 if test "$aix_use_runtimelinking" = yes; then
18685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18686 # instead of lib<name>.a to let people know that these are not
18687 # typical AIX shared libraries.
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 # We preserve .a as extension for shared libraries through AIX4.2
18691 # and later when we are not doing run time linking.
18692 library_names_spec='${libname}${release}.a $libname.a'
18693 soname_spec='${libname}${release}${shared_ext}$major'
18695 shlibpath_var=LIBPATH
18700 library_names_spec='$libname.ixlibrary $libname.a'
18701 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18702 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'
18706 library_names_spec='${libname}${shared_ext}'
18707 dynamic_linker="$host_os ld.so"
18708 shlibpath_var=LIBRARY_PATH
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18719 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18720 # the default ld.so.conf also contains /usr/contrib/lib and
18721 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18722 # libtool to hard-code these into programs
18725 cygwin* | mingw* | pw32*)
18726 version_type=windows
18731 case $GCC,$host_os in
18732 yes,cygwin* | yes,mingw* | yes,pw32*)
18733 library_names_spec='$libname.dll.a'
18734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18735 postinstall_cmds='base_file=`basename \${file}`~
18736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18737 dldir=$destdir/`dirname \$dlpath`~
18738 test -d \$dldir || mkdir -p \$dldir~
18739 $install_prog $dir/$dlname \$dldir/$dlname~
18740 chmod a+x \$dldir/$dlname'
18741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18742 dlpath=$dir/\$dldll~
18744 shlibpath_overrides_runpath=yes
18748 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18750 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18753 # MinGW DLLs use traditional 'lib' prefix
18754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18756 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18757 # It is most probably a Windows format PATH printed by
18758 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18759 # path with ; separators, and with drive letters. We can handle the
18760 # drive letters (cygwin fileutils understands them), so leave them,
18761 # especially as we might pass files found there to a mingw objdump,
18762 # which wouldn't understand a cygwinified path. Ahh.
18763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18769 # pw32 DLLs use 'pw' prefix rather than 'lib'
18770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18779 dynamic_linker='Win32 ld.exe'
18780 # FIXME: first we should search . and the directory the executable is in
18784 darwin* | rhapsody*)
18785 dynamic_linker="$host_os dyld"
18786 version_type=darwin
18789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
18790 soname_spec='${libname}${release}${major}$shared_ext'
18791 shlibpath_overrides_runpath=yes
18792 shlibpath_var=DYLD_LIBRARY_PATH
18793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18794 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18795 if test "$GCC" = yes; then
18796 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18798 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18808 soname_spec='${libname}${release}${shared_ext}$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18821 soname_spec='${libname}${release}${shared_ext}$major'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=no
18824 hardcode_into_libs=yes
18825 dynamic_linker='GNU ld.so'
18828 freebsd* | dragonfly*)
18829 # DragonFly does not have aout. When/if they implement a new
18830 # versioning mechanism, adjust this.
18831 if test -x /usr/bin/objformat; then
18832 objformat=`/usr/bin/objformat`
18835 freebsd[123]*) objformat=aout ;;
18836 *) objformat=elf ;;
18839 version_type=freebsd-$objformat
18840 case $version_type in
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18851 shlibpath_var=LD_LIBRARY_PATH
18854 shlibpath_overrides_runpath=yes
18856 freebsd3.[01]* | freebsdelf3.[01]*)
18857 shlibpath_overrides_runpath=yes
18858 hardcode_into_libs=yes
18860 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18861 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18862 shlibpath_overrides_runpath=no
18863 hardcode_into_libs=yes
18865 freebsd*) # from 4.6 on
18866 shlibpath_overrides_runpath=yes
18867 hardcode_into_libs=yes
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18877 soname_spec='${libname}${release}${shared_ext}$major'
18878 shlibpath_var=LD_LIBRARY_PATH
18879 hardcode_into_libs=yes
18882 hpux9* | hpux10* | hpux11*)
18883 # Give a soname corresponding to the major version so that dld.sl refuses to
18884 # link against other versions.
18891 hardcode_into_libs=yes
18892 dynamic_linker="$host_os dld.so"
18893 shlibpath_var=LD_LIBRARY_PATH
18894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896 soname_spec='${libname}${release}${shared_ext}$major'
18897 if test "X$HPUX_IA64_MODE" = X32; then
18898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18906 hardcode_into_libs=yes
18907 dynamic_linker="$host_os dld.sl"
18908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911 soname_spec='${libname}${release}${shared_ext}$major'
18912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18917 dynamic_linker="$host_os dld.sl"
18918 shlibpath_var=SHLIB_PATH
18919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18921 soname_spec='${libname}${release}${shared_ext}$major'
18924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18925 postinstall_cmds='chmod 555 $lib'
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18935 shlibpath_var=LD_LIBRARY_PATH
18936 shlibpath_overrides_runpath=no
18937 hardcode_into_libs=yes
18940 irix5* | irix6* | nonstopux*)
18942 nonstopux*) version_type=nonstopux ;;
18944 if test "$lt_cv_prog_gnu_ld" = yes; then
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18955 irix5* | nonstopux*)
18956 libsuff= shlibsuff=
18959 case $LD in # libtool.m4 will add one of these switches to LD
18960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18961 libsuff= shlibsuff= libmagic=32-bit;;
18962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18963 libsuff=32 shlibsuff=N32 libmagic=N32;;
18964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18966 *) libsuff= shlibsuff= libmagic=never-match;;
18970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18971 shlibpath_overrides_runpath=no
18972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18974 hardcode_into_libs=yes
18977 # No shared lib support for Linux oldld, aout, or coff.
18978 linux*oldld* | linux*aout* | linux*coff*)
18982 # This must be Linux ELF.
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18990 shlibpath_var=LD_LIBRARY_PATH
18991 shlibpath_overrides_runpath=no
18992 # This implies no fast_install, which is unacceptable.
18993 # Some rework will be needed to allow for fast_install
18994 # before this can be enabled.
18995 hardcode_into_libs=yes
18997 # Append ld.so.conf contents to the search path
18998 if test -f /etc/ld.so.conf; then
18999 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19000 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19003 # We used to test for /lib/ld.so.1 and disable shared libraries on
19004 # powerpc, because MkLinux only supported shared libraries with the
19005 # GNU dynamic linker. Since this was broken with cross compilers,
19006 # most powerpc-linux boxes support dynamic linking these days and
19007 # people can always --disable-shared, the test was removed, and we
19008 # assume the GNU/Linux dynamic linker is in use.
19009 dynamic_linker='GNU/Linux ld.so'
19016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19017 soname_spec='${libname}${release}${shared_ext}$major'
19018 shlibpath_var=LD_LIBRARY_PATH
19019 shlibpath_overrides_runpath=no
19020 hardcode_into_libs=yes
19021 dynamic_linker='GNU ld.so'
19028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19031 dynamic_linker='NetBSD (a.out) ld.so'
19033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19034 soname_spec='${libname}${release}${shared_ext}$major'
19035 dynamic_linker='NetBSD ld.elf_so'
19037 shlibpath_var=LD_LIBRARY_PATH
19038 shlibpath_overrides_runpath=yes
19039 hardcode_into_libs=yes
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19045 shlibpath_var=LD_LIBRARY_PATH
19046 shlibpath_overrides_runpath=yes
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054 soname_spec='${libname}${release}${shared_ext}$major'
19055 shlibpath_var=LD_LIBRARY_PATH
19056 shlibpath_overrides_runpath=yes
19061 sys_lib_dlsearch_path_spec="/usr/lib"
19063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19065 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19066 *) need_version=no ;;
19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19070 shlibpath_var=LD_LIBRARY_PATH
19071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073 openbsd2.[89] | openbsd2.[89].*)
19074 shlibpath_overrides_runpath=no
19077 shlibpath_overrides_runpath=yes
19081 shlibpath_overrides_runpath=yes
19086 libname_spec='$name'
19089 library_names_spec='$libname${shared_ext} $libname.a'
19090 dynamic_linker='OS/2 ld.exe'
19091 shlibpath_var=LIBPATH
19094 osf3* | osf4* | osf5*)
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100 shlibpath_var=LD_LIBRARY_PATH
19101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=yes
19113 hardcode_into_libs=yes
19114 # ldd complains unless libraries are executable
19115 postinstall_cmds='chmod +x $lib'
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19122 shlibpath_var=LD_LIBRARY_PATH
19123 shlibpath_overrides_runpath=yes
19124 if test "$with_gnu_ld" = yes; then
19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 shlibpath_var=LD_LIBRARY_PATH
19135 case $host_vendor in
19137 shlibpath_overrides_runpath=no
19139 export_dynamic_flag_spec='${wl}-Blargedynsym'
19140 runpath_var=LD_RUN_PATH
19148 shlibpath_overrides_runpath=no
19149 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19155 if test -d /usr/nec ;then
19157 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19158 soname_spec='$libname${shared_ext}.$major'
19159 shlibpath_var=LD_LIBRARY_PATH
19163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19164 version_type=freebsd-elf
19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19168 soname_spec='${libname}${release}${shared_ext}$major'
19169 shlibpath_var=LD_LIBRARY_PATH
19170 hardcode_into_libs=yes
19171 if test "$with_gnu_ld" = yes; then
19172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19173 shlibpath_overrides_runpath=no
19175 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19176 shlibpath_overrides_runpath=yes
19179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19183 sys_lib_dlsearch_path_spec='/usr/lib'
19188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19189 soname_spec='${libname}${release}${shared_ext}$major'
19190 shlibpath_var=LD_LIBRARY_PATH
19197 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19198 echo "${ECHO_T}$dynamic_linker" >&6; }
19199 test "$dynamic_linker" = no && can_build_shared=no
19201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19202 if test "$GCC" = yes; then
19203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19206 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19208 hardcode_action_GCJ=
19209 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19210 test -n "$runpath_var_GCJ" || \
19211 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19213 # We can hardcode non-existant directories.
19214 if test "$hardcode_direct_GCJ" != no &&
19215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19216 # have to relink, otherwise we might link with an installed library
19217 # when we should be linking with a yet-to-be-installed one
19218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19219 test "$hardcode_minus_L_GCJ" != no; then
19220 # Linking always hardcodes the temporary library directory.
19221 hardcode_action_GCJ=relink
19223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19224 hardcode_action_GCJ=immediate
19227 # We cannot hardcode anything, or else we can only hardcode existing
19229 hardcode_action_GCJ=unsupported
19231 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19232 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19234 if test "$hardcode_action_GCJ" = relink; then
19235 # Fast installation is not supported
19236 enable_fast_install=no
19237 elif test "$shlibpath_overrides_runpath" = yes ||
19238 test "$enable_shared" = no; then
19239 # Fast installation is not necessary
19240 enable_fast_install=needless
19244 # The else clause should only fire when bootstrapping the
19245 # libtool distribution, otherwise you forgot to ship ltmain.sh
19246 # with your package, and you will get complaints that there are
19247 # no rules to generate ltmain.sh.
19248 if test -f "$ltmain"; then
19249 # See if we are running on zsh, and set the options which allow our commands through
19250 # without removal of \ escapes.
19251 if test -n "${ZSH_VERSION+set}" ; then
19252 setopt NO_GLOB_SUBST
19254 # Now quote all the things that may contain metacharacters while being
19255 # careful not to overquote the AC_SUBSTed values. We take copies of the
19256 # variables and quote the copies for generation of the libtool script.
19257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19261 deplibs_check_method reload_flag reload_cmds need_locks \
19262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19263 lt_cv_sys_global_symbol_to_c_name_address \
19264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19265 old_postinstall_cmds old_postuninstall_cmds \
19269 lt_prog_compiler_wl_GCJ \
19270 lt_prog_compiler_pic_GCJ \
19271 lt_prog_compiler_static_GCJ \
19272 lt_prog_compiler_no_builtin_flag_GCJ \
19273 export_dynamic_flag_spec_GCJ \
19274 thread_safe_flag_spec_GCJ \
19275 whole_archive_flag_spec_GCJ \
19276 enable_shared_with_static_runtimes_GCJ \
19277 old_archive_cmds_GCJ \
19278 old_archive_from_new_cmds_GCJ \
19279 predep_objects_GCJ \
19280 postdep_objects_GCJ \
19283 compiler_lib_search_path_GCJ \
19285 archive_expsym_cmds_GCJ \
19286 postinstall_cmds_GCJ \
19287 postuninstall_cmds_GCJ \
19288 old_archive_from_expsyms_cmds_GCJ \
19289 allow_undefined_flag_GCJ \
19290 no_undefined_flag_GCJ \
19291 export_symbols_cmds_GCJ \
19292 hardcode_libdir_flag_spec_GCJ \
19293 hardcode_libdir_flag_spec_ld_GCJ \
19294 hardcode_libdir_separator_GCJ \
19295 hardcode_automatic_GCJ \
19297 module_expsym_cmds_GCJ \
19298 lt_cv_prog_compiler_c_o_GCJ \
19299 exclude_expsyms_GCJ \
19300 include_expsyms_GCJ; do
19303 old_archive_cmds_GCJ | \
19304 old_archive_from_new_cmds_GCJ | \
19305 archive_cmds_GCJ | \
19306 archive_expsym_cmds_GCJ | \
19307 module_cmds_GCJ | \
19308 module_expsym_cmds_GCJ | \
19309 old_archive_from_expsyms_cmds_GCJ | \
19310 export_symbols_cmds_GCJ | \
19311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19312 postinstall_cmds | postuninstall_cmds | \
19313 old_postinstall_cmds | old_postuninstall_cmds | \
19314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19315 # Double-quote double-evaled strings.
19316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19325 *'\$0 --fallback-echo"')
19326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19332 cat <<__EOF__ >> "$cfgfile"
19333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19337 # Shell to use when invoking shell scripts.
19340 # Whether or not to build shared libraries.
19341 build_libtool_libs=$enable_shared
19343 # Whether or not to build static libraries.
19344 build_old_libs=$enable_static
19346 # Whether or not to add -lc for building shared libraries.
19347 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19349 # Whether or not to disallow shared libs when runtime libs are static
19350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19352 # Whether or not to optimize for fast installation.
19353 fast_install=$enable_fast_install
19356 host_alias=$host_alias
19360 # The build system.
19361 build_alias=$build_alias
19365 # An echo program that does not interpret backslashes.
19370 AR_FLAGS=$lt_AR_FLAGS
19375 # LTCC compiler flags.
19376 LTCFLAGS=$lt_LTCFLAGS
19378 # A language-specific compiler.
19379 CC=$lt_compiler_GCJ
19381 # Is the compiler the GNU C compiler?
19387 # The linker used to build libraries.
19390 # Whether we need hard or soft links.
19393 # A BSD-compatible nm program.
19396 # A symbol stripping program
19399 # Used to examine libraries when file_magic_cmd begins "file"
19400 MAGIC_CMD=$MAGIC_CMD
19402 # Used on cygwin: DLL creation program.
19405 # Used on cygwin: object dumper.
19408 # Used on cygwin: assembler.
19411 # The name of the directory that contains temporary libtool files.
19414 # How to create reloadable object files.
19415 reload_flag=$lt_reload_flag
19416 reload_cmds=$lt_reload_cmds
19418 # How to pass a linker flag through the compiler.
19419 wl=$lt_lt_prog_compiler_wl_GCJ
19421 # Object file suffix (normally "o").
19422 objext="$ac_objext"
19424 # Old archive suffix (normally "a").
19427 # Shared library suffix (normally ".so").
19428 shrext_cmds='$shrext_cmds'
19430 # Executable file suffix (normally "").
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19437 # What is the maximum length of a command?
19438 max_cmd_len=$lt_cv_sys_max_cmd_len
19440 # Does compiler simultaneously support -c and -o options?
19441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19443 # Must we lock files when doing compilation?
19444 need_locks=$lt_need_locks
19446 # Do we need the lib prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19452 # Whether dlopen is supported.
19453 dlopen_support=$enable_dlopen
19455 # Whether dlopen of programs is supported.
19456 dlopen_self=$enable_dlopen_self
19458 # Whether dlopen of statically linked programs is supported.
19459 dlopen_self_static=$enable_dlopen_self_static
19461 # Compiler flag to prevent dynamic linking.
19462 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19464 # Compiler flag to turn off builtin functions.
19465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19473 # Compiler flag to generate thread-safe objects.
19474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19476 # Library versioning type.
19477 version_type=$version_type
19479 # Format of library name prefix.
19480 libname_spec=$lt_libname_spec
19482 # List of archive names. First name is the real one, the rest are links.
19483 # The last name is the one that the linker finds with -lNAME.
19484 library_names_spec=$lt_library_names_spec
19486 # The coded name of the library, if different from the real name.
19487 soname_spec=$lt_soname_spec
19489 # Commands used to build and install an old-style archive.
19491 old_archive_cmds=$lt_old_archive_cmds_GCJ
19492 old_postinstall_cmds=$lt_old_postinstall_cmds
19493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19495 # Create an old-style archive from a shared archive.
19496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19498 # Create a temporary old-style archive to link instead of a shared archive.
19499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19501 # Commands used to build and install a shared archive.
19502 archive_cmds=$lt_archive_cmds_GCJ
19503 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19504 postinstall_cmds=$lt_postinstall_cmds
19505 postuninstall_cmds=$lt_postuninstall_cmds
19507 # Commands used to build a loadable module (assumed same as above if empty)
19508 module_cmds=$lt_module_cmds_GCJ
19509 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19511 # Commands to strip libraries.
19512 old_striplib=$lt_old_striplib
19513 striplib=$lt_striplib
19515 # Dependencies to place before the objects being linked to create a
19517 predep_objects=$lt_predep_objects_GCJ
19519 # Dependencies to place after the objects being linked to create a
19521 postdep_objects=$lt_postdep_objects_GCJ
19523 # Dependencies to place before the objects being linked to create a
19525 predeps=$lt_predeps_GCJ
19527 # Dependencies to place after the objects being linked to create a
19529 postdeps=$lt_postdeps_GCJ
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19535 # Method to check whether dependent libraries are shared objects.
19536 deplibs_check_method=$lt_deplibs_check_method
19538 # Command to use when deplibs_check_method == file_magic.
19539 file_magic_cmd=$lt_file_magic_cmd
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19544 # Flag that forces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_GCJ
19547 # Commands used to finish a libtool library installation in a directory.
19548 finish_cmds=$lt_finish_cmds
19550 # Same as above, but a single script fragment to be evaled but not shown.
19551 finish_eval=$lt_finish_eval
19553 # Take the output of nm and produce a listing of raw symbols and C names.
19554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19556 # Transform the output of nm in a proper C declaration
19557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19559 # Transform the output of nm in a C name address pair
19560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19562 # This is the shared library runtime path variable.
19563 runpath_var=$runpath_var
19565 # This is the shared library path variable.
19566 shlibpath_var=$shlibpath_var
19568 # Is shlibpath searched before the hard-coded library search path?
19569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19571 # How to hardcode a shared library path into an executable.
19572 hardcode_action=$hardcode_action_GCJ
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_into_libs=$hardcode_into_libs
19577 # Flag to hardcode \$libdir into a binary during linking.
19578 # This must work even if \$libdir does not exist.
19579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19581 # If ld is used when linking, flag to hardcode \$libdir into
19582 # a binary during linking. This must work even if \$libdir does
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19586 # Whether we need a single -rpath flag with a separated argument.
19587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19590 # resulting binary.
19591 hardcode_direct=$hardcode_direct_GCJ
19593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_minus_L=$hardcode_minus_L_GCJ
19597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19598 # the resulting binary.
19599 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19601 # Set to yes if building a shared library automatically hardcodes DIR into the library
19602 # and all subsequent libraries and executables linked against it.
19603 hardcode_automatic=$hardcode_automatic_GCJ
19605 # Variables whose values should be saved in libtool wrapper scripts and
19606 # restored at relink time.
19607 variables_saved_for_relink="$variables_saved_for_relink"
19609 # Whether libtool must link a program against all its dependency libraries.
19610 link_all_deplibs=$link_all_deplibs_GCJ
19612 # Compile-time system search path for libraries
19613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19615 # Run-time system search path for libraries
19616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19618 # Fix the shell variable \$srcfile for the compiler.
19619 fix_srcfile_path="$fix_srcfile_path_GCJ"
19621 # Set to yes if exported symbols are required.
19622 always_export_symbols=$always_export_symbols_GCJ
19624 # The commands to list exported symbols.
19625 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19627 # The commands to extract the exported symbol list from a shared archive.
19628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19630 # Symbols that should not be listed in the preloaded symbols.
19631 exclude_expsyms=$lt_exclude_expsyms_GCJ
19633 # Symbols that must always be exported.
19634 include_expsyms=$lt_include_expsyms_GCJ
19636 # ### END LIBTOOL TAG CONFIG: $tagname
19642 # If there is no Makefile yet, we rely on a make rule to execute
19643 # `config.status --recheck' to rerun these tests and create the
19644 # libtool script then.
19645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19646 if test -f "$ltmain_in"; then
19647 test -f Makefile && make "$ltmain"
19653 ac_cpp='$CPP $CPPFLAGS'
19654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668 # Source file extension for RC test sources.
19671 # Object file extension for compiled RC test sources.
19675 # Code to be used in simple compile tests
19676 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19678 # Code to be used in simple link tests
19679 lt_simple_link_test_code="$lt_simple_compile_test_code"
19681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19683 # If no C compiler was specified, use CC.
19686 # If no C compiler flags were specified, use CFLAGS.
19687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19689 # Allow CC to be a program name with arguments.
19693 # save warnings/boilerplate of simple test code
19694 ac_outfile=conftest.$ac_objext
19695 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19697 _lt_compiler_boilerplate=`cat conftest.err`
19700 ac_outfile=conftest.$ac_objext
19701 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19703 _lt_linker_boilerplate=`cat conftest.err`
19707 # Allow CC to be a program name with arguments.
19712 for cc_temp in $compiler""; do
19714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19722 lt_cv_prog_compiler_c_o_RC=yes
19724 # The else clause should only fire when bootstrapping the
19725 # libtool distribution, otherwise you forgot to ship ltmain.sh
19726 # with your package, and you will get complaints that there are
19727 # no rules to generate ltmain.sh.
19728 if test -f "$ltmain"; then
19729 # See if we are running on zsh, and set the options which allow our commands through
19730 # without removal of \ escapes.
19731 if test -n "${ZSH_VERSION+set}" ; then
19732 setopt NO_GLOB_SUBST
19734 # Now quote all the things that may contain metacharacters while being
19735 # careful not to overquote the AC_SUBSTed values. We take copies of the
19736 # variables and quote the copies for generation of the libtool script.
19737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19741 deplibs_check_method reload_flag reload_cmds need_locks \
19742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19743 lt_cv_sys_global_symbol_to_c_name_address \
19744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19745 old_postinstall_cmds old_postuninstall_cmds \
19749 lt_prog_compiler_wl_RC \
19750 lt_prog_compiler_pic_RC \
19751 lt_prog_compiler_static_RC \
19752 lt_prog_compiler_no_builtin_flag_RC \
19753 export_dynamic_flag_spec_RC \
19754 thread_safe_flag_spec_RC \
19755 whole_archive_flag_spec_RC \
19756 enable_shared_with_static_runtimes_RC \
19757 old_archive_cmds_RC \
19758 old_archive_from_new_cmds_RC \
19759 predep_objects_RC \
19760 postdep_objects_RC \
19763 compiler_lib_search_path_RC \
19765 archive_expsym_cmds_RC \
19766 postinstall_cmds_RC \
19767 postuninstall_cmds_RC \
19768 old_archive_from_expsyms_cmds_RC \
19769 allow_undefined_flag_RC \
19770 no_undefined_flag_RC \
19771 export_symbols_cmds_RC \
19772 hardcode_libdir_flag_spec_RC \
19773 hardcode_libdir_flag_spec_ld_RC \
19774 hardcode_libdir_separator_RC \
19775 hardcode_automatic_RC \
19777 module_expsym_cmds_RC \
19778 lt_cv_prog_compiler_c_o_RC \
19779 exclude_expsyms_RC \
19780 include_expsyms_RC; do
19783 old_archive_cmds_RC | \
19784 old_archive_from_new_cmds_RC | \
19785 archive_cmds_RC | \
19786 archive_expsym_cmds_RC | \
19788 module_expsym_cmds_RC | \
19789 old_archive_from_expsyms_cmds_RC | \
19790 export_symbols_cmds_RC | \
19791 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19792 postinstall_cmds | postuninstall_cmds | \
19793 old_postinstall_cmds | old_postuninstall_cmds | \
19794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19795 # Double-quote double-evaled strings.
19796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19805 *'\$0 --fallback-echo"')
19806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19812 cat <<__EOF__ >> "$cfgfile"
19813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19817 # Shell to use when invoking shell scripts.
19820 # Whether or not to build shared libraries.
19821 build_libtool_libs=$enable_shared
19823 # Whether or not to build static libraries.
19824 build_old_libs=$enable_static
19826 # Whether or not to add -lc for building shared libraries.
19827 build_libtool_need_lc=$archive_cmds_need_lc_RC
19829 # Whether or not to disallow shared libs when runtime libs are static
19830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19832 # Whether or not to optimize for fast installation.
19833 fast_install=$enable_fast_install
19836 host_alias=$host_alias
19840 # The build system.
19841 build_alias=$build_alias
19845 # An echo program that does not interpret backslashes.
19850 AR_FLAGS=$lt_AR_FLAGS
19855 # LTCC compiler flags.
19856 LTCFLAGS=$lt_LTCFLAGS
19858 # A language-specific compiler.
19861 # Is the compiler the GNU C compiler?
19867 # The linker used to build libraries.
19870 # Whether we need hard or soft links.
19873 # A BSD-compatible nm program.
19876 # A symbol stripping program
19879 # Used to examine libraries when file_magic_cmd begins "file"
19880 MAGIC_CMD=$MAGIC_CMD
19882 # Used on cygwin: DLL creation program.
19885 # Used on cygwin: object dumper.
19888 # Used on cygwin: assembler.
19891 # The name of the directory that contains temporary libtool files.
19894 # How to create reloadable object files.
19895 reload_flag=$lt_reload_flag
19896 reload_cmds=$lt_reload_cmds
19898 # How to pass a linker flag through the compiler.
19899 wl=$lt_lt_prog_compiler_wl_RC
19901 # Object file suffix (normally "o").
19902 objext="$ac_objext"
19904 # Old archive suffix (normally "a").
19907 # Shared library suffix (normally ".so").
19908 shrext_cmds='$shrext_cmds'
19910 # Executable file suffix (normally "").
19913 # Additional compiler flags for building library objects.
19914 pic_flag=$lt_lt_prog_compiler_pic_RC
19917 # What is the maximum length of a command?
19918 max_cmd_len=$lt_cv_sys_max_cmd_len
19920 # Does compiler simultaneously support -c and -o options?
19921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19923 # Must we lock files when doing compilation?
19924 need_locks=$lt_need_locks
19926 # Do we need the lib prefix for modules?
19927 need_lib_prefix=$need_lib_prefix
19929 # Do we need a version for libraries?
19930 need_version=$need_version
19932 # Whether dlopen is supported.
19933 dlopen_support=$enable_dlopen
19935 # Whether dlopen of programs is supported.
19936 dlopen_self=$enable_dlopen_self
19938 # Whether dlopen of statically linked programs is supported.
19939 dlopen_self_static=$enable_dlopen_self_static
19941 # Compiler flag to prevent dynamic linking.
19942 link_static_flag=$lt_lt_prog_compiler_static_RC
19944 # Compiler flag to turn off builtin functions.
19945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19947 # Compiler flag to allow reflexive dlopens.
19948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19950 # Compiler flag to generate shared objects directly from archives.
19951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19953 # Compiler flag to generate thread-safe objects.
19954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19956 # Library versioning type.
19957 version_type=$version_type
19959 # Format of library name prefix.
19960 libname_spec=$lt_libname_spec
19962 # List of archive names. First name is the real one, the rest are links.
19963 # The last name is the one that the linker finds with -lNAME.
19964 library_names_spec=$lt_library_names_spec
19966 # The coded name of the library, if different from the real name.
19967 soname_spec=$lt_soname_spec
19969 # Commands used to build and install an old-style archive.
19971 old_archive_cmds=$lt_old_archive_cmds_RC
19972 old_postinstall_cmds=$lt_old_postinstall_cmds
19973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19975 # Create an old-style archive from a shared archive.
19976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19978 # Create a temporary old-style archive to link instead of a shared archive.
19979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19981 # Commands used to build and install a shared archive.
19982 archive_cmds=$lt_archive_cmds_RC
19983 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19984 postinstall_cmds=$lt_postinstall_cmds
19985 postuninstall_cmds=$lt_postuninstall_cmds
19987 # Commands used to build a loadable module (assumed same as above if empty)
19988 module_cmds=$lt_module_cmds_RC
19989 module_expsym_cmds=$lt_module_expsym_cmds_RC
19991 # Commands to strip libraries.
19992 old_striplib=$lt_old_striplib
19993 striplib=$lt_striplib
19995 # Dependencies to place before the objects being linked to create a
19997 predep_objects=$lt_predep_objects_RC
19999 # Dependencies to place after the objects being linked to create a
20001 postdep_objects=$lt_postdep_objects_RC
20003 # Dependencies to place before the objects being linked to create a
20005 predeps=$lt_predeps_RC
20007 # Dependencies to place after the objects being linked to create a
20009 postdeps=$lt_postdeps_RC
20011 # The library search path used internally by the compiler when linking
20012 # a shared library.
20013 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20015 # Method to check whether dependent libraries are shared objects.
20016 deplibs_check_method=$lt_deplibs_check_method
20018 # Command to use when deplibs_check_method == file_magic.
20019 file_magic_cmd=$lt_file_magic_cmd
20021 # Flag that allows shared libraries with undefined symbols to be built.
20022 allow_undefined_flag=$lt_allow_undefined_flag_RC
20024 # Flag that forces no undefined symbols.
20025 no_undefined_flag=$lt_no_undefined_flag_RC
20027 # Commands used to finish a libtool library installation in a directory.
20028 finish_cmds=$lt_finish_cmds
20030 # Same as above, but a single script fragment to be evaled but not shown.
20031 finish_eval=$lt_finish_eval
20033 # Take the output of nm and produce a listing of raw symbols and C names.
20034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20036 # Transform the output of nm in a proper C declaration
20037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20039 # Transform the output of nm in a C name address pair
20040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20042 # This is the shared library runtime path variable.
20043 runpath_var=$runpath_var
20045 # This is the shared library path variable.
20046 shlibpath_var=$shlibpath_var
20048 # Is shlibpath searched before the hard-coded library search path?
20049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20051 # How to hardcode a shared library path into an executable.
20052 hardcode_action=$hardcode_action_RC
20054 # Whether we should hardcode library paths into libraries.
20055 hardcode_into_libs=$hardcode_into_libs
20057 # Flag to hardcode \$libdir into a binary during linking.
20058 # This must work even if \$libdir does not exist.
20059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20061 # If ld is used when linking, flag to hardcode \$libdir into
20062 # a binary during linking. This must work even if \$libdir does
20064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20066 # Whether we need a single -rpath flag with a separated argument.
20067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20070 # resulting binary.
20071 hardcode_direct=$hardcode_direct_RC
20073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20074 # resulting binary.
20075 hardcode_minus_L=$hardcode_minus_L_RC
20077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20078 # the resulting binary.
20079 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20081 # Set to yes if building a shared library automatically hardcodes DIR into the library
20082 # and all subsequent libraries and executables linked against it.
20083 hardcode_automatic=$hardcode_automatic_RC
20085 # Variables whose values should be saved in libtool wrapper scripts and
20086 # restored at relink time.
20087 variables_saved_for_relink="$variables_saved_for_relink"
20089 # Whether libtool must link a program against all its dependency libraries.
20090 link_all_deplibs=$link_all_deplibs_RC
20092 # Compile-time system search path for libraries
20093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20095 # Run-time system search path for libraries
20096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20098 # Fix the shell variable \$srcfile for the compiler.
20099 fix_srcfile_path="$fix_srcfile_path_RC"
20101 # Set to yes if exported symbols are required.
20102 always_export_symbols=$always_export_symbols_RC
20104 # The commands to list exported symbols.
20105 export_symbols_cmds=$lt_export_symbols_cmds_RC
20107 # The commands to extract the exported symbol list from a shared archive.
20108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20110 # Symbols that should not be listed in the preloaded symbols.
20111 exclude_expsyms=$lt_exclude_expsyms_RC
20113 # Symbols that must always be exported.
20114 include_expsyms=$lt_include_expsyms_RC
20116 # ### END LIBTOOL TAG CONFIG: $tagname
20122 # If there is no Makefile yet, we rely on a make rule to execute
20123 # `config.status --recheck' to rerun these tests and create the
20124 # libtool script then.
20125 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20126 if test -f "$ltmain_in"; then
20127 test -f Makefile && make "$ltmain"
20133 ac_cpp='$CPP $CPPFLAGS'
20134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20143 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20144 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20145 { (exit 1); exit 1; }; }
20149 # Append the new tag name to the list of available tags.
20150 if test -n "$tagname" ; then
20151 available_tags="$available_tags $tagname"
20157 # Now substitute the updated list of available tags.
20158 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20159 mv "${ofile}T" "$ofile"
20163 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20164 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20165 { (exit 1); exit 1; }; }
20171 # This can be used to rebuild libtool when needed
20172 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20174 # Always use our own libtool.
20175 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20177 # Prevent multiple expansion
20199 if test "$enable_shared" = "yes"; then
20200 ENABLE_SHARED_TRUE=
20201 ENABLE_SHARED_FALSE='#'
20203 ENABLE_SHARED_TRUE='#'
20204 ENABLE_SHARED_FALSE=
20208 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
20209 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
20210 if test "${rk_cv_version_script+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 rk_cv_version_script=no
20216 cat > conftest.map <<EOF
20221 global: gss_init_creds;
20224 cat > conftest.c <<EOF
20225 int gss_init_creds(int foo) { return 0; }
20228 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
20229 -o conftest.so conftest.c
20230 -Wl,--version-script,conftest.map'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; };
20237 rk_cv_version_script=yes
20242 { echo "$as_me:$LINENO: result: $rk_cv_version_script" >&5
20243 echo "${ECHO_T}$rk_cv_version_script" >&6; }
20245 if test $rk_cv_version_script = yes ; then
20247 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script,"
20250 LDFLAGS_VERSION_SCRIPT=
20254 if test $doversioning = yes; then
20255 versionscript_TRUE=
20256 versionscript_FALSE='#'
20258 versionscript_TRUE='#'
20259 versionscript_FALSE=
20268 # Check whether --with-openldap was given.
20269 if test "${with_openldap+set}" = set; then
20270 withval=$with_openldap;
20274 # Check whether --with-openldap-lib was given.
20275 if test "${with_openldap_lib+set}" = set; then
20276 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
20277 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
20278 echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
20279 { (exit 1); exit 1; }; }
20280 elif test "X$with_openldap" = "X"; then
20286 # Check whether --with-openldap-include was given.
20287 if test "${with_openldap_include+set}" = set; then
20288 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then
20289 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
20290 echo "$as_me: error: No argument for --with-openldap-include" >&2;}
20291 { (exit 1); exit 1; }; }
20292 elif test "X$with_openldap" = "X"; then
20298 # Check whether --with-openldap-config was given.
20299 if test "${with_openldap_config+set}" = set; then
20300 withval=$with_openldap_config;
20306 { echo "$as_me:$LINENO: checking for openldap" >&5
20307 echo $ECHO_N "checking for openldap... $ECHO_C" >&6; }
20309 case "$with_openldap" in
20312 *) d="$with_openldap" ;;
20318 if test "$with_openldap_include" = ""; then
20319 if test -d "$i/include/openldap"; then
20320 header_dirs="$header_dirs $i/include/openldap"
20322 if test -d "$i/include"; then
20323 header_dirs="$header_dirs $i/include"
20326 if test "$with_openldap_lib" = ""; then
20327 if test -d "$i/lib$abilibdirext"; then
20328 lib_dirs="$lib_dirs $i/lib$abilibdirext"
20333 if test "$with_openldap_include"; then
20334 header_dirs="$with_openldap_include $header_dirs"
20336 if test "$with_openldap_lib"; then
20337 lib_dirs="$with_openldap_lib $lib_dirs"
20340 if test "$with_openldap_config" = ""; then
20341 with_openldap_config=''
20347 case "$with_openldap_config" in
20349 if test -f $with_openldap/bin/ ; then
20350 with_openldap_config=$with_openldap/bin/
20355 case "$with_openldap_config" in
20359 openldap_cflags="`$with_openldap_config --cflags 2>&1`"
20360 openldap_libs="`$with_openldap_config --libs 2>&1`"
20365 if test "$with_openldap" != no; then
20366 save_CFLAGS="$CFLAGS"
20368 if test "$openldap_cflags" -a "$openldap_libs"; then
20369 CFLAGS="$openldap_cflags $save_CFLAGS"
20370 LIBS="$openldap_libs $save_LIBS"
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20406 INCLUDE_openldap="$openldap_cflags"
20407 LIB_openldap="$openldap_libs"
20408 { echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
20409 echo "${ECHO_T}from $with_openldap_config" >&6; }
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20419 conftest$ac_exeext conftest.$ac_ext
20421 if test "$found" = no; then
20423 for i in $header_dirs; do
20424 CFLAGS="-I$i $save_CFLAGS"
20425 cat >conftest.$ac_ext <<_ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20441 rm -f conftest.$ac_objext
20442 if { (ac_try="$ac_compile"
20443 case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_compile") 2>conftest.er1
20450 grep -v '^ *+' conftest.er1 >conftest.err
20452 cat conftest.err >&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && {
20455 test -z "$ac_c_werror_flag" ||
20456 test ! -s conftest.err
20457 } && test -s conftest.$ac_objext; then
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20468 for i in $lib_dirs; do
20469 LIBS="-L$i -lldap -llber $save_LIBS"
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_link") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } && {
20500 test -z "$ac_c_werror_flag" ||
20501 test ! -s conftest.err
20502 } && test -s conftest$ac_exeext &&
20503 $as_test_x conftest$ac_exeext; then
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20513 conftest$ac_exeext conftest.$ac_ext
20515 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20516 INCLUDE_openldap="-I$ires"
20517 LIB_openldap="-L$lres -lldap -llber "
20519 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20520 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
20523 CFLAGS="$save_CFLAGS"
20527 if test "$found" = yes; then
20529 cat >>confdefs.h <<_ACEOF
20538 { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20546 # Check whether --enable-hdb-openldap-module was given.
20547 if test "${enable_hdb_openldap_module+set}" = set; then
20548 enableval=$enable_hdb_openldap_module;
20551 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
20553 cat >>confdefs.h <<\_ACEOF
20554 #define OPENLDAP_MODULE 1
20558 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then
20559 OPENLDAP_MODULE_TRUE=
20560 OPENLDAP_MODULE_FALSE='#'
20562 OPENLDAP_MODULE_TRUE='#'
20563 OPENLDAP_MODULE_FALSE=
20567 # Check whether --enable-pk-init was given.
20568 if test "${enable_pk_init+set}" = set; then
20569 enableval=$enable_pk_init;
20572 if test "$enable_pk_init" != no ;then
20574 cat >>confdefs.h <<\_ACEOF
20579 if test "$enable_pk_init" != no; then
20590 # Check whether --with-hdbdir was given.
20591 if test "${with_hdbdir+set}" = set; then
20592 withval=$with_hdbdir;
20594 with_hdbdir=/var/heimdal
20597 DIR_hdbdir="$with_hdbdir"
20622 do_roken_rename_TRUE=
20623 do_roken_rename_FALSE='#'
20625 do_roken_rename_TRUE='#'
20626 do_roken_rename_FALSE=
20631 cat >>confdefs.h <<\_ACEOF
20639 # Check whether --with-openssl was given.
20640 if test "${with_openssl+set}" = set; then
20641 withval=$with_openssl;
20646 # Check whether --with-openssl-lib was given.
20647 if test "${with_openssl_lib+set}" = set; then
20648 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
20649 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
20650 echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
20651 { (exit 1); exit 1; }; }
20652 elif test "X$with_openssl" = "X"; then
20659 # Check whether --with-openssl-include was given.
20660 if test "${with_openssl_include+set}" = set; then
20661 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then
20662 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
20663 echo "$as_me: error: No argument for --with-openssl-include" >&2;}
20664 { (exit 1); exit 1; }; }
20665 elif test "X$with_openssl" = "X"; then
20671 case "$with_openssl" in
20675 *) if test "$with_openssl_include" = ""; then
20676 with_openssl_include="$with_openssl/include"
20678 if test "$with_openssl_lib" = ""; then
20679 with_openssl_lib="$with_openssl/lib$abilibdirext"
20687 { echo "$as_me:$LINENO: checking for crypto library" >&5
20688 echo $ECHO_N "checking for crypto library... $ECHO_C" >&6; }
20692 if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
20693 save_CPPFLAGS="$CPPFLAGS"
20697 for i in $LIB_krb4; do
20699 -L*) cdirs="$cdirs $i";;
20700 -l*) clibs="$clibs $i";;
20705 for i in $INCLUDE_krb4; do
20706 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
20707 for j in $cdirs; do
20708 for k in $clibs; do
20709 LIBS="$j $k $save_LIBS"
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20717 #undef KRB5 /* makes md4.h et al unhappy */
20718 #ifdef HAVE_OPENSSL
20719 #ifdef HAVE_SYS_TYPES_H
20720 #include <sys/types.h>
20722 #include <openssl/evp.h>
20723 #include <openssl/md4.h>
20724 #include <openssl/md5.h>
20725 #include <openssl/sha.h>
20726 #include <openssl/des.h>
20727 #include <openssl/rc4.h>
20728 #include <openssl/aes.h>
20729 #include <openssl/engine.h>
20730 #include <openssl/ui.h>
20731 #include <openssl/rand.h>
20732 #include <openssl/hmac.h>
20733 #include <openssl/pkcs12.h>
20735 #include <hcrypto/evp.h>
20736 #include <hcrypto/md4.h>
20737 #include <hcrypto/md5.h>
20738 #include <hcrypto/sha.h>
20739 #include <hcrypto/des.h>
20740 #include <hcrypto/rc4.h>
20741 #include <hcrypto/aes.h>
20742 #include <hcrypto/engine.h>
20743 #include <hcrypto/hmac.h>
20744 #include <hcrypto/pkcs12.h>
20751 void *schedule = 0;
20760 SHA256_Init(&sha256);
20761 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20762 #ifdef HAVE_OPENSSL
20764 UI_UTIL_read_pw_string(0,0,0,0);
20767 OpenSSL_add_all_algorithms();
20768 AES_encrypt(0,0,0);
20769 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
20775 rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext &&
20792 $as_test_x conftest$ac_exeext; then
20793 openssl=yes ires="$i" lres="$j $k"; break 3
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20805 CFLAGS="$i $save_CFLAGS"
20806 for j in $cdirs; do
20807 for k in $clibs; do
20808 LIBS="$j $k $save_LIBS"
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20816 #undef KRB5 /* makes md4.h et al unhappy */
20817 #ifdef HAVE_OPENSSL
20818 #ifdef HAVE_SYS_TYPES_H
20819 #include <sys/types.h>
20821 #include <openssl/evp.h>
20822 #include <openssl/md4.h>
20823 #include <openssl/md5.h>
20824 #include <openssl/sha.h>
20825 #include <openssl/des.h>
20826 #include <openssl/rc4.h>
20827 #include <openssl/aes.h>
20828 #include <openssl/engine.h>
20829 #include <openssl/ui.h>
20830 #include <openssl/rand.h>
20831 #include <openssl/hmac.h>
20832 #include <openssl/pkcs12.h>
20834 #include <hcrypto/evp.h>
20835 #include <hcrypto/md4.h>
20836 #include <hcrypto/md5.h>
20837 #include <hcrypto/sha.h>
20838 #include <hcrypto/des.h>
20839 #include <hcrypto/rc4.h>
20840 #include <hcrypto/aes.h>
20841 #include <hcrypto/engine.h>
20842 #include <hcrypto/hmac.h>
20843 #include <hcrypto/pkcs12.h>
20850 void *schedule = 0;
20859 SHA256_Init(&sha256);
20860 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20861 #ifdef HAVE_OPENSSL
20863 UI_UTIL_read_pw_string(0,0,0,0);
20866 OpenSSL_add_all_algorithms();
20867 AES_encrypt(0,0,0);
20868 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
20874 rm -f conftest.$ac_objext conftest$ac_exeext
20875 if { (ac_try="$ac_link"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_link") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest$ac_exeext &&
20891 $as_test_x conftest$ac_exeext; then
20892 openssl=no ires="$i" lres="$j $k"; break 3
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20901 conftest$ac_exeext conftest.$ac_ext
20906 CFLAGS="$save_CFLAGS"
20908 if test "$ires" -a "$lres"; then
20909 INCLUDE_hcrypto="$ires"
20910 LIB_hcrypto="$lres"
20912 { echo "$as_me:$LINENO: result: same as krb4" >&5
20913 echo "${ECHO_T}same as krb4" >&6; }
20914 LIB_hcrypto_a='$(LIB_hcrypto)'
20915 LIB_hcrypto_so='$(LIB_hcrypto)'
20916 LIB_hcrypto_appl='$(LIB_hcrypto)'
20920 if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
20921 save_CFLAGS="$CFLAGS"
20925 if test "$with_openssl_include" != ""; then
20926 INCLUDE_hcrypto="-I${with_openssl_include}"
20928 if test "$with_openssl_lib" != ""; then
20929 LIB_hcrypto="-L${with_openssl_lib}"
20931 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}"
20932 saved_LIB_hcrypto="$LIB_hcrypto"
20933 for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do
20934 LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres"
20935 LIB_hcrypto_a="$LIB_hcrypto"
20936 LIB_hcrypto_so="$LIB_hcrypto"
20937 LIB_hcrypto_appl="$LIB_hcrypto"
20938 LIBS="${LIBS} ${LIB_hcrypto}"
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20946 #undef KRB5 /* makes md4.h et al unhappy */
20947 #ifdef HAVE_OPENSSL
20948 #ifdef HAVE_SYS_TYPES_H
20949 #include <sys/types.h>
20951 #include <openssl/evp.h>
20952 #include <openssl/md4.h>
20953 #include <openssl/md5.h>
20954 #include <openssl/sha.h>
20955 #include <openssl/des.h>
20956 #include <openssl/rc4.h>
20957 #include <openssl/aes.h>
20958 #include <openssl/engine.h>
20959 #include <openssl/ui.h>
20960 #include <openssl/rand.h>
20961 #include <openssl/hmac.h>
20962 #include <openssl/pkcs12.h>
20964 #include <hcrypto/evp.h>
20965 #include <hcrypto/md4.h>
20966 #include <hcrypto/md5.h>
20967 #include <hcrypto/sha.h>
20968 #include <hcrypto/des.h>
20969 #include <hcrypto/rc4.h>
20970 #include <hcrypto/aes.h>
20971 #include <hcrypto/engine.h>
20972 #include <hcrypto/hmac.h>
20973 #include <hcrypto/pkcs12.h>
20980 void *schedule = 0;
20989 SHA256_Init(&sha256);
20990 EVP_CIPHER_iv_length(((EVP_CIPHER*)0));
20991 #ifdef HAVE_OPENSSL
20993 UI_UTIL_read_pw_string(0,0,0,0);
20996 OpenSSL_add_all_algorithms();
20997 AES_encrypt(0,0,0);
20998 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0);
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_link") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest$ac_exeext &&
21021 $as_test_x conftest$ac_exeext; then
21023 crypto_lib=libcrypto openssl=yes
21024 { echo "$as_me:$LINENO: result: libcrypto" >&5
21025 echo "${ECHO_T}libcrypto" >&6; }
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035 conftest$ac_exeext conftest.$ac_ext
21036 if test "$crypto_lib" = libcrypto ; then
21040 CFLAGS="$save_CFLAGS"
21044 if test "$crypto_lib" = "unknown"; then
21046 DIR_hcrypto='hcrypto'
21047 LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la'
21048 LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a'
21049 LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so'
21050 LIB_hcrypto_appl="-lhcrypto"
21052 { echo "$as_me:$LINENO: result: included libhcrypto" >&5
21053 echo "${ECHO_T}included libhcrypto" >&6; }
21057 if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
21058 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
21059 required by Kerberos 5; to continue, you need to install a newer
21060 Kerberos 4 or configure --without-krb4" >&5
21061 echo "$as_me: error: the crypto library used by krb4 lacks features
21062 required by Kerberos 5; to continue, you need to install a newer
21063 Kerberos 4 or configure --without-krb4" >&2;}
21064 { (exit 1); exit 1; }; }
21067 if test "$openssl" = "yes"; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_OPENSSL 1
21074 if test "$openssl" = yes; then
21076 HAVE_OPENSSL_FALSE='#'
21078 HAVE_OPENSSL_TRUE='#'
21079 HAVE_OPENSSL_FALSE=
21091 { echo "$as_me:$LINENO: checking if compiling threadsafe libraries" >&5
21092 echo $ECHO_N "checking if compiling threadsafe libraries... $ECHO_C" >&6; }
21094 # Check whether --enable-pthread-support was given.
21095 if test "${enable_pthread_support+set}" = set; then
21096 enableval=$enable_pthread_support;
21098 enable_pthread_support=maybe
21104 native_pthread_support=yes
21105 if test "$GCC" = yes; then
21106 PTHREADS_CFLAGS=-pthreads
21107 PTHREADS_LIBS=-pthreads
21109 PTHREADS_CFLAGS=-mt
21114 native_pthread_support="if running netbsd 1.6T or newer"
21118 native_pthread_support=yes
21120 *-*-linux* | *-*-linux-gnu)
21123 native_pthread_support=yes
21124 PTHREADS_CFLAGS=-pthread
21125 PTHREADS_LIBS=-pthread
21130 native_pthread_support=no
21132 mips-sgi-irix6.[5-9]) # maybe works for earlier versions too
21133 native_pthread_support=yes
21134 PTHREADS_LIBS="-lpthread"
21137 native_pthread_support=yes
21140 native_pthread_support=no
21144 if test "$enable_pthread_support" = maybe ; then
21145 enable_pthread_support="$native_pthread_support"
21148 if test "$enable_pthread_support" != no; then
21150 cat >>confdefs.h <<\_ACEOF
21151 #define ENABLE_PTHREAD_SUPPORT 1
21154 LIBS="$PTHREADS_LIBS $LIBS"
21163 { echo "$as_me:$LINENO: result: $enable_pthread_support" >&5
21164 echo "${ECHO_T}$enable_pthread_support" >&6; }
21167 # Check whether --enable-dce was given.
21168 if test "${enable_dce+set}" = set; then
21169 enableval=$enable_dce;
21172 if test "$enable_dce" = yes; then
21174 cat >>confdefs.h <<\_ACEOF
21179 if test "$enable_dce" = yes; then
21188 ## XXX quite horrible:
21189 if test -f /etc/ibmcxx.cfg; then
21190 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
21191 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
21194 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
21195 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
21196 dpagaix_ldflags="-Wl,-bI:dfspag.exp"
21202 # Check whether --enable-afs-support was given.
21203 if test "${enable_afs_support+set}" = set; then
21204 enableval=$enable_afs_support;
21207 if test "$enable_afs_support" = no; then
21209 cat >>confdefs.h <<\_ACEOF
21216 # Check whether --enable-berkeley-db was given.
21217 if test "${enable_berkeley_db+set}" = set; then
21218 enableval=$enable_berkeley_db;
21223 # Check whether --enable-ndbm-db was given.
21224 if test "${enable_ndbm_db+set}" = set; then
21225 enableval=$enable_ndbm_db;
21233 if test "$enable_berkeley_db" != no; then
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21325 ac_header_preproc=yes
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344 ac_header_preproc=yes
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21360 ## ----------------------------------- ##
21361 ## Report this to heimdal-bugs@h5l.org ##
21362 ## ----------------------------------- ##
21364 ) | sed "s/^/$as_me: WARNING: /" >&2
21367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21372 eval "$as_ac_Header=\$ac_header_preproc"
21374 ac_res=`eval echo '${'$as_ac_Header'}'`
21375 { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21380 cat >>confdefs.h <<_ACEOF
21381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21393 { echo "$as_me:$LINENO: checking for db_create" >&5
21394 echo $ECHO_N "checking for db_create... $ECHO_C" >&6; }
21395 if test "${ac_cv_funclib_db_create+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
21400 ac_save_LIBS="$LIBS"
21401 for ac_lib in "" db4 db3 db; do
21407 *) ac_lib="-l$ac_lib" ;;
21409 LIBS=" $ac_lib $ac_save_LIBS"
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21418 #ifdef HAVE_DB4_DB_H
21419 #include <db4/db.h>
21420 #elif defined(HAVE_DB3_DB_H)
21421 #include <db3/db.h>
21429 db_create(NULL, NULL, 0)
21434 rm -f conftest.$ac_objext conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_link") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest$ac_exeext &&
21451 $as_test_x conftest$ac_exeext; then
21452 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21461 conftest$ac_exeext conftest.$ac_ext
21463 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
21464 LIBS="$ac_save_LIBS"
21470 eval "ac_res=\$ac_cv_funclib_db_create"
21474 for ac_func in db_create
21476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21490 #define $ac_func innocuous_$ac_func
21492 /* System header to define __stub macros and hopefully few prototypes,
21493 which can conflict with char $ac_func (); below.
21494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21495 <limits.h> exists even on freestanding compilers. */
21498 # include <limits.h>
21500 # include <assert.h>
21505 /* Override any GCC internal prototype to avoid an error.
21506 Use char because int might match the return type of a GCC
21507 builtin and then its argument prototype would still apply. */
21512 /* The GNU C library defines this for functions which it implements
21513 to always fail with ENOSYS. Some functions are actually named
21514 something starting with __ and the normal name is an alias. */
21515 #if defined __stub_$ac_func || defined __stub___$ac_func
21522 return $ac_func ();
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_link") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest$ac_exeext &&
21544 $as_test_x conftest$ac_exeext; then
21545 eval "$as_ac_var=yes"
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 eval "$as_ac_var=no"
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554 conftest$ac_exeext conftest.$ac_ext
21556 ac_res=`eval echo '${'$as_ac_var'}'`
21557 { echo "$as_me:$LINENO: result: $ac_res" >&5
21558 echo "${ECHO_T}$ac_res" >&6; }
21559 if test `eval echo '${'$as_ac_var'}'` = yes; then
21560 cat >>confdefs.h <<_ACEOF
21561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21569 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21570 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21571 eval "LIB_db_create=$ac_res"
21575 eval "ac_cv_func_db_create=yes"
21576 eval "LIB_db_create="
21577 cat >>confdefs.h <<_ACEOF
21578 #define $ac_tr_func 1
21581 { echo "$as_me:$LINENO: result: yes" >&5
21582 echo "${ECHO_T}yes" >&6; }
21585 eval "ac_cv_func_db_create=no"
21586 eval "LIB_db_create="
21587 { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21591 eval "ac_cv_func_db_create=yes"
21592 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21593 cat >>confdefs.h <<_ACEOF
21594 #define $ac_tr_func 1
21597 cat >>confdefs.h <<_ACEOF
21598 #define $ac_tr_lib 1
21601 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21602 echo "${ECHO_T}yes, in $ac_res" >&6; }
21608 if test "$ac_cv_func_db_create" = "yes"; then
21610 if test "$ac_cv_funclib_db_create" != "yes"; then
21611 DBLIB="$ac_cv_funclib_db_create"
21616 cat >>confdefs.h <<\_ACEOF
21626 { echo "$as_me:$LINENO: checking for dbopen" >&5
21627 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
21628 if test "${ac_cv_funclib_dbopen+set}" = set; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
21633 ac_save_LIBS="$LIBS"
21634 for ac_lib in "" db2 db; do
21640 *) ac_lib="-l$ac_lib" ;;
21642 LIBS=" $ac_lib $ac_save_LIBS"
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21651 #if defined(HAVE_DB2_DB_H)
21652 #include <db2/db.h>
21653 #elif defined(HAVE_DB_185_H)
21654 #include <db_185.h>
21655 #elif defined(HAVE_DB_H)
21664 dbopen(NULL, 0, 0, 0, NULL)
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_link") 2>conftest.er1
21678 grep -v '^ *+' conftest.er1 >conftest.err
21680 cat conftest.err >&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } && {
21683 test -z "$ac_c_werror_flag" ||
21684 test ! -s conftest.err
21685 } && test -s conftest$ac_exeext &&
21686 $as_test_x conftest$ac_exeext; then
21687 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696 conftest$ac_exeext conftest.$ac_ext
21698 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
21699 LIBS="$ac_save_LIBS"
21705 eval "ac_res=\$ac_cv_funclib_dbopen"
21709 for ac_func in dbopen
21711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 cat >conftest.$ac_ext <<_ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21725 #define $ac_func innocuous_$ac_func
21727 /* System header to define __stub macros and hopefully few prototypes,
21728 which can conflict with char $ac_func (); below.
21729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21730 <limits.h> exists even on freestanding compilers. */
21733 # include <limits.h>
21735 # include <assert.h>
21740 /* Override any GCC internal prototype to avoid an error.
21741 Use char because int might match the return type of a GCC
21742 builtin and then its argument prototype would still apply. */
21747 /* The GNU C library defines this for functions which it implements
21748 to always fail with ENOSYS. Some functions are actually named
21749 something starting with __ and the normal name is an alias. */
21750 #if defined __stub_$ac_func || defined __stub___$ac_func
21757 return $ac_func ();
21762 rm -f conftest.$ac_objext conftest$ac_exeext
21763 if { (ac_try="$ac_link"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_link") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1 >conftest.err
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest$ac_exeext &&
21779 $as_test_x conftest$ac_exeext; then
21780 eval "$as_ac_var=yes"
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21785 eval "$as_ac_var=no"
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789 conftest$ac_exeext conftest.$ac_ext
21791 ac_res=`eval echo '${'$as_ac_var'}'`
21792 { echo "$as_me:$LINENO: result: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21794 if test `eval echo '${'$as_ac_var'}'` = yes; then
21795 cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21804 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21805 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21806 eval "LIB_dbopen=$ac_res"
21810 eval "ac_cv_func_dbopen=yes"
21812 cat >>confdefs.h <<_ACEOF
21813 #define $ac_tr_func 1
21816 { echo "$as_me:$LINENO: result: yes" >&5
21817 echo "${ECHO_T}yes" >&6; }
21820 eval "ac_cv_func_dbopen=no"
21822 { echo "$as_me:$LINENO: result: no" >&5
21823 echo "${ECHO_T}no" >&6; }
21826 eval "ac_cv_func_dbopen=yes"
21827 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21828 cat >>confdefs.h <<_ACEOF
21829 #define $ac_tr_func 1
21832 cat >>confdefs.h <<_ACEOF
21833 #define $ac_tr_lib 1
21836 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21837 echo "${ECHO_T}yes, in $ac_res" >&6; }
21843 if test "$ac_cv_func_dbopen" = "yes"; then
21845 if test "$ac_cv_funclib_dbopen" != "yes"; then
21846 DBLIB="$ac_cv_funclib_dbopen"
21851 cat >>confdefs.h <<\_ACEOF
21859 if test "$ac_cv_func_dbm_firstkey" != yes; then
21862 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
21863 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
21864 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
21869 ac_save_LIBS="$LIBS"
21870 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
21876 *) ac_lib="-l$ac_lib" ;;
21878 LIBS=" $ac_lib $ac_save_LIBS"
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21887 #define DB_DBM_HSEARCH 1
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (ac_try="$ac_link"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906 (eval "$ac_link") 2>conftest.er1
21908 grep -v '^ *+' conftest.er1 >conftest.err
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } && {
21913 test -z "$ac_c_werror_flag" ||
21914 test ! -s conftest.err
21915 } && test -s conftest$ac_exeext &&
21916 $as_test_x conftest$ac_exeext; then
21917 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21926 conftest$ac_exeext conftest.$ac_ext
21928 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
21929 LIBS="$ac_save_LIBS"
21935 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
21939 for ac_func in dbm_firstkey
21941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21955 #define $ac_func innocuous_$ac_func
21957 /* System header to define __stub macros and hopefully few prototypes,
21958 which can conflict with char $ac_func (); below.
21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21960 <limits.h> exists even on freestanding compilers. */
21963 # include <limits.h>
21965 # include <assert.h>
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21977 /* The GNU C library defines this for functions which it implements
21978 to always fail with ENOSYS. Some functions are actually named
21979 something starting with __ and the normal name is an alias. */
21980 #if defined __stub_$ac_func || defined __stub___$ac_func
21987 return $ac_func ();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext &&
22009 $as_test_x conftest$ac_exeext; then
22010 eval "$as_ac_var=yes"
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 eval "$as_ac_var=no"
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22021 ac_res=`eval echo '${'$as_ac_var'}'`
22022 { echo "$as_me:$LINENO: result: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22024 if test `eval echo '${'$as_ac_var'}'` = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22034 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22035 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22036 eval "LIB_dbm_firstkey=$ac_res"
22040 eval "ac_cv_func_dbm_firstkey=yes"
22041 eval "LIB_dbm_firstkey="
22042 cat >>confdefs.h <<_ACEOF
22043 #define $ac_tr_func 1
22046 { echo "$as_me:$LINENO: result: yes" >&5
22047 echo "${ECHO_T}yes" >&6; }
22050 eval "ac_cv_func_dbm_firstkey=no"
22051 eval "LIB_dbm_firstkey="
22052 { echo "$as_me:$LINENO: result: no" >&5
22053 echo "${ECHO_T}no" >&6; }
22056 eval "ac_cv_func_dbm_firstkey=yes"
22057 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22058 cat >>confdefs.h <<_ACEOF
22059 #define $ac_tr_func 1
22062 cat >>confdefs.h <<_ACEOF
22063 #define $ac_tr_lib 1
22066 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22067 echo "${ECHO_T}yes, in $ac_res" >&6; }
22073 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22074 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22075 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22080 cat >>confdefs.h <<\_ACEOF
22081 #define HAVE_DB_NDBM 1
22085 cat >>confdefs.h <<\_ACEOF
22086 #define HAVE_NEW_DB 1
22090 $as_unset ac_cv_func_dbm_firstkey
22091 $as_unset ac_cv_funclib_dbm_firstkey
22097 if test "$enable_ndbm_db" != "no"; then
22099 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
22108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 ac_res=`eval echo '${'$as_ac_Header'}'`
22116 { echo "$as_me:$LINENO: result: $ac_res" >&5
22117 echo "${ECHO_T}$ac_res" >&6; }
22119 # Is the header compilable?
22120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 $ac_includes_default
22129 #include <$ac_header>
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_header_compiler=yes
22150 echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_header_compiler=no
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6; }
22160 # Is the header present?
22161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22163 cat >conftest.$ac_ext <<_ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <$ac_header>
22171 if { (ac_try="$ac_cpp conftest.$ac_ext"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } >/dev/null && {
22184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22187 ac_header_preproc=yes
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 ac_header_preproc=no
22195 rm -f conftest.err conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22197 echo "${ECHO_T}$ac_header_preproc" >&6; }
22199 # So? What about this header?
22200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22206 ac_header_preproc=yes
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22222 ## ----------------------------------- ##
22223 ## Report this to heimdal-bugs@h5l.org ##
22224 ## ----------------------------------- ##
22226 ) | sed "s/^/$as_me: WARNING: /" >&2
22229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 eval "$as_ac_Header=\$ac_header_preproc"
22236 ac_res=`eval echo '${'$as_ac_Header'}'`
22237 { echo "$as_me:$LINENO: result: $ac_res" >&5
22238 echo "${ECHO_T}$ac_res" >&6; }
22241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22242 cat >>confdefs.h <<_ACEOF
22243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22254 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
22255 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
22256 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
22261 ac_save_LIBS="$LIBS"
22262 for ac_lib in "" ndbm; do
22268 *) ac_lib="-l$ac_lib" ;;
22270 LIBS=" $ac_lib $ac_save_LIBS"
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22279 #if defined(HAVE_NDBM_H)
22281 #elif defined(HAVE_DBM_H)
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } && {
22308 test -z "$ac_c_werror_flag" ||
22309 test ! -s conftest.err
22310 } && test -s conftest$ac_exeext &&
22311 $as_test_x conftest$ac_exeext; then
22312 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321 conftest$ac_exeext conftest.$ac_ext
22323 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
22324 LIBS="$ac_save_LIBS"
22330 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
22334 for ac_func in dbm_firstkey
22336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22350 #define $ac_func innocuous_$ac_func
22352 /* System header to define __stub macros and hopefully few prototypes,
22353 which can conflict with char $ac_func (); below.
22354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22355 <limits.h> exists even on freestanding compilers. */
22358 # include <limits.h>
22360 # include <assert.h>
22365 /* Override any GCC internal prototype to avoid an error.
22366 Use char because int might match the return type of a GCC
22367 builtin and then its argument prototype would still apply. */
22372 /* The GNU C library defines this for functions which it implements
22373 to always fail with ENOSYS. Some functions are actually named
22374 something starting with __ and the normal name is an alias. */
22375 #if defined __stub_$ac_func || defined __stub___$ac_func
22382 return $ac_func ();
22387 rm -f conftest.$ac_objext conftest$ac_exeext
22388 if { (ac_try="$ac_link"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_link") 2>conftest.er1
22396 grep -v '^ *+' conftest.er1 >conftest.err
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest$ac_exeext &&
22404 $as_test_x conftest$ac_exeext; then
22405 eval "$as_ac_var=yes"
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 eval "$as_ac_var=no"
22413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22414 conftest$ac_exeext conftest.$ac_ext
22416 ac_res=`eval echo '${'$as_ac_var'}'`
22417 { echo "$as_me:$LINENO: result: $ac_res" >&5
22418 echo "${ECHO_T}$ac_res" >&6; }
22419 if test `eval echo '${'$as_ac_var'}'` = yes; then
22420 cat >>confdefs.h <<_ACEOF
22421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22429 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22430 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22431 eval "LIB_dbm_firstkey=$ac_res"
22435 eval "ac_cv_func_dbm_firstkey=yes"
22436 eval "LIB_dbm_firstkey="
22437 cat >>confdefs.h <<_ACEOF
22438 #define $ac_tr_func 1
22441 { echo "$as_me:$LINENO: result: yes" >&5
22442 echo "${ECHO_T}yes" >&6; }
22445 eval "ac_cv_func_dbm_firstkey=no"
22446 eval "LIB_dbm_firstkey="
22447 { echo "$as_me:$LINENO: result: no" >&5
22448 echo "${ECHO_T}no" >&6; }
22451 eval "ac_cv_func_dbm_firstkey=yes"
22452 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22453 cat >>confdefs.h <<_ACEOF
22454 #define $ac_tr_func 1
22457 cat >>confdefs.h <<_ACEOF
22458 #define $ac_tr_lib 1
22461 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22462 echo "${ECHO_T}yes, in $ac_res" >&6; }
22468 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22469 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22470 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22475 cat >>confdefs.h <<\_ACEOF
22476 #define HAVE_NDBM 1
22479 if test "$db_type" = "unknown"; then
22485 $as_unset ac_cv_func_dbm_firstkey
22486 $as_unset ac_cv_funclib_dbm_firstkey
22493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 ac_res=`eval echo '${'$as_ac_Header'}'`
22501 { echo "$as_me:$LINENO: result: $ac_res" >&5
22502 echo "${ECHO_T}$ac_res" >&6; }
22504 # Is the header compilable?
22505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 $ac_includes_default
22514 #include <$ac_header>
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } && {
22530 test -z "$ac_c_werror_flag" ||
22531 test ! -s conftest.err
22532 } && test -s conftest.$ac_objext; then
22533 ac_header_compiler=yes
22535 echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_header_compiler=no
22541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22543 echo "${ECHO_T}$ac_header_compiler" >&6; }
22545 # Is the header present?
22546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h. */
22554 #include <$ac_header>
22556 if { (ac_try="$ac_cpp conftest.$ac_ext"
22557 case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22564 grep -v '^ *+' conftest.er1 >conftest.err
22566 cat conftest.err >&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } >/dev/null && {
22569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22570 test ! -s conftest.err
22572 ac_header_preproc=yes
22574 echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_header_preproc=no
22580 rm -f conftest.err conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22582 echo "${ECHO_T}$ac_header_preproc" >&6; }
22584 # So? What about this header?
22585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22591 ac_header_preproc=yes
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22607 ## ----------------------------------- ##
22608 ## Report this to heimdal-bugs@h5l.org ##
22609 ## ----------------------------------- ##
22611 ) | sed "s/^/$as_me: WARNING: /" >&2
22614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 eval "$as_ac_Header=\$ac_header_preproc"
22621 ac_res=`eval echo '${'$as_ac_Header'}'`
22622 { echo "$as_me:$LINENO: result: $ac_res" >&5
22623 echo "${ECHO_T}$ac_res" >&6; }
22626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22627 cat >>confdefs.h <<_ACEOF
22628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22639 { echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
22640 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; }
22641 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
22646 ac_save_LIBS="$LIBS"
22647 for ac_lib in "" gdbm; do
22653 *) ac_lib="-l$ac_lib" ;;
22655 LIBS=" $ac_lib $ac_save_LIBS"
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22664 #include <gdbm/ndbm.h>
22675 rm -f conftest.$ac_objext conftest$ac_exeext
22676 if { (ac_try="$ac_link"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_link") 2>conftest.er1
22684 grep -v '^ *+' conftest.er1 >conftest.err
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest$ac_exeext &&
22692 $as_test_x conftest$ac_exeext; then
22693 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22702 conftest$ac_exeext conftest.$ac_ext
22704 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
22705 LIBS="$ac_save_LIBS"
22711 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
22715 for ac_func in dbm_firstkey
22717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 cat >conftest.$ac_ext <<_ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22731 #define $ac_func innocuous_$ac_func
22733 /* System header to define __stub macros and hopefully few prototypes,
22734 which can conflict with char $ac_func (); below.
22735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22736 <limits.h> exists even on freestanding compilers. */
22739 # include <limits.h>
22741 # include <assert.h>
22746 /* Override any GCC internal prototype to avoid an error.
22747 Use char because int might match the return type of a GCC
22748 builtin and then its argument prototype would still apply. */
22753 /* The GNU C library defines this for functions which it implements
22754 to always fail with ENOSYS. Some functions are actually named
22755 something starting with __ and the normal name is an alias. */
22756 #if defined __stub_$ac_func || defined __stub___$ac_func
22763 return $ac_func ();
22768 rm -f conftest.$ac_objext conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_link") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest$ac_exeext &&
22785 $as_test_x conftest$ac_exeext; then
22786 eval "$as_ac_var=yes"
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 eval "$as_ac_var=no"
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795 conftest$ac_exeext conftest.$ac_ext
22797 ac_res=`eval echo '${'$as_ac_var'}'`
22798 { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22800 if test `eval echo '${'$as_ac_var'}'` = yes; then
22801 cat >>confdefs.h <<_ACEOF
22802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22810 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22811 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22812 eval "LIB_dbm_firstkey=$ac_res"
22816 eval "ac_cv_func_dbm_firstkey=yes"
22817 eval "LIB_dbm_firstkey="
22818 cat >>confdefs.h <<_ACEOF
22819 #define $ac_tr_func 1
22822 { echo "$as_me:$LINENO: result: yes" >&5
22823 echo "${ECHO_T}yes" >&6; }
22826 eval "ac_cv_func_dbm_firstkey=no"
22827 eval "LIB_dbm_firstkey="
22828 { echo "$as_me:$LINENO: result: no" >&5
22829 echo "${ECHO_T}no" >&6; }
22832 eval "ac_cv_func_dbm_firstkey=yes"
22833 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22834 cat >>confdefs.h <<_ACEOF
22835 #define $ac_tr_func 1
22838 cat >>confdefs.h <<_ACEOF
22839 #define $ac_tr_lib 1
22842 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22843 echo "${ECHO_T}yes, in $ac_res" >&6; }
22849 if test "$ac_cv_func_dbm_firstkey" = "yes"; then
22850 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
22851 LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_NDBM 1
22860 if test "$db_type" = "unknown"; then
22869 if test "$have_ndbm" = "yes"; then
22870 { echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
22871 echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6; }
22872 if test "$cross_compiling" = yes; then
22873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22874 See \`config.log' for more details." >&5
22875 echo "$as_me: error: cannot run test program while cross compiling
22876 See \`config.log' for more details." >&2;}
22877 { (exit 1); exit 1; }; }
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22886 #include <unistd.h>
22888 #if defined(HAVE_GDBM_NDBM_H)
22889 #include <gdbm/ndbm.h>
22890 #elif defined(HAVE_NDBM_H)
22892 #elif defined(HAVE_DBM_H)
22895 int main(int argc, char **argv)
22899 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
22906 rm -f conftest$ac_exeext
22907 if { (ac_try="$ac_link"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_link") 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22917 { (case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_try") 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22927 if test -f conftest.db; then
22928 { echo "$as_me:$LINENO: result: yes" >&5
22929 echo "${ECHO_T}yes" >&6; }
22931 cat >>confdefs.h <<\_ACEOF
22932 #define HAVE_NEW_DB 1
22936 { echo "$as_me:$LINENO: result: no" >&5
22937 echo "${ECHO_T}no" >&6; }
22940 echo "$as_me: program exited with status $ac_status" >&5
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22944 ( exit $ac_status )
22945 { echo "$as_me:$LINENO: result: no" >&5
22946 echo "${ECHO_T}no" >&6; }
22948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22954 if test "$db_type" = db1; then
22961 if test "$db_type" = db3; then
22968 if test "$db_type" = ndbm; then
22970 HAVE_NDBM_FALSE='#'
22976 ## it's probably not correct to include LDFLAGS here, but we might
22977 ## need it, for now just add any possible -L
22979 for i in $LDFLAGS; do
22990 { echo "$as_me:$LINENO: checking for inline" >&5
22991 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22992 if test "${ac_cv_c_inline+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 for ac_kw in inline __inline__ __inline; do
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 #ifndef __cplusplus
23005 static $ac_kw foo_t static_foo () {return 0; }
23006 $ac_kw foo_t foo () {return 0; }
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23019 grep -v '^ *+' conftest.er1 >conftest.err
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 ac_cv_c_inline=$ac_kw
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 test "$ac_cv_c_inline" != no && break
23040 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23041 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23044 case $ac_cv_c_inline in
23047 case $ac_cv_c_inline in
23049 *) ac_val=$ac_cv_c_inline;;
23051 cat >>confdefs.h <<_ACEOF
23052 #ifndef __cplusplus
23053 #define inline $ac_val
23059 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23060 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23061 if test "${ac_cv_c_const+set}" = set; then
23062 echo $ECHO_N "(cached) $ECHO_C" >&6
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23074 /* FIXME: Include the comments suggested by Paul. */
23075 #ifndef __cplusplus
23076 /* Ultrix mips cc rejects this. */
23077 typedef int charset[2];
23079 /* SunOS 4.1.1 cc rejects this. */
23080 char const *const *pcpcc;
23082 /* NEC SVR4.0.2 mips cc rejects this. */
23083 struct point {int x, y;};
23084 static struct point const zero = {0,0};
23085 /* AIX XL C 1.02.0.0 rejects this.
23086 It does not let you subtract one const X* pointer from another in
23087 an arm of an if-expression whose if-part is not a constant
23089 const char *g = "string";
23090 pcpcc = &g + (g ? g-g : 0);
23091 /* HPUX 7.0 cc rejects these. */
23093 ppc = (char**) pcpcc;
23094 pcpcc = (char const *const *) ppc;
23095 { /* SCO 3.2v4 cc rejects this. */
23097 char const *s = 0 ? (char *) 0 : (char const *) 0;
23102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23103 int x[] = {25, 17};
23104 const int *foo = &x[0];
23107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23108 typedef const int *iptr;
23112 { /* AIX XL C 1.02.0.0 rejects this saying
23113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23114 struct s { int j; const int *ap[3]; };
23115 struct s *b; b->j = 5;
23117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23118 const int foo = 10;
23119 if (!foo) return 0;
23121 return !cs[0] && !zero.x;
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_compile") 2>conftest.er1
23137 grep -v '^ *+' conftest.er1 >conftest.err
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } && {
23142 test -z "$ac_c_werror_flag" ||
23143 test ! -s conftest.err
23144 } && test -s conftest.$ac_objext; then
23147 echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23155 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23156 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23157 if test $ac_cv_c_const = no; then
23159 cat >>confdefs.h <<\_ACEOF
23165 { echo "$as_me:$LINENO: checking for size_t" >&5
23166 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23167 if test "${ac_cv_type_size_t+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 $ac_includes_default
23177 typedef size_t ac__type_new_;
23181 if ((ac__type_new_ *) 0)
23183 if (sizeof (ac__type_new_))
23189 rm -f conftest.$ac_objext
23190 if { (ac_try="$ac_compile"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_compile") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest.$ac_objext; then
23206 ac_cv_type_size_t=yes
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 ac_cv_type_size_t=no
23214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23216 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23217 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23218 if test $ac_cv_type_size_t = yes; then
23222 cat >>confdefs.h <<_ACEOF
23223 #define size_t unsigned int
23228 { echo "$as_me:$LINENO: checking for pid_t" >&5
23229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23230 if test "${ac_cv_type_pid_t+set}" = set; then
23231 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 cat >conftest.$ac_ext <<_ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23239 $ac_includes_default
23240 typedef pid_t ac__type_new_;
23244 if ((ac__type_new_ *) 0)
23246 if (sizeof (ac__type_new_))
23252 rm -f conftest.$ac_objext
23253 if { (ac_try="$ac_compile"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 ac_cv_type_pid_t=yes
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ac_cv_type_pid_t=no
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23280 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23281 if test $ac_cv_type_pid_t = yes; then
23285 cat >>confdefs.h <<_ACEOF
23291 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23292 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23293 if test "${ac_cv_type_uid_t+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 #include <sys/types.h>
23305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23306 $EGREP "uid_t" >/dev/null 2>&1; then
23307 ac_cv_type_uid_t=yes
23309 ac_cv_type_uid_t=no
23314 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23316 if test $ac_cv_type_uid_t = no; then
23318 cat >>confdefs.h <<\_ACEOF
23323 cat >>confdefs.h <<\_ACEOF
23330 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23331 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23332 if test "${ac_cv_type_signal+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23341 #include <sys/types.h>
23342 #include <signal.h>
23347 return *(signal (0, 0)) (0) == 1;
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && {
23366 test -z "$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 } && test -s conftest.$ac_objext; then
23369 ac_cv_type_signal=int
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_cv_type_signal=void
23377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23380 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23382 cat >>confdefs.h <<_ACEOF
23383 #define RETSIGTYPE $ac_cv_type_signal
23387 if test "$ac_cv_type_signal" = "void" ; then
23389 cat >>confdefs.h <<\_ACEOF
23390 #define VOID_RETSIGTYPE 1
23398 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23399 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23400 if test "${ac_cv_header_time+set}" = set; then
23401 echo $ECHO_N "(cached) $ECHO_C" >&6
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 #include <sys/types.h>
23410 #include <sys/time.h>
23416 if ((struct tm *) 0)
23422 rm -f conftest.$ac_objext
23423 if { (ac_try="$ac_compile"
23424 case "(($ac_try" in
23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23426 *) ac_try_echo=$ac_try;;
23428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23429 (eval "$ac_compile") 2>conftest.er1
23431 grep -v '^ *+' conftest.er1 >conftest.err
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } && {
23436 test -z "$ac_c_werror_flag" ||
23437 test ! -s conftest.err
23438 } && test -s conftest.$ac_objext; then
23439 ac_cv_header_time=yes
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23444 ac_cv_header_time=no
23447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23450 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23451 if test $ac_cv_header_time = yes; then
23453 cat >>confdefs.h <<\_ACEOF
23454 #define TIME_WITH_SYS_TIME 1
23461 for ac_header in standards.h
23463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 ac_res=`eval echo '${'$as_ac_Header'}'`
23471 { echo "$as_me:$LINENO: result: $ac_res" >&5
23472 echo "${ECHO_T}$ac_res" >&6; }
23474 # Is the header compilable?
23475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23477 cat >conftest.$ac_ext <<_ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 $ac_includes_default
23484 #include <$ac_header>
23486 rm -f conftest.$ac_objext
23487 if { (ac_try="$ac_compile"
23488 case "(($ac_try" in
23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490 *) ac_try_echo=$ac_try;;
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493 (eval "$ac_compile") 2>conftest.er1
23495 grep -v '^ *+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); } && {
23500 test -z "$ac_c_werror_flag" ||
23501 test ! -s conftest.err
23502 } && test -s conftest.$ac_objext; then
23503 ac_header_compiler=yes
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_header_compiler=no
23511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23513 echo "${ECHO_T}$ac_header_compiler" >&6; }
23515 # Is the header present?
23516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 #include <$ac_header>
23526 if { (ac_try="$ac_cpp conftest.$ac_ext"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } >/dev/null && {
23539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23540 test ! -s conftest.err
23542 ac_header_preproc=yes
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23547 ac_header_preproc=no
23550 rm -f conftest.err conftest.$ac_ext
23551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23552 echo "${ECHO_T}$ac_header_preproc" >&6; }
23554 # So? What about this header?
23555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23561 ac_header_preproc=yes
23564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23577 ## ----------------------------------- ##
23578 ## Report this to heimdal-bugs@h5l.org ##
23579 ## ----------------------------------- ##
23581 ) | sed "s/^/$as_me: WARNING: /" >&2
23584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587 echo $ECHO_N "(cached) $ECHO_C" >&6
23589 eval "$as_ac_Header=\$ac_header_preproc"
23591 ac_res=`eval echo '${'$as_ac_Header'}'`
23592 { echo "$as_me:$LINENO: result: $ac_res" >&5
23593 echo "${ECHO_T}$ac_res" >&6; }
23596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23597 cat >>confdefs.h <<_ACEOF
23598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23605 for i in netinet/ip.h netinet/tcp.h; do
23607 cv=`echo "$i" | sed 'y%./+-%__p_%'`
23609 { echo "$as_me:$LINENO: checking for $i" >&5
23610 echo $ECHO_N "checking for $i... $ECHO_C" >&6; }
23611 if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23621 #ifdef HAVE_STANDARDS_H
23622 #include <standards.h>
23627 if { (ac_try="$ac_cpp conftest.$ac_ext"
23628 case "(($ac_try" in
23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630 *) ac_try_echo=$ac_try;;
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23635 grep -v '^ *+' conftest.er1 >conftest.err
23637 cat conftest.err >&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } >/dev/null && {
23640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23641 test ! -s conftest.err
23643 eval "ac_cv_header_$cv=yes"
23645 echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 eval "ac_cv_header_$cv=no"
23651 rm -f conftest.err conftest.$ac_ext
23653 ac_res=`eval echo '${'ac_cv_header_$cv'}'`
23654 { echo "$as_me:$LINENO: result: $ac_res" >&5
23655 echo "${ECHO_T}$ac_res" >&6; }
23656 ac_res=`eval echo \\$ac_cv_header_$cv`
23657 if test "$ac_res" = yes; then
23658 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23659 cat >>confdefs.h <<_ACEOF
23660 #define $ac_tr_hdr 1
23668 for ac_header in netinet/ip.h netinet/tcp.h
23670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 ac_res=`eval echo '${'$as_ac_Header'}'`
23678 { echo "$as_me:$LINENO: result: $ac_res" >&5
23679 echo "${ECHO_T}$ac_res" >&6; }
23681 # Is the header compilable?
23682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 $ac_includes_default
23691 #include <$ac_header>
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_compile") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } && {
23707 test -z "$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23709 } && test -s conftest.$ac_objext; then
23710 ac_header_compiler=yes
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 ac_header_compiler=no
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23720 echo "${ECHO_T}$ac_header_compiler" >&6; }
23722 # Is the header present?
23723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23725 cat >conftest.$ac_ext <<_ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 #include <$ac_header>
23733 if { (ac_try="$ac_cpp conftest.$ac_ext"
23734 case "(($ac_try" in
23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } >/dev/null && {
23746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23749 ac_header_preproc=yes
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23754 ac_header_preproc=no
23757 rm -f conftest.err conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23759 echo "${ECHO_T}$ac_header_preproc" >&6; }
23761 # So? What about this header?
23762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23768 ac_header_preproc=yes
23771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23784 ## ----------------------------------- ##
23785 ## Report this to heimdal-bugs@h5l.org ##
23786 ## ----------------------------------- ##
23788 ) | sed "s/^/$as_me: WARNING: /" >&2
23791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23796 eval "$as_ac_Header=\$ac_header_preproc"
23798 ac_res=`eval echo '${'$as_ac_Header'}'`
23799 { echo "$as_me:$LINENO: result: $ac_res" >&5
23800 echo "${ECHO_T}$ac_res" >&6; }
23803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23804 cat >>confdefs.h <<_ACEOF
23805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23817 for ac_func in getlogin setlogin
23819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23833 #define $ac_func innocuous_$ac_func
23835 /* System header to define __stub macros and hopefully few prototypes,
23836 which can conflict with char $ac_func (); below.
23837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23838 <limits.h> exists even on freestanding compilers. */
23841 # include <limits.h>
23843 # include <assert.h>
23848 /* Override any GCC internal prototype to avoid an error.
23849 Use char because int might match the return type of a GCC
23850 builtin and then its argument prototype would still apply. */
23855 /* The GNU C library defines this for functions which it implements
23856 to always fail with ENOSYS. Some functions are actually named
23857 something starting with __ and the normal name is an alias. */
23858 #if defined __stub_$ac_func || defined __stub___$ac_func
23865 return $ac_func ();
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877 (eval "$ac_link") 2>conftest.er1
23879 grep -v '^ *+' conftest.er1 >conftest.err
23881 cat conftest.err >&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); } && {
23884 test -z "$ac_c_werror_flag" ||
23885 test ! -s conftest.err
23886 } && test -s conftest$ac_exeext &&
23887 $as_test_x conftest$ac_exeext; then
23888 eval "$as_ac_var=yes"
23890 echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 eval "$as_ac_var=no"
23896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23897 conftest$ac_exeext conftest.$ac_ext
23899 ac_res=`eval echo '${'$as_ac_var'}'`
23900 { echo "$as_me:$LINENO: result: $ac_res" >&5
23901 echo "${ECHO_T}$ac_res" >&6; }
23902 if test `eval echo '${'$as_ac_var'}'` = yes; then
23903 cat >>confdefs.h <<_ACEOF
23904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23910 if test "$ac_cv_func_getlogin" = yes; then
23911 { echo "$as_me:$LINENO: checking if getlogin is posix" >&5
23912 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6; }
23913 if test "${ac_cv_func_getlogin_posix+set}" = set; then
23914 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
23918 ac_cv_func_getlogin_posix=no
23920 ac_cv_func_getlogin_posix=yes
23924 { echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
23925 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6; }
23926 if test "$ac_cv_func_getlogin_posix" = yes; then
23928 cat >>confdefs.h <<\_ACEOF
23929 #define POSIX_GETLOGIN 1
23937 for ac_header in stdlib.h unistd.h
23939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 ac_res=`eval echo '${'$as_ac_Header'}'`
23947 { echo "$as_me:$LINENO: result: $ac_res" >&5
23948 echo "${ECHO_T}$ac_res" >&6; }
23950 # Is the header compilable?
23951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23959 $ac_includes_default
23960 #include <$ac_header>
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_compile") 2>conftest.er1
23971 grep -v '^ *+' conftest.er1 >conftest.err
23973 cat conftest.err >&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); } && {
23976 test -z "$ac_c_werror_flag" ||
23977 test ! -s conftest.err
23978 } && test -s conftest.$ac_objext; then
23979 ac_header_compiler=yes
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ac_header_compiler=no
23987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23989 echo "${ECHO_T}$ac_header_compiler" >&6; }
23991 # Is the header present?
23992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23994 cat >conftest.$ac_ext <<_ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h. */
24000 #include <$ac_header>
24002 if { (ac_try="$ac_cpp conftest.$ac_ext"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24010 grep -v '^ *+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } >/dev/null && {
24015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24018 ac_header_preproc=yes
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_header_preproc=no
24026 rm -f conftest.err conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24028 echo "${ECHO_T}$ac_header_preproc" >&6; }
24030 # So? What about this header?
24031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24037 ac_header_preproc=yes
24040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24053 ## ----------------------------------- ##
24054 ## Report this to heimdal-bugs@h5l.org ##
24055 ## ----------------------------------- ##
24057 ) | sed "s/^/$as_me: WARNING: /" >&2
24060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24063 echo $ECHO_N "(cached) $ECHO_C" >&6
24065 eval "$as_ac_Header=\$ac_header_preproc"
24067 ac_res=`eval echo '${'$as_ac_Header'}'`
24068 { echo "$as_me:$LINENO: result: $ac_res" >&5
24069 echo "${ECHO_T}$ac_res" >&6; }
24072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24073 cat >>confdefs.h <<_ACEOF
24074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24082 for ac_func in getpagesize
24084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24088 echo $ECHO_N "(cached) $ECHO_C" >&6
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24098 #define $ac_func innocuous_$ac_func
24100 /* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char $ac_func (); below.
24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103 <limits.h> exists even on freestanding compilers. */
24106 # include <limits.h>
24108 # include <assert.h>
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24120 /* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123 #if defined __stub_$ac_func || defined __stub___$ac_func
24130 return $ac_func ();
24135 rm -f conftest.$ac_objext conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24142 (eval "$ac_link") 2>conftest.er1
24144 grep -v '^ *+' conftest.er1 >conftest.err
24146 cat conftest.err >&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); } && {
24149 test -z "$ac_c_werror_flag" ||
24150 test ! -s conftest.err
24151 } && test -s conftest$ac_exeext &&
24152 $as_test_x conftest$ac_exeext; then
24153 eval "$as_ac_var=yes"
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 eval "$as_ac_var=no"
24161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24162 conftest$ac_exeext conftest.$ac_ext
24164 ac_res=`eval echo '${'$as_ac_var'}'`
24165 { echo "$as_me:$LINENO: result: $ac_res" >&5
24166 echo "${ECHO_T}$ac_res" >&6; }
24167 if test `eval echo '${'$as_ac_var'}'` = yes; then
24168 cat >>confdefs.h <<_ACEOF
24169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24175 { echo "$as_me:$LINENO: checking for working mmap" >&5
24176 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
24177 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24178 echo $ECHO_N "(cached) $ECHO_C" >&6
24180 if test "$cross_compiling" = yes; then
24181 ac_cv_func_mmap_fixed_mapped=no
24183 cat >conftest.$ac_ext <<_ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 $ac_includes_default
24190 /* malloc might have been renamed as rpl_malloc. */
24193 /* Thanks to Mike Haertel and Jim Avera for this test.
24194 Here is a matrix of mmap possibilities:
24195 mmap private not fixed
24196 mmap private fixed at somewhere currently unmapped
24197 mmap private fixed at somewhere already mapped
24198 mmap shared not fixed
24199 mmap shared fixed at somewhere currently unmapped
24200 mmap shared fixed at somewhere already mapped
24201 For private mappings, we should verify that changes cannot be read()
24202 back from the file, nor mmap's back from the file at a different
24203 address. (There have been systems where private was not correctly
24204 implemented like the infamous i386 svr4.0, and systems where the
24205 VM page cache was not coherent with the file system buffer cache
24206 like early versions of FreeBSD and possibly contemporary NetBSD.)
24207 For shared mappings, we should conversely verify that changes get
24208 propagated back to all the places they're supposed to be.
24210 Grep wants private fixed already mapped.
24211 The main things grep needs to know about mmap are:
24212 * does it exist and is it safe to write into the mmap'd area
24213 * how to use it (BSD variants) */
24216 #include <sys/mman.h>
24218 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24222 /* This mess was copied from the GNU getpagesize.h. */
24223 #ifndef HAVE_GETPAGESIZE
24224 /* Assume that all systems that can run configure have sys/param.h. */
24225 # ifndef HAVE_SYS_PARAM_H
24226 # define HAVE_SYS_PARAM_H 1
24229 # ifdef _SC_PAGESIZE
24230 # define getpagesize() sysconf(_SC_PAGESIZE)
24231 # else /* no _SC_PAGESIZE */
24232 # ifdef HAVE_SYS_PARAM_H
24233 # include <sys/param.h>
24234 # ifdef EXEC_PAGESIZE
24235 # define getpagesize() EXEC_PAGESIZE
24236 # else /* no EXEC_PAGESIZE */
24238 # define getpagesize() NBPG * CLSIZE
24241 # endif /* no CLSIZE */
24242 # else /* no NBPG */
24244 # define getpagesize() NBPC
24245 # else /* no NBPC */
24247 # define getpagesize() PAGESIZE
24248 # endif /* PAGESIZE */
24249 # endif /* no NBPC */
24250 # endif /* no NBPG */
24251 # endif /* no EXEC_PAGESIZE */
24252 # else /* no HAVE_SYS_PARAM_H */
24253 # define getpagesize() 8192 /* punt totally */
24254 # endif /* no HAVE_SYS_PARAM_H */
24255 # endif /* no _SC_PAGESIZE */
24257 #endif /* no HAVE_GETPAGESIZE */
24262 char *data, *data2, *data3;
24266 pagesize = getpagesize ();
24268 /* First, make a file with some known garbage in it. */
24269 data = (char *) malloc (pagesize);
24272 for (i = 0; i < pagesize; ++i)
24273 *(data + i) = rand ();
24275 fd = creat ("conftest.mmap", 0600);
24278 if (write (fd, data, pagesize) != pagesize)
24282 /* Next, try to mmap the file at a fixed address which already has
24283 something else allocated at it. If we can, also make sure that
24284 we see the same garbage. */
24285 fd = open ("conftest.mmap", O_RDWR);
24288 data2 = (char *) malloc (2 * pagesize);
24291 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24292 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24293 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24295 for (i = 0; i < pagesize; ++i)
24296 if (*(data + i) != *(data2 + i))
24299 /* Finally, make sure that changes to the mapped area do not
24300 percolate back to the file as seen by read(). (This is a bug on
24301 some variants of i386 svr4.0.) */
24302 for (i = 0; i < pagesize; ++i)
24303 *(data2 + i) = *(data2 + i) + 1;
24304 data3 = (char *) malloc (pagesize);
24307 if (read (fd, data3, pagesize) != pagesize)
24309 for (i = 0; i < pagesize; ++i)
24310 if (*(data + i) != *(data3 + i))
24316 rm -f conftest$ac_exeext
24317 if { (ac_try="$ac_link"
24318 case "(($ac_try" in
24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320 *) ac_try_echo=$ac_try;;
24322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323 (eval "$ac_link") 2>&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24327 { (case "(($ac_try" in
24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329 *) ac_try_echo=$ac_try;;
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_try") 2>&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; }; then
24336 ac_cv_func_mmap_fixed_mapped=yes
24338 echo "$as_me: program exited with status $ac_status" >&5
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.$ac_ext >&5
24342 ( exit $ac_status )
24343 ac_cv_func_mmap_fixed_mapped=no
24345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24350 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24351 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
24352 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24354 cat >>confdefs.h <<\_ACEOF
24355 #define HAVE_MMAP 1
24359 rm -f conftest.mmap
24362 { echo "$as_me:$LINENO: checking if realloc if broken" >&5
24363 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6; }
24364 if test "${ac_cv_func_realloc_broken+set}" = set; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24368 ac_cv_func_realloc_broken=no
24369 if test "$cross_compiling" = yes; then
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24379 #include <stddef.h>
24380 #include <stdlib.h>
24382 int main(int argc, char **argv)
24384 return realloc(NULL, 17) == NULL;
24388 rm -f conftest$ac_exeext
24389 if { (ac_try="$ac_link"
24390 case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_link") 2>&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24399 { (case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_try") 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24410 echo "$as_me: program exited with status $ac_status" >&5
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ( exit $ac_status )
24415 ac_cv_func_realloc_broken=yes
24417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24423 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
24424 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6; }
24425 if test "$ac_cv_func_realloc_broken" = yes ; then
24427 cat >>confdefs.h <<\_ACEOF
24428 #define BROKEN_REALLOC 1
24440 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
24441 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
24457 # Check whether --enable-developer was given.
24458 if test "${enable_developer+set}" = set; then
24459 enableval=$enable_developer;
24462 if test "X$enable_developer" = Xyes; then
24467 WFLAGS_NOIMPLICITINT=""
24468 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
24469 # -Wno-implicit-int for broken X11 headers
24470 # leave these out for now:
24471 # -Wcast-align doesn't work well on alpha osf/1
24472 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
24473 # -Wmissing-declarations -Wnested-externs
24474 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
24475 WFLAGS_NOUNUSED="-Wno-unused"
24476 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
24486 cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
24487 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24488 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24489 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24490 echo $ECHO_N "(cached) $ECHO_C" >&6
24492 cat >conftest.$ac_ext <<_ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h. */
24499 #include <sys/types.h>
24501 #include <stdlib.h>
24502 #include <stddef.h>
24504 #include <unistd.h>
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24530 eval "ac_cv_type_$cv=yes"
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24535 eval "ac_cv_type_$cv=no"
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24540 ac_foo=`eval echo \\$ac_cv_type_$cv`
24541 { echo "$as_me:$LINENO: result: $ac_foo" >&5
24542 echo "${ECHO_T}$ac_foo" >&6; }
24543 if test "$ac_foo" = yes; then
24544 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24546 { echo "$as_me:$LINENO: checking for ssize_t" >&5
24547 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
24548 if test "${ac_cv_type_ssize_t+set}" = set; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 $ac_includes_default
24558 typedef ssize_t ac__type_new_;
24562 if ((ac__type_new_ *) 0)
24564 if (sizeof (ac__type_new_))
24570 rm -f conftest.$ac_objext
24571 if { (ac_try="$ac_compile"
24572 case "(($ac_try" in
24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24574 *) ac_try_echo=$ac_try;;
24576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24577 (eval "$ac_compile") 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } && {
24584 test -z "$ac_c_werror_flag" ||
24585 test ! -s conftest.err
24586 } && test -s conftest.$ac_objext; then
24587 ac_cv_type_ssize_t=yes
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_cv_type_ssize_t=no
24595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24598 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
24599 if test $ac_cv_type_ssize_t = yes; then
24601 cat >>confdefs.h <<_ACEOF
24602 #define HAVE_SSIZE_T 1
24610 cat >>confdefs.h <<_ACEOF
24611 #define $ac_tr_hdr 1
24620 cv=`echo "long long" | sed 'y%./+- %__p__%'`
24621 { echo "$as_me:$LINENO: checking for long long" >&5
24622 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24623 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24626 cat >conftest.$ac_ext <<_ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24633 #include <sys/types.h>
24635 #include <stdlib.h>
24636 #include <stddef.h>
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651 *) ac_try_echo=$ac_try;;
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_compile") 2>conftest.er1
24656 grep -v '^ *+' conftest.er1 >conftest.err
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } && {
24661 test -z "$ac_c_werror_flag" ||
24662 test ! -s conftest.err
24663 } && test -s conftest.$ac_objext; then
24664 eval "ac_cv_type_$cv=yes"
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24669 eval "ac_cv_type_$cv=no"
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674 ac_foo=`eval echo \\$ac_cv_type_$cv`
24675 { echo "$as_me:$LINENO: result: $ac_foo" >&5
24676 echo "${ECHO_T}$ac_foo" >&6; }
24677 if test "$ac_foo" = yes; then
24678 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24680 { echo "$as_me:$LINENO: checking for long long" >&5
24681 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24682 if test "${ac_cv_type_long_long+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 cat >conftest.$ac_ext <<_ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 $ac_includes_default
24692 typedef long long ac__type_new_;
24696 if ((ac__type_new_ *) 0)
24698 if (sizeof (ac__type_new_))
24704 rm -f conftest.$ac_objext
24705 if { (ac_try="$ac_compile"
24706 case "(($ac_try" in
24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_compile") 2>conftest.er1
24713 grep -v '^ *+' conftest.er1 >conftest.err
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } && {
24718 test -z "$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24720 } && test -s conftest.$ac_objext; then
24721 ac_cv_type_long_long=yes
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_cv_type_long_long=no
24729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24732 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24733 if test $ac_cv_type_long_long = yes; then
24735 cat >>confdefs.h <<_ACEOF
24736 #define HAVE_LONG_LONG 1
24744 cat >>confdefs.h <<_ACEOF
24745 #define $ac_tr_hdr 1
24808 netinet/in_systm.h \
24837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 ac_res=`eval echo '${'$as_ac_Header'}'`
24845 { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24848 # Is the header compilable?
24849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 $ac_includes_default
24858 #include <$ac_header>
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24869 grep -v '^ *+' conftest.er1 >conftest.err
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_header_compiler=yes
24879 echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ac_header_compiler=no
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 echo "${ECHO_T}$ac_header_compiler" >&6; }
24889 # Is the header present?
24890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 #include <$ac_header>
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } >/dev/null && {
24913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24914 test ! -s conftest.err
24916 ac_header_preproc=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_preproc=no
24924 rm -f conftest.err conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24926 echo "${ECHO_T}$ac_header_preproc" >&6; }
24928 # So? What about this header?
24929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24935 ac_header_preproc=yes
24938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24951 ## ----------------------------------- ##
24952 ## Report this to heimdal-bugs@h5l.org ##
24953 ## ----------------------------------- ##
24955 ) | sed "s/^/$as_me: WARNING: /" >&2
24958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 eval "$as_ac_Header=\$ac_header_preproc"
24965 ac_res=`eval echo '${'$as_ac_Header'}'`
24966 { echo "$as_me:$LINENO: result: $ac_res" >&5
24967 echo "${ECHO_T}$ac_res" >&6; }
24970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24971 cat >>confdefs.h <<_ACEOF
24972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24982 cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'`
24983 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
24984 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
24985 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24995 #include <sys/types.h>
24997 #include <stdlib.h>
24998 #include <stddef.h>
25000 #ifdef HAVE_STDINT_H
25001 #include <stdint.h>
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018 (eval "$ac_compile") 2>conftest.er1
25020 grep -v '^ *+' conftest.er1 >conftest.err
25022 cat conftest.err >&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } && {
25025 test -z "$ac_c_werror_flag" ||
25026 test ! -s conftest.err
25027 } && test -s conftest.$ac_objext; then
25028 eval "ac_cv_type_$cv=yes"
25030 echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25033 eval "ac_cv_type_$cv=no"
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038 ac_foo=`eval echo \\$ac_cv_type_$cv`
25039 { echo "$as_me:$LINENO: result: $ac_foo" >&5
25040 echo "${ECHO_T}$ac_foo" >&6; }
25041 if test "$ac_foo" = yes; then
25042 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25044 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
25045 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
25046 if test "${ac_cv_type_uintptr_t+set}" = set; then
25047 echo $ECHO_N "(cached) $ECHO_C" >&6
25049 cat >conftest.$ac_ext <<_ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h. */
25055 $ac_includes_default
25056 typedef uintptr_t ac__type_new_;
25060 if ((ac__type_new_ *) 0)
25062 if (sizeof (ac__type_new_))
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_compile") 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } && {
25082 test -z "$ac_c_werror_flag" ||
25083 test ! -s conftest.err
25084 } && test -s conftest.$ac_objext; then
25085 ac_cv_type_uintptr_t=yes
25087 echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25090 ac_cv_type_uintptr_t=no
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25096 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
25097 if test $ac_cv_type_uintptr_t = yes; then
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_UINTPTR_T 1
25108 cat >>confdefs.h <<_ACEOF
25109 #define $ac_tr_hdr 1
25116 for ac_header in vis.h
25118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 cat >conftest.$ac_ext <<_ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25136 #include <$ac_header>
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_compile") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest.$ac_objext; then
25155 eval "$as_ac_Header=yes"
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 eval "$as_ac_Header=no"
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 ac_res=`eval echo '${'$as_ac_Header'}'`
25166 { echo "$as_me:$LINENO: result: $ac_res" >&5
25167 echo "${ECHO_T}$ac_res" >&6; }
25168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25169 cat >>confdefs.h <<_ACEOF
25170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25179 for ac_header in netdb.h
25181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
25187 cat >conftest.$ac_ext <<_ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193 $ac_includes_default
25194 #ifdef HAVE_SYS_TYPES_H
25195 #include <sys/types.h>
25199 #include <$ac_header>
25201 rm -f conftest.$ac_objext
25202 if { (ac_try="$ac_compile"
25203 case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208 (eval "$ac_compile") 2>conftest.er1
25210 grep -v '^ *+' conftest.er1 >conftest.err
25212 cat conftest.err >&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } && {
25215 test -z "$ac_c_werror_flag" ||
25216 test ! -s conftest.err
25217 } && test -s conftest.$ac_objext; then
25218 eval "$as_ac_Header=yes"
25220 echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223 eval "$as_ac_Header=no"
25226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 ac_res=`eval echo '${'$as_ac_Header'}'`
25229 { echo "$as_me:$LINENO: result: $ac_res" >&5
25230 echo "${ECHO_T}$ac_res" >&6; }
25231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25232 cat >>confdefs.h <<_ACEOF
25233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25242 for ac_header in sys/socket.h
25244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25250 cat >conftest.$ac_ext <<_ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 $ac_includes_default
25257 #ifdef HAVE_SYS_TYPES_H
25258 #include <sys/types.h>
25262 #include <$ac_header>
25264 rm -f conftest.$ac_objext
25265 if { (ac_try="$ac_compile"
25266 case "(($ac_try" in
25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25268 *) ac_try_echo=$ac_try;;
25270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25271 (eval "$ac_compile") 2>conftest.er1
25273 grep -v '^ *+' conftest.er1 >conftest.err
25275 cat conftest.err >&5
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } && {
25278 test -z "$ac_c_werror_flag" ||
25279 test ! -s conftest.err
25280 } && test -s conftest.$ac_objext; then
25281 eval "$as_ac_Header=yes"
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25286 eval "$as_ac_Header=no"
25289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25291 ac_res=`eval echo '${'$as_ac_Header'}'`
25292 { echo "$as_me:$LINENO: result: $ac_res" >&5
25293 echo "${ECHO_T}$ac_res" >&6; }
25294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25295 cat >>confdefs.h <<_ACEOF
25296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25305 for ac_header in net/if.h
25307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25313 cat >conftest.$ac_ext <<_ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 $ac_includes_default
25320 #ifdef HAVE_SYS_TYPES_H
25321 #include <sys/types.h>
25323 #if HAVE_SYS_SOCKET_H
25324 #include <sys/socket.h>
25327 #include <$ac_header>
25329 rm -f conftest.$ac_objext
25330 if { (ac_try="$ac_compile"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_compile") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && {
25343 test -z "$ac_c_werror_flag" ||
25344 test ! -s conftest.err
25345 } && test -s conftest.$ac_objext; then
25346 eval "$as_ac_Header=yes"
25348 echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 eval "$as_ac_Header=no"
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 ac_res=`eval echo '${'$as_ac_Header'}'`
25357 { echo "$as_me:$LINENO: result: $ac_res" >&5
25358 echo "${ECHO_T}$ac_res" >&6; }
25359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25360 cat >>confdefs.h <<_ACEOF
25361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25370 for ac_header in netinet6/in6_var.h
25372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25376 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25385 #ifdef HAVE_SYS_TYPES_H
25386 #include <sys/types.h>
25388 #if HAVE_SYS_SOCKET_H
25389 #include <sys/socket.h>
25391 #ifdef HAVE_NETINET6_IN6_H
25392 #include <netinet6/in6.h>
25396 #include <$ac_header>
25398 rm -f conftest.$ac_objext
25399 if { (ac_try="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_compile") 2>conftest.er1
25407 grep -v '^ *+' conftest.er1 >conftest.err
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && {
25412 test -z "$ac_c_werror_flag" ||
25413 test ! -s conftest.err
25414 } && test -s conftest.$ac_objext; then
25415 eval "$as_ac_Header=yes"
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 eval "$as_ac_Header=no"
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25425 ac_res=`eval echo '${'$as_ac_Header'}'`
25426 { echo "$as_me:$LINENO: result: $ac_res" >&5
25427 echo "${ECHO_T}$ac_res" >&6; }
25428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25429 cat >>confdefs.h <<_ACEOF
25430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25439 for ac_header in sys/sysctl.h
25441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 $ac_includes_default
25454 #ifdef HAVE_SYS_PARAM_H
25455 #include <sys/param.h>
25459 #include <$ac_header>
25461 rm -f conftest.$ac_objext
25462 if { (ac_try="$ac_compile"
25463 case "(($ac_try" in
25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465 *) ac_try_echo=$ac_try;;
25467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25468 (eval "$ac_compile") 2>conftest.er1
25470 grep -v '^ *+' conftest.er1 >conftest.err
25472 cat conftest.err >&5
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } && {
25475 test -z "$ac_c_werror_flag" ||
25476 test ! -s conftest.err
25477 } && test -s conftest.$ac_objext; then
25478 eval "$as_ac_Header=yes"
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 eval "$as_ac_Header=no"
25486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25488 ac_res=`eval echo '${'$as_ac_Header'}'`
25489 { echo "$as_me:$LINENO: result: $ac_res" >&5
25490 echo "${ECHO_T}$ac_res" >&6; }
25491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25492 cat >>confdefs.h <<_ACEOF
25493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25502 for ac_header in sys/proc.h
25504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 $ac_includes_default
25517 #ifdef HAVE_SYS_PARAM_H
25518 #include <sys/param.h>
25522 #include <$ac_header>
25524 rm -f conftest.$ac_objext
25525 if { (ac_try="$ac_compile"
25526 case "(($ac_try" in
25527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25528 *) ac_try_echo=$ac_try;;
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25533 grep -v '^ *+' conftest.er1 >conftest.err
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25541 eval "$as_ac_Header=yes"
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 eval "$as_ac_Header=no"
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551 ac_res=`eval echo '${'$as_ac_Header'}'`
25552 { echo "$as_me:$LINENO: result: $ac_res" >&5
25553 echo "${ECHO_T}$ac_res" >&6; }
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555 cat >>confdefs.h <<_ACEOF
25556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25566 if test "$ac_cv_header_err_h" = yes; then
25568 have_err_h_FALSE='#'
25570 have_err_h_TRUE='#'
25574 if test "$ac_cv_header_ifaddrs_h" = yes; then
25575 have_ifaddrs_h_TRUE=
25576 have_ifaddrs_h_FALSE='#'
25578 have_ifaddrs_h_TRUE='#'
25579 have_ifaddrs_h_FALSE=
25582 if test "$ac_cv_header_vis_h" = yes; then
25584 have_vis_h_FALSE='#'
25586 have_vis_h_TRUE='#'
25596 { echo "$as_me:$LINENO: checking for socket" >&5
25597 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
25598 if test "${ac_cv_funclib_socket+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
25603 ac_save_LIBS="$LIBS"
25604 for ac_lib in "" socket; do
25610 *) ac_lib="-l$ac_lib" ;;
25612 LIBS=" $ac_lib $ac_save_LIBS"
25613 cat >conftest.$ac_ext <<_ACEOF
25616 cat confdefs.h >>conftest.$ac_ext
25617 cat >>conftest.$ac_ext <<_ACEOF
25618 /* end confdefs.h. */
25628 rm -f conftest.$ac_objext conftest$ac_exeext
25629 if { (ac_try="$ac_link"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25635 (eval "$ac_link") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest$ac_exeext &&
25645 $as_test_x conftest$ac_exeext; then
25646 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25655 conftest$ac_exeext conftest.$ac_ext
25657 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
25658 LIBS="$ac_save_LIBS"
25664 eval "ac_res=\$ac_cv_funclib_socket"
25668 for ac_func in socket
25670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25674 echo $ECHO_N "(cached) $ECHO_C" >&6
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25684 #define $ac_func innocuous_$ac_func
25686 /* System header to define __stub macros and hopefully few prototypes,
25687 which can conflict with char $ac_func (); below.
25688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25689 <limits.h> exists even on freestanding compilers. */
25692 # include <limits.h>
25694 # include <assert.h>
25699 /* Override any GCC internal prototype to avoid an error.
25700 Use char because int might match the return type of a GCC
25701 builtin and then its argument prototype would still apply. */
25706 /* The GNU C library defines this for functions which it implements
25707 to always fail with ENOSYS. Some functions are actually named
25708 something starting with __ and the normal name is an alias. */
25709 #if defined __stub_$ac_func || defined __stub___$ac_func
25716 return $ac_func ();
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728 (eval "$ac_link") 2>conftest.er1
25730 grep -v '^ *+' conftest.er1 >conftest.err
25732 cat conftest.err >&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } && {
25735 test -z "$ac_c_werror_flag" ||
25736 test ! -s conftest.err
25737 } && test -s conftest$ac_exeext &&
25738 $as_test_x conftest$ac_exeext; then
25739 eval "$as_ac_var=yes"
25741 echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 eval "$as_ac_var=no"
25747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748 conftest$ac_exeext conftest.$ac_ext
25750 ac_res=`eval echo '${'$as_ac_var'}'`
25751 { echo "$as_me:$LINENO: result: $ac_res" >&5
25752 echo "${ECHO_T}$ac_res" >&6; }
25753 if test `eval echo '${'$as_ac_var'}'` = yes; then
25754 cat >>confdefs.h <<_ACEOF
25755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25763 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25764 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25765 eval "LIB_socket=$ac_res"
25769 eval "ac_cv_func_socket=yes"
25771 cat >>confdefs.h <<_ACEOF
25772 #define $ac_tr_func 1
25775 { echo "$as_me:$LINENO: result: yes" >&5
25776 echo "${ECHO_T}yes" >&6; }
25779 eval "ac_cv_func_socket=no"
25781 { echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6; }
25785 eval "ac_cv_func_socket=yes"
25786 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25787 cat >>confdefs.h <<_ACEOF
25788 #define $ac_tr_func 1
25791 cat >>confdefs.h <<_ACEOF
25792 #define $ac_tr_lib 1
25795 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25796 echo "${ECHO_T}yes, in $ac_res" >&6; }
25801 if test -n "$LIB_socket"; then
25802 LIBS="$LIB_socket $LIBS"
25809 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
25810 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
25811 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25815 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
25816 ac_save_LIBS="$LIBS"
25817 for ac_lib in "" nsl; do
25823 *) ac_lib="-l$ac_lib" ;;
25825 LIBS=" $ac_lib $ac_save_LIBS"
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25841 rm -f conftest.$ac_objext conftest$ac_exeext
25842 if { (ac_try="$ac_link"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_link") 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest$ac_exeext &&
25858 $as_test_x conftest$ac_exeext; then
25859 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25868 conftest$ac_exeext conftest.$ac_ext
25870 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
25871 LIBS="$ac_save_LIBS"
25877 eval "ac_res=\$ac_cv_funclib_gethostbyname"
25881 for ac_func in gethostbyname
25883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25897 #define $ac_func innocuous_$ac_func
25899 /* System header to define __stub macros and hopefully few prototypes,
25900 which can conflict with char $ac_func (); below.
25901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25902 <limits.h> exists even on freestanding compilers. */
25905 # include <limits.h>
25907 # include <assert.h>
25912 /* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25919 /* The GNU C library defines this for functions which it implements
25920 to always fail with ENOSYS. Some functions are actually named
25921 something starting with __ and the normal name is an alias. */
25922 #if defined __stub_$ac_func || defined __stub___$ac_func
25929 return $ac_func ();
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (ac_try="$ac_link"
25936 case "(($ac_try" in
25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938 *) ac_try_echo=$ac_try;;
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941 (eval "$ac_link") 2>conftest.er1
25943 grep -v '^ *+' conftest.er1 >conftest.err
25945 cat conftest.err >&5
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && {
25948 test -z "$ac_c_werror_flag" ||
25949 test ! -s conftest.err
25950 } && test -s conftest$ac_exeext &&
25951 $as_test_x conftest$ac_exeext; then
25952 eval "$as_ac_var=yes"
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25957 eval "$as_ac_var=no"
25960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25961 conftest$ac_exeext conftest.$ac_ext
25963 ac_res=`eval echo '${'$as_ac_var'}'`
25964 { echo "$as_me:$LINENO: result: $ac_res" >&5
25965 echo "${ECHO_T}$ac_res" >&6; }
25966 if test `eval echo '${'$as_ac_var'}'` = yes; then
25967 cat >>confdefs.h <<_ACEOF
25968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25976 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25977 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25978 eval "LIB_gethostbyname=$ac_res"
25982 eval "ac_cv_func_gethostbyname=yes"
25983 eval "LIB_gethostbyname="
25984 cat >>confdefs.h <<_ACEOF
25985 #define $ac_tr_func 1
25988 { echo "$as_me:$LINENO: result: yes" >&5
25989 echo "${ECHO_T}yes" >&6; }
25992 eval "ac_cv_func_gethostbyname=no"
25993 eval "LIB_gethostbyname="
25994 { echo "$as_me:$LINENO: result: no" >&5
25995 echo "${ECHO_T}no" >&6; }
25998 eval "ac_cv_func_gethostbyname=yes"
25999 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26000 cat >>confdefs.h <<_ACEOF
26001 #define $ac_tr_func 1
26004 cat >>confdefs.h <<_ACEOF
26005 #define $ac_tr_lib 1
26008 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26009 echo "${ECHO_T}yes, in $ac_res" >&6; }
26014 if test -n "$LIB_gethostbyname"; then
26015 LIBS="$LIB_gethostbyname $LIBS"
26022 { echo "$as_me:$LINENO: checking for syslog" >&5
26023 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
26024 if test "${ac_cv_funclib_syslog+set}" = set; then
26025 echo $ECHO_N "(cached) $ECHO_C" >&6
26028 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26029 ac_save_LIBS="$LIBS"
26030 for ac_lib in "" syslog; do
26036 *) ac_lib="-l$ac_lib" ;;
26038 LIBS=" $ac_lib $ac_save_LIBS"
26039 cat >conftest.$ac_ext <<_ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26054 rm -f conftest.$ac_objext conftest$ac_exeext
26055 if { (ac_try="$ac_link"
26056 case "(($ac_try" in
26057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058 *) ac_try_echo=$ac_try;;
26060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26061 (eval "$ac_link") 2>conftest.er1
26063 grep -v '^ *+' conftest.er1 >conftest.err
26065 cat conftest.err >&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); } && {
26068 test -z "$ac_c_werror_flag" ||
26069 test ! -s conftest.err
26070 } && test -s conftest$ac_exeext &&
26071 $as_test_x conftest$ac_exeext; then
26072 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26081 conftest$ac_exeext conftest.$ac_ext
26083 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26084 LIBS="$ac_save_LIBS"
26090 eval "ac_res=\$ac_cv_funclib_syslog"
26094 for ac_func in syslog
26096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26102 cat >conftest.$ac_ext <<_ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26110 #define $ac_func innocuous_$ac_func
26112 /* System header to define __stub macros and hopefully few prototypes,
26113 which can conflict with char $ac_func (); below.
26114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26115 <limits.h> exists even on freestanding compilers. */
26118 # include <limits.h>
26120 # include <assert.h>
26125 /* Override any GCC internal prototype to avoid an error.
26126 Use char because int might match the return type of a GCC
26127 builtin and then its argument prototype would still apply. */
26132 /* The GNU C library defines this for functions which it implements
26133 to always fail with ENOSYS. Some functions are actually named
26134 something starting with __ and the normal name is an alias. */
26135 #if defined __stub_$ac_func || defined __stub___$ac_func
26142 return $ac_func ();
26147 rm -f conftest.$ac_objext conftest$ac_exeext
26148 if { (ac_try="$ac_link"
26149 case "(($ac_try" in
26150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26151 *) ac_try_echo=$ac_try;;
26153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26154 (eval "$ac_link") 2>conftest.er1
26156 grep -v '^ *+' conftest.er1 >conftest.err
26158 cat conftest.err >&5
26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160 (exit $ac_status); } && {
26161 test -z "$ac_c_werror_flag" ||
26162 test ! -s conftest.err
26163 } && test -s conftest$ac_exeext &&
26164 $as_test_x conftest$ac_exeext; then
26165 eval "$as_ac_var=yes"
26167 echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26170 eval "$as_ac_var=no"
26173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26174 conftest$ac_exeext conftest.$ac_ext
26176 ac_res=`eval echo '${'$as_ac_var'}'`
26177 { echo "$as_me:$LINENO: result: $ac_res" >&5
26178 echo "${ECHO_T}$ac_res" >&6; }
26179 if test `eval echo '${'$as_ac_var'}'` = yes; then
26180 cat >>confdefs.h <<_ACEOF
26181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26189 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26190 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26191 eval "LIB_syslog=$ac_res"
26195 eval "ac_cv_func_syslog=yes"
26197 cat >>confdefs.h <<_ACEOF
26198 #define $ac_tr_func 1
26201 { echo "$as_me:$LINENO: result: yes" >&5
26202 echo "${ECHO_T}yes" >&6; }
26205 eval "ac_cv_func_syslog=no"
26207 { echo "$as_me:$LINENO: result: no" >&5
26208 echo "${ECHO_T}no" >&6; }
26211 eval "ac_cv_func_syslog=yes"
26212 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26213 cat >>confdefs.h <<_ACEOF
26214 #define $ac_tr_func 1
26217 cat >>confdefs.h <<_ACEOF
26218 #define $ac_tr_lib 1
26221 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26222 echo "${ECHO_T}yes, in $ac_res" >&6; }
26227 if test -n "$LIB_syslog"; then
26228 LIBS="$LIB_syslog $LIBS"
26234 # Check whether --with-ipv6 was given.
26235 if test "${with_ipv6+set}" = set; then
26236 withval=$with_ipv6;
26237 if test "$withval" = "no"; then
26242 save_CFLAGS="${CFLAGS}"
26243 { echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
26244 echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6; }
26245 if test "${v6type+set}" = set; then
26246 echo $ECHO_N "(cached) $ECHO_C" >&6
26251 for i in v6d toshiba kame inria zeta linux; do
26254 cat >conftest.$ac_ext <<_ACEOF
26257 cat confdefs.h >>conftest.$ac_ext
26258 cat >>conftest.$ac_ext <<_ACEOF
26259 /* end confdefs.h. */
26261 #include </usr/local/v6/include/sys/types.h>
26266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26267 $EGREP "yes" >/dev/null 2>&1; then
26268 v6type=$i; v6lib=v6;
26269 v6libdir=/usr/local/v6/lib;
26270 CFLAGS="-I/usr/local/v6/include $CFLAGS"
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26283 #include <sys/param.h>
26284 #ifdef _TOSHIBA_INET6
26288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289 $EGREP "yes" >/dev/null 2>&1; then
26290 v6type=$i; v6lib=inet6;
26291 v6libdir=/usr/local/v6/lib;
26292 CFLAGS="-DINET6 $CFLAGS"
26298 cat >conftest.$ac_ext <<_ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26305 #include <netinet/in.h>
26310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26311 $EGREP "yes" >/dev/null 2>&1; then
26312 v6type=$i; v6lib=inet6;
26313 v6libdir=/usr/local/v6/lib;
26314 CFLAGS="-DINET6 $CFLAGS"
26320 cat >conftest.$ac_ext <<_ACEOF
26323 cat confdefs.h >>conftest.$ac_ext
26324 cat >>conftest.$ac_ext <<_ACEOF
26325 /* end confdefs.h. */
26327 #include <netinet/in.h>
26328 #ifdef IPV6_INRIA_VERSION
26332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26333 $EGREP "yes" >/dev/null 2>&1; then
26334 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26347 #include <sys/param.h>
26348 #ifdef _ZETA_MINAMI_INET6
26352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26353 $EGREP "yes" >/dev/null 2>&1; then
26354 v6type=$i; v6lib=inet6;
26355 v6libdir=/usr/local/v6/lib;
26356 CFLAGS="-DINET6 $CFLAGS"
26362 if test -d /usr/inet6; then
26365 v6libdir=/usr/inet6
26366 CFLAGS="-DINET6 $CFLAGS"
26370 if test "$v6type" != "unknown"; then
26375 if test "$v6lib" != "none"; then
26376 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
26377 if test -d $dir -a -f $dir/lib$v6lib.a; then
26378 LIBS="-L$dir -l$v6lib $LIBS"
26385 { echo "$as_me:$LINENO: result: $v6type" >&5
26386 echo "${ECHO_T}$v6type" >&6; }
26388 { echo "$as_me:$LINENO: checking for IPv6" >&5
26389 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6; }
26390 if test "${ac_cv_lib_ipv6+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26394 cat >conftest.$ac_ext <<_ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h. */
26401 #ifdef HAVE_SYS_TYPES_H
26402 #include <sys/types.h>
26404 #ifdef HAVE_SYS_SOCKET_H
26405 #include <sys/socket.h>
26407 #ifdef HAVE_NETINET_IN_H
26408 #include <netinet/in.h>
26410 #ifdef HAVE_NETINET_IN6_H
26411 #include <netinet/in6.h>
26418 struct sockaddr_in6 sin6;
26421 s = socket(AF_INET6, SOCK_DGRAM, 0);
26423 sin6.sin6_family = AF_INET6;
26424 sin6.sin6_port = htons(17);
26425 sin6.sin6_addr = in6addr_any;
26426 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
26432 rm -f conftest.$ac_objext conftest$ac_exeext
26433 if { (ac_try="$ac_link"
26434 case "(($ac_try" in
26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436 *) ac_try_echo=$ac_try;;
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439 (eval "$ac_link") 2>conftest.er1
26441 grep -v '^ *+' conftest.er1 >conftest.err
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } && {
26446 test -z "$ac_c_werror_flag" ||
26447 test ! -s conftest.err
26448 } && test -s conftest$ac_exeext &&
26449 $as_test_x conftest$ac_exeext; then
26452 echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26459 conftest$ac_exeext conftest.$ac_ext
26461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
26462 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6; }
26463 if test "$ac_cv_lib_ipv6" = yes; then
26465 cat >>confdefs.h <<\_ACEOF
26466 #define HAVE_IPV6 1
26470 CFLAGS="${save_CFLAGS}"
26473 ## test for AIX missing in6addr_loopback
26474 if test "$ac_cv_lib_ipv6" = yes; then
26475 { echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
26476 echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; }
26477 if test "${ac_cv_var_in6addr_loopback+set}" = set; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26481 cat >conftest.$ac_ext <<_ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h. */
26488 #ifdef HAVE_SYS_TYPES_H
26489 #include <sys/types.h>
26491 #ifdef HAVE_SYS_SOCKET_H
26492 #include <sys/socket.h>
26494 #ifdef HAVE_NETINET_IN_H
26495 #include <netinet/in.h>
26497 #ifdef HAVE_NETINET_IN6_H
26498 #include <netinet/in6.h>
26504 struct sockaddr_in6 sin6;
26505 sin6.sin6_addr = in6addr_loopback;
26511 rm -f conftest.$ac_objext conftest$ac_exeext
26512 if { (ac_try="$ac_link"
26513 case "(($ac_try" in
26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26515 *) ac_try_echo=$ac_try;;
26517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26518 (eval "$ac_link") 2>conftest.er1
26520 grep -v '^ *+' conftest.er1 >conftest.err
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } && {
26525 test -z "$ac_c_werror_flag" ||
26526 test ! -s conftest.err
26527 } && test -s conftest$ac_exeext &&
26528 $as_test_x conftest$ac_exeext; then
26529 ac_cv_var_in6addr_loopback=yes
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26534 ac_cv_var_in6addr_loopback=no
26537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26538 conftest$ac_exeext conftest.$ac_ext
26540 { echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
26541 echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6; }
26542 if test "$ac_cv_var_in6addr_loopback" = yes; then
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_IN6ADDR_LOOPBACK 1
26556 { echo "$as_me:$LINENO: checking for gethostbyname2" >&5
26557 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6; }
26558 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26562 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
26563 ac_save_LIBS="$LIBS"
26564 for ac_lib in "" inet6 ip6; do
26570 *) ac_lib="-l$ac_lib" ;;
26572 LIBS=" $ac_lib $ac_save_LIBS"
26573 cat >conftest.$ac_ext <<_ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26588 rm -f conftest.$ac_objext conftest$ac_exeext
26589 if { (ac_try="$ac_link"
26590 case "(($ac_try" in
26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26592 *) ac_try_echo=$ac_try;;
26594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26595 (eval "$ac_link") 2>conftest.er1
26597 grep -v '^ *+' conftest.er1 >conftest.err
26599 cat conftest.err >&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); } && {
26602 test -z "$ac_c_werror_flag" ||
26603 test ! -s conftest.err
26604 } && test -s conftest$ac_exeext &&
26605 $as_test_x conftest$ac_exeext; then
26606 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
26608 echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26615 conftest$ac_exeext conftest.$ac_ext
26617 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
26618 LIBS="$ac_save_LIBS"
26624 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
26628 for ac_func in gethostbyname2
26630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 cat >conftest.$ac_ext <<_ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26644 #define $ac_func innocuous_$ac_func
26646 /* System header to define __stub macros and hopefully few prototypes,
26647 which can conflict with char $ac_func (); below.
26648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26649 <limits.h> exists even on freestanding compilers. */
26652 # include <limits.h>
26654 # include <assert.h>
26659 /* Override any GCC internal prototype to avoid an error.
26660 Use char because int might match the return type of a GCC
26661 builtin and then its argument prototype would still apply. */
26666 /* The GNU C library defines this for functions which it implements
26667 to always fail with ENOSYS. Some functions are actually named
26668 something starting with __ and the normal name is an alias. */
26669 #if defined __stub_$ac_func || defined __stub___$ac_func
26676 return $ac_func ();
26681 rm -f conftest.$ac_objext conftest$ac_exeext
26682 if { (ac_try="$ac_link"
26683 case "(($ac_try" in
26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685 *) ac_try_echo=$ac_try;;
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688 (eval "$ac_link") 2>conftest.er1
26690 grep -v '^ *+' conftest.er1 >conftest.err
26692 cat conftest.err >&5
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } && {
26695 test -z "$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 } && test -s conftest$ac_exeext &&
26698 $as_test_x conftest$ac_exeext; then
26699 eval "$as_ac_var=yes"
26701 echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26704 eval "$as_ac_var=no"
26707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26708 conftest$ac_exeext conftest.$ac_ext
26710 ac_res=`eval echo '${'$as_ac_var'}'`
26711 { echo "$as_me:$LINENO: result: $ac_res" >&5
26712 echo "${ECHO_T}$ac_res" >&6; }
26713 if test `eval echo '${'$as_ac_var'}'` = yes; then
26714 cat >>confdefs.h <<_ACEOF
26715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26723 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26724 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26725 eval "LIB_gethostbyname2=$ac_res"
26729 eval "ac_cv_func_gethostbyname2=yes"
26730 eval "LIB_gethostbyname2="
26731 cat >>confdefs.h <<_ACEOF
26732 #define $ac_tr_func 1
26735 { echo "$as_me:$LINENO: result: yes" >&5
26736 echo "${ECHO_T}yes" >&6; }
26739 eval "ac_cv_func_gethostbyname2=no"
26740 eval "LIB_gethostbyname2="
26741 { echo "$as_me:$LINENO: result: no" >&5
26742 echo "${ECHO_T}no" >&6; }
26745 eval "ac_cv_func_gethostbyname2=yes"
26746 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26747 cat >>confdefs.h <<_ACEOF
26748 #define $ac_tr_func 1
26751 cat >>confdefs.h <<_ACEOF
26752 #define $ac_tr_lib 1
26755 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26756 echo "${ECHO_T}yes, in $ac_res" >&6; }
26761 if test -n "$LIB_gethostbyname2"; then
26762 LIBS="$LIB_gethostbyname2 $LIBS"
26769 for ac_header in arpa/nameser.h
26771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26776 echo $ECHO_N "(cached) $ECHO_C" >&6
26778 ac_res=`eval echo '${'$as_ac_Header'}'`
26779 { echo "$as_me:$LINENO: result: $ac_res" >&5
26780 echo "${ECHO_T}$ac_res" >&6; }
26782 # Is the header compilable?
26783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 $ac_includes_default
26792 #include <$ac_header>
26794 rm -f conftest.$ac_objext
26795 if { (ac_try="$ac_compile"
26796 case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_compile") 2>conftest.er1
26803 grep -v '^ *+' conftest.er1 >conftest.err
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } && {
26808 test -z "$ac_c_werror_flag" ||
26809 test ! -s conftest.err
26810 } && test -s conftest.$ac_objext; then
26811 ac_header_compiler=yes
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 ac_header_compiler=no
26819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26821 echo "${ECHO_T}$ac_header_compiler" >&6; }
26823 # Is the header present?
26824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26826 cat >conftest.$ac_ext <<_ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h. */
26832 #include <$ac_header>
26834 if { (ac_try="$ac_cpp conftest.$ac_ext"
26835 case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26842 grep -v '^ *+' conftest.er1 >conftest.err
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } >/dev/null && {
26847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26848 test ! -s conftest.err
26850 ac_header_preproc=yes
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26855 ac_header_preproc=no
26858 rm -f conftest.err conftest.$ac_ext
26859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26860 echo "${ECHO_T}$ac_header_preproc" >&6; }
26862 # So? What about this header?
26863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26869 ac_header_preproc=yes
26872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26885 ## ----------------------------------- ##
26886 ## Report this to heimdal-bugs@h5l.org ##
26887 ## ----------------------------------- ##
26889 ) | sed "s/^/$as_me: WARNING: /" >&2
26892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26897 eval "$as_ac_Header=\$ac_header_preproc"
26899 ac_res=`eval echo '${'$as_ac_Header'}'`
26900 { echo "$as_me:$LINENO: result: $ac_res" >&5
26901 echo "${ECHO_T}$ac_res" >&6; }
26904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26905 cat >>confdefs.h <<_ACEOF
26906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26915 for ac_header in resolv.h
26917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26929 $ac_includes_default
26930 #ifdef HAVE_SYS_TYPES_H
26931 #include <sys/types.h>
26933 #ifdef HAVE_NETINET_IN_H
26934 #include <netinet/in.h>
26936 #ifdef HAVE_ARPA_NAMESER_H
26937 #include <arpa/nameser.h>
26941 #include <$ac_header>
26943 rm -f conftest.$ac_objext
26944 if { (ac_try="$ac_compile"
26945 case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_compile") 2>conftest.er1
26952 grep -v '^ *+' conftest.er1 >conftest.err
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } && {
26957 test -z "$ac_c_werror_flag" ||
26958 test ! -s conftest.err
26959 } && test -s conftest.$ac_objext; then
26960 eval "$as_ac_Header=yes"
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 eval "$as_ac_Header=no"
26968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26970 ac_res=`eval echo '${'$as_ac_Header'}'`
26971 { echo "$as_me:$LINENO: result: $ac_res" >&5
26972 echo "${ECHO_T}$ac_res" >&6; }
26973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26974 cat >>confdefs.h <<_ACEOF
26975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26987 { echo "$as_me:$LINENO: checking for res_search" >&5
26988 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
26989 if test "${ac_cv_funclib_res_search+set}" = set; then
26990 echo $ECHO_N "(cached) $ECHO_C" >&6
26993 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
26994 ac_save_LIBS="$LIBS"
26995 for ac_lib in "" resolv; do
27001 *) ac_lib="-l$ac_lib" ;;
27003 LIBS=" $ac_lib $ac_save_LIBS"
27004 cat >conftest.$ac_ext <<_ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27012 #ifdef HAVE_SYS_TYPES_H
27013 #include <sys/types.h>
27015 #ifdef HAVE_NETINET_IN_H
27016 #include <netinet/in.h>
27018 #ifdef HAVE_ARPA_NAMESER_H
27019 #include <arpa/nameser.h>
27021 #ifdef HAVE_RESOLV_H
27022 #include <resolv.h>
27028 res_search(0,0,0,0,0)
27033 rm -f conftest.$ac_objext conftest$ac_exeext
27034 if { (ac_try="$ac_link"
27035 case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_link") 2>conftest.er1
27042 grep -v '^ *+' conftest.er1 >conftest.err
27044 cat conftest.err >&5
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); } && {
27047 test -z "$ac_c_werror_flag" ||
27048 test ! -s conftest.err
27049 } && test -s conftest$ac_exeext &&
27050 $as_test_x conftest$ac_exeext; then
27051 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27053 echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27060 conftest$ac_exeext conftest.$ac_ext
27062 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27063 LIBS="$ac_save_LIBS"
27069 eval "ac_res=\$ac_cv_funclib_res_search"
27073 for ac_func in res_search
27075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27089 #define $ac_func innocuous_$ac_func
27091 /* System header to define __stub macros and hopefully few prototypes,
27092 which can conflict with char $ac_func (); below.
27093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27094 <limits.h> exists even on freestanding compilers. */
27097 # include <limits.h>
27099 # include <assert.h>
27104 /* Override any GCC internal prototype to avoid an error.
27105 Use char because int might match the return type of a GCC
27106 builtin and then its argument prototype would still apply. */
27111 /* The GNU C library defines this for functions which it implements
27112 to always fail with ENOSYS. Some functions are actually named
27113 something starting with __ and the normal name is an alias. */
27114 #if defined __stub_$ac_func || defined __stub___$ac_func
27121 return $ac_func ();
27126 rm -f conftest.$ac_objext conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_link") 2>conftest.er1
27135 grep -v '^ *+' conftest.er1 >conftest.err
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } && {
27140 test -z "$ac_c_werror_flag" ||
27141 test ! -s conftest.err
27142 } && test -s conftest$ac_exeext &&
27143 $as_test_x conftest$ac_exeext; then
27144 eval "$as_ac_var=yes"
27146 echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27149 eval "$as_ac_var=no"
27152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27153 conftest$ac_exeext conftest.$ac_ext
27155 ac_res=`eval echo '${'$as_ac_var'}'`
27156 { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 if test `eval echo '${'$as_ac_var'}'` = yes; then
27159 cat >>confdefs.h <<_ACEOF
27160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27168 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27169 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27170 eval "LIB_res_search=$ac_res"
27174 eval "ac_cv_func_res_search=yes"
27175 eval "LIB_res_search="
27176 cat >>confdefs.h <<_ACEOF
27177 #define $ac_tr_func 1
27180 { echo "$as_me:$LINENO: result: yes" >&5
27181 echo "${ECHO_T}yes" >&6; }
27184 eval "ac_cv_func_res_search=no"
27185 eval "LIB_res_search="
27186 { echo "$as_me:$LINENO: result: no" >&5
27187 echo "${ECHO_T}no" >&6; }
27190 eval "ac_cv_func_res_search=yes"
27191 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27192 cat >>confdefs.h <<_ACEOF
27193 #define $ac_tr_func 1
27196 cat >>confdefs.h <<_ACEOF
27197 #define $ac_tr_lib 1
27200 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27201 echo "${ECHO_T}yes, in $ac_res" >&6; }
27206 if test -n "$LIB_res_search"; then
27207 LIBS="$LIB_res_search $LIBS"
27215 { echo "$as_me:$LINENO: checking for res_nsearch" >&5
27216 echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; }
27217 if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27221 if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27222 ac_save_LIBS="$LIBS"
27223 for ac_lib in "" resolv; do
27229 *) ac_lib="-l$ac_lib" ;;
27231 LIBS=" $ac_lib $ac_save_LIBS"
27232 cat >conftest.$ac_ext <<_ACEOF
27235 cat confdefs.h >>conftest.$ac_ext
27236 cat >>conftest.$ac_ext <<_ACEOF
27237 /* end confdefs.h. */
27240 #ifdef HAVE_SYS_TYPES_H
27241 #include <sys/types.h>
27243 #ifdef HAVE_NETINET_IN_H
27244 #include <netinet/in.h>
27246 #ifdef HAVE_ARPA_NAMESER_H
27247 #include <arpa/nameser.h>
27249 #ifdef HAVE_RESOLV_H
27250 #include <resolv.h>
27256 res_nsearch(0,0,0,0,0,0)
27261 rm -f conftest.$ac_objext conftest$ac_exeext
27262 if { (ac_try="$ac_link"
27263 case "(($ac_try" in
27264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27265 *) ac_try_echo=$ac_try;;
27267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27268 (eval "$ac_link") 2>conftest.er1
27270 grep -v '^ *+' conftest.er1 >conftest.err
27272 cat conftest.err >&5
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); } && {
27275 test -z "$ac_c_werror_flag" ||
27276 test ! -s conftest.err
27277 } && test -s conftest$ac_exeext &&
27278 $as_test_x conftest$ac_exeext; then
27279 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27281 echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27288 conftest$ac_exeext conftest.$ac_ext
27290 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27291 LIBS="$ac_save_LIBS"
27297 eval "ac_res=\$ac_cv_funclib_res_nsearch"
27301 for ac_func in res_nsearch
27303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27307 echo $ECHO_N "(cached) $ECHO_C" >&6
27309 cat >conftest.$ac_ext <<_ACEOF
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27317 #define $ac_func innocuous_$ac_func
27319 /* System header to define __stub macros and hopefully few prototypes,
27320 which can conflict with char $ac_func (); below.
27321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322 <limits.h> exists even on freestanding compilers. */
27325 # include <limits.h>
27327 # include <assert.h>
27332 /* Override any GCC internal prototype to avoid an error.
27333 Use char because int might match the return type of a GCC
27334 builtin and then its argument prototype would still apply. */
27339 /* The GNU C library defines this for functions which it implements
27340 to always fail with ENOSYS. Some functions are actually named
27341 something starting with __ and the normal name is an alias. */
27342 #if defined __stub_$ac_func || defined __stub___$ac_func
27349 return $ac_func ();
27354 rm -f conftest.$ac_objext conftest$ac_exeext
27355 if { (ac_try="$ac_link"
27356 case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_link") 2>conftest.er1
27363 grep -v '^ *+' conftest.er1 >conftest.err
27365 cat conftest.err >&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } && {
27368 test -z "$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27370 } && test -s conftest$ac_exeext &&
27371 $as_test_x conftest$ac_exeext; then
27372 eval "$as_ac_var=yes"
27374 echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27377 eval "$as_ac_var=no"
27380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27381 conftest$ac_exeext conftest.$ac_ext
27383 ac_res=`eval echo '${'$as_ac_var'}'`
27384 { echo "$as_me:$LINENO: result: $ac_res" >&5
27385 echo "${ECHO_T}$ac_res" >&6; }
27386 if test `eval echo '${'$as_ac_var'}'` = yes; then
27387 cat >>confdefs.h <<_ACEOF
27388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27396 eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27397 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27398 eval "LIB_res_nsearch=$ac_res"
27402 eval "ac_cv_func_res_nsearch=yes"
27403 eval "LIB_res_nsearch="
27404 cat >>confdefs.h <<_ACEOF
27405 #define $ac_tr_func 1
27408 { echo "$as_me:$LINENO: result: yes" >&5
27409 echo "${ECHO_T}yes" >&6; }
27412 eval "ac_cv_func_res_nsearch=no"
27413 eval "LIB_res_nsearch="
27414 { echo "$as_me:$LINENO: result: no" >&5
27415 echo "${ECHO_T}no" >&6; }
27418 eval "ac_cv_func_res_nsearch=yes"
27419 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27420 cat >>confdefs.h <<_ACEOF
27421 #define $ac_tr_func 1
27424 cat >>confdefs.h <<_ACEOF
27425 #define $ac_tr_lib 1
27428 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27429 echo "${ECHO_T}yes, in $ac_res" >&6; }
27434 if test -n "$LIB_res_nsearch"; then
27435 LIBS="$LIB_res_nsearch $LIBS"
27443 { echo "$as_me:$LINENO: checking for res_ndestroy" >&5
27444 echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; }
27445 if test "${ac_cv_funclib_res_ndestroy+set}" = set; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
27449 if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
27450 ac_save_LIBS="$LIBS"
27451 for ac_lib in "" resolv; do
27457 *) ac_lib="-l$ac_lib" ;;
27459 LIBS=" $ac_lib $ac_save_LIBS"
27460 cat >conftest.$ac_ext <<_ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h. */
27468 #ifdef HAVE_SYS_TYPES_H
27469 #include <sys/types.h>
27471 #ifdef HAVE_NETINET_IN_H
27472 #include <netinet/in.h>
27474 #ifdef HAVE_ARPA_NAMESER_H
27475 #include <arpa/nameser.h>
27477 #ifdef HAVE_RESOLV_H
27478 #include <resolv.h>
27489 rm -f conftest.$ac_objext conftest$ac_exeext
27490 if { (ac_try="$ac_link"
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_link") 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_exeext &&
27506 $as_test_x conftest$ac_exeext; then
27507 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
27509 echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27516 conftest$ac_exeext conftest.$ac_ext
27518 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
27519 LIBS="$ac_save_LIBS"
27525 eval "ac_res=\$ac_cv_funclib_res_ndestroy"
27529 for ac_func in res_ndestroy
27531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 cat >conftest.$ac_ext <<_ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h. */
27543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27545 #define $ac_func innocuous_$ac_func
27547 /* System header to define __stub macros and hopefully few prototypes,
27548 which can conflict with char $ac_func (); below.
27549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27550 <limits.h> exists even on freestanding compilers. */
27553 # include <limits.h>
27555 # include <assert.h>
27560 /* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27567 /* The GNU C library defines this for functions which it implements
27568 to always fail with ENOSYS. Some functions are actually named
27569 something starting with __ and the normal name is an alias. */
27570 #if defined __stub_$ac_func || defined __stub___$ac_func
27577 return $ac_func ();
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_link") 2>conftest.er1
27591 grep -v '^ *+' conftest.er1 >conftest.err
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); } && {
27596 test -z "$ac_c_werror_flag" ||
27597 test ! -s conftest.err
27598 } && test -s conftest$ac_exeext &&
27599 $as_test_x conftest$ac_exeext; then
27600 eval "$as_ac_var=yes"
27602 echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27605 eval "$as_ac_var=no"
27608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27609 conftest$ac_exeext conftest.$ac_ext
27611 ac_res=`eval echo '${'$as_ac_var'}'`
27612 { echo "$as_me:$LINENO: result: $ac_res" >&5
27613 echo "${ECHO_T}$ac_res" >&6; }
27614 if test `eval echo '${'$as_ac_var'}'` = yes; then
27615 cat >>confdefs.h <<_ACEOF
27616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27624 eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27625 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27626 eval "LIB_res_ndestroy=$ac_res"
27630 eval "ac_cv_func_res_ndestroy=yes"
27631 eval "LIB_res_ndestroy="
27632 cat >>confdefs.h <<_ACEOF
27633 #define $ac_tr_func 1
27636 { echo "$as_me:$LINENO: result: yes" >&5
27637 echo "${ECHO_T}yes" >&6; }
27640 eval "ac_cv_func_res_ndestroy=no"
27641 eval "LIB_res_ndestroy="
27642 { echo "$as_me:$LINENO: result: no" >&5
27643 echo "${ECHO_T}no" >&6; }
27646 eval "ac_cv_func_res_ndestroy=yes"
27647 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27648 cat >>confdefs.h <<_ACEOF
27649 #define $ac_tr_func 1
27652 cat >>confdefs.h <<_ACEOF
27653 #define $ac_tr_lib 1
27656 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27657 echo "${ECHO_T}yes, in $ac_res" >&6; }
27662 if test -n "$LIB_res_ndestroy"; then
27663 LIBS="$LIB_res_ndestroy $LIBS"
27671 { echo "$as_me:$LINENO: checking for dn_expand" >&5
27672 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; }
27673 if test "${ac_cv_funclib_dn_expand+set}" = set; then
27674 echo $ECHO_N "(cached) $ECHO_C" >&6
27677 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
27678 ac_save_LIBS="$LIBS"
27679 for ac_lib in "" resolv; do
27685 *) ac_lib="-l$ac_lib" ;;
27687 LIBS=" $ac_lib $ac_save_LIBS"
27688 cat >conftest.$ac_ext <<_ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27696 #ifdef HAVE_SYS_TYPES_H
27697 #include <sys/types.h>
27699 #ifdef HAVE_NETINET_IN_H
27700 #include <netinet/in.h>
27702 #ifdef HAVE_ARPA_NAMESER_H
27703 #include <arpa/nameser.h>
27705 #ifdef HAVE_RESOLV_H
27706 #include <resolv.h>
27712 dn_expand(0,0,0,0,0)
27717 rm -f conftest.$ac_objext conftest$ac_exeext
27718 if { (ac_try="$ac_link"
27719 case "(($ac_try" in
27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721 *) ac_try_echo=$ac_try;;
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724 (eval "$ac_link") 2>conftest.er1
27726 grep -v '^ *+' conftest.er1 >conftest.err
27728 cat conftest.err >&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); } && {
27731 test -z "$ac_c_werror_flag" ||
27732 test ! -s conftest.err
27733 } && test -s conftest$ac_exeext &&
27734 $as_test_x conftest$ac_exeext; then
27735 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27744 conftest$ac_exeext conftest.$ac_ext
27746 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
27747 LIBS="$ac_save_LIBS"
27753 eval "ac_res=\$ac_cv_funclib_dn_expand"
27757 for ac_func in dn_expand
27759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27763 echo $ECHO_N "(cached) $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h. */
27771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27773 #define $ac_func innocuous_$ac_func
27775 /* System header to define __stub macros and hopefully few prototypes,
27776 which can conflict with char $ac_func (); below.
27777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27778 <limits.h> exists even on freestanding compilers. */
27781 # include <limits.h>
27783 # include <assert.h>
27788 /* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
27795 /* The GNU C library defines this for functions which it implements
27796 to always fail with ENOSYS. Some functions are actually named
27797 something starting with __ and the normal name is an alias. */
27798 #if defined __stub_$ac_func || defined __stub___$ac_func
27805 return $ac_func ();
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811 if { (ac_try="$ac_link"
27812 case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_link") 2>conftest.er1
27819 grep -v '^ *+' conftest.er1 >conftest.err
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } && {
27824 test -z "$ac_c_werror_flag" ||
27825 test ! -s conftest.err
27826 } && test -s conftest$ac_exeext &&
27827 $as_test_x conftest$ac_exeext; then
27828 eval "$as_ac_var=yes"
27830 echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27833 eval "$as_ac_var=no"
27836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27837 conftest$ac_exeext conftest.$ac_ext
27839 ac_res=`eval echo '${'$as_ac_var'}'`
27840 { echo "$as_me:$LINENO: result: $ac_res" >&5
27841 echo "${ECHO_T}$ac_res" >&6; }
27842 if test `eval echo '${'$as_ac_var'}'` = yes; then
27843 cat >>confdefs.h <<_ACEOF
27844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27852 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27853 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27854 eval "LIB_dn_expand=$ac_res"
27858 eval "ac_cv_func_dn_expand=yes"
27859 eval "LIB_dn_expand="
27860 cat >>confdefs.h <<_ACEOF
27861 #define $ac_tr_func 1
27864 { echo "$as_me:$LINENO: result: yes" >&5
27865 echo "${ECHO_T}yes" >&6; }
27868 eval "ac_cv_func_dn_expand=no"
27869 eval "LIB_dn_expand="
27870 { echo "$as_me:$LINENO: result: no" >&5
27871 echo "${ECHO_T}no" >&6; }
27874 eval "ac_cv_func_dn_expand=yes"
27875 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27876 cat >>confdefs.h <<_ACEOF
27877 #define $ac_tr_func 1
27880 cat >>confdefs.h <<_ACEOF
27881 #define $ac_tr_lib 1
27884 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27885 echo "${ECHO_T}yes, in $ac_res" >&6; }
27890 if test -n "$LIB_dn_expand"; then
27891 LIBS="$LIB_dn_expand $LIBS"
27896 { echo "$as_me:$LINENO: checking for _res" >&5
27897 echo $ECHO_N "checking for _res... $ECHO_C" >&6; }
27898 if test "${ac_cv_var__res+set}" = set; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 cat >conftest.$ac_ext <<_ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27910 #ifdef HAVE_SYS_TYPES_H
27911 #include <sys/types.h>
27913 #ifdef HAVE_NETINET_IN_H
27914 #include <netinet/in.h>
27916 #ifdef HAVE_ARPA_NAMESER_H
27917 #include <arpa/nameser.h>
27919 #ifdef HAVE_RESOLV_H
27920 #include <resolv.h>
27922 void * foo(void) { return &_res; }
27931 rm -f conftest.$ac_objext conftest$ac_exeext
27932 if { (ac_try="$ac_link"
27933 case "(($ac_try" in
27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935 *) ac_try_echo=$ac_try;;
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938 (eval "$ac_link") 2>conftest.er1
27940 grep -v '^ *+' conftest.er1 >conftest.err
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } && {
27945 test -z "$ac_c_werror_flag" ||
27946 test ! -s conftest.err
27947 } && test -s conftest$ac_exeext &&
27948 $as_test_x conftest$ac_exeext; then
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27958 conftest$ac_exeext conftest.$ac_ext
27959 if test "$ac_cv_var__res" != yes ; then
27960 cat >conftest.$ac_ext <<_ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h. */
27967 int foo(void) { return _res; }
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (ac_try="$ac_link"
27978 case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983 (eval "$ac_link") 2>conftest.er1
27985 grep -v '^ *+' conftest.er1 >conftest.err
27987 cat conftest.err >&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); } && {
27990 test -z "$ac_c_werror_flag" ||
27991 test ! -s conftest.err
27992 } && test -s conftest$ac_exeext &&
27993 $as_test_x conftest$ac_exeext; then
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
28002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28003 conftest$ac_exeext conftest.$ac_ext
28008 ac_foo=`eval echo \\$ac_cv_var__res`
28009 { echo "$as_me:$LINENO: result: $ac_foo" >&5
28010 echo "${ECHO_T}$ac_foo" >&6; }
28011 if test "$ac_foo" = yes; then
28013 cat >>confdefs.h <<_ACEOF
28014 #define HAVE__RES 1
28017 { echo "$as_me:$LINENO: checking whether _res is declared" >&5
28018 echo $ECHO_N "checking whether _res is declared... $ECHO_C" >&6; }
28019 if test "${ac_cv_have_decl__res+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28022 cat >conftest.$ac_ext <<_ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h. */
28029 #ifdef HAVE_SYS_TYPES_H
28030 #include <sys/types.h>
28032 #ifdef HAVE_NETINET_IN_H
28033 #include <netinet/in.h>
28035 #ifdef HAVE_ARPA_NAMESER_H
28036 #include <arpa/nameser.h>
28038 #ifdef HAVE_RESOLV_H
28039 #include <resolv.h>
28053 rm -f conftest.$ac_objext
28054 if { (ac_try="$ac_compile"
28055 case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_compile") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest.$ac_objext; then
28070 ac_cv_have_decl__res=yes
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 ac_cv_have_decl__res=no
28078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5
28081 echo "${ECHO_T}$ac_cv_have_decl__res" >&6; }
28082 if test $ac_cv_have_decl__res = yes; then
28084 cat >>confdefs.h <<_ACEOF
28085 #define HAVE_DECL__RES 1
28090 cat >>confdefs.h <<_ACEOF
28091 #define HAVE_DECL__RES 0
28104 { echo "$as_me:$LINENO: checking for working snprintf" >&5
28105 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
28106 if test "${ac_cv_func_snprintf_working+set}" = set; then
28107 echo $ECHO_N "(cached) $ECHO_C" >&6
28109 ac_cv_func_snprintf_working=yes
28110 if test "$cross_compiling" = yes; then
28113 cat >conftest.$ac_ext <<_ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h. */
28121 #include <string.h>
28122 int main(int argc, char **argv)
28125 snprintf(foo, 2, "12");
28126 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2;
28129 rm -f conftest$ac_exeext
28130 if { (ac_try="$ac_link"
28131 case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_link") 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28140 { (case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_try") 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28151 echo "$as_me: program exited with status $ac_status" >&5
28152 echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28155 ( exit $ac_status )
28156 ac_cv_func_snprintf_working=no
28158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28163 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28164 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6; }
28166 if test "$ac_cv_func_snprintf_working" = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169 #define HAVE_SNPRINTF 1
28173 if test "$ac_cv_func_snprintf_working" = yes; then
28175 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28176 { echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28177 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6; }
28178 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 cat >conftest.$ac_ext <<_ACEOF
28184 cat confdefs.h >>conftest.$ac_ext
28185 cat >>conftest.$ac_ext <<_ACEOF
28186 /* end confdefs.h. */
28188 struct foo { int foo; } xx;
28189 extern int snprintf (struct foo*);
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202 *) ac_try_echo=$ac_try;;
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205 (eval "$ac_compile") 2>conftest.er1
28207 grep -v '^ *+' conftest.er1 >conftest.err
28209 cat conftest.err >&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } && {
28212 test -z "$ac_c_werror_flag" ||
28213 test ! -s conftest.err
28214 } && test -s conftest.$ac_objext; then
28215 eval "ac_cv_func_snprintf_noproto=yes"
28217 echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28220 eval "ac_cv_func_snprintf_noproto=no"
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28226 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6; }
28227 if test "$ac_cv_func_snprintf_noproto" = yes; then
28229 cat >>confdefs.h <<\_ACEOF
28230 #define NEED_SNPRINTF_PROTO 1
28239 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28240 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
28241 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28242 echo $ECHO_N "(cached) $ECHO_C" >&6
28244 ac_cv_func_vsnprintf_working=yes
28245 if test "$cross_compiling" = yes; then
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28256 #include <string.h>
28257 #include <stdarg.h>
28259 int foo(int num, ...)
28263 va_start(arg, num);
28264 vsnprintf(bar, 2, "%s", arg);
28266 return strcmp(bar, "1");
28269 int bar(int num, int len, ...)
28273 va_start(arg, len);
28274 r = vsnprintf(NULL, 0, "%s", arg);
28279 int main(int argc, char **argv)
28281 return foo(0, "12") || bar(0, 2, "12");
28284 rm -f conftest$ac_exeext
28285 if { (ac_try="$ac_link"
28286 case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_link") 2>&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28295 { (case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_try") 2>&5
28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303 (exit $ac_status); }; }; then
28306 echo "$as_me: program exited with status $ac_status" >&5
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 ( exit $ac_status )
28311 ac_cv_func_vsnprintf_working=no
28313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28318 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28319 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6; }
28321 if test "$ac_cv_func_vsnprintf_working" = yes; then
28323 cat >>confdefs.h <<_ACEOF
28324 #define HAVE_VSNPRINTF 1
28328 if test "$ac_cv_func_vsnprintf_working" = yes; then
28330 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28331 { echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28332 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6; }
28333 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28343 struct foo { int foo; } xx;
28344 extern int vsnprintf (struct foo*);
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_compile") 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } && {
28367 test -z "$ac_c_werror_flag" ||
28368 test ! -s conftest.err
28369 } && test -s conftest.$ac_objext; then
28370 eval "ac_cv_func_vsnprintf_noproto=yes"
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 eval "ac_cv_func_vsnprintf_noproto=no"
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380 { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28381 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6; }
28382 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28384 cat >>confdefs.h <<\_ACEOF
28385 #define NEED_VSNPRINTF_PROTO 1
28395 { echo "$as_me:$LINENO: checking for working glob" >&5
28396 echo $ECHO_N "checking for working glob... $ECHO_C" >&6; }
28397 if test "${ac_cv_func_glob_working+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 ac_cv_func_glob_working=yes
28401 cat >conftest.$ac_ext <<_ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28414 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28415 #ifdef GLOB_MAXPATH
28427 rm -f conftest.$ac_objext conftest$ac_exeext
28428 if { (ac_try="$ac_link"
28429 case "(($ac_try" in
28430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28431 *) ac_try_echo=$ac_try;;
28433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28434 (eval "$ac_link") 2>conftest.er1
28436 grep -v '^ *+' conftest.er1 >conftest.err
28438 cat conftest.err >&5
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); } && {
28441 test -z "$ac_c_werror_flag" ||
28442 test ! -s conftest.err
28443 } && test -s conftest$ac_exeext &&
28444 $as_test_x conftest$ac_exeext; then
28447 echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28450 ac_cv_func_glob_working=no
28453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28454 conftest$ac_exeext conftest.$ac_ext
28456 { echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28457 echo "${ECHO_T}$ac_cv_func_glob_working" >&6; }
28459 if test "$ac_cv_func_glob_working" = yes; then
28461 cat >>confdefs.h <<\_ACEOF
28462 #define HAVE_GLOB 1
28466 if test "$ac_cv_func_glob_working" = yes; then
28468 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28469 { echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28470 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6; }
28471 if test "${ac_cv_func_glob_noproto+set}" = set; then
28472 echo $ECHO_N "(cached) $ECHO_C" >&6
28474 cat >conftest.$ac_ext <<_ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28482 struct foo { int foo; } xx;
28483 extern int glob (struct foo*);
28492 rm -f conftest.$ac_objext
28493 if { (ac_try="$ac_compile"
28494 case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_compile") 2>conftest.er1
28501 grep -v '^ *+' conftest.er1 >conftest.err
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } && {
28506 test -z "$ac_c_werror_flag" ||
28507 test ! -s conftest.err
28508 } && test -s conftest.$ac_objext; then
28509 eval "ac_cv_func_glob_noproto=yes"
28511 echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28514 eval "ac_cv_func_glob_noproto=no"
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519 { echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28520 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6; }
28521 if test "$ac_cv_func_glob_noproto" = yes; then
28523 cat >>confdefs.h <<\_ACEOF
28524 #define NEED_GLOB_PROTO 1
28532 if test "$ac_cv_func_glob_working" != yes; then
28533 case " $LIBOBJS " in
28534 *" glob.$ac_objext "* ) ;;
28535 *) LIBOBJS="$LIBOBJS glob.$ac_objext"
28540 if test "$ac_cv_func_glob_working" = yes; then
28542 have_glob_h_FALSE='#'
28544 have_glob_h_TRUE='#'
28607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28611 echo $ECHO_N "(cached) $ECHO_C" >&6
28613 cat >conftest.$ac_ext <<_ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h. */
28619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28621 #define $ac_func innocuous_$ac_func
28623 /* System header to define __stub macros and hopefully few prototypes,
28624 which can conflict with char $ac_func (); below.
28625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28626 <limits.h> exists even on freestanding compilers. */
28629 # include <limits.h>
28631 # include <assert.h>
28636 /* Override any GCC internal prototype to avoid an error.
28637 Use char because int might match the return type of a GCC
28638 builtin and then its argument prototype would still apply. */
28643 /* The GNU C library defines this for functions which it implements
28644 to always fail with ENOSYS. Some functions are actually named
28645 something starting with __ and the normal name is an alias. */
28646 #if defined __stub_$ac_func || defined __stub___$ac_func
28653 return $ac_func ();
28658 rm -f conftest.$ac_objext conftest$ac_exeext
28659 if { (ac_try="$ac_link"
28660 case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665 (eval "$ac_link") 2>conftest.er1
28667 grep -v '^ *+' conftest.er1 >conftest.err
28669 cat conftest.err >&5
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } && {
28672 test -z "$ac_c_werror_flag" ||
28673 test ! -s conftest.err
28674 } && test -s conftest$ac_exeext &&
28675 $as_test_x conftest$ac_exeext; then
28676 eval "$as_ac_var=yes"
28678 echo "$as_me: failed program was:" >&5
28679 sed 's/^/| /' conftest.$ac_ext >&5
28681 eval "$as_ac_var=no"
28684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28685 conftest$ac_exeext conftest.$ac_ext
28687 ac_res=`eval echo '${'$as_ac_var'}'`
28688 { echo "$as_me:$LINENO: result: $ac_res" >&5
28689 echo "${ECHO_T}$ac_res" >&6; }
28690 if test `eval echo '${'$as_ac_var'}'` = yes; then
28691 cat >>confdefs.h <<_ACEOF
28692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28699 if test "$ac_cv_func_cgetent" = no; then
28700 case " $LIBOBJS " in
28701 *" getcap.$ac_objext "* ) ;;
28702 *) LIBOBJS="$LIBOBJS getcap.$ac_objext"
28707 if test "$ac_cv_func_cgetent" = yes; then
28709 have_cgetent_FALSE='#'
28711 have_cgetent_TRUE='#'
28712 have_cgetent_FALSE=
28723 { echo "$as_me:$LINENO: checking for getsockopt" >&5
28724 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6; }
28725 if test "${ac_cv_funclib_getsockopt+set}" = set; then
28726 echo $ECHO_N "(cached) $ECHO_C" >&6
28729 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
28730 ac_save_LIBS="$LIBS"
28731 for ac_lib in "" ; do
28737 *) ac_lib="-l$ac_lib" ;;
28739 LIBS=" $ac_lib $ac_save_LIBS"
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28746 #ifdef HAVE_SYS_TYPES_H
28747 #include <sys/types.h>
28749 #ifdef HAVE_SYS_SOCKET_H
28750 #include <sys/socket.h>
28755 getsockopt(0,0,0,0,0)
28760 rm -f conftest.$ac_objext conftest$ac_exeext
28761 if { (ac_try="$ac_link"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_link") 2>conftest.er1
28769 grep -v '^ *+' conftest.er1 >conftest.err
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } && {
28774 test -z "$ac_c_werror_flag" ||
28775 test ! -s conftest.err
28776 } && test -s conftest$ac_exeext &&
28777 $as_test_x conftest$ac_exeext; then
28778 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
28780 echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28787 conftest$ac_exeext conftest.$ac_ext
28789 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
28790 LIBS="$ac_save_LIBS"
28796 eval "ac_res=\$ac_cv_funclib_getsockopt"
28800 for ac_func in getsockopt
28802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28806 echo $ECHO_N "(cached) $ECHO_C" >&6
28808 cat >conftest.$ac_ext <<_ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h. */
28814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28816 #define $ac_func innocuous_$ac_func
28818 /* System header to define __stub macros and hopefully few prototypes,
28819 which can conflict with char $ac_func (); below.
28820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28821 <limits.h> exists even on freestanding compilers. */
28824 # include <limits.h>
28826 # include <assert.h>
28831 /* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28838 /* The GNU C library defines this for functions which it implements
28839 to always fail with ENOSYS. Some functions are actually named
28840 something starting with __ and the normal name is an alias. */
28841 #if defined __stub_$ac_func || defined __stub___$ac_func
28848 return $ac_func ();
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (ac_try="$ac_link"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_link") 2>conftest.er1
28862 grep -v '^ *+' conftest.er1 >conftest.err
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } && {
28867 test -z "$ac_c_werror_flag" ||
28868 test ! -s conftest.err
28869 } && test -s conftest$ac_exeext &&
28870 $as_test_x conftest$ac_exeext; then
28871 eval "$as_ac_var=yes"
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28876 eval "$as_ac_var=no"
28879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28880 conftest$ac_exeext conftest.$ac_ext
28882 ac_res=`eval echo '${'$as_ac_var'}'`
28883 { echo "$as_me:$LINENO: result: $ac_res" >&5
28884 echo "${ECHO_T}$ac_res" >&6; }
28885 if test `eval echo '${'$as_ac_var'}'` = yes; then
28886 cat >>confdefs.h <<_ACEOF
28887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28895 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28896 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28897 eval "LIB_getsockopt=$ac_res"
28901 eval "ac_cv_func_getsockopt=yes"
28902 eval "LIB_getsockopt="
28903 cat >>confdefs.h <<_ACEOF
28904 #define $ac_tr_func 1
28907 { echo "$as_me:$LINENO: result: yes" >&5
28908 echo "${ECHO_T}yes" >&6; }
28911 eval "ac_cv_func_getsockopt=no"
28912 eval "LIB_getsockopt="
28913 { echo "$as_me:$LINENO: result: no" >&5
28914 echo "${ECHO_T}no" >&6; }
28917 eval "ac_cv_func_getsockopt=yes"
28918 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28919 cat >>confdefs.h <<_ACEOF
28920 #define $ac_tr_func 1
28923 cat >>confdefs.h <<_ACEOF
28924 #define $ac_tr_lib 1
28927 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28928 echo "${ECHO_T}yes, in $ac_res" >&6; }
28936 { echo "$as_me:$LINENO: checking for setsockopt" >&5
28937 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
28938 if test "${ac_cv_funclib_setsockopt+set}" = set; then
28939 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
28943 ac_save_LIBS="$LIBS"
28944 for ac_lib in "" ; do
28950 *) ac_lib="-l$ac_lib" ;;
28952 LIBS=" $ac_lib $ac_save_LIBS"
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 #ifdef HAVE_SYS_TYPES_H
28960 #include <sys/types.h>
28962 #ifdef HAVE_SYS_SOCKET_H
28963 #include <sys/socket.h>
28968 setsockopt(0,0,0,0,0)
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977 *) ac_try_echo=$ac_try;;
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980 (eval "$ac_link") 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } && {
28987 test -z "$ac_c_werror_flag" ||
28988 test ! -s conftest.err
28989 } && test -s conftest$ac_exeext &&
28990 $as_test_x conftest$ac_exeext; then
28991 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
28993 echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000 conftest$ac_exeext conftest.$ac_ext
29002 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29003 LIBS="$ac_save_LIBS"
29009 eval "ac_res=\$ac_cv_funclib_setsockopt"
29013 for ac_func in setsockopt
29015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29021 cat >conftest.$ac_ext <<_ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h. */
29027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29029 #define $ac_func innocuous_$ac_func
29031 /* System header to define __stub macros and hopefully few prototypes,
29032 which can conflict with char $ac_func (); below.
29033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29034 <limits.h> exists even on freestanding compilers. */
29037 # include <limits.h>
29039 # include <assert.h>
29044 /* Override any GCC internal prototype to avoid an error.
29045 Use char because int might match the return type of a GCC
29046 builtin and then its argument prototype would still apply. */
29051 /* The GNU C library defines this for functions which it implements
29052 to always fail with ENOSYS. Some functions are actually named
29053 something starting with __ and the normal name is an alias. */
29054 #if defined __stub_$ac_func || defined __stub___$ac_func
29061 return $ac_func ();
29066 rm -f conftest.$ac_objext conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_link") 2>conftest.er1
29075 grep -v '^ *+' conftest.er1 >conftest.err
29077 cat conftest.err >&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } && {
29080 test -z "$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29082 } && test -s conftest$ac_exeext &&
29083 $as_test_x conftest$ac_exeext; then
29084 eval "$as_ac_var=yes"
29086 echo "$as_me: failed program was:" >&5
29087 sed 's/^/| /' conftest.$ac_ext >&5
29089 eval "$as_ac_var=no"
29092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29093 conftest$ac_exeext conftest.$ac_ext
29095 ac_res=`eval echo '${'$as_ac_var'}'`
29096 { echo "$as_me:$LINENO: result: $ac_res" >&5
29097 echo "${ECHO_T}$ac_res" >&6; }
29098 if test `eval echo '${'$as_ac_var'}'` = yes; then
29099 cat >>confdefs.h <<_ACEOF
29100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29108 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29109 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29110 eval "LIB_setsockopt=$ac_res"
29114 eval "ac_cv_func_setsockopt=yes"
29115 eval "LIB_setsockopt="
29116 cat >>confdefs.h <<_ACEOF
29117 #define $ac_tr_func 1
29120 { echo "$as_me:$LINENO: result: yes" >&5
29121 echo "${ECHO_T}yes" >&6; }
29124 eval "ac_cv_func_setsockopt=no"
29125 eval "LIB_setsockopt="
29126 { echo "$as_me:$LINENO: result: no" >&5
29127 echo "${ECHO_T}no" >&6; }
29130 eval "ac_cv_func_setsockopt=yes"
29131 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29132 cat >>confdefs.h <<_ACEOF
29133 #define $ac_tr_func 1
29136 cat >>confdefs.h <<_ACEOF
29137 #define $ac_tr_lib 1
29140 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29141 echo "${ECHO_T}yes, in $ac_res" >&6; }
29151 { echo "$as_me:$LINENO: checking for hstrerror" >&5
29152 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
29153 if test "${ac_cv_funclib_hstrerror+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29158 ac_save_LIBS="$LIBS"
29159 for ac_lib in "" resolv; do
29165 *) ac_lib="-l$ac_lib" ;;
29167 LIBS=" $ac_lib $ac_save_LIBS"
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29174 #ifdef HAVE_NETDB_H
29185 rm -f conftest.$ac_objext conftest$ac_exeext
29186 if { (ac_try="$ac_link"
29187 case "(($ac_try" in
29188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189 *) ac_try_echo=$ac_try;;
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192 (eval "$ac_link") 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } && {
29199 test -z "$ac_c_werror_flag" ||
29200 test ! -s conftest.err
29201 } && test -s conftest$ac_exeext &&
29202 $as_test_x conftest$ac_exeext; then
29203 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29205 echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29212 conftest$ac_exeext conftest.$ac_ext
29214 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29215 LIBS="$ac_save_LIBS"
29221 eval "ac_res=\$ac_cv_funclib_hstrerror"
29225 for ac_func in hstrerror
29227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29231 echo $ECHO_N "(cached) $ECHO_C" >&6
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29241 #define $ac_func innocuous_$ac_func
29243 /* System header to define __stub macros and hopefully few prototypes,
29244 which can conflict with char $ac_func (); below.
29245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29246 <limits.h> exists even on freestanding compilers. */
29249 # include <limits.h>
29251 # include <assert.h>
29256 /* Override any GCC internal prototype to avoid an error.
29257 Use char because int might match the return type of a GCC
29258 builtin and then its argument prototype would still apply. */
29263 /* The GNU C library defines this for functions which it implements
29264 to always fail with ENOSYS. Some functions are actually named
29265 something starting with __ and the normal name is an alias. */
29266 #if defined __stub_$ac_func || defined __stub___$ac_func
29273 return $ac_func ();
29278 rm -f conftest.$ac_objext conftest$ac_exeext
29279 if { (ac_try="$ac_link"
29280 case "(($ac_try" in
29281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282 *) ac_try_echo=$ac_try;;
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285 (eval "$ac_link") 2>conftest.er1
29287 grep -v '^ *+' conftest.er1 >conftest.err
29289 cat conftest.err >&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } && {
29292 test -z "$ac_c_werror_flag" ||
29293 test ! -s conftest.err
29294 } && test -s conftest$ac_exeext &&
29295 $as_test_x conftest$ac_exeext; then
29296 eval "$as_ac_var=yes"
29298 echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29301 eval "$as_ac_var=no"
29304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29305 conftest$ac_exeext conftest.$ac_ext
29307 ac_res=`eval echo '${'$as_ac_var'}'`
29308 { echo "$as_me:$LINENO: result: $ac_res" >&5
29309 echo "${ECHO_T}$ac_res" >&6; }
29310 if test `eval echo '${'$as_ac_var'}'` = yes; then
29311 cat >>confdefs.h <<_ACEOF
29312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29320 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29321 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29322 eval "LIB_hstrerror=$ac_res"
29326 eval "ac_cv_func_hstrerror=yes"
29327 eval "LIB_hstrerror="
29328 cat >>confdefs.h <<_ACEOF
29329 #define $ac_tr_func 1
29332 { echo "$as_me:$LINENO: result: yes" >&5
29333 echo "${ECHO_T}yes" >&6; }
29336 eval "ac_cv_func_hstrerror=no"
29337 eval "LIB_hstrerror="
29338 { echo "$as_me:$LINENO: result: no" >&5
29339 echo "${ECHO_T}no" >&6; }
29342 eval "ac_cv_func_hstrerror=yes"
29343 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29344 cat >>confdefs.h <<_ACEOF
29345 #define $ac_tr_func 1
29348 cat >>confdefs.h <<_ACEOF
29349 #define $ac_tr_lib 1
29352 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29353 echo "${ECHO_T}yes, in $ac_res" >&6; }
29358 if test -n "$LIB_hstrerror"; then
29359 LIBS="$LIB_hstrerror $LIBS"
29362 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29363 case " $LIBOBJS " in
29364 *" hstrerror.$ac_objext "* ) ;;
29365 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
29372 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29373 { echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29374 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6; }
29375 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29376 echo $ECHO_N "(cached) $ECHO_C" >&6
29378 cat >conftest.$ac_ext <<_ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h. */
29385 #ifdef HAVE_NETDB_H
29388 struct foo { int foo; } xx;
29389 extern int hstrerror (struct foo*);
29398 rm -f conftest.$ac_objext
29399 if { (ac_try="$ac_compile"
29400 case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_compile") 2>conftest.er1
29407 grep -v '^ *+' conftest.er1 >conftest.err
29409 cat conftest.err >&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } && {
29412 test -z "$ac_c_werror_flag" ||
29413 test ! -s conftest.err
29414 } && test -s conftest.$ac_objext; then
29415 eval "ac_cv_func_hstrerror_noproto=yes"
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29420 eval "ac_cv_func_hstrerror_noproto=no"
29423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29425 { echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29426 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6; }
29427 if test "$ac_cv_func_hstrerror_noproto" = yes; then
29429 cat >>confdefs.h <<\_ACEOF
29430 #define NEED_HSTRERROR_PROTO 1
29438 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29439 { echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29440 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6; }
29441 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29442 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29452 #include <string.h>
29453 struct foo { int foo; } xx;
29454 extern int asprintf (struct foo*);
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
29472 grep -v '^ *+' conftest.er1 >conftest.err
29474 cat conftest.err >&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } && {
29477 test -z "$ac_c_werror_flag" ||
29478 test ! -s conftest.err
29479 } && test -s conftest.$ac_objext; then
29480 eval "ac_cv_func_asprintf_noproto=yes"
29482 echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29485 eval "ac_cv_func_asprintf_noproto=no"
29488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29490 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29491 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6; }
29492 if test "$ac_cv_func_asprintf_noproto" = yes; then
29494 cat >>confdefs.h <<\_ACEOF
29495 #define NEED_ASPRINTF_PROTO 1
29501 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
29502 { echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
29503 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6; }
29504 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
29505 echo $ECHO_N "(cached) $ECHO_C" >&6
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29515 #include <string.h>
29516 struct foo { int foo; } xx;
29517 extern int vasprintf (struct foo*);
29526 rm -f conftest.$ac_objext
29527 if { (ac_try="$ac_compile"
29528 case "(($ac_try" in
29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29530 *) ac_try_echo=$ac_try;;
29532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29533 (eval "$ac_compile") 2>conftest.er1
29535 grep -v '^ *+' conftest.er1 >conftest.err
29537 cat conftest.err >&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } && {
29540 test -z "$ac_c_werror_flag" ||
29541 test ! -s conftest.err
29542 } && test -s conftest.$ac_objext; then
29543 eval "ac_cv_func_vasprintf_noproto=yes"
29545 echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29548 eval "ac_cv_func_vasprintf_noproto=no"
29551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29553 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
29554 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6; }
29555 if test "$ac_cv_func_vasprintf_noproto" = yes; then
29557 cat >>confdefs.h <<\_ACEOF
29558 #define NEED_VASPRINTF_PROTO 1
29564 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
29565 { echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
29566 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6; }
29567 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
29568 echo $ECHO_N "(cached) $ECHO_C" >&6
29570 cat >conftest.$ac_ext <<_ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h. */
29578 #include <string.h>
29579 struct foo { int foo; } xx;
29580 extern int asnprintf (struct foo*);
29589 rm -f conftest.$ac_objext
29590 if { (ac_try="$ac_compile"
29591 case "(($ac_try" in
29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593 *) ac_try_echo=$ac_try;;
29595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29596 (eval "$ac_compile") 2>conftest.er1
29598 grep -v '^ *+' conftest.er1 >conftest.err
29600 cat conftest.err >&5
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); } && {
29603 test -z "$ac_c_werror_flag" ||
29604 test ! -s conftest.err
29605 } && test -s conftest.$ac_objext; then
29606 eval "ac_cv_func_asnprintf_noproto=yes"
29608 echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29611 eval "ac_cv_func_asnprintf_noproto=no"
29614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29616 { echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
29617 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6; }
29618 if test "$ac_cv_func_asnprintf_noproto" = yes; then
29620 cat >>confdefs.h <<\_ACEOF
29621 #define NEED_ASNPRINTF_PROTO 1
29627 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
29628 { echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
29629 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6; }
29630 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29633 cat >conftest.$ac_ext <<_ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h. */
29641 #include <string.h>
29642 struct foo { int foo; } xx;
29643 extern int vasnprintf (struct foo*);
29652 rm -f conftest.$ac_objext
29653 if { (ac_try="$ac_compile"
29654 case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659 (eval "$ac_compile") 2>conftest.er1
29661 grep -v '^ *+' conftest.er1 >conftest.err
29663 cat conftest.err >&5
29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665 (exit $ac_status); } && {
29666 test -z "$ac_c_werror_flag" ||
29667 test ! -s conftest.err
29668 } && test -s conftest.$ac_objext; then
29669 eval "ac_cv_func_vasnprintf_noproto=yes"
29671 echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29674 eval "ac_cv_func_vasnprintf_noproto=no"
29677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29679 { echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
29680 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6; }
29681 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
29683 cat >>confdefs.h <<\_ACEOF
29684 #define NEED_VASNPRINTF_PROTO 1
29694 { echo "$as_me:$LINENO: checking for bswap16" >&5
29695 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; }
29696 if test "${ac_cv_funclib_bswap16+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29700 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
29701 ac_save_LIBS="$LIBS"
29702 for ac_lib in "" ; do
29708 *) ac_lib="-l$ac_lib" ;;
29710 LIBS=" $ac_lib $ac_save_LIBS"
29711 cat >conftest.$ac_ext <<_ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h. */
29717 #ifdef HAVE_SYS_BSWAP_H
29718 #include <sys/bswap.h>
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_link") 2>conftest.er1
29737 grep -v '^ *+' conftest.er1 >conftest.err
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && {
29742 test -z "$ac_c_werror_flag" ||
29743 test ! -s conftest.err
29744 } && test -s conftest$ac_exeext &&
29745 $as_test_x conftest$ac_exeext; then
29746 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
29748 echo "$as_me: failed program was:" >&5
29749 sed 's/^/| /' conftest.$ac_ext >&5
29754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29755 conftest$ac_exeext conftest.$ac_ext
29757 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
29758 LIBS="$ac_save_LIBS"
29764 eval "ac_res=\$ac_cv_funclib_bswap16"
29768 for ac_func in bswap16
29770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29774 echo $ECHO_N "(cached) $ECHO_C" >&6
29776 cat >conftest.$ac_ext <<_ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29784 #define $ac_func innocuous_$ac_func
29786 /* System header to define __stub macros and hopefully few prototypes,
29787 which can conflict with char $ac_func (); below.
29788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29789 <limits.h> exists even on freestanding compilers. */
29792 # include <limits.h>
29794 # include <assert.h>
29799 /* Override any GCC internal prototype to avoid an error.
29800 Use char because int might match the return type of a GCC
29801 builtin and then its argument prototype would still apply. */
29806 /* The GNU C library defines this for functions which it implements
29807 to always fail with ENOSYS. Some functions are actually named
29808 something starting with __ and the normal name is an alias. */
29809 #if defined __stub_$ac_func || defined __stub___$ac_func
29816 return $ac_func ();
29821 rm -f conftest.$ac_objext conftest$ac_exeext
29822 if { (ac_try="$ac_link"
29823 case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_link") 2>conftest.er1
29830 grep -v '^ *+' conftest.er1 >conftest.err
29832 cat conftest.err >&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); } && {
29835 test -z "$ac_c_werror_flag" ||
29836 test ! -s conftest.err
29837 } && test -s conftest$ac_exeext &&
29838 $as_test_x conftest$ac_exeext; then
29839 eval "$as_ac_var=yes"
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29844 eval "$as_ac_var=no"
29847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29848 conftest$ac_exeext conftest.$ac_ext
29850 ac_res=`eval echo '${'$as_ac_var'}'`
29851 { echo "$as_me:$LINENO: result: $ac_res" >&5
29852 echo "${ECHO_T}$ac_res" >&6; }
29853 if test `eval echo '${'$as_ac_var'}'` = yes; then
29854 cat >>confdefs.h <<_ACEOF
29855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29863 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29864 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29865 eval "LIB_bswap16=$ac_res"
29869 eval "ac_cv_func_bswap16=yes"
29870 eval "LIB_bswap16="
29871 cat >>confdefs.h <<_ACEOF
29872 #define $ac_tr_func 1
29875 { echo "$as_me:$LINENO: result: yes" >&5
29876 echo "${ECHO_T}yes" >&6; }
29879 eval "ac_cv_func_bswap16=no"
29880 eval "LIB_bswap16="
29881 { echo "$as_me:$LINENO: result: no" >&5
29882 echo "${ECHO_T}no" >&6; }
29885 eval "ac_cv_func_bswap16=yes"
29886 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29887 cat >>confdefs.h <<_ACEOF
29888 #define $ac_tr_func 1
29891 cat >>confdefs.h <<_ACEOF
29892 #define $ac_tr_lib 1
29895 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29896 echo "${ECHO_T}yes, in $ac_res" >&6; }
29905 { echo "$as_me:$LINENO: checking for bswap32" >&5
29906 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; }
29907 if test "${ac_cv_funclib_bswap32+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29911 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
29912 ac_save_LIBS="$LIBS"
29913 for ac_lib in "" ; do
29919 *) ac_lib="-l$ac_lib" ;;
29921 LIBS=" $ac_lib $ac_save_LIBS"
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 #ifdef HAVE_SYS_BSWAP_H
29929 #include <sys/bswap.h>
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (ac_try="$ac_link"
29941 case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_link") 2>conftest.er1
29948 grep -v '^ *+' conftest.er1 >conftest.err
29950 cat conftest.err >&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } && {
29953 test -z "$ac_c_werror_flag" ||
29954 test ! -s conftest.err
29955 } && test -s conftest$ac_exeext &&
29956 $as_test_x conftest$ac_exeext; then
29957 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
29959 echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29966 conftest$ac_exeext conftest.$ac_ext
29968 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
29969 LIBS="$ac_save_LIBS"
29975 eval "ac_res=\$ac_cv_funclib_bswap32"
29979 for ac_func in bswap32
29981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29985 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 cat >conftest.$ac_ext <<_ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h. */
29993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29995 #define $ac_func innocuous_$ac_func
29997 /* System header to define __stub macros and hopefully few prototypes,
29998 which can conflict with char $ac_func (); below.
29999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30000 <limits.h> exists even on freestanding compilers. */
30003 # include <limits.h>
30005 # include <assert.h>
30010 /* Override any GCC internal prototype to avoid an error.
30011 Use char because int might match the return type of a GCC
30012 builtin and then its argument prototype would still apply. */
30017 /* The GNU C library defines this for functions which it implements
30018 to always fail with ENOSYS. Some functions are actually named
30019 something starting with __ and the normal name is an alias. */
30020 #if defined __stub_$ac_func || defined __stub___$ac_func
30027 return $ac_func ();
30032 rm -f conftest.$ac_objext conftest$ac_exeext
30033 if { (ac_try="$ac_link"
30034 case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_link") 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } && {
30046 test -z "$ac_c_werror_flag" ||
30047 test ! -s conftest.err
30048 } && test -s conftest$ac_exeext &&
30049 $as_test_x conftest$ac_exeext; then
30050 eval "$as_ac_var=yes"
30052 echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30055 eval "$as_ac_var=no"
30058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30059 conftest$ac_exeext conftest.$ac_ext
30061 ac_res=`eval echo '${'$as_ac_var'}'`
30062 { echo "$as_me:$LINENO: result: $ac_res" >&5
30063 echo "${ECHO_T}$ac_res" >&6; }
30064 if test `eval echo '${'$as_ac_var'}'` = yes; then
30065 cat >>confdefs.h <<_ACEOF
30066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30074 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30075 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30076 eval "LIB_bswap32=$ac_res"
30080 eval "ac_cv_func_bswap32=yes"
30081 eval "LIB_bswap32="
30082 cat >>confdefs.h <<_ACEOF
30083 #define $ac_tr_func 1
30086 { echo "$as_me:$LINENO: result: yes" >&5
30087 echo "${ECHO_T}yes" >&6; }
30090 eval "ac_cv_func_bswap32=no"
30091 eval "LIB_bswap32="
30092 { echo "$as_me:$LINENO: result: no" >&5
30093 echo "${ECHO_T}no" >&6; }
30096 eval "ac_cv_func_bswap32=yes"
30097 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30098 cat >>confdefs.h <<_ACEOF
30099 #define $ac_tr_func 1
30102 cat >>confdefs.h <<_ACEOF
30103 #define $ac_tr_lib 1
30106 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30107 echo "${ECHO_T}yes, in $ac_res" >&6; }
30116 { echo "$as_me:$LINENO: checking for pidfile" >&5
30117 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6; }
30118 if test "${ac_cv_funclib_pidfile+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30122 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30123 ac_save_LIBS="$LIBS"
30124 for ac_lib in "" util; do
30130 *) ac_lib="-l$ac_lib" ;;
30132 LIBS=" $ac_lib $ac_save_LIBS"
30133 cat >conftest.$ac_ext <<_ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h. */
30150 rm -f conftest.$ac_objext conftest$ac_exeext
30151 if { (ac_try="$ac_link"
30152 case "(($ac_try" in
30153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154 *) ac_try_echo=$ac_try;;
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157 (eval "$ac_link") 2>conftest.er1
30159 grep -v '^ *+' conftest.er1 >conftest.err
30161 cat conftest.err >&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); } && {
30164 test -z "$ac_c_werror_flag" ||
30165 test ! -s conftest.err
30166 } && test -s conftest$ac_exeext &&
30167 $as_test_x conftest$ac_exeext; then
30168 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30170 echo "$as_me: failed program was:" >&5
30171 sed 's/^/| /' conftest.$ac_ext >&5
30176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30177 conftest$ac_exeext conftest.$ac_ext
30179 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30180 LIBS="$ac_save_LIBS"
30186 eval "ac_res=\$ac_cv_funclib_pidfile"
30190 for ac_func in pidfile
30192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30196 echo $ECHO_N "(cached) $ECHO_C" >&6
30198 cat >conftest.$ac_ext <<_ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30206 #define $ac_func innocuous_$ac_func
30208 /* System header to define __stub macros and hopefully few prototypes,
30209 which can conflict with char $ac_func (); below.
30210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30211 <limits.h> exists even on freestanding compilers. */
30214 # include <limits.h>
30216 # include <assert.h>
30221 /* Override any GCC internal prototype to avoid an error.
30222 Use char because int might match the return type of a GCC
30223 builtin and then its argument prototype would still apply. */
30228 /* The GNU C library defines this for functions which it implements
30229 to always fail with ENOSYS. Some functions are actually named
30230 something starting with __ and the normal name is an alias. */
30231 #if defined __stub_$ac_func || defined __stub___$ac_func
30238 return $ac_func ();
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_link") 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } && {
30257 test -z "$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30259 } && test -s conftest$ac_exeext &&
30260 $as_test_x conftest$ac_exeext; then
30261 eval "$as_ac_var=yes"
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 eval "$as_ac_var=no"
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270 conftest$ac_exeext conftest.$ac_ext
30272 ac_res=`eval echo '${'$as_ac_var'}'`
30273 { echo "$as_me:$LINENO: result: $ac_res" >&5
30274 echo "${ECHO_T}$ac_res" >&6; }
30275 if test `eval echo '${'$as_ac_var'}'` = yes; then
30276 cat >>confdefs.h <<_ACEOF
30277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30285 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30286 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30287 eval "LIB_pidfile=$ac_res"
30291 eval "ac_cv_func_pidfile=yes"
30292 eval "LIB_pidfile="
30293 cat >>confdefs.h <<_ACEOF
30294 #define $ac_tr_func 1
30297 { echo "$as_me:$LINENO: result: yes" >&5
30298 echo "${ECHO_T}yes" >&6; }
30301 eval "ac_cv_func_pidfile=no"
30302 eval "LIB_pidfile="
30303 { echo "$as_me:$LINENO: result: no" >&5
30304 echo "${ECHO_T}no" >&6; }
30307 eval "ac_cv_func_pidfile=yes"
30308 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30309 cat >>confdefs.h <<_ACEOF
30310 #define $ac_tr_func 1
30313 cat >>confdefs.h <<_ACEOF
30314 #define $ac_tr_lib 1
30317 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30318 echo "${ECHO_T}yes, in $ac_res" >&6; }
30328 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30329 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
30330 if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30334 if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30335 ac_save_LIBS="$LIBS"
30336 for ac_lib in "" ; do
30342 *) ac_lib="-l$ac_lib" ;;
30344 LIBS=" $ac_lib $ac_save_LIBS"
30345 cat >conftest.$ac_ext <<_ACEOF
30348 cat confdefs.h >>conftest.$ac_ext
30349 cat >>conftest.$ac_ext <<_ACEOF
30350 /* end confdefs.h. */
30351 #ifdef HAVE_NETDB_H
30357 getaddrinfo(0,0,0,0)
30362 rm -f conftest.$ac_objext conftest$ac_exeext
30363 if { (ac_try="$ac_link"
30364 case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_link") 2>conftest.er1
30371 grep -v '^ *+' conftest.er1 >conftest.err
30373 cat conftest.err >&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } && {
30376 test -z "$ac_c_werror_flag" ||
30377 test ! -s conftest.err
30378 } && test -s conftest$ac_exeext &&
30379 $as_test_x conftest$ac_exeext; then
30380 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30382 echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30389 conftest$ac_exeext conftest.$ac_ext
30391 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30392 LIBS="$ac_save_LIBS"
30398 eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30402 for ac_func in getaddrinfo
30404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30408 echo $ECHO_N "(cached) $ECHO_C" >&6
30410 cat >conftest.$ac_ext <<_ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418 #define $ac_func innocuous_$ac_func
30420 /* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
30426 # include <limits.h>
30428 # include <assert.h>
30433 /* Override any GCC internal prototype to avoid an error.
30434 Use char because int might match the return type of a GCC
30435 builtin and then its argument prototype would still apply. */
30440 /* The GNU C library defines this for functions which it implements
30441 to always fail with ENOSYS. Some functions are actually named
30442 something starting with __ and the normal name is an alias. */
30443 #if defined __stub_$ac_func || defined __stub___$ac_func
30450 return $ac_func ();
30455 rm -f conftest.$ac_objext conftest$ac_exeext
30456 if { (ac_try="$ac_link"
30457 case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_link") 2>conftest.er1
30464 grep -v '^ *+' conftest.er1 >conftest.err
30466 cat conftest.err >&5
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); } && {
30469 test -z "$ac_c_werror_flag" ||
30470 test ! -s conftest.err
30471 } && test -s conftest$ac_exeext &&
30472 $as_test_x conftest$ac_exeext; then
30473 eval "$as_ac_var=yes"
30475 echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30478 eval "$as_ac_var=no"
30481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30482 conftest$ac_exeext conftest.$ac_ext
30484 ac_res=`eval echo '${'$as_ac_var'}'`
30485 { echo "$as_me:$LINENO: result: $ac_res" >&5
30486 echo "${ECHO_T}$ac_res" >&6; }
30487 if test `eval echo '${'$as_ac_var'}'` = yes; then
30488 cat >>confdefs.h <<_ACEOF
30489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30497 eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30498 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30499 eval "LIB_getaddrinfo=$ac_res"
30503 eval "ac_cv_func_getaddrinfo=yes"
30504 eval "LIB_getaddrinfo="
30505 cat >>confdefs.h <<_ACEOF
30506 #define $ac_tr_func 1
30509 { echo "$as_me:$LINENO: result: yes" >&5
30510 echo "${ECHO_T}yes" >&6; }
30513 eval "ac_cv_func_getaddrinfo=no"
30514 eval "LIB_getaddrinfo="
30515 { echo "$as_me:$LINENO: result: no" >&5
30516 echo "${ECHO_T}no" >&6; }
30519 eval "ac_cv_func_getaddrinfo=yes"
30520 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30521 cat >>confdefs.h <<_ACEOF
30522 #define $ac_tr_func 1
30525 cat >>confdefs.h <<_ACEOF
30526 #define $ac_tr_lib 1
30529 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30530 echo "${ECHO_T}yes, in $ac_res" >&6; }
30535 if test -n "$LIB_getaddrinfo"; then
30536 LIBS="$LIB_getaddrinfo $LIBS"
30539 if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
30540 case " $LIBOBJS " in
30541 *" getaddrinfo.$ac_objext "* ) ;;
30542 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
30553 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
30554 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
30555 if test "${ac_cv_funclib_getnameinfo+set}" = set; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
30560 ac_save_LIBS="$LIBS"
30561 for ac_lib in "" ; do
30567 *) ac_lib="-l$ac_lib" ;;
30569 LIBS=" $ac_lib $ac_save_LIBS"
30570 cat >conftest.$ac_ext <<_ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 #ifdef HAVE_NETDB_H
30582 getnameinfo(0,0,0,0,0,0,0)
30587 rm -f conftest.$ac_objext conftest$ac_exeext
30588 if { (ac_try="$ac_link"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_link") 2>conftest.er1
30596 grep -v '^ *+' conftest.er1 >conftest.err
30598 cat conftest.err >&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); } && {
30601 test -z "$ac_c_werror_flag" ||
30602 test ! -s conftest.err
30603 } && test -s conftest$ac_exeext &&
30604 $as_test_x conftest$ac_exeext; then
30605 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
30607 echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30614 conftest$ac_exeext conftest.$ac_ext
30616 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
30617 LIBS="$ac_save_LIBS"
30623 eval "ac_res=\$ac_cv_funclib_getnameinfo"
30627 for ac_func in getnameinfo
30629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30633 echo $ECHO_N "(cached) $ECHO_C" >&6
30635 cat >conftest.$ac_ext <<_ACEOF
30638 cat confdefs.h >>conftest.$ac_ext
30639 cat >>conftest.$ac_ext <<_ACEOF
30640 /* end confdefs.h. */
30641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30643 #define $ac_func innocuous_$ac_func
30645 /* System header to define __stub macros and hopefully few prototypes,
30646 which can conflict with char $ac_func (); below.
30647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30648 <limits.h> exists even on freestanding compilers. */
30651 # include <limits.h>
30653 # include <assert.h>
30658 /* Override any GCC internal prototype to avoid an error.
30659 Use char because int might match the return type of a GCC
30660 builtin and then its argument prototype would still apply. */
30665 /* The GNU C library defines this for functions which it implements
30666 to always fail with ENOSYS. Some functions are actually named
30667 something starting with __ and the normal name is an alias. */
30668 #if defined __stub_$ac_func || defined __stub___$ac_func
30675 return $ac_func ();
30680 rm -f conftest.$ac_objext conftest$ac_exeext
30681 if { (ac_try="$ac_link"
30682 case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_link") 2>conftest.er1
30689 grep -v '^ *+' conftest.er1 >conftest.err
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } && {
30694 test -z "$ac_c_werror_flag" ||
30695 test ! -s conftest.err
30696 } && test -s conftest$ac_exeext &&
30697 $as_test_x conftest$ac_exeext; then
30698 eval "$as_ac_var=yes"
30700 echo "$as_me: failed program was:" >&5
30701 sed 's/^/| /' conftest.$ac_ext >&5
30703 eval "$as_ac_var=no"
30706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30707 conftest$ac_exeext conftest.$ac_ext
30709 ac_res=`eval echo '${'$as_ac_var'}'`
30710 { echo "$as_me:$LINENO: result: $ac_res" >&5
30711 echo "${ECHO_T}$ac_res" >&6; }
30712 if test `eval echo '${'$as_ac_var'}'` = yes; then
30713 cat >>confdefs.h <<_ACEOF
30714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30722 eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30723 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30724 eval "LIB_getnameinfo=$ac_res"
30728 eval "ac_cv_func_getnameinfo=yes"
30729 eval "LIB_getnameinfo="
30730 cat >>confdefs.h <<_ACEOF
30731 #define $ac_tr_func 1
30734 { echo "$as_me:$LINENO: result: yes" >&5
30735 echo "${ECHO_T}yes" >&6; }
30738 eval "ac_cv_func_getnameinfo=no"
30739 eval "LIB_getnameinfo="
30740 { echo "$as_me:$LINENO: result: no" >&5
30741 echo "${ECHO_T}no" >&6; }
30744 eval "ac_cv_func_getnameinfo=yes"
30745 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30746 cat >>confdefs.h <<_ACEOF
30747 #define $ac_tr_func 1
30750 cat >>confdefs.h <<_ACEOF
30751 #define $ac_tr_lib 1
30754 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30755 echo "${ECHO_T}yes, in $ac_res" >&6; }
30760 if test -n "$LIB_getnameinfo"; then
30761 LIBS="$LIB_getnameinfo $LIBS"
30764 if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
30765 case " $LIBOBJS " in
30766 *" getnameinfo.$ac_objext "* ) ;;
30767 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
30778 { echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
30779 echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; }
30780 if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30784 if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
30785 ac_save_LIBS="$LIBS"
30786 for ac_lib in "" ; do
30792 *) ac_lib="-l$ac_lib" ;;
30794 LIBS=" $ac_lib $ac_save_LIBS"
30795 cat >conftest.$ac_ext <<_ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h. */
30801 #ifdef HAVE_NETDB_H
30812 rm -f conftest.$ac_objext conftest$ac_exeext
30813 if { (ac_try="$ac_link"
30814 case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_link") 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } && {
30826 test -z "$ac_c_werror_flag" ||
30827 test ! -s conftest.err
30828 } && test -s conftest$ac_exeext &&
30829 $as_test_x conftest$ac_exeext; then
30830 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
30832 echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.$ac_ext >&5
30838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30839 conftest$ac_exeext conftest.$ac_ext
30841 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
30842 LIBS="$ac_save_LIBS"
30848 eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
30852 for ac_func in freeaddrinfo
30854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30858 echo $ECHO_N "(cached) $ECHO_C" >&6
30860 cat >conftest.$ac_ext <<_ACEOF
30863 cat confdefs.h >>conftest.$ac_ext
30864 cat >>conftest.$ac_ext <<_ACEOF
30865 /* end confdefs.h. */
30866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30868 #define $ac_func innocuous_$ac_func
30870 /* System header to define __stub macros and hopefully few prototypes,
30871 which can conflict with char $ac_func (); below.
30872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30873 <limits.h> exists even on freestanding compilers. */
30876 # include <limits.h>
30878 # include <assert.h>
30883 /* Override any GCC internal prototype to avoid an error.
30884 Use char because int might match the return type of a GCC
30885 builtin and then its argument prototype would still apply. */
30890 /* The GNU C library defines this for functions which it implements
30891 to always fail with ENOSYS. Some functions are actually named
30892 something starting with __ and the normal name is an alias. */
30893 #if defined __stub_$ac_func || defined __stub___$ac_func
30900 return $ac_func ();
30905 rm -f conftest.$ac_objext conftest$ac_exeext
30906 if { (ac_try="$ac_link"
30907 case "(($ac_try" in
30908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30909 *) ac_try_echo=$ac_try;;
30911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30912 (eval "$ac_link") 2>conftest.er1
30914 grep -v '^ *+' conftest.er1 >conftest.err
30916 cat conftest.err >&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } && {
30919 test -z "$ac_c_werror_flag" ||
30920 test ! -s conftest.err
30921 } && test -s conftest$ac_exeext &&
30922 $as_test_x conftest$ac_exeext; then
30923 eval "$as_ac_var=yes"
30925 echo "$as_me: failed program was:" >&5
30926 sed 's/^/| /' conftest.$ac_ext >&5
30928 eval "$as_ac_var=no"
30931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30932 conftest$ac_exeext conftest.$ac_ext
30934 ac_res=`eval echo '${'$as_ac_var'}'`
30935 { echo "$as_me:$LINENO: result: $ac_res" >&5
30936 echo "${ECHO_T}$ac_res" >&6; }
30937 if test `eval echo '${'$as_ac_var'}'` = yes; then
30938 cat >>confdefs.h <<_ACEOF
30939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30947 eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30948 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30949 eval "LIB_freeaddrinfo=$ac_res"
30953 eval "ac_cv_func_freeaddrinfo=yes"
30954 eval "LIB_freeaddrinfo="
30955 cat >>confdefs.h <<_ACEOF
30956 #define $ac_tr_func 1
30959 { echo "$as_me:$LINENO: result: yes" >&5
30960 echo "${ECHO_T}yes" >&6; }
30963 eval "ac_cv_func_freeaddrinfo=no"
30964 eval "LIB_freeaddrinfo="
30965 { echo "$as_me:$LINENO: result: no" >&5
30966 echo "${ECHO_T}no" >&6; }
30969 eval "ac_cv_func_freeaddrinfo=yes"
30970 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30971 cat >>confdefs.h <<_ACEOF
30972 #define $ac_tr_func 1
30975 cat >>confdefs.h <<_ACEOF
30976 #define $ac_tr_lib 1
30979 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30980 echo "${ECHO_T}yes, in $ac_res" >&6; }
30985 if test -n "$LIB_freeaddrinfo"; then
30986 LIBS="$LIB_freeaddrinfo $LIBS"
30989 if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
30990 case " $LIBOBJS " in
30991 *" freeaddrinfo.$ac_objext "* ) ;;
30992 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
31003 { echo "$as_me:$LINENO: checking for gai_strerror" >&5
31004 echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; }
31005 if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31006 echo $ECHO_N "(cached) $ECHO_C" >&6
31009 if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31010 ac_save_LIBS="$LIBS"
31011 for ac_lib in "" ; do
31017 *) ac_lib="-l$ac_lib" ;;
31019 LIBS=" $ac_lib $ac_save_LIBS"
31020 cat >conftest.$ac_ext <<_ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h. */
31026 #ifdef HAVE_NETDB_H
31037 rm -f conftest.$ac_objext conftest$ac_exeext
31038 if { (ac_try="$ac_link"
31039 case "(($ac_try" in
31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31041 *) ac_try_echo=$ac_try;;
31043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31044 (eval "$ac_link") 2>conftest.er1
31046 grep -v '^ *+' conftest.er1 >conftest.err
31048 cat conftest.err >&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } && {
31051 test -z "$ac_c_werror_flag" ||
31052 test ! -s conftest.err
31053 } && test -s conftest$ac_exeext &&
31054 $as_test_x conftest$ac_exeext; then
31055 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31057 echo "$as_me: failed program was:" >&5
31058 sed 's/^/| /' conftest.$ac_ext >&5
31063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31064 conftest$ac_exeext conftest.$ac_ext
31066 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31067 LIBS="$ac_save_LIBS"
31073 eval "ac_res=\$ac_cv_funclib_gai_strerror"
31077 for ac_func in gai_strerror
31079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31085 cat >conftest.$ac_ext <<_ACEOF
31088 cat confdefs.h >>conftest.$ac_ext
31089 cat >>conftest.$ac_ext <<_ACEOF
31090 /* end confdefs.h. */
31091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31093 #define $ac_func innocuous_$ac_func
31095 /* System header to define __stub macros and hopefully few prototypes,
31096 which can conflict with char $ac_func (); below.
31097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31098 <limits.h> exists even on freestanding compilers. */
31101 # include <limits.h>
31103 # include <assert.h>
31108 /* Override any GCC internal prototype to avoid an error.
31109 Use char because int might match the return type of a GCC
31110 builtin and then its argument prototype would still apply. */
31115 /* The GNU C library defines this for functions which it implements
31116 to always fail with ENOSYS. Some functions are actually named
31117 something starting with __ and the normal name is an alias. */
31118 #if defined __stub_$ac_func || defined __stub___$ac_func
31125 return $ac_func ();
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (ac_try="$ac_link"
31132 case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_link") 2>conftest.er1
31139 grep -v '^ *+' conftest.er1 >conftest.err
31141 cat conftest.err >&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } && {
31144 test -z "$ac_c_werror_flag" ||
31145 test ! -s conftest.err
31146 } && test -s conftest$ac_exeext &&
31147 $as_test_x conftest$ac_exeext; then
31148 eval "$as_ac_var=yes"
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 eval "$as_ac_var=no"
31156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31157 conftest$ac_exeext conftest.$ac_ext
31159 ac_res=`eval echo '${'$as_ac_var'}'`
31160 { echo "$as_me:$LINENO: result: $ac_res" >&5
31161 echo "${ECHO_T}$ac_res" >&6; }
31162 if test `eval echo '${'$as_ac_var'}'` = yes; then
31163 cat >>confdefs.h <<_ACEOF
31164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31172 eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31173 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31174 eval "LIB_gai_strerror=$ac_res"
31178 eval "ac_cv_func_gai_strerror=yes"
31179 eval "LIB_gai_strerror="
31180 cat >>confdefs.h <<_ACEOF
31181 #define $ac_tr_func 1
31184 { echo "$as_me:$LINENO: result: yes" >&5
31185 echo "${ECHO_T}yes" >&6; }
31188 eval "ac_cv_func_gai_strerror=no"
31189 eval "LIB_gai_strerror="
31190 { echo "$as_me:$LINENO: result: no" >&5
31191 echo "${ECHO_T}no" >&6; }
31194 eval "ac_cv_func_gai_strerror=yes"
31195 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31196 cat >>confdefs.h <<_ACEOF
31197 #define $ac_tr_func 1
31200 cat >>confdefs.h <<_ACEOF
31201 #define $ac_tr_lib 1
31204 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31205 echo "${ECHO_T}yes, in $ac_res" >&6; }
31210 if test -n "$LIB_gai_strerror"; then
31211 LIBS="$LIB_gai_strerror $LIBS"
31214 if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31215 case " $LIBOBJS " in
31216 *" gai_strerror.$ac_objext "* ) ;;
31217 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
31224 { echo "$as_me:$LINENO: checking for chown" >&5
31225 echo $ECHO_N "checking for chown... $ECHO_C" >&6; }
31226 if test "${ac_cv_func_chown+set}" = set; then
31227 echo $ECHO_N "(cached) $ECHO_C" >&6
31229 cat >conftest.$ac_ext <<_ACEOF
31232 cat confdefs.h >>conftest.$ac_ext
31233 cat >>conftest.$ac_ext <<_ACEOF
31234 /* end confdefs.h. */
31235 /* Define chown to an innocuous variant, in case <limits.h> declares chown.
31236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31237 #define chown innocuous_chown
31239 /* System header to define __stub macros and hopefully few prototypes,
31240 which can conflict with char chown (); below.
31241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31242 <limits.h> exists even on freestanding compilers. */
31245 # include <limits.h>
31247 # include <assert.h>
31252 /* Override any GCC internal prototype to avoid an error.
31253 Use char because int might match the return type of a GCC
31254 builtin and then its argument prototype would still apply. */
31259 /* The GNU C library defines this for functions which it implements
31260 to always fail with ENOSYS. Some functions are actually named
31261 something starting with __ and the normal name is an alias. */
31262 #if defined __stub_chown || defined __stub___chown
31274 rm -f conftest.$ac_objext conftest$ac_exeext
31275 if { (ac_try="$ac_link"
31276 case "(($ac_try" in
31277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31278 *) ac_try_echo=$ac_try;;
31280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31281 (eval "$ac_link") 2>conftest.er1
31283 grep -v '^ *+' conftest.er1 >conftest.err
31285 cat conftest.err >&5
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); } && {
31288 test -z "$ac_c_werror_flag" ||
31289 test ! -s conftest.err
31290 } && test -s conftest$ac_exeext &&
31291 $as_test_x conftest$ac_exeext; then
31292 ac_cv_func_chown=yes
31294 echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31297 ac_cv_func_chown=no
31300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31301 conftest$ac_exeext conftest.$ac_ext
31303 { echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31304 echo "${ECHO_T}$ac_cv_func_chown" >&6; }
31305 if test $ac_cv_func_chown = yes; then
31307 cat >>confdefs.h <<_ACEOF
31308 #define HAVE_CHOWN 1
31312 case " $LIBOBJS " in
31313 *" chown.$ac_objext "* ) ;;
31314 *) LIBOBJS="$LIBOBJS chown.$ac_objext"
31319 { echo "$as_me:$LINENO: checking for copyhostent" >&5
31320 echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6; }
31321 if test "${ac_cv_func_copyhostent+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
31324 cat >conftest.$ac_ext <<_ACEOF
31327 cat confdefs.h >>conftest.$ac_ext
31328 cat >>conftest.$ac_ext <<_ACEOF
31329 /* end confdefs.h. */
31330 /* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31332 #define copyhostent innocuous_copyhostent
31334 /* System header to define __stub macros and hopefully few prototypes,
31335 which can conflict with char copyhostent (); below.
31336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31337 <limits.h> exists even on freestanding compilers. */
31340 # include <limits.h>
31342 # include <assert.h>
31347 /* Override any GCC internal prototype to avoid an error.
31348 Use char because int might match the return type of a GCC
31349 builtin and then its argument prototype would still apply. */
31353 char copyhostent ();
31354 /* The GNU C library defines this for functions which it implements
31355 to always fail with ENOSYS. Some functions are actually named
31356 something starting with __ and the normal name is an alias. */
31357 #if defined __stub_copyhostent || defined __stub___copyhostent
31364 return copyhostent ();
31369 rm -f conftest.$ac_objext conftest$ac_exeext
31370 if { (ac_try="$ac_link"
31371 case "(($ac_try" in
31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31373 *) ac_try_echo=$ac_try;;
31375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31376 (eval "$ac_link") 2>conftest.er1
31378 grep -v '^ *+' conftest.er1 >conftest.err
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } && {
31383 test -z "$ac_c_werror_flag" ||
31384 test ! -s conftest.err
31385 } && test -s conftest$ac_exeext &&
31386 $as_test_x conftest$ac_exeext; then
31387 ac_cv_func_copyhostent=yes
31389 echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31392 ac_cv_func_copyhostent=no
31395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31396 conftest$ac_exeext conftest.$ac_ext
31398 { echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
31399 echo "${ECHO_T}$ac_cv_func_copyhostent" >&6; }
31400 if test $ac_cv_func_copyhostent = yes; then
31402 cat >>confdefs.h <<_ACEOF
31403 #define HAVE_COPYHOSTENT 1
31407 case " $LIBOBJS " in
31408 *" copyhostent.$ac_objext "* ) ;;
31409 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
31414 { echo "$as_me:$LINENO: checking for closefrom" >&5
31415 echo $ECHO_N "checking for closefrom... $ECHO_C" >&6; }
31416 if test "${ac_cv_func_closefrom+set}" = set; then
31417 echo $ECHO_N "(cached) $ECHO_C" >&6
31419 cat >conftest.$ac_ext <<_ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h. */
31425 /* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom.
31426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31427 #define closefrom innocuous_closefrom
31429 /* System header to define __stub macros and hopefully few prototypes,
31430 which can conflict with char closefrom (); below.
31431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31432 <limits.h> exists even on freestanding compilers. */
31435 # include <limits.h>
31437 # include <assert.h>
31442 /* Override any GCC internal prototype to avoid an error.
31443 Use char because int might match the return type of a GCC
31444 builtin and then its argument prototype would still apply. */
31449 /* The GNU C library defines this for functions which it implements
31450 to always fail with ENOSYS. Some functions are actually named
31451 something starting with __ and the normal name is an alias. */
31452 #if defined __stub_closefrom || defined __stub___closefrom
31459 return closefrom ();
31464 rm -f conftest.$ac_objext conftest$ac_exeext
31465 if { (ac_try="$ac_link"
31466 case "(($ac_try" in
31467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31468 *) ac_try_echo=$ac_try;;
31470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31471 (eval "$ac_link") 2>conftest.er1
31473 grep -v '^ *+' conftest.er1 >conftest.err
31475 cat conftest.err >&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } && {
31478 test -z "$ac_c_werror_flag" ||
31479 test ! -s conftest.err
31480 } && test -s conftest$ac_exeext &&
31481 $as_test_x conftest$ac_exeext; then
31482 ac_cv_func_closefrom=yes
31484 echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.$ac_ext >&5
31487 ac_cv_func_closefrom=no
31490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31491 conftest$ac_exeext conftest.$ac_ext
31493 { echo "$as_me:$LINENO: result: $ac_cv_func_closefrom" >&5
31494 echo "${ECHO_T}$ac_cv_func_closefrom" >&6; }
31495 if test $ac_cv_func_closefrom = yes; then
31497 cat >>confdefs.h <<_ACEOF
31498 #define HAVE_CLOSEFROM 1
31502 case " $LIBOBJS " in
31503 *" closefrom.$ac_objext "* ) ;;
31504 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
31509 { echo "$as_me:$LINENO: checking for daemon" >&5
31510 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
31511 if test "${ac_cv_func_daemon+set}" = set; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31514 cat >conftest.$ac_ext <<_ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h. */
31520 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
31521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31522 #define daemon innocuous_daemon
31524 /* System header to define __stub macros and hopefully few prototypes,
31525 which can conflict with char daemon (); below.
31526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31527 <limits.h> exists even on freestanding compilers. */
31530 # include <limits.h>
31532 # include <assert.h>
31537 /* Override any GCC internal prototype to avoid an error.
31538 Use char because int might match the return type of a GCC
31539 builtin and then its argument prototype would still apply. */
31544 /* The GNU C library defines this for functions which it implements
31545 to always fail with ENOSYS. Some functions are actually named
31546 something starting with __ and the normal name is an alias. */
31547 #if defined __stub_daemon || defined __stub___daemon
31559 rm -f conftest.$ac_objext conftest$ac_exeext
31560 if { (ac_try="$ac_link"
31561 case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_link") 2>conftest.er1
31568 grep -v '^ *+' conftest.er1 >conftest.err
31570 cat conftest.err >&5
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); } && {
31573 test -z "$ac_c_werror_flag" ||
31574 test ! -s conftest.err
31575 } && test -s conftest$ac_exeext &&
31576 $as_test_x conftest$ac_exeext; then
31577 ac_cv_func_daemon=yes
31579 echo "$as_me: failed program was:" >&5
31580 sed 's/^/| /' conftest.$ac_ext >&5
31582 ac_cv_func_daemon=no
31585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31586 conftest$ac_exeext conftest.$ac_ext
31588 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
31589 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
31590 if test $ac_cv_func_daemon = yes; then
31592 cat >>confdefs.h <<_ACEOF
31593 #define HAVE_DAEMON 1
31597 case " $LIBOBJS " in
31598 *" daemon.$ac_objext "* ) ;;
31599 *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
31604 { echo "$as_me:$LINENO: checking for ecalloc" >&5
31605 echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6; }
31606 if test "${ac_cv_func_ecalloc+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31609 cat >conftest.$ac_ext <<_ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h. */
31615 /* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
31616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31617 #define ecalloc innocuous_ecalloc
31619 /* System header to define __stub macros and hopefully few prototypes,
31620 which can conflict with char ecalloc (); below.
31621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31622 <limits.h> exists even on freestanding compilers. */
31625 # include <limits.h>
31627 # include <assert.h>
31632 /* Override any GCC internal prototype to avoid an error.
31633 Use char because int might match the return type of a GCC
31634 builtin and then its argument prototype would still apply. */
31639 /* The GNU C library defines this for functions which it implements
31640 to always fail with ENOSYS. Some functions are actually named
31641 something starting with __ and the normal name is an alias. */
31642 #if defined __stub_ecalloc || defined __stub___ecalloc
31654 rm -f conftest.$ac_objext conftest$ac_exeext
31655 if { (ac_try="$ac_link"
31656 case "(($ac_try" in
31657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31658 *) ac_try_echo=$ac_try;;
31660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31661 (eval "$ac_link") 2>conftest.er1
31663 grep -v '^ *+' conftest.er1 >conftest.err
31665 cat conftest.err >&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } && {
31668 test -z "$ac_c_werror_flag" ||
31669 test ! -s conftest.err
31670 } && test -s conftest$ac_exeext &&
31671 $as_test_x conftest$ac_exeext; then
31672 ac_cv_func_ecalloc=yes
31674 echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31677 ac_cv_func_ecalloc=no
31680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31681 conftest$ac_exeext conftest.$ac_ext
31683 { echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
31684 echo "${ECHO_T}$ac_cv_func_ecalloc" >&6; }
31685 if test $ac_cv_func_ecalloc = yes; then
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_ECALLOC 1
31692 case " $LIBOBJS " in
31693 *" ecalloc.$ac_objext "* ) ;;
31694 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
31699 { echo "$as_me:$LINENO: checking for emalloc" >&5
31700 echo $ECHO_N "checking for emalloc... $ECHO_C" >&6; }
31701 if test "${ac_cv_func_emalloc+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
31704 cat >conftest.$ac_ext <<_ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h. */
31710 /* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
31711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31712 #define emalloc innocuous_emalloc
31714 /* System header to define __stub macros and hopefully few prototypes,
31715 which can conflict with char emalloc (); below.
31716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31717 <limits.h> exists even on freestanding compilers. */
31720 # include <limits.h>
31722 # include <assert.h>
31727 /* Override any GCC internal prototype to avoid an error.
31728 Use char because int might match the return type of a GCC
31729 builtin and then its argument prototype would still apply. */
31734 /* The GNU C library defines this for functions which it implements
31735 to always fail with ENOSYS. Some functions are actually named
31736 something starting with __ and the normal name is an alias. */
31737 #if defined __stub_emalloc || defined __stub___emalloc
31749 rm -f conftest.$ac_objext conftest$ac_exeext
31750 if { (ac_try="$ac_link"
31751 case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_link") 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } && {
31763 test -z "$ac_c_werror_flag" ||
31764 test ! -s conftest.err
31765 } && test -s conftest$ac_exeext &&
31766 $as_test_x conftest$ac_exeext; then
31767 ac_cv_func_emalloc=yes
31769 echo "$as_me: failed program was:" >&5
31770 sed 's/^/| /' conftest.$ac_ext >&5
31772 ac_cv_func_emalloc=no
31775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31776 conftest$ac_exeext conftest.$ac_ext
31778 { echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
31779 echo "${ECHO_T}$ac_cv_func_emalloc" >&6; }
31780 if test $ac_cv_func_emalloc = yes; then
31782 cat >>confdefs.h <<_ACEOF
31783 #define HAVE_EMALLOC 1
31787 case " $LIBOBJS " in
31788 *" emalloc.$ac_objext "* ) ;;
31789 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext"
31794 { echo "$as_me:$LINENO: checking for erealloc" >&5
31795 echo $ECHO_N "checking for erealloc... $ECHO_C" >&6; }
31796 if test "${ac_cv_func_erealloc+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31799 cat >conftest.$ac_ext <<_ACEOF
31802 cat confdefs.h >>conftest.$ac_ext
31803 cat >>conftest.$ac_ext <<_ACEOF
31804 /* end confdefs.h. */
31805 /* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
31806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31807 #define erealloc innocuous_erealloc
31809 /* System header to define __stub macros and hopefully few prototypes,
31810 which can conflict with char erealloc (); below.
31811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31812 <limits.h> exists even on freestanding compilers. */
31815 # include <limits.h>
31817 # include <assert.h>
31822 /* Override any GCC internal prototype to avoid an error.
31823 Use char because int might match the return type of a GCC
31824 builtin and then its argument prototype would still apply. */
31829 /* The GNU C library defines this for functions which it implements
31830 to always fail with ENOSYS. Some functions are actually named
31831 something starting with __ and the normal name is an alias. */
31832 #if defined __stub_erealloc || defined __stub___erealloc
31839 return erealloc ();
31844 rm -f conftest.$ac_objext conftest$ac_exeext
31845 if { (ac_try="$ac_link"
31846 case "(($ac_try" in
31847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31848 *) ac_try_echo=$ac_try;;
31850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31851 (eval "$ac_link") 2>conftest.er1
31853 grep -v '^ *+' conftest.er1 >conftest.err
31855 cat conftest.err >&5
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); } && {
31858 test -z "$ac_c_werror_flag" ||
31859 test ! -s conftest.err
31860 } && test -s conftest$ac_exeext &&
31861 $as_test_x conftest$ac_exeext; then
31862 ac_cv_func_erealloc=yes
31864 echo "$as_me: failed program was:" >&5
31865 sed 's/^/| /' conftest.$ac_ext >&5
31867 ac_cv_func_erealloc=no
31870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31871 conftest$ac_exeext conftest.$ac_ext
31873 { echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
31874 echo "${ECHO_T}$ac_cv_func_erealloc" >&6; }
31875 if test $ac_cv_func_erealloc = yes; then
31877 cat >>confdefs.h <<_ACEOF
31878 #define HAVE_EREALLOC 1
31882 case " $LIBOBJS " in
31883 *" erealloc.$ac_objext "* ) ;;
31884 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext"
31889 { echo "$as_me:$LINENO: checking for estrdup" >&5
31890 echo $ECHO_N "checking for estrdup... $ECHO_C" >&6; }
31891 if test "${ac_cv_func_estrdup+set}" = set; then
31892 echo $ECHO_N "(cached) $ECHO_C" >&6
31894 cat >conftest.$ac_ext <<_ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h. */
31900 /* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
31901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31902 #define estrdup innocuous_estrdup
31904 /* System header to define __stub macros and hopefully few prototypes,
31905 which can conflict with char estrdup (); below.
31906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31907 <limits.h> exists even on freestanding compilers. */
31910 # include <limits.h>
31912 # include <assert.h>
31917 /* Override any GCC internal prototype to avoid an error.
31918 Use char because int might match the return type of a GCC
31919 builtin and then its argument prototype would still apply. */
31924 /* The GNU C library defines this for functions which it implements
31925 to always fail with ENOSYS. Some functions are actually named
31926 something starting with __ and the normal name is an alias. */
31927 #if defined __stub_estrdup || defined __stub___estrdup
31939 rm -f conftest.$ac_objext conftest$ac_exeext
31940 if { (ac_try="$ac_link"
31941 case "(($ac_try" in
31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31943 *) ac_try_echo=$ac_try;;
31945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31946 (eval "$ac_link") 2>conftest.er1
31948 grep -v '^ *+' conftest.er1 >conftest.err
31950 cat conftest.err >&5
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } && {
31953 test -z "$ac_c_werror_flag" ||
31954 test ! -s conftest.err
31955 } && test -s conftest$ac_exeext &&
31956 $as_test_x conftest$ac_exeext; then
31957 ac_cv_func_estrdup=yes
31959 echo "$as_me: failed program was:" >&5
31960 sed 's/^/| /' conftest.$ac_ext >&5
31962 ac_cv_func_estrdup=no
31965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31966 conftest$ac_exeext conftest.$ac_ext
31968 { echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
31969 echo "${ECHO_T}$ac_cv_func_estrdup" >&6; }
31970 if test $ac_cv_func_estrdup = yes; then
31972 cat >>confdefs.h <<_ACEOF
31973 #define HAVE_ESTRDUP 1
31977 case " $LIBOBJS " in
31978 *" estrdup.$ac_objext "* ) ;;
31979 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext"
31984 { echo "$as_me:$LINENO: checking for err" >&5
31985 echo $ECHO_N "checking for err... $ECHO_C" >&6; }
31986 if test "${ac_cv_func_err+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31989 cat >conftest.$ac_ext <<_ACEOF
31992 cat confdefs.h >>conftest.$ac_ext
31993 cat >>conftest.$ac_ext <<_ACEOF
31994 /* end confdefs.h. */
31995 /* Define err to an innocuous variant, in case <limits.h> declares err.
31996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31997 #define err innocuous_err
31999 /* System header to define __stub macros and hopefully few prototypes,
32000 which can conflict with char err (); below.
32001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32002 <limits.h> exists even on freestanding compilers. */
32005 # include <limits.h>
32007 # include <assert.h>
32012 /* Override any GCC internal prototype to avoid an error.
32013 Use char because int might match the return type of a GCC
32014 builtin and then its argument prototype would still apply. */
32019 /* The GNU C library defines this for functions which it implements
32020 to always fail with ENOSYS. Some functions are actually named
32021 something starting with __ and the normal name is an alias. */
32022 #if defined __stub_err || defined __stub___err
32034 rm -f conftest.$ac_objext conftest$ac_exeext
32035 if { (ac_try="$ac_link"
32036 case "(($ac_try" in
32037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038 *) ac_try_echo=$ac_try;;
32040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041 (eval "$ac_link") 2>conftest.er1
32043 grep -v '^ *+' conftest.er1 >conftest.err
32045 cat conftest.err >&5
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); } && {
32048 test -z "$ac_c_werror_flag" ||
32049 test ! -s conftest.err
32050 } && test -s conftest$ac_exeext &&
32051 $as_test_x conftest$ac_exeext; then
32054 echo "$as_me: failed program was:" >&5
32055 sed 's/^/| /' conftest.$ac_ext >&5
32060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32061 conftest$ac_exeext conftest.$ac_ext
32063 { echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32064 echo "${ECHO_T}$ac_cv_func_err" >&6; }
32065 if test $ac_cv_func_err = yes; then
32067 cat >>confdefs.h <<_ACEOF
32072 case " $LIBOBJS " in
32073 *" err.$ac_objext "* ) ;;
32074 *) LIBOBJS="$LIBOBJS err.$ac_objext"
32079 { echo "$as_me:$LINENO: checking for errx" >&5
32080 echo $ECHO_N "checking for errx... $ECHO_C" >&6; }
32081 if test "${ac_cv_func_errx+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32084 cat >conftest.$ac_ext <<_ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 /* Define errx to an innocuous variant, in case <limits.h> declares errx.
32091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32092 #define errx innocuous_errx
32094 /* System header to define __stub macros and hopefully few prototypes,
32095 which can conflict with char errx (); below.
32096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32097 <limits.h> exists even on freestanding compilers. */
32100 # include <limits.h>
32102 # include <assert.h>
32107 /* Override any GCC internal prototype to avoid an error.
32108 Use char because int might match the return type of a GCC
32109 builtin and then its argument prototype would still apply. */
32114 /* The GNU C library defines this for functions which it implements
32115 to always fail with ENOSYS. Some functions are actually named
32116 something starting with __ and the normal name is an alias. */
32117 #if defined __stub_errx || defined __stub___errx
32129 rm -f conftest.$ac_objext conftest$ac_exeext
32130 if { (ac_try="$ac_link"
32131 case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_link") 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } && {
32143 test -z "$ac_c_werror_flag" ||
32144 test ! -s conftest.err
32145 } && test -s conftest$ac_exeext &&
32146 $as_test_x conftest$ac_exeext; then
32147 ac_cv_func_errx=yes
32149 echo "$as_me: failed program was:" >&5
32150 sed 's/^/| /' conftest.$ac_ext >&5
32155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32156 conftest$ac_exeext conftest.$ac_ext
32158 { echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32159 echo "${ECHO_T}$ac_cv_func_errx" >&6; }
32160 if test $ac_cv_func_errx = yes; then
32162 cat >>confdefs.h <<_ACEOF
32163 #define HAVE_ERRX 1
32167 case " $LIBOBJS " in
32168 *" errx.$ac_objext "* ) ;;
32169 *) LIBOBJS="$LIBOBJS errx.$ac_objext"
32174 { echo "$as_me:$LINENO: checking for fchown" >&5
32175 echo $ECHO_N "checking for fchown... $ECHO_C" >&6; }
32176 if test "${ac_cv_func_fchown+set}" = set; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32179 cat >conftest.$ac_ext <<_ACEOF
32182 cat confdefs.h >>conftest.$ac_ext
32183 cat >>conftest.$ac_ext <<_ACEOF
32184 /* end confdefs.h. */
32185 /* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32187 #define fchown innocuous_fchown
32189 /* System header to define __stub macros and hopefully few prototypes,
32190 which can conflict with char fchown (); below.
32191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32192 <limits.h> exists even on freestanding compilers. */
32195 # include <limits.h>
32197 # include <assert.h>
32202 /* Override any GCC internal prototype to avoid an error.
32203 Use char because int might match the return type of a GCC
32204 builtin and then its argument prototype would still apply. */
32209 /* The GNU C library defines this for functions which it implements
32210 to always fail with ENOSYS. Some functions are actually named
32211 something starting with __ and the normal name is an alias. */
32212 #if defined __stub_fchown || defined __stub___fchown
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_link") 2>conftest.er1
32233 grep -v '^ *+' conftest.er1 >conftest.err
32235 cat conftest.err >&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); } && {
32238 test -z "$ac_c_werror_flag" ||
32239 test ! -s conftest.err
32240 } && test -s conftest$ac_exeext &&
32241 $as_test_x conftest$ac_exeext; then
32242 ac_cv_func_fchown=yes
32244 echo "$as_me: failed program was:" >&5
32245 sed 's/^/| /' conftest.$ac_ext >&5
32247 ac_cv_func_fchown=no
32250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32251 conftest$ac_exeext conftest.$ac_ext
32253 { echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32254 echo "${ECHO_T}$ac_cv_func_fchown" >&6; }
32255 if test $ac_cv_func_fchown = yes; then
32257 cat >>confdefs.h <<_ACEOF
32258 #define HAVE_FCHOWN 1
32262 case " $LIBOBJS " in
32263 *" fchown.$ac_objext "* ) ;;
32264 *) LIBOBJS="$LIBOBJS fchown.$ac_objext"
32269 { echo "$as_me:$LINENO: checking for flock" >&5
32270 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
32271 if test "${ac_cv_func_flock+set}" = set; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
32274 cat >conftest.$ac_ext <<_ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h. */
32280 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
32281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32282 #define flock innocuous_flock
32284 /* System header to define __stub macros and hopefully few prototypes,
32285 which can conflict with char flock (); below.
32286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32287 <limits.h> exists even on freestanding compilers. */
32290 # include <limits.h>
32292 # include <assert.h>
32297 /* Override any GCC internal prototype to avoid an error.
32298 Use char because int might match the return type of a GCC
32299 builtin and then its argument prototype would still apply. */
32304 /* The GNU C library defines this for functions which it implements
32305 to always fail with ENOSYS. Some functions are actually named
32306 something starting with __ and the normal name is an alias. */
32307 #if defined __stub_flock || defined __stub___flock
32319 rm -f conftest.$ac_objext conftest$ac_exeext
32320 if { (ac_try="$ac_link"
32321 case "(($ac_try" in
32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32323 *) ac_try_echo=$ac_try;;
32325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32326 (eval "$ac_link") 2>conftest.er1
32328 grep -v '^ *+' conftest.er1 >conftest.err
32330 cat conftest.err >&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } && {
32333 test -z "$ac_c_werror_flag" ||
32334 test ! -s conftest.err
32335 } && test -s conftest$ac_exeext &&
32336 $as_test_x conftest$ac_exeext; then
32337 ac_cv_func_flock=yes
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_cv_func_flock=no
32345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32346 conftest$ac_exeext conftest.$ac_ext
32348 { echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32349 echo "${ECHO_T}$ac_cv_func_flock" >&6; }
32350 if test $ac_cv_func_flock = yes; then
32352 cat >>confdefs.h <<_ACEOF
32353 #define HAVE_FLOCK 1
32357 case " $LIBOBJS " in
32358 *" flock.$ac_objext "* ) ;;
32359 *) LIBOBJS="$LIBOBJS flock.$ac_objext"
32364 { echo "$as_me:$LINENO: checking for fnmatch" >&5
32365 echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6; }
32366 if test "${ac_cv_func_fnmatch+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 /* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32377 #define fnmatch innocuous_fnmatch
32379 /* System header to define __stub macros and hopefully few prototypes,
32380 which can conflict with char fnmatch (); below.
32381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32382 <limits.h> exists even on freestanding compilers. */
32385 # include <limits.h>
32387 # include <assert.h>
32392 /* Override any GCC internal prototype to avoid an error.
32393 Use char because int might match the return type of a GCC
32394 builtin and then its argument prototype would still apply. */
32399 /* The GNU C library defines this for functions which it implements
32400 to always fail with ENOSYS. Some functions are actually named
32401 something starting with __ and the normal name is an alias. */
32402 #if defined __stub_fnmatch || defined __stub___fnmatch
32414 rm -f conftest.$ac_objext conftest$ac_exeext
32415 if { (ac_try="$ac_link"
32416 case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_link") 2>conftest.er1
32423 grep -v '^ *+' conftest.er1 >conftest.err
32425 cat conftest.err >&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } && {
32428 test -z "$ac_c_werror_flag" ||
32429 test ! -s conftest.err
32430 } && test -s conftest$ac_exeext &&
32431 $as_test_x conftest$ac_exeext; then
32432 ac_cv_func_fnmatch=yes
32434 echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32437 ac_cv_func_fnmatch=no
32440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32441 conftest$ac_exeext conftest.$ac_ext
32443 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
32444 echo "${ECHO_T}$ac_cv_func_fnmatch" >&6; }
32445 if test $ac_cv_func_fnmatch = yes; then
32447 cat >>confdefs.h <<_ACEOF
32448 #define HAVE_FNMATCH 1
32452 case " $LIBOBJS " in
32453 *" fnmatch.$ac_objext "* ) ;;
32454 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
32459 { echo "$as_me:$LINENO: checking for freehostent" >&5
32460 echo $ECHO_N "checking for freehostent... $ECHO_C" >&6; }
32461 if test "${ac_cv_func_freehostent+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32464 cat >conftest.$ac_ext <<_ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h. */
32470 /* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
32471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32472 #define freehostent innocuous_freehostent
32474 /* System header to define __stub macros and hopefully few prototypes,
32475 which can conflict with char freehostent (); below.
32476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32477 <limits.h> exists even on freestanding compilers. */
32480 # include <limits.h>
32482 # include <assert.h>
32487 /* Override any GCC internal prototype to avoid an error.
32488 Use char because int might match the return type of a GCC
32489 builtin and then its argument prototype would still apply. */
32493 char freehostent ();
32494 /* The GNU C library defines this for functions which it implements
32495 to always fail with ENOSYS. Some functions are actually named
32496 something starting with __ and the normal name is an alias. */
32497 #if defined __stub_freehostent || defined __stub___freehostent
32504 return freehostent ();
32509 rm -f conftest.$ac_objext conftest$ac_exeext
32510 if { (ac_try="$ac_link"
32511 case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_link") 2>conftest.er1
32518 grep -v '^ *+' conftest.er1 >conftest.err
32520 cat conftest.err >&5
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); } && {
32523 test -z "$ac_c_werror_flag" ||
32524 test ! -s conftest.err
32525 } && test -s conftest$ac_exeext &&
32526 $as_test_x conftest$ac_exeext; then
32527 ac_cv_func_freehostent=yes
32529 echo "$as_me: failed program was:" >&5
32530 sed 's/^/| /' conftest.$ac_ext >&5
32532 ac_cv_func_freehostent=no
32535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32536 conftest$ac_exeext conftest.$ac_ext
32538 { echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
32539 echo "${ECHO_T}$ac_cv_func_freehostent" >&6; }
32540 if test $ac_cv_func_freehostent = yes; then
32542 cat >>confdefs.h <<_ACEOF
32543 #define HAVE_FREEHOSTENT 1
32547 case " $LIBOBJS " in
32548 *" freehostent.$ac_objext "* ) ;;
32549 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext"
32554 { echo "$as_me:$LINENO: checking for getcwd" >&5
32555 echo $ECHO_N "checking for getcwd... $ECHO_C" >&6; }
32556 if test "${ac_cv_func_getcwd+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 cat >conftest.$ac_ext <<_ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h. */
32565 /* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
32566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32567 #define getcwd innocuous_getcwd
32569 /* System header to define __stub macros and hopefully few prototypes,
32570 which can conflict with char getcwd (); below.
32571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32572 <limits.h> exists even on freestanding compilers. */
32575 # include <limits.h>
32577 # include <assert.h>
32582 /* Override any GCC internal prototype to avoid an error.
32583 Use char because int might match the return type of a GCC
32584 builtin and then its argument prototype would still apply. */
32589 /* The GNU C library defines this for functions which it implements
32590 to always fail with ENOSYS. Some functions are actually named
32591 something starting with __ and the normal name is an alias. */
32592 #if defined __stub_getcwd || defined __stub___getcwd
32604 rm -f conftest.$ac_objext conftest$ac_exeext
32605 if { (ac_try="$ac_link"
32606 case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_link") 2>conftest.er1
32613 grep -v '^ *+' conftest.er1 >conftest.err
32615 cat conftest.err >&5
32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32617 (exit $ac_status); } && {
32618 test -z "$ac_c_werror_flag" ||
32619 test ! -s conftest.err
32620 } && test -s conftest$ac_exeext &&
32621 $as_test_x conftest$ac_exeext; then
32622 ac_cv_func_getcwd=yes
32624 echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32627 ac_cv_func_getcwd=no
32630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32631 conftest$ac_exeext conftest.$ac_ext
32633 { echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
32634 echo "${ECHO_T}$ac_cv_func_getcwd" >&6; }
32635 if test $ac_cv_func_getcwd = yes; then
32637 cat >>confdefs.h <<_ACEOF
32638 #define HAVE_GETCWD 1
32642 case " $LIBOBJS " in
32643 *" getcwd.$ac_objext "* ) ;;
32644 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
32649 { echo "$as_me:$LINENO: checking for getdtablesize" >&5
32650 echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; }
32651 if test "${ac_cv_func_getdtablesize+set}" = set; then
32652 echo $ECHO_N "(cached) $ECHO_C" >&6
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 /* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
32661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32662 #define getdtablesize innocuous_getdtablesize
32664 /* System header to define __stub macros and hopefully few prototypes,
32665 which can conflict with char getdtablesize (); below.
32666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32667 <limits.h> exists even on freestanding compilers. */
32670 # include <limits.h>
32672 # include <assert.h>
32675 #undef getdtablesize
32677 /* Override any GCC internal prototype to avoid an error.
32678 Use char because int might match the return type of a GCC
32679 builtin and then its argument prototype would still apply. */
32683 char getdtablesize ();
32684 /* The GNU C library defines this for functions which it implements
32685 to always fail with ENOSYS. Some functions are actually named
32686 something starting with __ and the normal name is an alias. */
32687 #if defined __stub_getdtablesize || defined __stub___getdtablesize
32694 return getdtablesize ();
32699 rm -f conftest.$ac_objext conftest$ac_exeext
32700 if { (ac_try="$ac_link"
32701 case "(($ac_try" in
32702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32703 *) ac_try_echo=$ac_try;;
32705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32706 (eval "$ac_link") 2>conftest.er1
32708 grep -v '^ *+' conftest.er1 >conftest.err
32710 cat conftest.err >&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } && {
32713 test -z "$ac_c_werror_flag" ||
32714 test ! -s conftest.err
32715 } && test -s conftest$ac_exeext &&
32716 $as_test_x conftest$ac_exeext; then
32717 ac_cv_func_getdtablesize=yes
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32722 ac_cv_func_getdtablesize=no
32725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32726 conftest$ac_exeext conftest.$ac_ext
32728 { echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
32729 echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; }
32730 if test $ac_cv_func_getdtablesize = yes; then
32732 cat >>confdefs.h <<_ACEOF
32733 #define HAVE_GETDTABLESIZE 1
32737 case " $LIBOBJS " in
32738 *" getdtablesize.$ac_objext "* ) ;;
32739 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
32744 { echo "$as_me:$LINENO: checking for getegid" >&5
32745 echo $ECHO_N "checking for getegid... $ECHO_C" >&6; }
32746 if test "${ac_cv_func_getegid+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32749 cat >conftest.$ac_ext <<_ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32755 /* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
32756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32757 #define getegid innocuous_getegid
32759 /* System header to define __stub macros and hopefully few prototypes,
32760 which can conflict with char getegid (); below.
32761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32762 <limits.h> exists even on freestanding compilers. */
32765 # include <limits.h>
32767 # include <assert.h>
32772 /* Override any GCC internal prototype to avoid an error.
32773 Use char because int might match the return type of a GCC
32774 builtin and then its argument prototype would still apply. */
32779 /* The GNU C library defines this for functions which it implements
32780 to always fail with ENOSYS. Some functions are actually named
32781 something starting with __ and the normal name is an alias. */
32782 #if defined __stub_getegid || defined __stub___getegid
32794 rm -f conftest.$ac_objext conftest$ac_exeext
32795 if { (ac_try="$ac_link"
32796 case "(($ac_try" in
32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32798 *) ac_try_echo=$ac_try;;
32800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32801 (eval "$ac_link") 2>conftest.er1
32803 grep -v '^ *+' conftest.er1 >conftest.err
32805 cat conftest.err >&5
32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807 (exit $ac_status); } && {
32808 test -z "$ac_c_werror_flag" ||
32809 test ! -s conftest.err
32810 } && test -s conftest$ac_exeext &&
32811 $as_test_x conftest$ac_exeext; then
32812 ac_cv_func_getegid=yes
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_cv_func_getegid=no
32820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32821 conftest$ac_exeext conftest.$ac_ext
32823 { echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
32824 echo "${ECHO_T}$ac_cv_func_getegid" >&6; }
32825 if test $ac_cv_func_getegid = yes; then
32827 cat >>confdefs.h <<_ACEOF
32828 #define HAVE_GETEGID 1
32832 case " $LIBOBJS " in
32833 *" getegid.$ac_objext "* ) ;;
32834 *) LIBOBJS="$LIBOBJS getegid.$ac_objext"
32839 { echo "$as_me:$LINENO: checking for geteuid" >&5
32840 echo $ECHO_N "checking for geteuid... $ECHO_C" >&6; }
32841 if test "${ac_cv_func_geteuid+set}" = set; then
32842 echo $ECHO_N "(cached) $ECHO_C" >&6
32844 cat >conftest.$ac_ext <<_ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h. */
32850 /* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
32851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32852 #define geteuid innocuous_geteuid
32854 /* System header to define __stub macros and hopefully few prototypes,
32855 which can conflict with char geteuid (); below.
32856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32857 <limits.h> exists even on freestanding compilers. */
32860 # include <limits.h>
32862 # include <assert.h>
32867 /* Override any GCC internal prototype to avoid an error.
32868 Use char because int might match the return type of a GCC
32869 builtin and then its argument prototype would still apply. */
32874 /* The GNU C library defines this for functions which it implements
32875 to always fail with ENOSYS. Some functions are actually named
32876 something starting with __ and the normal name is an alias. */
32877 #if defined __stub_geteuid || defined __stub___geteuid
32889 rm -f conftest.$ac_objext conftest$ac_exeext
32890 if { (ac_try="$ac_link"
32891 case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_link") 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } && {
32903 test -z "$ac_c_werror_flag" ||
32904 test ! -s conftest.err
32905 } && test -s conftest$ac_exeext &&
32906 $as_test_x conftest$ac_exeext; then
32907 ac_cv_func_geteuid=yes
32909 echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32912 ac_cv_func_geteuid=no
32915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32916 conftest$ac_exeext conftest.$ac_ext
32918 { echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
32919 echo "${ECHO_T}$ac_cv_func_geteuid" >&6; }
32920 if test $ac_cv_func_geteuid = yes; then
32922 cat >>confdefs.h <<_ACEOF
32923 #define HAVE_GETEUID 1
32927 case " $LIBOBJS " in
32928 *" geteuid.$ac_objext "* ) ;;
32929 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext"
32934 { echo "$as_me:$LINENO: checking for getgid" >&5
32935 echo $ECHO_N "checking for getgid... $ECHO_C" >&6; }
32936 if test "${ac_cv_func_getgid+set}" = set; then
32937 echo $ECHO_N "(cached) $ECHO_C" >&6
32939 cat >conftest.$ac_ext <<_ACEOF
32942 cat confdefs.h >>conftest.$ac_ext
32943 cat >>conftest.$ac_ext <<_ACEOF
32944 /* end confdefs.h. */
32945 /* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
32946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32947 #define getgid innocuous_getgid
32949 /* System header to define __stub macros and hopefully few prototypes,
32950 which can conflict with char getgid (); below.
32951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32952 <limits.h> exists even on freestanding compilers. */
32955 # include <limits.h>
32957 # include <assert.h>
32962 /* Override any GCC internal prototype to avoid an error.
32963 Use char because int might match the return type of a GCC
32964 builtin and then its argument prototype would still apply. */
32969 /* The GNU C library defines this for functions which it implements
32970 to always fail with ENOSYS. Some functions are actually named
32971 something starting with __ and the normal name is an alias. */
32972 #if defined __stub_getgid || defined __stub___getgid
32984 rm -f conftest.$ac_objext conftest$ac_exeext
32985 if { (ac_try="$ac_link"
32986 case "(($ac_try" in
32987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32988 *) ac_try_echo=$ac_try;;
32990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32991 (eval "$ac_link") 2>conftest.er1
32993 grep -v '^ *+' conftest.er1 >conftest.err
32995 cat conftest.err >&5
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); } && {
32998 test -z "$ac_c_werror_flag" ||
32999 test ! -s conftest.err
33000 } && test -s conftest$ac_exeext &&
33001 $as_test_x conftest$ac_exeext; then
33002 ac_cv_func_getgid=yes
33004 echo "$as_me: failed program was:" >&5
33005 sed 's/^/| /' conftest.$ac_ext >&5
33007 ac_cv_func_getgid=no
33010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33011 conftest$ac_exeext conftest.$ac_ext
33013 { echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33014 echo "${ECHO_T}$ac_cv_func_getgid" >&6; }
33015 if test $ac_cv_func_getgid = yes; then
33017 cat >>confdefs.h <<_ACEOF
33018 #define HAVE_GETGID 1
33022 case " $LIBOBJS " in
33023 *" getgid.$ac_objext "* ) ;;
33024 *) LIBOBJS="$LIBOBJS getgid.$ac_objext"
33029 { echo "$as_me:$LINENO: checking for gethostname" >&5
33030 echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; }
33031 if test "${ac_cv_func_gethostname+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33034 cat >conftest.$ac_ext <<_ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h. */
33040 /* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33042 #define gethostname innocuous_gethostname
33044 /* System header to define __stub macros and hopefully few prototypes,
33045 which can conflict with char gethostname (); below.
33046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33047 <limits.h> exists even on freestanding compilers. */
33050 # include <limits.h>
33052 # include <assert.h>
33057 /* Override any GCC internal prototype to avoid an error.
33058 Use char because int might match the return type of a GCC
33059 builtin and then its argument prototype would still apply. */
33063 char gethostname ();
33064 /* The GNU C library defines this for functions which it implements
33065 to always fail with ENOSYS. Some functions are actually named
33066 something starting with __ and the normal name is an alias. */
33067 #if defined __stub_gethostname || defined __stub___gethostname
33074 return gethostname ();
33079 rm -f conftest.$ac_objext conftest$ac_exeext
33080 if { (ac_try="$ac_link"
33081 case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_link") 2>conftest.er1
33088 grep -v '^ *+' conftest.er1 >conftest.err
33090 cat conftest.err >&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); } && {
33093 test -z "$ac_c_werror_flag" ||
33094 test ! -s conftest.err
33095 } && test -s conftest$ac_exeext &&
33096 $as_test_x conftest$ac_exeext; then
33097 ac_cv_func_gethostname=yes
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 ac_cv_func_gethostname=no
33105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33106 conftest$ac_exeext conftest.$ac_ext
33108 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33109 echo "${ECHO_T}$ac_cv_func_gethostname" >&6; }
33110 if test $ac_cv_func_gethostname = yes; then
33112 cat >>confdefs.h <<_ACEOF
33113 #define HAVE_GETHOSTNAME 1
33117 case " $LIBOBJS " in
33118 *" gethostname.$ac_objext "* ) ;;
33119 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext"
33124 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
33125 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
33126 if test "${ac_cv_func_getifaddrs+set}" = set; then
33127 echo $ECHO_N "(cached) $ECHO_C" >&6
33129 cat >conftest.$ac_ext <<_ACEOF
33132 cat confdefs.h >>conftest.$ac_ext
33133 cat >>conftest.$ac_ext <<_ACEOF
33134 /* end confdefs.h. */
33135 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33137 #define getifaddrs innocuous_getifaddrs
33139 /* System header to define __stub macros and hopefully few prototypes,
33140 which can conflict with char getifaddrs (); below.
33141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33142 <limits.h> exists even on freestanding compilers. */
33145 # include <limits.h>
33147 # include <assert.h>
33152 /* Override any GCC internal prototype to avoid an error.
33153 Use char because int might match the return type of a GCC
33154 builtin and then its argument prototype would still apply. */
33158 char getifaddrs ();
33159 /* The GNU C library defines this for functions which it implements
33160 to always fail with ENOSYS. Some functions are actually named
33161 something starting with __ and the normal name is an alias. */
33162 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33169 return getifaddrs ();
33174 rm -f conftest.$ac_objext conftest$ac_exeext
33175 if { (ac_try="$ac_link"
33176 case "(($ac_try" in
33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33178 *) ac_try_echo=$ac_try;;
33180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33181 (eval "$ac_link") 2>conftest.er1
33183 grep -v '^ *+' conftest.er1 >conftest.err
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } && {
33188 test -z "$ac_c_werror_flag" ||
33189 test ! -s conftest.err
33190 } && test -s conftest$ac_exeext &&
33191 $as_test_x conftest$ac_exeext; then
33192 ac_cv_func_getifaddrs=yes
33194 echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33197 ac_cv_func_getifaddrs=no
33200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33201 conftest$ac_exeext conftest.$ac_ext
33203 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33204 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
33205 if test $ac_cv_func_getifaddrs = yes; then
33207 cat >>confdefs.h <<_ACEOF
33208 #define HAVE_GETIFADDRS 1
33212 case " $LIBOBJS " in
33213 *" getifaddrs.$ac_objext "* ) ;;
33214 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
33219 { echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33220 echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6; }
33221 if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33222 echo $ECHO_N "(cached) $ECHO_C" >&6
33224 cat >conftest.$ac_ext <<_ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h. */
33230 /* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33232 #define getipnodebyaddr innocuous_getipnodebyaddr
33234 /* System header to define __stub macros and hopefully few prototypes,
33235 which can conflict with char getipnodebyaddr (); below.
33236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33237 <limits.h> exists even on freestanding compilers. */
33240 # include <limits.h>
33242 # include <assert.h>
33245 #undef getipnodebyaddr
33247 /* Override any GCC internal prototype to avoid an error.
33248 Use char because int might match the return type of a GCC
33249 builtin and then its argument prototype would still apply. */
33253 char getipnodebyaddr ();
33254 /* The GNU C library defines this for functions which it implements
33255 to always fail with ENOSYS. Some functions are actually named
33256 something starting with __ and the normal name is an alias. */
33257 #if defined __stub_getipnodebyaddr || defined __stub___getipnodebyaddr
33264 return getipnodebyaddr ();
33269 rm -f conftest.$ac_objext conftest$ac_exeext
33270 if { (ac_try="$ac_link"
33271 case "(($ac_try" in
33272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273 *) ac_try_echo=$ac_try;;
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276 (eval "$ac_link") 2>conftest.er1
33278 grep -v '^ *+' conftest.er1 >conftest.err
33280 cat conftest.err >&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } && {
33283 test -z "$ac_c_werror_flag" ||
33284 test ! -s conftest.err
33285 } && test -s conftest$ac_exeext &&
33286 $as_test_x conftest$ac_exeext; then
33287 ac_cv_func_getipnodebyaddr=yes
33289 echo "$as_me: failed program was:" >&5
33290 sed 's/^/| /' conftest.$ac_ext >&5
33292 ac_cv_func_getipnodebyaddr=no
33295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33296 conftest$ac_exeext conftest.$ac_ext
33298 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
33299 echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6; }
33300 if test $ac_cv_func_getipnodebyaddr = yes; then
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_GETIPNODEBYADDR 1
33307 case " $LIBOBJS " in
33308 *" getipnodebyaddr.$ac_objext "* ) ;;
33309 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
33314 { echo "$as_me:$LINENO: checking for getipnodebyname" >&5
33315 echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; }
33316 if test "${ac_cv_func_getipnodebyname+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33319 cat >conftest.$ac_ext <<_ACEOF
33322 cat confdefs.h >>conftest.$ac_ext
33323 cat >>conftest.$ac_ext <<_ACEOF
33324 /* end confdefs.h. */
33325 /* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
33326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33327 #define getipnodebyname innocuous_getipnodebyname
33329 /* System header to define __stub macros and hopefully few prototypes,
33330 which can conflict with char getipnodebyname (); below.
33331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33332 <limits.h> exists even on freestanding compilers. */
33335 # include <limits.h>
33337 # include <assert.h>
33340 #undef getipnodebyname
33342 /* Override any GCC internal prototype to avoid an error.
33343 Use char because int might match the return type of a GCC
33344 builtin and then its argument prototype would still apply. */
33348 char getipnodebyname ();
33349 /* The GNU C library defines this for functions which it implements
33350 to always fail with ENOSYS. Some functions are actually named
33351 something starting with __ and the normal name is an alias. */
33352 #if defined __stub_getipnodebyname || defined __stub___getipnodebyname
33359 return getipnodebyname ();
33364 rm -f conftest.$ac_objext conftest$ac_exeext
33365 if { (ac_try="$ac_link"
33366 case "(($ac_try" in
33367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368 *) ac_try_echo=$ac_try;;
33370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371 (eval "$ac_link") 2>conftest.er1
33373 grep -v '^ *+' conftest.er1 >conftest.err
33375 cat conftest.err >&5
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); } && {
33378 test -z "$ac_c_werror_flag" ||
33379 test ! -s conftest.err
33380 } && test -s conftest$ac_exeext &&
33381 $as_test_x conftest$ac_exeext; then
33382 ac_cv_func_getipnodebyname=yes
33384 echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.$ac_ext >&5
33387 ac_cv_func_getipnodebyname=no
33390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33391 conftest$ac_exeext conftest.$ac_ext
33393 { echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
33394 echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; }
33395 if test $ac_cv_func_getipnodebyname = yes; then
33397 cat >>confdefs.h <<_ACEOF
33398 #define HAVE_GETIPNODEBYNAME 1
33402 case " $LIBOBJS " in
33403 *" getipnodebyname.$ac_objext "* ) ;;
33404 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
33409 { echo "$as_me:$LINENO: checking for getopt" >&5
33410 echo $ECHO_N "checking for getopt... $ECHO_C" >&6; }
33411 if test "${ac_cv_func_getopt+set}" = set; then
33412 echo $ECHO_N "(cached) $ECHO_C" >&6
33414 cat >conftest.$ac_ext <<_ACEOF
33417 cat confdefs.h >>conftest.$ac_ext
33418 cat >>conftest.$ac_ext <<_ACEOF
33419 /* end confdefs.h. */
33420 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
33421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33422 #define getopt innocuous_getopt
33424 /* System header to define __stub macros and hopefully few prototypes,
33425 which can conflict with char getopt (); below.
33426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33427 <limits.h> exists even on freestanding compilers. */
33430 # include <limits.h>
33432 # include <assert.h>
33437 /* Override any GCC internal prototype to avoid an error.
33438 Use char because int might match the return type of a GCC
33439 builtin and then its argument prototype would still apply. */
33444 /* The GNU C library defines this for functions which it implements
33445 to always fail with ENOSYS. Some functions are actually named
33446 something starting with __ and the normal name is an alias. */
33447 #if defined __stub_getopt || defined __stub___getopt
33459 rm -f conftest.$ac_objext conftest$ac_exeext
33460 if { (ac_try="$ac_link"
33461 case "(($ac_try" in
33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463 *) ac_try_echo=$ac_try;;
33465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33466 (eval "$ac_link") 2>conftest.er1
33468 grep -v '^ *+' conftest.er1 >conftest.err
33470 cat conftest.err >&5
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); } && {
33473 test -z "$ac_c_werror_flag" ||
33474 test ! -s conftest.err
33475 } && test -s conftest$ac_exeext &&
33476 $as_test_x conftest$ac_exeext; then
33477 ac_cv_func_getopt=yes
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 ac_cv_func_getopt=no
33485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33486 conftest$ac_exeext conftest.$ac_ext
33488 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
33489 echo "${ECHO_T}$ac_cv_func_getopt" >&6; }
33490 if test $ac_cv_func_getopt = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493 #define HAVE_GETOPT 1
33497 case " $LIBOBJS " in
33498 *" getopt.$ac_objext "* ) ;;
33499 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
33504 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
33505 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
33506 if test "${ac_cv_func_gettimeofday+set}" = set; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33509 cat >conftest.$ac_ext <<_ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h. */
33515 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33517 #define gettimeofday innocuous_gettimeofday
33519 /* System header to define __stub macros and hopefully few prototypes,
33520 which can conflict with char gettimeofday (); below.
33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33522 <limits.h> exists even on freestanding compilers. */
33525 # include <limits.h>
33527 # include <assert.h>
33530 #undef gettimeofday
33532 /* Override any GCC internal prototype to avoid an error.
33533 Use char because int might match the return type of a GCC
33534 builtin and then its argument prototype would still apply. */
33538 char gettimeofday ();
33539 /* The GNU C library defines this for functions which it implements
33540 to always fail with ENOSYS. Some functions are actually named
33541 something starting with __ and the normal name is an alias. */
33542 #if defined __stub_gettimeofday || defined __stub___gettimeofday
33549 return gettimeofday ();
33554 rm -f conftest.$ac_objext conftest$ac_exeext
33555 if { (ac_try="$ac_link"
33556 case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_link") 2>conftest.er1
33563 grep -v '^ *+' conftest.er1 >conftest.err
33565 cat conftest.err >&5
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } && {
33568 test -z "$ac_c_werror_flag" ||
33569 test ! -s conftest.err
33570 } && test -s conftest$ac_exeext &&
33571 $as_test_x conftest$ac_exeext; then
33572 ac_cv_func_gettimeofday=yes
33574 echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33577 ac_cv_func_gettimeofday=no
33580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33581 conftest$ac_exeext conftest.$ac_ext
33583 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
33584 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
33585 if test $ac_cv_func_gettimeofday = yes; then
33587 cat >>confdefs.h <<_ACEOF
33588 #define HAVE_GETTIMEOFDAY 1
33592 case " $LIBOBJS " in
33593 *" gettimeofday.$ac_objext "* ) ;;
33594 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33599 { echo "$as_me:$LINENO: checking for getuid" >&5
33600 echo $ECHO_N "checking for getuid... $ECHO_C" >&6; }
33601 if test "${ac_cv_func_getuid+set}" = set; then
33602 echo $ECHO_N "(cached) $ECHO_C" >&6
33604 cat >conftest.$ac_ext <<_ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33610 /* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
33611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33612 #define getuid innocuous_getuid
33614 /* System header to define __stub macros and hopefully few prototypes,
33615 which can conflict with char getuid (); below.
33616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33617 <limits.h> exists even on freestanding compilers. */
33620 # include <limits.h>
33622 # include <assert.h>
33627 /* Override any GCC internal prototype to avoid an error.
33628 Use char because int might match the return type of a GCC
33629 builtin and then its argument prototype would still apply. */
33634 /* The GNU C library defines this for functions which it implements
33635 to always fail with ENOSYS. Some functions are actually named
33636 something starting with __ and the normal name is an alias. */
33637 #if defined __stub_getuid || defined __stub___getuid
33649 rm -f conftest.$ac_objext conftest$ac_exeext
33650 if { (ac_try="$ac_link"
33651 case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_link") 2>conftest.er1
33658 grep -v '^ *+' conftest.er1 >conftest.err
33660 cat conftest.err >&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } && {
33663 test -z "$ac_c_werror_flag" ||
33664 test ! -s conftest.err
33665 } && test -s conftest$ac_exeext &&
33666 $as_test_x conftest$ac_exeext; then
33667 ac_cv_func_getuid=yes
33669 echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33672 ac_cv_func_getuid=no
33675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33676 conftest$ac_exeext conftest.$ac_ext
33678 { echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
33679 echo "${ECHO_T}$ac_cv_func_getuid" >&6; }
33680 if test $ac_cv_func_getuid = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683 #define HAVE_GETUID 1
33687 case " $LIBOBJS " in
33688 *" getuid.$ac_objext "* ) ;;
33689 *) LIBOBJS="$LIBOBJS getuid.$ac_objext"
33694 { echo "$as_me:$LINENO: checking for getusershell" >&5
33695 echo $ECHO_N "checking for getusershell... $ECHO_C" >&6; }
33696 if test "${ac_cv_func_getusershell+set}" = set; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33699 cat >conftest.$ac_ext <<_ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h. */
33705 /* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
33706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33707 #define getusershell innocuous_getusershell
33709 /* System header to define __stub macros and hopefully few prototypes,
33710 which can conflict with char getusershell (); below.
33711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33712 <limits.h> exists even on freestanding compilers. */
33715 # include <limits.h>
33717 # include <assert.h>
33720 #undef getusershell
33722 /* Override any GCC internal prototype to avoid an error.
33723 Use char because int might match the return type of a GCC
33724 builtin and then its argument prototype would still apply. */
33728 char getusershell ();
33729 /* The GNU C library defines this for functions which it implements
33730 to always fail with ENOSYS. Some functions are actually named
33731 something starting with __ and the normal name is an alias. */
33732 #if defined __stub_getusershell || defined __stub___getusershell
33739 return getusershell ();
33744 rm -f conftest.$ac_objext conftest$ac_exeext
33745 if { (ac_try="$ac_link"
33746 case "(($ac_try" in
33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33748 *) ac_try_echo=$ac_try;;
33750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33751 (eval "$ac_link") 2>conftest.er1
33753 grep -v '^ *+' conftest.er1 >conftest.err
33755 cat conftest.err >&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); } && {
33758 test -z "$ac_c_werror_flag" ||
33759 test ! -s conftest.err
33760 } && test -s conftest$ac_exeext &&
33761 $as_test_x conftest$ac_exeext; then
33762 ac_cv_func_getusershell=yes
33764 echo "$as_me: failed program was:" >&5
33765 sed 's/^/| /' conftest.$ac_ext >&5
33767 ac_cv_func_getusershell=no
33770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33771 conftest$ac_exeext conftest.$ac_ext
33773 { echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
33774 echo "${ECHO_T}$ac_cv_func_getusershell" >&6; }
33775 if test $ac_cv_func_getusershell = yes; then
33777 cat >>confdefs.h <<_ACEOF
33778 #define HAVE_GETUSERSHELL 1
33782 case " $LIBOBJS " in
33783 *" getusershell.$ac_objext "* ) ;;
33784 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext"
33789 { echo "$as_me:$LINENO: checking for initgroups" >&5
33790 echo $ECHO_N "checking for initgroups... $ECHO_C" >&6; }
33791 if test "${ac_cv_func_initgroups+set}" = set; then
33792 echo $ECHO_N "(cached) $ECHO_C" >&6
33794 cat >conftest.$ac_ext <<_ACEOF
33797 cat confdefs.h >>conftest.$ac_ext
33798 cat >>conftest.$ac_ext <<_ACEOF
33799 /* end confdefs.h. */
33800 /* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
33801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33802 #define initgroups innocuous_initgroups
33804 /* System header to define __stub macros and hopefully few prototypes,
33805 which can conflict with char initgroups (); below.
33806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33807 <limits.h> exists even on freestanding compilers. */
33810 # include <limits.h>
33812 # include <assert.h>
33817 /* Override any GCC internal prototype to avoid an error.
33818 Use char because int might match the return type of a GCC
33819 builtin and then its argument prototype would still apply. */
33823 char initgroups ();
33824 /* The GNU C library defines this for functions which it implements
33825 to always fail with ENOSYS. Some functions are actually named
33826 something starting with __ and the normal name is an alias. */
33827 #if defined __stub_initgroups || defined __stub___initgroups
33834 return initgroups ();
33839 rm -f conftest.$ac_objext conftest$ac_exeext
33840 if { (ac_try="$ac_link"
33841 case "(($ac_try" in
33842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843 *) ac_try_echo=$ac_try;;
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846 (eval "$ac_link") 2>conftest.er1
33848 grep -v '^ *+' conftest.er1 >conftest.err
33850 cat conftest.err >&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } && {
33853 test -z "$ac_c_werror_flag" ||
33854 test ! -s conftest.err
33855 } && test -s conftest$ac_exeext &&
33856 $as_test_x conftest$ac_exeext; then
33857 ac_cv_func_initgroups=yes
33859 echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33862 ac_cv_func_initgroups=no
33865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33866 conftest$ac_exeext conftest.$ac_ext
33868 { echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
33869 echo "${ECHO_T}$ac_cv_func_initgroups" >&6; }
33870 if test $ac_cv_func_initgroups = yes; then
33872 cat >>confdefs.h <<_ACEOF
33873 #define HAVE_INITGROUPS 1
33877 case " $LIBOBJS " in
33878 *" initgroups.$ac_objext "* ) ;;
33879 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext"
33884 { echo "$as_me:$LINENO: checking for innetgr" >&5
33885 echo $ECHO_N "checking for innetgr... $ECHO_C" >&6; }
33886 if test "${ac_cv_func_innetgr+set}" = set; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
33889 cat >conftest.$ac_ext <<_ACEOF
33892 cat confdefs.h >>conftest.$ac_ext
33893 cat >>conftest.$ac_ext <<_ACEOF
33894 /* end confdefs.h. */
33895 /* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
33896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33897 #define innetgr innocuous_innetgr
33899 /* System header to define __stub macros and hopefully few prototypes,
33900 which can conflict with char innetgr (); below.
33901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33902 <limits.h> exists even on freestanding compilers. */
33905 # include <limits.h>
33907 # include <assert.h>
33912 /* Override any GCC internal prototype to avoid an error.
33913 Use char because int might match the return type of a GCC
33914 builtin and then its argument prototype would still apply. */
33919 /* The GNU C library defines this for functions which it implements
33920 to always fail with ENOSYS. Some functions are actually named
33921 something starting with __ and the normal name is an alias. */
33922 #if defined __stub_innetgr || defined __stub___innetgr
33934 rm -f conftest.$ac_objext conftest$ac_exeext
33935 if { (ac_try="$ac_link"
33936 case "(($ac_try" in
33937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33938 *) ac_try_echo=$ac_try;;
33940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33941 (eval "$ac_link") 2>conftest.er1
33943 grep -v '^ *+' conftest.er1 >conftest.err
33945 cat conftest.err >&5
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); } && {
33948 test -z "$ac_c_werror_flag" ||
33949 test ! -s conftest.err
33950 } && test -s conftest$ac_exeext &&
33951 $as_test_x conftest$ac_exeext; then
33952 ac_cv_func_innetgr=yes
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_cv_func_innetgr=no
33960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33961 conftest$ac_exeext conftest.$ac_ext
33963 { echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
33964 echo "${ECHO_T}$ac_cv_func_innetgr" >&6; }
33965 if test $ac_cv_func_innetgr = yes; then
33967 cat >>confdefs.h <<_ACEOF
33968 #define HAVE_INNETGR 1
33972 case " $LIBOBJS " in
33973 *" innetgr.$ac_objext "* ) ;;
33974 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext"
33979 { echo "$as_me:$LINENO: checking for iruserok" >&5
33980 echo $ECHO_N "checking for iruserok... $ECHO_C" >&6; }
33981 if test "${ac_cv_func_iruserok+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33984 cat >conftest.$ac_ext <<_ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h. */
33990 /* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
33991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33992 #define iruserok innocuous_iruserok
33994 /* System header to define __stub macros and hopefully few prototypes,
33995 which can conflict with char iruserok (); below.
33996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33997 <limits.h> exists even on freestanding compilers. */
34000 # include <limits.h>
34002 # include <assert.h>
34007 /* Override any GCC internal prototype to avoid an error.
34008 Use char because int might match the return type of a GCC
34009 builtin and then its argument prototype would still apply. */
34014 /* The GNU C library defines this for functions which it implements
34015 to always fail with ENOSYS. Some functions are actually named
34016 something starting with __ and the normal name is an alias. */
34017 #if defined __stub_iruserok || defined __stub___iruserok
34024 return iruserok ();
34029 rm -f conftest.$ac_objext conftest$ac_exeext
34030 if { (ac_try="$ac_link"
34031 case "(($ac_try" in
34032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033 *) ac_try_echo=$ac_try;;
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036 (eval "$ac_link") 2>conftest.er1
34038 grep -v '^ *+' conftest.er1 >conftest.err
34040 cat conftest.err >&5
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); } && {
34043 test -z "$ac_c_werror_flag" ||
34044 test ! -s conftest.err
34045 } && test -s conftest$ac_exeext &&
34046 $as_test_x conftest$ac_exeext; then
34047 ac_cv_func_iruserok=yes
34049 echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34052 ac_cv_func_iruserok=no
34055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34056 conftest$ac_exeext conftest.$ac_ext
34058 { echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34059 echo "${ECHO_T}$ac_cv_func_iruserok" >&6; }
34060 if test $ac_cv_func_iruserok = yes; then
34062 cat >>confdefs.h <<_ACEOF
34063 #define HAVE_IRUSEROK 1
34067 case " $LIBOBJS " in
34068 *" iruserok.$ac_objext "* ) ;;
34069 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext"
34074 { echo "$as_me:$LINENO: checking for localtime_r" >&5
34075 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
34076 if test "${ac_cv_func_localtime_r+set}" = set; then
34077 echo $ECHO_N "(cached) $ECHO_C" >&6
34079 cat >conftest.$ac_ext <<_ACEOF
34082 cat confdefs.h >>conftest.$ac_ext
34083 cat >>conftest.$ac_ext <<_ACEOF
34084 /* end confdefs.h. */
34085 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34087 #define localtime_r innocuous_localtime_r
34089 /* System header to define __stub macros and hopefully few prototypes,
34090 which can conflict with char localtime_r (); below.
34091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34092 <limits.h> exists even on freestanding compilers. */
34095 # include <limits.h>
34097 # include <assert.h>
34102 /* Override any GCC internal prototype to avoid an error.
34103 Use char because int might match the return type of a GCC
34104 builtin and then its argument prototype would still apply. */
34108 char localtime_r ();
34109 /* The GNU C library defines this for functions which it implements
34110 to always fail with ENOSYS. Some functions are actually named
34111 something starting with __ and the normal name is an alias. */
34112 #if defined __stub_localtime_r || defined __stub___localtime_r
34119 return localtime_r ();
34124 rm -f conftest.$ac_objext conftest$ac_exeext
34125 if { (ac_try="$ac_link"
34126 case "(($ac_try" in
34127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34128 *) ac_try_echo=$ac_try;;
34130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34131 (eval "$ac_link") 2>conftest.er1
34133 grep -v '^ *+' conftest.er1 >conftest.err
34135 cat conftest.err >&5
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); } && {
34138 test -z "$ac_c_werror_flag" ||
34139 test ! -s conftest.err
34140 } && test -s conftest$ac_exeext &&
34141 $as_test_x conftest$ac_exeext; then
34142 ac_cv_func_localtime_r=yes
34144 echo "$as_me: failed program was:" >&5
34145 sed 's/^/| /' conftest.$ac_ext >&5
34147 ac_cv_func_localtime_r=no
34150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34151 conftest$ac_exeext conftest.$ac_ext
34153 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34154 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
34155 if test $ac_cv_func_localtime_r = yes; then
34157 cat >>confdefs.h <<_ACEOF
34158 #define HAVE_LOCALTIME_R 1
34162 case " $LIBOBJS " in
34163 *" localtime_r.$ac_objext "* ) ;;
34164 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
34169 { echo "$as_me:$LINENO: checking for lstat" >&5
34170 echo $ECHO_N "checking for lstat... $ECHO_C" >&6; }
34171 if test "${ac_cv_func_lstat+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34174 cat >conftest.$ac_ext <<_ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34180 /* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
34181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34182 #define lstat innocuous_lstat
34184 /* System header to define __stub macros and hopefully few prototypes,
34185 which can conflict with char lstat (); below.
34186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34187 <limits.h> exists even on freestanding compilers. */
34190 # include <limits.h>
34192 # include <assert.h>
34197 /* Override any GCC internal prototype to avoid an error.
34198 Use char because int might match the return type of a GCC
34199 builtin and then its argument prototype would still apply. */
34204 /* The GNU C library defines this for functions which it implements
34205 to always fail with ENOSYS. Some functions are actually named
34206 something starting with __ and the normal name is an alias. */
34207 #if defined __stub_lstat || defined __stub___lstat
34219 rm -f conftest.$ac_objext conftest$ac_exeext
34220 if { (ac_try="$ac_link"
34221 case "(($ac_try" in
34222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223 *) ac_try_echo=$ac_try;;
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226 (eval "$ac_link") 2>conftest.er1
34228 grep -v '^ *+' conftest.er1 >conftest.err
34230 cat conftest.err >&5
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); } && {
34233 test -z "$ac_c_werror_flag" ||
34234 test ! -s conftest.err
34235 } && test -s conftest$ac_exeext &&
34236 $as_test_x conftest$ac_exeext; then
34237 ac_cv_func_lstat=yes
34239 echo "$as_me: failed program was:" >&5
34240 sed 's/^/| /' conftest.$ac_ext >&5
34242 ac_cv_func_lstat=no
34245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34246 conftest$ac_exeext conftest.$ac_ext
34248 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
34249 echo "${ECHO_T}$ac_cv_func_lstat" >&6; }
34250 if test $ac_cv_func_lstat = yes; then
34252 cat >>confdefs.h <<_ACEOF
34253 #define HAVE_LSTAT 1
34257 case " $LIBOBJS " in
34258 *" lstat.$ac_objext "* ) ;;
34259 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
34264 { echo "$as_me:$LINENO: checking for memmove" >&5
34265 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
34266 if test "${ac_cv_func_memmove+set}" = set; then
34267 echo $ECHO_N "(cached) $ECHO_C" >&6
34269 cat >conftest.$ac_ext <<_ACEOF
34272 cat confdefs.h >>conftest.$ac_ext
34273 cat >>conftest.$ac_ext <<_ACEOF
34274 /* end confdefs.h. */
34275 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
34276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34277 #define memmove innocuous_memmove
34279 /* System header to define __stub macros and hopefully few prototypes,
34280 which can conflict with char memmove (); below.
34281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34282 <limits.h> exists even on freestanding compilers. */
34285 # include <limits.h>
34287 # include <assert.h>
34292 /* Override any GCC internal prototype to avoid an error.
34293 Use char because int might match the return type of a GCC
34294 builtin and then its argument prototype would still apply. */
34299 /* The GNU C library defines this for functions which it implements
34300 to always fail with ENOSYS. Some functions are actually named
34301 something starting with __ and the normal name is an alias. */
34302 #if defined __stub_memmove || defined __stub___memmove
34314 rm -f conftest.$ac_objext conftest$ac_exeext
34315 if { (ac_try="$ac_link"
34316 case "(($ac_try" in
34317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318 *) ac_try_echo=$ac_try;;
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321 (eval "$ac_link") 2>conftest.er1
34323 grep -v '^ *+' conftest.er1 >conftest.err
34325 cat conftest.err >&5
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); } && {
34328 test -z "$ac_c_werror_flag" ||
34329 test ! -s conftest.err
34330 } && test -s conftest$ac_exeext &&
34331 $as_test_x conftest$ac_exeext; then
34332 ac_cv_func_memmove=yes
34334 echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34337 ac_cv_func_memmove=no
34340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34341 conftest$ac_exeext conftest.$ac_ext
34343 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
34344 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
34345 if test $ac_cv_func_memmove = yes; then
34347 cat >>confdefs.h <<_ACEOF
34348 #define HAVE_MEMMOVE 1
34352 case " $LIBOBJS " in
34353 *" memmove.$ac_objext "* ) ;;
34354 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
34359 { echo "$as_me:$LINENO: checking for mkstemp" >&5
34360 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; }
34361 if test "${ac_cv_func_mkstemp+set}" = set; then
34362 echo $ECHO_N "(cached) $ECHO_C" >&6
34364 cat >conftest.$ac_ext <<_ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h. */
34370 /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
34371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34372 #define mkstemp innocuous_mkstemp
34374 /* System header to define __stub macros and hopefully few prototypes,
34375 which can conflict with char mkstemp (); below.
34376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34377 <limits.h> exists even on freestanding compilers. */
34380 # include <limits.h>
34382 # include <assert.h>
34387 /* Override any GCC internal prototype to avoid an error.
34388 Use char because int might match the return type of a GCC
34389 builtin and then its argument prototype would still apply. */
34394 /* The GNU C library defines this for functions which it implements
34395 to always fail with ENOSYS. Some functions are actually named
34396 something starting with __ and the normal name is an alias. */
34397 #if defined __stub_mkstemp || defined __stub___mkstemp
34409 rm -f conftest.$ac_objext conftest$ac_exeext
34410 if { (ac_try="$ac_link"
34411 case "(($ac_try" in
34412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34413 *) ac_try_echo=$ac_try;;
34415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34416 (eval "$ac_link") 2>conftest.er1
34418 grep -v '^ *+' conftest.er1 >conftest.err
34420 cat conftest.err >&5
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); } && {
34423 test -z "$ac_c_werror_flag" ||
34424 test ! -s conftest.err
34425 } && test -s conftest$ac_exeext &&
34426 $as_test_x conftest$ac_exeext; then
34427 ac_cv_func_mkstemp=yes
34429 echo "$as_me: failed program was:" >&5
34430 sed 's/^/| /' conftest.$ac_ext >&5
34432 ac_cv_func_mkstemp=no
34435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34436 conftest$ac_exeext conftest.$ac_ext
34438 { echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
34439 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; }
34440 if test $ac_cv_func_mkstemp = yes; then
34442 cat >>confdefs.h <<_ACEOF
34443 #define HAVE_MKSTEMP 1
34447 case " $LIBOBJS " in
34448 *" mkstemp.$ac_objext "* ) ;;
34449 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
34454 { echo "$as_me:$LINENO: checking for putenv" >&5
34455 echo $ECHO_N "checking for putenv... $ECHO_C" >&6; }
34456 if test "${ac_cv_func_putenv+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34459 cat >conftest.$ac_ext <<_ACEOF
34462 cat confdefs.h >>conftest.$ac_ext
34463 cat >>conftest.$ac_ext <<_ACEOF
34464 /* end confdefs.h. */
34465 /* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
34466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34467 #define putenv innocuous_putenv
34469 /* System header to define __stub macros and hopefully few prototypes,
34470 which can conflict with char putenv (); below.
34471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34472 <limits.h> exists even on freestanding compilers. */
34475 # include <limits.h>
34477 # include <assert.h>
34482 /* Override any GCC internal prototype to avoid an error.
34483 Use char because int might match the return type of a GCC
34484 builtin and then its argument prototype would still apply. */
34489 /* The GNU C library defines this for functions which it implements
34490 to always fail with ENOSYS. Some functions are actually named
34491 something starting with __ and the normal name is an alias. */
34492 #if defined __stub_putenv || defined __stub___putenv
34504 rm -f conftest.$ac_objext conftest$ac_exeext
34505 if { (ac_try="$ac_link"
34506 case "(($ac_try" in
34507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34508 *) ac_try_echo=$ac_try;;
34510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34511 (eval "$ac_link") 2>conftest.er1
34513 grep -v '^ *+' conftest.er1 >conftest.err
34515 cat conftest.err >&5
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } && {
34518 test -z "$ac_c_werror_flag" ||
34519 test ! -s conftest.err
34520 } && test -s conftest$ac_exeext &&
34521 $as_test_x conftest$ac_exeext; then
34522 ac_cv_func_putenv=yes
34524 echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34527 ac_cv_func_putenv=no
34530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34531 conftest$ac_exeext conftest.$ac_ext
34533 { echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
34534 echo "${ECHO_T}$ac_cv_func_putenv" >&6; }
34535 if test $ac_cv_func_putenv = yes; then
34537 cat >>confdefs.h <<_ACEOF
34538 #define HAVE_PUTENV 1
34542 case " $LIBOBJS " in
34543 *" putenv.$ac_objext "* ) ;;
34544 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
34549 { echo "$as_me:$LINENO: checking for rcmd" >&5
34550 echo $ECHO_N "checking for rcmd... $ECHO_C" >&6; }
34551 if test "${ac_cv_func_rcmd+set}" = set; then
34552 echo $ECHO_N "(cached) $ECHO_C" >&6
34554 cat >conftest.$ac_ext <<_ACEOF
34557 cat confdefs.h >>conftest.$ac_ext
34558 cat >>conftest.$ac_ext <<_ACEOF
34559 /* end confdefs.h. */
34560 /* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
34561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34562 #define rcmd innocuous_rcmd
34564 /* System header to define __stub macros and hopefully few prototypes,
34565 which can conflict with char rcmd (); below.
34566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34567 <limits.h> exists even on freestanding compilers. */
34570 # include <limits.h>
34572 # include <assert.h>
34577 /* Override any GCC internal prototype to avoid an error.
34578 Use char because int might match the return type of a GCC
34579 builtin and then its argument prototype would still apply. */
34584 /* The GNU C library defines this for functions which it implements
34585 to always fail with ENOSYS. Some functions are actually named
34586 something starting with __ and the normal name is an alias. */
34587 #if defined __stub_rcmd || defined __stub___rcmd
34599 rm -f conftest.$ac_objext conftest$ac_exeext
34600 if { (ac_try="$ac_link"
34601 case "(($ac_try" in
34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34603 *) ac_try_echo=$ac_try;;
34605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34606 (eval "$ac_link") 2>conftest.er1
34608 grep -v '^ *+' conftest.er1 >conftest.err
34610 cat conftest.err >&5
34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); } && {
34613 test -z "$ac_c_werror_flag" ||
34614 test ! -s conftest.err
34615 } && test -s conftest$ac_exeext &&
34616 $as_test_x conftest$ac_exeext; then
34617 ac_cv_func_rcmd=yes
34619 echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34626 conftest$ac_exeext conftest.$ac_ext
34628 { echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
34629 echo "${ECHO_T}$ac_cv_func_rcmd" >&6; }
34630 if test $ac_cv_func_rcmd = yes; then
34632 cat >>confdefs.h <<_ACEOF
34633 #define HAVE_RCMD 1
34637 case " $LIBOBJS " in
34638 *" rcmd.$ac_objext "* ) ;;
34639 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext"
34644 { echo "$as_me:$LINENO: checking for readv" >&5
34645 echo $ECHO_N "checking for readv... $ECHO_C" >&6; }
34646 if test "${ac_cv_func_readv+set}" = set; then
34647 echo $ECHO_N "(cached) $ECHO_C" >&6
34649 cat >conftest.$ac_ext <<_ACEOF
34652 cat confdefs.h >>conftest.$ac_ext
34653 cat >>conftest.$ac_ext <<_ACEOF
34654 /* end confdefs.h. */
34655 /* Define readv to an innocuous variant, in case <limits.h> declares readv.
34656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34657 #define readv innocuous_readv
34659 /* System header to define __stub macros and hopefully few prototypes,
34660 which can conflict with char readv (); below.
34661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34662 <limits.h> exists even on freestanding compilers. */
34665 # include <limits.h>
34667 # include <assert.h>
34672 /* Override any GCC internal prototype to avoid an error.
34673 Use char because int might match the return type of a GCC
34674 builtin and then its argument prototype would still apply. */
34679 /* The GNU C library defines this for functions which it implements
34680 to always fail with ENOSYS. Some functions are actually named
34681 something starting with __ and the normal name is an alias. */
34682 #if defined __stub_readv || defined __stub___readv
34694 rm -f conftest.$ac_objext conftest$ac_exeext
34695 if { (ac_try="$ac_link"
34696 case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_link") 2>conftest.er1
34703 grep -v '^ *+' conftest.er1 >conftest.err
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } && {
34708 test -z "$ac_c_werror_flag" ||
34709 test ! -s conftest.err
34710 } && test -s conftest$ac_exeext &&
34711 $as_test_x conftest$ac_exeext; then
34712 ac_cv_func_readv=yes
34714 echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34717 ac_cv_func_readv=no
34720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34721 conftest$ac_exeext conftest.$ac_ext
34723 { echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
34724 echo "${ECHO_T}$ac_cv_func_readv" >&6; }
34725 if test $ac_cv_func_readv = yes; then
34727 cat >>confdefs.h <<_ACEOF
34728 #define HAVE_READV 1
34732 case " $LIBOBJS " in
34733 *" readv.$ac_objext "* ) ;;
34734 *) LIBOBJS="$LIBOBJS readv.$ac_objext"
34739 { echo "$as_me:$LINENO: checking for recvmsg" >&5
34740 echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
34741 if test "${ac_cv_func_recvmsg+set}" = set; then
34742 echo $ECHO_N "(cached) $ECHO_C" >&6
34744 cat >conftest.$ac_ext <<_ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h. */
34750 /* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
34751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34752 #define recvmsg innocuous_recvmsg
34754 /* System header to define __stub macros and hopefully few prototypes,
34755 which can conflict with char recvmsg (); below.
34756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34757 <limits.h> exists even on freestanding compilers. */
34760 # include <limits.h>
34762 # include <assert.h>
34767 /* Override any GCC internal prototype to avoid an error.
34768 Use char because int might match the return type of a GCC
34769 builtin and then its argument prototype would still apply. */
34774 /* The GNU C library defines this for functions which it implements
34775 to always fail with ENOSYS. Some functions are actually named
34776 something starting with __ and the normal name is an alias. */
34777 #if defined __stub_recvmsg || defined __stub___recvmsg
34789 rm -f conftest.$ac_objext conftest$ac_exeext
34790 if { (ac_try="$ac_link"
34791 case "(($ac_try" in
34792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34793 *) ac_try_echo=$ac_try;;
34795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34796 (eval "$ac_link") 2>conftest.er1
34798 grep -v '^ *+' conftest.er1 >conftest.err
34800 cat conftest.err >&5
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); } && {
34803 test -z "$ac_c_werror_flag" ||
34804 test ! -s conftest.err
34805 } && test -s conftest$ac_exeext &&
34806 $as_test_x conftest$ac_exeext; then
34807 ac_cv_func_recvmsg=yes
34809 echo "$as_me: failed program was:" >&5
34810 sed 's/^/| /' conftest.$ac_ext >&5
34812 ac_cv_func_recvmsg=no
34815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34816 conftest$ac_exeext conftest.$ac_ext
34818 { echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
34819 echo "${ECHO_T}$ac_cv_func_recvmsg" >&6; }
34820 if test $ac_cv_func_recvmsg = yes; then
34822 cat >>confdefs.h <<_ACEOF
34823 #define HAVE_RECVMSG 1
34827 case " $LIBOBJS " in
34828 *" recvmsg.$ac_objext "* ) ;;
34829 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
34834 { echo "$as_me:$LINENO: checking for sendmsg" >&5
34835 echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6; }
34836 if test "${ac_cv_func_sendmsg+set}" = set; then
34837 echo $ECHO_N "(cached) $ECHO_C" >&6
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 /* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
34846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34847 #define sendmsg innocuous_sendmsg
34849 /* System header to define __stub macros and hopefully few prototypes,
34850 which can conflict with char sendmsg (); below.
34851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34852 <limits.h> exists even on freestanding compilers. */
34855 # include <limits.h>
34857 # include <assert.h>
34862 /* Override any GCC internal prototype to avoid an error.
34863 Use char because int might match the return type of a GCC
34864 builtin and then its argument prototype would still apply. */
34869 /* The GNU C library defines this for functions which it implements
34870 to always fail with ENOSYS. Some functions are actually named
34871 something starting with __ and the normal name is an alias. */
34872 #if defined __stub_sendmsg || defined __stub___sendmsg
34884 rm -f conftest.$ac_objext conftest$ac_exeext
34885 if { (ac_try="$ac_link"
34886 case "(($ac_try" in
34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34888 *) ac_try_echo=$ac_try;;
34890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34891 (eval "$ac_link") 2>conftest.er1
34893 grep -v '^ *+' conftest.er1 >conftest.err
34895 cat conftest.err >&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } && {
34898 test -z "$ac_c_werror_flag" ||
34899 test ! -s conftest.err
34900 } && test -s conftest$ac_exeext &&
34901 $as_test_x conftest$ac_exeext; then
34902 ac_cv_func_sendmsg=yes
34904 echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34907 ac_cv_func_sendmsg=no
34910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34911 conftest$ac_exeext conftest.$ac_ext
34913 { echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
34914 echo "${ECHO_T}$ac_cv_func_sendmsg" >&6; }
34915 if test $ac_cv_func_sendmsg = yes; then
34917 cat >>confdefs.h <<_ACEOF
34918 #define HAVE_SENDMSG 1
34922 case " $LIBOBJS " in
34923 *" sendmsg.$ac_objext "* ) ;;
34924 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
34929 { echo "$as_me:$LINENO: checking for setegid" >&5
34930 echo $ECHO_N "checking for setegid... $ECHO_C" >&6; }
34931 if test "${ac_cv_func_setegid+set}" = set; then
34932 echo $ECHO_N "(cached) $ECHO_C" >&6
34934 cat >conftest.$ac_ext <<_ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h. */
34940 /* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
34941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34942 #define setegid innocuous_setegid
34944 /* System header to define __stub macros and hopefully few prototypes,
34945 which can conflict with char setegid (); below.
34946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34947 <limits.h> exists even on freestanding compilers. */
34950 # include <limits.h>
34952 # include <assert.h>
34957 /* Override any GCC internal prototype to avoid an error.
34958 Use char because int might match the return type of a GCC
34959 builtin and then its argument prototype would still apply. */
34964 /* The GNU C library defines this for functions which it implements
34965 to always fail with ENOSYS. Some functions are actually named
34966 something starting with __ and the normal name is an alias. */
34967 #if defined __stub_setegid || defined __stub___setegid
34979 rm -f conftest.$ac_objext conftest$ac_exeext
34980 if { (ac_try="$ac_link"
34981 case "(($ac_try" in
34982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34983 *) ac_try_echo=$ac_try;;
34985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34986 (eval "$ac_link") 2>conftest.er1
34988 grep -v '^ *+' conftest.er1 >conftest.err
34990 cat conftest.err >&5
34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34992 (exit $ac_status); } && {
34993 test -z "$ac_c_werror_flag" ||
34994 test ! -s conftest.err
34995 } && test -s conftest$ac_exeext &&
34996 $as_test_x conftest$ac_exeext; then
34997 ac_cv_func_setegid=yes
34999 echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35002 ac_cv_func_setegid=no
35005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35006 conftest$ac_exeext conftest.$ac_ext
35008 { echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35009 echo "${ECHO_T}$ac_cv_func_setegid" >&6; }
35010 if test $ac_cv_func_setegid = yes; then
35012 cat >>confdefs.h <<_ACEOF
35013 #define HAVE_SETEGID 1
35017 case " $LIBOBJS " in
35018 *" setegid.$ac_objext "* ) ;;
35019 *) LIBOBJS="$LIBOBJS setegid.$ac_objext"
35024 { echo "$as_me:$LINENO: checking for setenv" >&5
35025 echo $ECHO_N "checking for setenv... $ECHO_C" >&6; }
35026 if test "${ac_cv_func_setenv+set}" = set; then
35027 echo $ECHO_N "(cached) $ECHO_C" >&6
35029 cat >conftest.$ac_ext <<_ACEOF
35032 cat confdefs.h >>conftest.$ac_ext
35033 cat >>conftest.$ac_ext <<_ACEOF
35034 /* end confdefs.h. */
35035 /* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35037 #define setenv innocuous_setenv
35039 /* System header to define __stub macros and hopefully few prototypes,
35040 which can conflict with char setenv (); below.
35041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35042 <limits.h> exists even on freestanding compilers. */
35045 # include <limits.h>
35047 # include <assert.h>
35052 /* Override any GCC internal prototype to avoid an error.
35053 Use char because int might match the return type of a GCC
35054 builtin and then its argument prototype would still apply. */
35059 /* The GNU C library defines this for functions which it implements
35060 to always fail with ENOSYS. Some functions are actually named
35061 something starting with __ and the normal name is an alias. */
35062 #if defined __stub_setenv || defined __stub___setenv
35074 rm -f conftest.$ac_objext conftest$ac_exeext
35075 if { (ac_try="$ac_link"
35076 case "(($ac_try" in
35077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078 *) ac_try_echo=$ac_try;;
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081 (eval "$ac_link") 2>conftest.er1
35083 grep -v '^ *+' conftest.er1 >conftest.err
35085 cat conftest.err >&5
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } && {
35088 test -z "$ac_c_werror_flag" ||
35089 test ! -s conftest.err
35090 } && test -s conftest$ac_exeext &&
35091 $as_test_x conftest$ac_exeext; then
35092 ac_cv_func_setenv=yes
35094 echo "$as_me: failed program was:" >&5
35095 sed 's/^/| /' conftest.$ac_ext >&5
35097 ac_cv_func_setenv=no
35100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35101 conftest$ac_exeext conftest.$ac_ext
35103 { echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
35104 echo "${ECHO_T}$ac_cv_func_setenv" >&6; }
35105 if test $ac_cv_func_setenv = yes; then
35107 cat >>confdefs.h <<_ACEOF
35108 #define HAVE_SETENV 1
35112 case " $LIBOBJS " in
35113 *" setenv.$ac_objext "* ) ;;
35114 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
35119 { echo "$as_me:$LINENO: checking for seteuid" >&5
35120 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; }
35121 if test "${ac_cv_func_seteuid+set}" = set; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35124 cat >conftest.$ac_ext <<_ACEOF
35127 cat confdefs.h >>conftest.$ac_ext
35128 cat >>conftest.$ac_ext <<_ACEOF
35129 /* end confdefs.h. */
35130 /* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
35131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35132 #define seteuid innocuous_seteuid
35134 /* System header to define __stub macros and hopefully few prototypes,
35135 which can conflict with char seteuid (); below.
35136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35137 <limits.h> exists even on freestanding compilers. */
35140 # include <limits.h>
35142 # include <assert.h>
35147 /* Override any GCC internal prototype to avoid an error.
35148 Use char because int might match the return type of a GCC
35149 builtin and then its argument prototype would still apply. */
35154 /* The GNU C library defines this for functions which it implements
35155 to always fail with ENOSYS. Some functions are actually named
35156 something starting with __ and the normal name is an alias. */
35157 #if defined __stub_seteuid || defined __stub___seteuid
35169 rm -f conftest.$ac_objext conftest$ac_exeext
35170 if { (ac_try="$ac_link"
35171 case "(($ac_try" in
35172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173 *) ac_try_echo=$ac_try;;
35175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176 (eval "$ac_link") 2>conftest.er1
35178 grep -v '^ *+' conftest.er1 >conftest.err
35180 cat conftest.err >&5
35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35182 (exit $ac_status); } && {
35183 test -z "$ac_c_werror_flag" ||
35184 test ! -s conftest.err
35185 } && test -s conftest$ac_exeext &&
35186 $as_test_x conftest$ac_exeext; then
35187 ac_cv_func_seteuid=yes
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 ac_cv_func_seteuid=no
35195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35196 conftest$ac_exeext conftest.$ac_ext
35198 { echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
35199 echo "${ECHO_T}$ac_cv_func_seteuid" >&6; }
35200 if test $ac_cv_func_seteuid = yes; then
35202 cat >>confdefs.h <<_ACEOF
35203 #define HAVE_SETEUID 1
35207 case " $LIBOBJS " in
35208 *" seteuid.$ac_objext "* ) ;;
35209 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext"
35214 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
35215 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
35216 if test "${ac_cv_func_strcasecmp+set}" = set; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35219 cat >conftest.$ac_ext <<_ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h. */
35225 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
35226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35227 #define strcasecmp innocuous_strcasecmp
35229 /* System header to define __stub macros and hopefully few prototypes,
35230 which can conflict with char strcasecmp (); below.
35231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232 <limits.h> exists even on freestanding compilers. */
35235 # include <limits.h>
35237 # include <assert.h>
35242 /* Override any GCC internal prototype to avoid an error.
35243 Use char because int might match the return type of a GCC
35244 builtin and then its argument prototype would still apply. */
35248 char strcasecmp ();
35249 /* The GNU C library defines this for functions which it implements
35250 to always fail with ENOSYS. Some functions are actually named
35251 something starting with __ and the normal name is an alias. */
35252 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35259 return strcasecmp ();
35264 rm -f conftest.$ac_objext conftest$ac_exeext
35265 if { (ac_try="$ac_link"
35266 case "(($ac_try" in
35267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35268 *) ac_try_echo=$ac_try;;
35270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35271 (eval "$ac_link") 2>conftest.er1
35273 grep -v '^ *+' conftest.er1 >conftest.err
35275 cat conftest.err >&5
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } && {
35278 test -z "$ac_c_werror_flag" ||
35279 test ! -s conftest.err
35280 } && test -s conftest$ac_exeext &&
35281 $as_test_x conftest$ac_exeext; then
35282 ac_cv_func_strcasecmp=yes
35284 echo "$as_me: failed program was:" >&5
35285 sed 's/^/| /' conftest.$ac_ext >&5
35287 ac_cv_func_strcasecmp=no
35290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35291 conftest$ac_exeext conftest.$ac_ext
35293 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
35294 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
35295 if test $ac_cv_func_strcasecmp = yes; then
35297 cat >>confdefs.h <<_ACEOF
35298 #define HAVE_STRCASECMP 1
35302 case " $LIBOBJS " in
35303 *" strcasecmp.$ac_objext "* ) ;;
35304 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
35309 { echo "$as_me:$LINENO: checking for strdup" >&5
35310 echo $ECHO_N "checking for strdup... $ECHO_C" >&6; }
35311 if test "${ac_cv_func_strdup+set}" = set; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35314 cat >conftest.$ac_ext <<_ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h. */
35320 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
35321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35322 #define strdup innocuous_strdup
35324 /* System header to define __stub macros and hopefully few prototypes,
35325 which can conflict with char strdup (); below.
35326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35327 <limits.h> exists even on freestanding compilers. */
35330 # include <limits.h>
35332 # include <assert.h>
35337 /* Override any GCC internal prototype to avoid an error.
35338 Use char because int might match the return type of a GCC
35339 builtin and then its argument prototype would still apply. */
35344 /* The GNU C library defines this for functions which it implements
35345 to always fail with ENOSYS. Some functions are actually named
35346 something starting with __ and the normal name is an alias. */
35347 #if defined __stub_strdup || defined __stub___strdup
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (ac_try="$ac_link"
35361 case "(($ac_try" in
35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35363 *) ac_try_echo=$ac_try;;
35365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35366 (eval "$ac_link") 2>conftest.er1
35368 grep -v '^ *+' conftest.er1 >conftest.err
35370 cat conftest.err >&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } && {
35373 test -z "$ac_c_werror_flag" ||
35374 test ! -s conftest.err
35375 } && test -s conftest$ac_exeext &&
35376 $as_test_x conftest$ac_exeext; then
35377 ac_cv_func_strdup=yes
35379 echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35382 ac_cv_func_strdup=no
35385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35386 conftest$ac_exeext conftest.$ac_ext
35388 { echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
35389 echo "${ECHO_T}$ac_cv_func_strdup" >&6; }
35390 if test $ac_cv_func_strdup = yes; then
35392 cat >>confdefs.h <<_ACEOF
35393 #define HAVE_STRDUP 1
35397 case " $LIBOBJS " in
35398 *" strdup.$ac_objext "* ) ;;
35399 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
35404 { echo "$as_me:$LINENO: checking for strerror" >&5
35405 echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
35406 if test "${ac_cv_func_strerror+set}" = set; then
35407 echo $ECHO_N "(cached) $ECHO_C" >&6
35409 cat >conftest.$ac_ext <<_ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h. */
35415 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
35416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35417 #define strerror innocuous_strerror
35419 /* System header to define __stub macros and hopefully few prototypes,
35420 which can conflict with char strerror (); below.
35421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35422 <limits.h> exists even on freestanding compilers. */
35425 # include <limits.h>
35427 # include <assert.h>
35432 /* Override any GCC internal prototype to avoid an error.
35433 Use char because int might match the return type of a GCC
35434 builtin and then its argument prototype would still apply. */
35439 /* The GNU C library defines this for functions which it implements
35440 to always fail with ENOSYS. Some functions are actually named
35441 something starting with __ and the normal name is an alias. */
35442 #if defined __stub_strerror || defined __stub___strerror
35449 return strerror ();
35454 rm -f conftest.$ac_objext conftest$ac_exeext
35455 if { (ac_try="$ac_link"
35456 case "(($ac_try" in
35457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458 *) ac_try_echo=$ac_try;;
35460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35461 (eval "$ac_link") 2>conftest.er1
35463 grep -v '^ *+' conftest.er1 >conftest.err
35465 cat conftest.err >&5
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); } && {
35468 test -z "$ac_c_werror_flag" ||
35469 test ! -s conftest.err
35470 } && test -s conftest$ac_exeext &&
35471 $as_test_x conftest$ac_exeext; then
35472 ac_cv_func_strerror=yes
35474 echo "$as_me: failed program was:" >&5
35475 sed 's/^/| /' conftest.$ac_ext >&5
35477 ac_cv_func_strerror=no
35480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35481 conftest$ac_exeext conftest.$ac_ext
35483 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
35484 echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
35485 if test $ac_cv_func_strerror = yes; then
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_STRERROR 1
35492 case " $LIBOBJS " in
35493 *" strerror.$ac_objext "* ) ;;
35494 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
35499 { echo "$as_me:$LINENO: checking for strftime" >&5
35500 echo $ECHO_N "checking for strftime... $ECHO_C" >&6; }
35501 if test "${ac_cv_func_strftime+set}" = set; then
35502 echo $ECHO_N "(cached) $ECHO_C" >&6
35504 cat >conftest.$ac_ext <<_ACEOF
35507 cat confdefs.h >>conftest.$ac_ext
35508 cat >>conftest.$ac_ext <<_ACEOF
35509 /* end confdefs.h. */
35510 /* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
35511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35512 #define strftime innocuous_strftime
35514 /* System header to define __stub macros and hopefully few prototypes,
35515 which can conflict with char strftime (); below.
35516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35517 <limits.h> exists even on freestanding compilers. */
35520 # include <limits.h>
35522 # include <assert.h>
35527 /* Override any GCC internal prototype to avoid an error.
35528 Use char because int might match the return type of a GCC
35529 builtin and then its argument prototype would still apply. */
35534 /* The GNU C library defines this for functions which it implements
35535 to always fail with ENOSYS. Some functions are actually named
35536 something starting with __ and the normal name is an alias. */
35537 #if defined __stub_strftime || defined __stub___strftime
35544 return strftime ();
35549 rm -f conftest.$ac_objext conftest$ac_exeext
35550 if { (ac_try="$ac_link"
35551 case "(($ac_try" in
35552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35553 *) ac_try_echo=$ac_try;;
35555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35556 (eval "$ac_link") 2>conftest.er1
35558 grep -v '^ *+' conftest.er1 >conftest.err
35560 cat conftest.err >&5
35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35562 (exit $ac_status); } && {
35563 test -z "$ac_c_werror_flag" ||
35564 test ! -s conftest.err
35565 } && test -s conftest$ac_exeext &&
35566 $as_test_x conftest$ac_exeext; then
35567 ac_cv_func_strftime=yes
35569 echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35572 ac_cv_func_strftime=no
35575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35576 conftest$ac_exeext conftest.$ac_ext
35578 { echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
35579 echo "${ECHO_T}$ac_cv_func_strftime" >&6; }
35580 if test $ac_cv_func_strftime = yes; then
35582 cat >>confdefs.h <<_ACEOF
35583 #define HAVE_STRFTIME 1
35587 case " $LIBOBJS " in
35588 *" strftime.$ac_objext "* ) ;;
35589 *) LIBOBJS="$LIBOBJS strftime.$ac_objext"
35594 { echo "$as_me:$LINENO: checking for strlcat" >&5
35595 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
35596 if test "${ac_cv_func_strlcat+set}" = set; then
35597 echo $ECHO_N "(cached) $ECHO_C" >&6
35599 cat >conftest.$ac_ext <<_ACEOF
35602 cat confdefs.h >>conftest.$ac_ext
35603 cat >>conftest.$ac_ext <<_ACEOF
35604 /* end confdefs.h. */
35605 /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
35606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35607 #define strlcat innocuous_strlcat
35609 /* System header to define __stub macros and hopefully few prototypes,
35610 which can conflict with char strlcat (); below.
35611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35612 <limits.h> exists even on freestanding compilers. */
35615 # include <limits.h>
35617 # include <assert.h>
35622 /* Override any GCC internal prototype to avoid an error.
35623 Use char because int might match the return type of a GCC
35624 builtin and then its argument prototype would still apply. */
35629 /* The GNU C library defines this for functions which it implements
35630 to always fail with ENOSYS. Some functions are actually named
35631 something starting with __ and the normal name is an alias. */
35632 #if defined __stub_strlcat || defined __stub___strlcat
35644 rm -f conftest.$ac_objext conftest$ac_exeext
35645 if { (ac_try="$ac_link"
35646 case "(($ac_try" in
35647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35648 *) ac_try_echo=$ac_try;;
35650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35651 (eval "$ac_link") 2>conftest.er1
35653 grep -v '^ *+' conftest.er1 >conftest.err
35655 cat conftest.err >&5
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); } && {
35658 test -z "$ac_c_werror_flag" ||
35659 test ! -s conftest.err
35660 } && test -s conftest$ac_exeext &&
35661 $as_test_x conftest$ac_exeext; then
35662 ac_cv_func_strlcat=yes
35664 echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35667 ac_cv_func_strlcat=no
35670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35671 conftest$ac_exeext conftest.$ac_ext
35673 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
35674 echo "${ECHO_T}$ac_cv_func_strlcat" >&6; }
35675 if test $ac_cv_func_strlcat = yes; then
35677 cat >>confdefs.h <<_ACEOF
35678 #define HAVE_STRLCAT 1
35682 case " $LIBOBJS " in
35683 *" strlcat.$ac_objext "* ) ;;
35684 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
35689 { echo "$as_me:$LINENO: checking for strlcpy" >&5
35690 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
35691 if test "${ac_cv_func_strlcpy+set}" = set; then
35692 echo $ECHO_N "(cached) $ECHO_C" >&6
35694 cat >conftest.$ac_ext <<_ACEOF
35697 cat confdefs.h >>conftest.$ac_ext
35698 cat >>conftest.$ac_ext <<_ACEOF
35699 /* end confdefs.h. */
35700 /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
35701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35702 #define strlcpy innocuous_strlcpy
35704 /* System header to define __stub macros and hopefully few prototypes,
35705 which can conflict with char strlcpy (); below.
35706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35707 <limits.h> exists even on freestanding compilers. */
35710 # include <limits.h>
35712 # include <assert.h>
35717 /* Override any GCC internal prototype to avoid an error.
35718 Use char because int might match the return type of a GCC
35719 builtin and then its argument prototype would still apply. */
35724 /* The GNU C library defines this for functions which it implements
35725 to always fail with ENOSYS. Some functions are actually named
35726 something starting with __ and the normal name is an alias. */
35727 #if defined __stub_strlcpy || defined __stub___strlcpy
35739 rm -f conftest.$ac_objext conftest$ac_exeext
35740 if { (ac_try="$ac_link"
35741 case "(($ac_try" in
35742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35743 *) ac_try_echo=$ac_try;;
35745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35746 (eval "$ac_link") 2>conftest.er1
35748 grep -v '^ *+' conftest.er1 >conftest.err
35750 cat conftest.err >&5
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); } && {
35753 test -z "$ac_c_werror_flag" ||
35754 test ! -s conftest.err
35755 } && test -s conftest$ac_exeext &&
35756 $as_test_x conftest$ac_exeext; then
35757 ac_cv_func_strlcpy=yes
35759 echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35762 ac_cv_func_strlcpy=no
35765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35766 conftest$ac_exeext conftest.$ac_ext
35768 { echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
35769 echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; }
35770 if test $ac_cv_func_strlcpy = yes; then
35772 cat >>confdefs.h <<_ACEOF
35773 #define HAVE_STRLCPY 1
35777 case " $LIBOBJS " in
35778 *" strlcpy.$ac_objext "* ) ;;
35779 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
35784 { echo "$as_me:$LINENO: checking for strlwr" >&5
35785 echo $ECHO_N "checking for strlwr... $ECHO_C" >&6; }
35786 if test "${ac_cv_func_strlwr+set}" = set; then
35787 echo $ECHO_N "(cached) $ECHO_C" >&6
35789 cat >conftest.$ac_ext <<_ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h. */
35795 /* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
35796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35797 #define strlwr innocuous_strlwr
35799 /* System header to define __stub macros and hopefully few prototypes,
35800 which can conflict with char strlwr (); below.
35801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35802 <limits.h> exists even on freestanding compilers. */
35805 # include <limits.h>
35807 # include <assert.h>
35812 /* Override any GCC internal prototype to avoid an error.
35813 Use char because int might match the return type of a GCC
35814 builtin and then its argument prototype would still apply. */
35819 /* The GNU C library defines this for functions which it implements
35820 to always fail with ENOSYS. Some functions are actually named
35821 something starting with __ and the normal name is an alias. */
35822 #if defined __stub_strlwr || defined __stub___strlwr
35834 rm -f conftest.$ac_objext conftest$ac_exeext
35835 if { (ac_try="$ac_link"
35836 case "(($ac_try" in
35837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35838 *) ac_try_echo=$ac_try;;
35840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35841 (eval "$ac_link") 2>conftest.er1
35843 grep -v '^ *+' conftest.er1 >conftest.err
35845 cat conftest.err >&5
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } && {
35848 test -z "$ac_c_werror_flag" ||
35849 test ! -s conftest.err
35850 } && test -s conftest$ac_exeext &&
35851 $as_test_x conftest$ac_exeext; then
35852 ac_cv_func_strlwr=yes
35854 echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35857 ac_cv_func_strlwr=no
35860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35861 conftest$ac_exeext conftest.$ac_ext
35863 { echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
35864 echo "${ECHO_T}$ac_cv_func_strlwr" >&6; }
35865 if test $ac_cv_func_strlwr = yes; then
35867 cat >>confdefs.h <<_ACEOF
35868 #define HAVE_STRLWR 1
35872 case " $LIBOBJS " in
35873 *" strlwr.$ac_objext "* ) ;;
35874 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext"
35879 { echo "$as_me:$LINENO: checking for strncasecmp" >&5
35880 echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; }
35881 if test "${ac_cv_func_strncasecmp+set}" = set; then
35882 echo $ECHO_N "(cached) $ECHO_C" >&6
35884 cat >conftest.$ac_ext <<_ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h. */
35890 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
35891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35892 #define strncasecmp innocuous_strncasecmp
35894 /* System header to define __stub macros and hopefully few prototypes,
35895 which can conflict with char strncasecmp (); below.
35896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35897 <limits.h> exists even on freestanding compilers. */
35900 # include <limits.h>
35902 # include <assert.h>
35907 /* Override any GCC internal prototype to avoid an error.
35908 Use char because int might match the return type of a GCC
35909 builtin and then its argument prototype would still apply. */
35913 char strncasecmp ();
35914 /* The GNU C library defines this for functions which it implements
35915 to always fail with ENOSYS. Some functions are actually named
35916 something starting with __ and the normal name is an alias. */
35917 #if defined __stub_strncasecmp || defined __stub___strncasecmp
35924 return strncasecmp ();
35929 rm -f conftest.$ac_objext conftest$ac_exeext
35930 if { (ac_try="$ac_link"
35931 case "(($ac_try" in
35932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35933 *) ac_try_echo=$ac_try;;
35935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35936 (eval "$ac_link") 2>conftest.er1
35938 grep -v '^ *+' conftest.er1 >conftest.err
35940 cat conftest.err >&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } && {
35943 test -z "$ac_c_werror_flag" ||
35944 test ! -s conftest.err
35945 } && test -s conftest$ac_exeext &&
35946 $as_test_x conftest$ac_exeext; then
35947 ac_cv_func_strncasecmp=yes
35949 echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35952 ac_cv_func_strncasecmp=no
35955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35956 conftest$ac_exeext conftest.$ac_ext
35958 { echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
35959 echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; }
35960 if test $ac_cv_func_strncasecmp = yes; then
35962 cat >>confdefs.h <<_ACEOF
35963 #define HAVE_STRNCASECMP 1
35967 case " $LIBOBJS " in
35968 *" strncasecmp.$ac_objext "* ) ;;
35969 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
35974 { echo "$as_me:$LINENO: checking for strndup" >&5
35975 echo $ECHO_N "checking for strndup... $ECHO_C" >&6; }
35976 if test "${ac_cv_func_strndup+set}" = set; then
35977 echo $ECHO_N "(cached) $ECHO_C" >&6
35979 cat >conftest.$ac_ext <<_ACEOF
35982 cat confdefs.h >>conftest.$ac_ext
35983 cat >>conftest.$ac_ext <<_ACEOF
35984 /* end confdefs.h. */
35985 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
35986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35987 #define strndup innocuous_strndup
35989 /* System header to define __stub macros and hopefully few prototypes,
35990 which can conflict with char strndup (); below.
35991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35992 <limits.h> exists even on freestanding compilers. */
35995 # include <limits.h>
35997 # include <assert.h>
36002 /* Override any GCC internal prototype to avoid an error.
36003 Use char because int might match the return type of a GCC
36004 builtin and then its argument prototype would still apply. */
36009 /* The GNU C library defines this for functions which it implements
36010 to always fail with ENOSYS. Some functions are actually named
36011 something starting with __ and the normal name is an alias. */
36012 #if defined __stub_strndup || defined __stub___strndup
36024 rm -f conftest.$ac_objext conftest$ac_exeext
36025 if { (ac_try="$ac_link"
36026 case "(($ac_try" in
36027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36028 *) ac_try_echo=$ac_try;;
36030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36031 (eval "$ac_link") 2>conftest.er1
36033 grep -v '^ *+' conftest.er1 >conftest.err
36035 cat conftest.err >&5
36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037 (exit $ac_status); } && {
36038 test -z "$ac_c_werror_flag" ||
36039 test ! -s conftest.err
36040 } && test -s conftest$ac_exeext &&
36041 $as_test_x conftest$ac_exeext; then
36042 ac_cv_func_strndup=yes
36044 echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36047 ac_cv_func_strndup=no
36050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36051 conftest$ac_exeext conftest.$ac_ext
36053 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
36054 echo "${ECHO_T}$ac_cv_func_strndup" >&6; }
36055 if test $ac_cv_func_strndup = yes; then
36057 cat >>confdefs.h <<_ACEOF
36058 #define HAVE_STRNDUP 1
36062 case " $LIBOBJS " in
36063 *" strndup.$ac_objext "* ) ;;
36064 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
36069 { echo "$as_me:$LINENO: checking for strnlen" >&5
36070 echo $ECHO_N "checking for strnlen... $ECHO_C" >&6; }
36071 if test "${ac_cv_func_strnlen+set}" = set; then
36072 echo $ECHO_N "(cached) $ECHO_C" >&6
36074 cat >conftest.$ac_ext <<_ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 /* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
36081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36082 #define strnlen innocuous_strnlen
36084 /* System header to define __stub macros and hopefully few prototypes,
36085 which can conflict with char strnlen (); below.
36086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36087 <limits.h> exists even on freestanding compilers. */
36090 # include <limits.h>
36092 # include <assert.h>
36097 /* Override any GCC internal prototype to avoid an error.
36098 Use char because int might match the return type of a GCC
36099 builtin and then its argument prototype would still apply. */
36104 /* The GNU C library defines this for functions which it implements
36105 to always fail with ENOSYS. Some functions are actually named
36106 something starting with __ and the normal name is an alias. */
36107 #if defined __stub_strnlen || defined __stub___strnlen
36119 rm -f conftest.$ac_objext conftest$ac_exeext
36120 if { (ac_try="$ac_link"
36121 case "(($ac_try" in
36122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36123 *) ac_try_echo=$ac_try;;
36125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36126 (eval "$ac_link") 2>conftest.er1
36128 grep -v '^ *+' conftest.er1 >conftest.err
36130 cat conftest.err >&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); } && {
36133 test -z "$ac_c_werror_flag" ||
36134 test ! -s conftest.err
36135 } && test -s conftest$ac_exeext &&
36136 $as_test_x conftest$ac_exeext; then
36137 ac_cv_func_strnlen=yes
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36142 ac_cv_func_strnlen=no
36145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36146 conftest$ac_exeext conftest.$ac_ext
36148 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
36149 echo "${ECHO_T}$ac_cv_func_strnlen" >&6; }
36150 if test $ac_cv_func_strnlen = yes; then
36152 cat >>confdefs.h <<_ACEOF
36153 #define HAVE_STRNLEN 1
36157 case " $LIBOBJS " in
36158 *" strnlen.$ac_objext "* ) ;;
36159 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
36164 { echo "$as_me:$LINENO: checking for strptime" >&5
36165 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
36166 if test "${ac_cv_func_strptime+set}" = set; then
36167 echo $ECHO_N "(cached) $ECHO_C" >&6
36169 cat >conftest.$ac_ext <<_ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h. */
36175 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
36176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36177 #define strptime innocuous_strptime
36179 /* System header to define __stub macros and hopefully few prototypes,
36180 which can conflict with char strptime (); below.
36181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36182 <limits.h> exists even on freestanding compilers. */
36185 # include <limits.h>
36187 # include <assert.h>
36192 /* Override any GCC internal prototype to avoid an error.
36193 Use char because int might match the return type of a GCC
36194 builtin and then its argument prototype would still apply. */
36199 /* The GNU C library defines this for functions which it implements
36200 to always fail with ENOSYS. Some functions are actually named
36201 something starting with __ and the normal name is an alias. */
36202 #if defined __stub_strptime || defined __stub___strptime
36209 return strptime ();
36214 rm -f conftest.$ac_objext conftest$ac_exeext
36215 if { (ac_try="$ac_link"
36216 case "(($ac_try" in
36217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36218 *) ac_try_echo=$ac_try;;
36220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36221 (eval "$ac_link") 2>conftest.er1
36223 grep -v '^ *+' conftest.er1 >conftest.err
36225 cat conftest.err >&5
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); } && {
36228 test -z "$ac_c_werror_flag" ||
36229 test ! -s conftest.err
36230 } && test -s conftest$ac_exeext &&
36231 $as_test_x conftest$ac_exeext; then
36232 ac_cv_func_strptime=yes
36234 echo "$as_me: failed program was:" >&5
36235 sed 's/^/| /' conftest.$ac_ext >&5
36237 ac_cv_func_strptime=no
36240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36241 conftest$ac_exeext conftest.$ac_ext
36243 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
36244 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
36245 if test $ac_cv_func_strptime = yes; then
36247 cat >>confdefs.h <<_ACEOF
36248 #define HAVE_STRPTIME 1
36252 case " $LIBOBJS " in
36253 *" strptime.$ac_objext "* ) ;;
36254 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
36259 { echo "$as_me:$LINENO: checking for strsep" >&5
36260 echo $ECHO_N "checking for strsep... $ECHO_C" >&6; }
36261 if test "${ac_cv_func_strsep+set}" = set; then
36262 echo $ECHO_N "(cached) $ECHO_C" >&6
36264 cat >conftest.$ac_ext <<_ACEOF
36267 cat confdefs.h >>conftest.$ac_ext
36268 cat >>conftest.$ac_ext <<_ACEOF
36269 /* end confdefs.h. */
36270 /* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
36271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36272 #define strsep innocuous_strsep
36274 /* System header to define __stub macros and hopefully few prototypes,
36275 which can conflict with char strsep (); below.
36276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36277 <limits.h> exists even on freestanding compilers. */
36280 # include <limits.h>
36282 # include <assert.h>
36287 /* Override any GCC internal prototype to avoid an error.
36288 Use char because int might match the return type of a GCC
36289 builtin and then its argument prototype would still apply. */
36294 /* The GNU C library defines this for functions which it implements
36295 to always fail with ENOSYS. Some functions are actually named
36296 something starting with __ and the normal name is an alias. */
36297 #if defined __stub_strsep || defined __stub___strsep
36309 rm -f conftest.$ac_objext conftest$ac_exeext
36310 if { (ac_try="$ac_link"
36311 case "(($ac_try" in
36312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313 *) ac_try_echo=$ac_try;;
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316 (eval "$ac_link") 2>conftest.er1
36318 grep -v '^ *+' conftest.er1 >conftest.err
36320 cat conftest.err >&5
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); } && {
36323 test -z "$ac_c_werror_flag" ||
36324 test ! -s conftest.err
36325 } && test -s conftest$ac_exeext &&
36326 $as_test_x conftest$ac_exeext; then
36327 ac_cv_func_strsep=yes
36329 echo "$as_me: failed program was:" >&5
36330 sed 's/^/| /' conftest.$ac_ext >&5
36332 ac_cv_func_strsep=no
36335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36336 conftest$ac_exeext conftest.$ac_ext
36338 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
36339 echo "${ECHO_T}$ac_cv_func_strsep" >&6; }
36340 if test $ac_cv_func_strsep = yes; then
36342 cat >>confdefs.h <<_ACEOF
36343 #define HAVE_STRSEP 1
36347 case " $LIBOBJS " in
36348 *" strsep.$ac_objext "* ) ;;
36349 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
36354 { echo "$as_me:$LINENO: checking for strsep_copy" >&5
36355 echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6; }
36356 if test "${ac_cv_func_strsep_copy+set}" = set; then
36357 echo $ECHO_N "(cached) $ECHO_C" >&6
36359 cat >conftest.$ac_ext <<_ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h. */
36365 /* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
36366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36367 #define strsep_copy innocuous_strsep_copy
36369 /* System header to define __stub macros and hopefully few prototypes,
36370 which can conflict with char strsep_copy (); below.
36371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36372 <limits.h> exists even on freestanding compilers. */
36375 # include <limits.h>
36377 # include <assert.h>
36382 /* Override any GCC internal prototype to avoid an error.
36383 Use char because int might match the return type of a GCC
36384 builtin and then its argument prototype would still apply. */
36388 char strsep_copy ();
36389 /* The GNU C library defines this for functions which it implements
36390 to always fail with ENOSYS. Some functions are actually named
36391 something starting with __ and the normal name is an alias. */
36392 #if defined __stub_strsep_copy || defined __stub___strsep_copy
36399 return strsep_copy ();
36404 rm -f conftest.$ac_objext conftest$ac_exeext
36405 if { (ac_try="$ac_link"
36406 case "(($ac_try" in
36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408 *) ac_try_echo=$ac_try;;
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411 (eval "$ac_link") 2>conftest.er1
36413 grep -v '^ *+' conftest.er1 >conftest.err
36415 cat conftest.err >&5
36416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 (exit $ac_status); } && {
36418 test -z "$ac_c_werror_flag" ||
36419 test ! -s conftest.err
36420 } && test -s conftest$ac_exeext &&
36421 $as_test_x conftest$ac_exeext; then
36422 ac_cv_func_strsep_copy=yes
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36427 ac_cv_func_strsep_copy=no
36430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36431 conftest$ac_exeext conftest.$ac_ext
36433 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
36434 echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6; }
36435 if test $ac_cv_func_strsep_copy = yes; then
36437 cat >>confdefs.h <<_ACEOF
36438 #define HAVE_STRSEP_COPY 1
36442 case " $LIBOBJS " in
36443 *" strsep_copy.$ac_objext "* ) ;;
36444 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
36449 { echo "$as_me:$LINENO: checking for strtok_r" >&5
36450 echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6; }
36451 if test "${ac_cv_func_strtok_r+set}" = set; then
36452 echo $ECHO_N "(cached) $ECHO_C" >&6
36454 cat >conftest.$ac_ext <<_ACEOF
36457 cat confdefs.h >>conftest.$ac_ext
36458 cat >>conftest.$ac_ext <<_ACEOF
36459 /* end confdefs.h. */
36460 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
36461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36462 #define strtok_r innocuous_strtok_r
36464 /* System header to define __stub macros and hopefully few prototypes,
36465 which can conflict with char strtok_r (); below.
36466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36467 <limits.h> exists even on freestanding compilers. */
36470 # include <limits.h>
36472 # include <assert.h>
36477 /* Override any GCC internal prototype to avoid an error.
36478 Use char because int might match the return type of a GCC
36479 builtin and then its argument prototype would still apply. */
36484 /* The GNU C library defines this for functions which it implements
36485 to always fail with ENOSYS. Some functions are actually named
36486 something starting with __ and the normal name is an alias. */
36487 #if defined __stub_strtok_r || defined __stub___strtok_r
36494 return strtok_r ();
36499 rm -f conftest.$ac_objext conftest$ac_exeext
36500 if { (ac_try="$ac_link"
36501 case "(($ac_try" in
36502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36503 *) ac_try_echo=$ac_try;;
36505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36506 (eval "$ac_link") 2>conftest.er1
36508 grep -v '^ *+' conftest.er1 >conftest.err
36510 cat conftest.err >&5
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); } && {
36513 test -z "$ac_c_werror_flag" ||
36514 test ! -s conftest.err
36515 } && test -s conftest$ac_exeext &&
36516 $as_test_x conftest$ac_exeext; then
36517 ac_cv_func_strtok_r=yes
36519 echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.$ac_ext >&5
36522 ac_cv_func_strtok_r=no
36525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36526 conftest$ac_exeext conftest.$ac_ext
36528 { echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
36529 echo "${ECHO_T}$ac_cv_func_strtok_r" >&6; }
36530 if test $ac_cv_func_strtok_r = yes; then
36532 cat >>confdefs.h <<_ACEOF
36533 #define HAVE_STRTOK_R 1
36537 case " $LIBOBJS " in
36538 *" strtok_r.$ac_objext "* ) ;;
36539 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
36544 { echo "$as_me:$LINENO: checking for strupr" >&5
36545 echo $ECHO_N "checking for strupr... $ECHO_C" >&6; }
36546 if test "${ac_cv_func_strupr+set}" = set; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 /* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
36556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36557 #define strupr innocuous_strupr
36559 /* System header to define __stub macros and hopefully few prototypes,
36560 which can conflict with char strupr (); below.
36561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36562 <limits.h> exists even on freestanding compilers. */
36565 # include <limits.h>
36567 # include <assert.h>
36572 /* Override any GCC internal prototype to avoid an error.
36573 Use char because int might match the return type of a GCC
36574 builtin and then its argument prototype would still apply. */
36579 /* The GNU C library defines this for functions which it implements
36580 to always fail with ENOSYS. Some functions are actually named
36581 something starting with __ and the normal name is an alias. */
36582 #if defined __stub_strupr || defined __stub___strupr
36594 rm -f conftest.$ac_objext conftest$ac_exeext
36595 if { (ac_try="$ac_link"
36596 case "(($ac_try" in
36597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36598 *) ac_try_echo=$ac_try;;
36600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36601 (eval "$ac_link") 2>conftest.er1
36603 grep -v '^ *+' conftest.er1 >conftest.err
36605 cat conftest.err >&5
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); } && {
36608 test -z "$ac_c_werror_flag" ||
36609 test ! -s conftest.err
36610 } && test -s conftest$ac_exeext &&
36611 $as_test_x conftest$ac_exeext; then
36612 ac_cv_func_strupr=yes
36614 echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36617 ac_cv_func_strupr=no
36620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36621 conftest$ac_exeext conftest.$ac_ext
36623 { echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
36624 echo "${ECHO_T}$ac_cv_func_strupr" >&6; }
36625 if test $ac_cv_func_strupr = yes; then
36627 cat >>confdefs.h <<_ACEOF
36628 #define HAVE_STRUPR 1
36632 case " $LIBOBJS " in
36633 *" strupr.$ac_objext "* ) ;;
36634 *) LIBOBJS="$LIBOBJS strupr.$ac_objext"
36639 { echo "$as_me:$LINENO: checking for swab" >&5
36640 echo $ECHO_N "checking for swab... $ECHO_C" >&6; }
36641 if test "${ac_cv_func_swab+set}" = set; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36644 cat >conftest.$ac_ext <<_ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h. */
36650 /* Define swab to an innocuous variant, in case <limits.h> declares swab.
36651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36652 #define swab innocuous_swab
36654 /* System header to define __stub macros and hopefully few prototypes,
36655 which can conflict with char swab (); below.
36656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36657 <limits.h> exists even on freestanding compilers. */
36660 # include <limits.h>
36662 # include <assert.h>
36667 /* Override any GCC internal prototype to avoid an error.
36668 Use char because int might match the return type of a GCC
36669 builtin and then its argument prototype would still apply. */
36674 /* The GNU C library defines this for functions which it implements
36675 to always fail with ENOSYS. Some functions are actually named
36676 something starting with __ and the normal name is an alias. */
36677 #if defined __stub_swab || defined __stub___swab
36689 rm -f conftest.$ac_objext conftest$ac_exeext
36690 if { (ac_try="$ac_link"
36691 case "(($ac_try" in
36692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693 *) ac_try_echo=$ac_try;;
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696 (eval "$ac_link") 2>conftest.er1
36698 grep -v '^ *+' conftest.er1 >conftest.err
36700 cat conftest.err >&5
36701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702 (exit $ac_status); } && {
36703 test -z "$ac_c_werror_flag" ||
36704 test ! -s conftest.err
36705 } && test -s conftest$ac_exeext &&
36706 $as_test_x conftest$ac_exeext; then
36707 ac_cv_func_swab=yes
36709 echo "$as_me: failed program was:" >&5
36710 sed 's/^/| /' conftest.$ac_ext >&5
36715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36716 conftest$ac_exeext conftest.$ac_ext
36718 { echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
36719 echo "${ECHO_T}$ac_cv_func_swab" >&6; }
36720 if test $ac_cv_func_swab = yes; then
36722 cat >>confdefs.h <<_ACEOF
36723 #define HAVE_SWAB 1
36727 case " $LIBOBJS " in
36728 *" swab.$ac_objext "* ) ;;
36729 *) LIBOBJS="$LIBOBJS swab.$ac_objext"
36734 { echo "$as_me:$LINENO: checking for timegm" >&5
36735 echo $ECHO_N "checking for timegm... $ECHO_C" >&6; }
36736 if test "${ac_cv_func_timegm+set}" = set; then
36737 echo $ECHO_N "(cached) $ECHO_C" >&6
36739 cat >conftest.$ac_ext <<_ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h. */
36745 /* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
36746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36747 #define timegm innocuous_timegm
36749 /* System header to define __stub macros and hopefully few prototypes,
36750 which can conflict with char timegm (); below.
36751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36752 <limits.h> exists even on freestanding compilers. */
36755 # include <limits.h>
36757 # include <assert.h>
36762 /* Override any GCC internal prototype to avoid an error.
36763 Use char because int might match the return type of a GCC
36764 builtin and then its argument prototype would still apply. */
36769 /* The GNU C library defines this for functions which it implements
36770 to always fail with ENOSYS. Some functions are actually named
36771 something starting with __ and the normal name is an alias. */
36772 #if defined __stub_timegm || defined __stub___timegm
36784 rm -f conftest.$ac_objext conftest$ac_exeext
36785 if { (ac_try="$ac_link"
36786 case "(($ac_try" in
36787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36788 *) ac_try_echo=$ac_try;;
36790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36791 (eval "$ac_link") 2>conftest.er1
36793 grep -v '^ *+' conftest.er1 >conftest.err
36795 cat conftest.err >&5
36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 (exit $ac_status); } && {
36798 test -z "$ac_c_werror_flag" ||
36799 test ! -s conftest.err
36800 } && test -s conftest$ac_exeext &&
36801 $as_test_x conftest$ac_exeext; then
36802 ac_cv_func_timegm=yes
36804 echo "$as_me: failed program was:" >&5
36805 sed 's/^/| /' conftest.$ac_ext >&5
36807 ac_cv_func_timegm=no
36810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36811 conftest$ac_exeext conftest.$ac_ext
36813 { echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
36814 echo "${ECHO_T}$ac_cv_func_timegm" >&6; }
36815 if test $ac_cv_func_timegm = yes; then
36817 cat >>confdefs.h <<_ACEOF
36818 #define HAVE_TIMEGM 1
36822 case " $LIBOBJS " in
36823 *" timegm.$ac_objext "* ) ;;
36824 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
36829 { echo "$as_me:$LINENO: checking for unsetenv" >&5
36830 echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6; }
36831 if test "${ac_cv_func_unsetenv+set}" = set; then
36832 echo $ECHO_N "(cached) $ECHO_C" >&6
36834 cat >conftest.$ac_ext <<_ACEOF
36837 cat confdefs.h >>conftest.$ac_ext
36838 cat >>conftest.$ac_ext <<_ACEOF
36839 /* end confdefs.h. */
36840 /* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
36841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36842 #define unsetenv innocuous_unsetenv
36844 /* System header to define __stub macros and hopefully few prototypes,
36845 which can conflict with char unsetenv (); below.
36846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36847 <limits.h> exists even on freestanding compilers. */
36850 # include <limits.h>
36852 # include <assert.h>
36857 /* Override any GCC internal prototype to avoid an error.
36858 Use char because int might match the return type of a GCC
36859 builtin and then its argument prototype would still apply. */
36864 /* The GNU C library defines this for functions which it implements
36865 to always fail with ENOSYS. Some functions are actually named
36866 something starting with __ and the normal name is an alias. */
36867 #if defined __stub_unsetenv || defined __stub___unsetenv
36874 return unsetenv ();
36879 rm -f conftest.$ac_objext conftest$ac_exeext
36880 if { (ac_try="$ac_link"
36881 case "(($ac_try" in
36882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36883 *) ac_try_echo=$ac_try;;
36885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36886 (eval "$ac_link") 2>conftest.er1
36888 grep -v '^ *+' conftest.er1 >conftest.err
36890 cat conftest.err >&5
36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36892 (exit $ac_status); } && {
36893 test -z "$ac_c_werror_flag" ||
36894 test ! -s conftest.err
36895 } && test -s conftest$ac_exeext &&
36896 $as_test_x conftest$ac_exeext; then
36897 ac_cv_func_unsetenv=yes
36899 echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36902 ac_cv_func_unsetenv=no
36905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36906 conftest$ac_exeext conftest.$ac_ext
36908 { echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
36909 echo "${ECHO_T}$ac_cv_func_unsetenv" >&6; }
36910 if test $ac_cv_func_unsetenv = yes; then
36912 cat >>confdefs.h <<_ACEOF
36913 #define HAVE_UNSETENV 1
36917 case " $LIBOBJS " in
36918 *" unsetenv.$ac_objext "* ) ;;
36919 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
36924 { echo "$as_me:$LINENO: checking for verr" >&5
36925 echo $ECHO_N "checking for verr... $ECHO_C" >&6; }
36926 if test "${ac_cv_func_verr+set}" = set; then
36927 echo $ECHO_N "(cached) $ECHO_C" >&6
36929 cat >conftest.$ac_ext <<_ACEOF
36932 cat confdefs.h >>conftest.$ac_ext
36933 cat >>conftest.$ac_ext <<_ACEOF
36934 /* end confdefs.h. */
36935 /* Define verr to an innocuous variant, in case <limits.h> declares verr.
36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36937 #define verr innocuous_verr
36939 /* System header to define __stub macros and hopefully few prototypes,
36940 which can conflict with char verr (); below.
36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36942 <limits.h> exists even on freestanding compilers. */
36945 # include <limits.h>
36947 # include <assert.h>
36952 /* Override any GCC internal prototype to avoid an error.
36953 Use char because int might match the return type of a GCC
36954 builtin and then its argument prototype would still apply. */
36959 /* The GNU C library defines this for functions which it implements
36960 to always fail with ENOSYS. Some functions are actually named
36961 something starting with __ and the normal name is an alias. */
36962 #if defined __stub_verr || defined __stub___verr
36974 rm -f conftest.$ac_objext conftest$ac_exeext
36975 if { (ac_try="$ac_link"
36976 case "(($ac_try" in
36977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36978 *) ac_try_echo=$ac_try;;
36980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36981 (eval "$ac_link") 2>conftest.er1
36983 grep -v '^ *+' conftest.er1 >conftest.err
36985 cat conftest.err >&5
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } && {
36988 test -z "$ac_c_werror_flag" ||
36989 test ! -s conftest.err
36990 } && test -s conftest$ac_exeext &&
36991 $as_test_x conftest$ac_exeext; then
36992 ac_cv_func_verr=yes
36994 echo "$as_me: failed program was:" >&5
36995 sed 's/^/| /' conftest.$ac_ext >&5
37000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37001 conftest$ac_exeext conftest.$ac_ext
37003 { echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
37004 echo "${ECHO_T}$ac_cv_func_verr" >&6; }
37005 if test $ac_cv_func_verr = yes; then
37007 cat >>confdefs.h <<_ACEOF
37008 #define HAVE_VERR 1
37012 case " $LIBOBJS " in
37013 *" verr.$ac_objext "* ) ;;
37014 *) LIBOBJS="$LIBOBJS verr.$ac_objext"
37019 { echo "$as_me:$LINENO: checking for verrx" >&5
37020 echo $ECHO_N "checking for verrx... $ECHO_C" >&6; }
37021 if test "${ac_cv_func_verrx+set}" = set; then
37022 echo $ECHO_N "(cached) $ECHO_C" >&6
37024 cat >conftest.$ac_ext <<_ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h. */
37030 /* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
37031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37032 #define verrx innocuous_verrx
37034 /* System header to define __stub macros and hopefully few prototypes,
37035 which can conflict with char verrx (); below.
37036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37037 <limits.h> exists even on freestanding compilers. */
37040 # include <limits.h>
37042 # include <assert.h>
37047 /* Override any GCC internal prototype to avoid an error.
37048 Use char because int might match the return type of a GCC
37049 builtin and then its argument prototype would still apply. */
37054 /* The GNU C library defines this for functions which it implements
37055 to always fail with ENOSYS. Some functions are actually named
37056 something starting with __ and the normal name is an alias. */
37057 #if defined __stub_verrx || defined __stub___verrx
37069 rm -f conftest.$ac_objext conftest$ac_exeext
37070 if { (ac_try="$ac_link"
37071 case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076 (eval "$ac_link") 2>conftest.er1
37078 grep -v '^ *+' conftest.er1 >conftest.err
37080 cat conftest.err >&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } && {
37083 test -z "$ac_c_werror_flag" ||
37084 test ! -s conftest.err
37085 } && test -s conftest$ac_exeext &&
37086 $as_test_x conftest$ac_exeext; then
37087 ac_cv_func_verrx=yes
37089 echo "$as_me: failed program was:" >&5
37090 sed 's/^/| /' conftest.$ac_ext >&5
37092 ac_cv_func_verrx=no
37095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37096 conftest$ac_exeext conftest.$ac_ext
37098 { echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
37099 echo "${ECHO_T}$ac_cv_func_verrx" >&6; }
37100 if test $ac_cv_func_verrx = yes; then
37102 cat >>confdefs.h <<_ACEOF
37103 #define HAVE_VERRX 1
37107 case " $LIBOBJS " in
37108 *" verrx.$ac_objext "* ) ;;
37109 *) LIBOBJS="$LIBOBJS verrx.$ac_objext"
37114 { echo "$as_me:$LINENO: checking for vsyslog" >&5
37115 echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6; }
37116 if test "${ac_cv_func_vsyslog+set}" = set; then
37117 echo $ECHO_N "(cached) $ECHO_C" >&6
37119 cat >conftest.$ac_ext <<_ACEOF
37122 cat confdefs.h >>conftest.$ac_ext
37123 cat >>conftest.$ac_ext <<_ACEOF
37124 /* end confdefs.h. */
37125 /* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
37126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37127 #define vsyslog innocuous_vsyslog
37129 /* System header to define __stub macros and hopefully few prototypes,
37130 which can conflict with char vsyslog (); below.
37131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37132 <limits.h> exists even on freestanding compilers. */
37135 # include <limits.h>
37137 # include <assert.h>
37142 /* Override any GCC internal prototype to avoid an error.
37143 Use char because int might match the return type of a GCC
37144 builtin and then its argument prototype would still apply. */
37149 /* The GNU C library defines this for functions which it implements
37150 to always fail with ENOSYS. Some functions are actually named
37151 something starting with __ and the normal name is an alias. */
37152 #if defined __stub_vsyslog || defined __stub___vsyslog
37164 rm -f conftest.$ac_objext conftest$ac_exeext
37165 if { (ac_try="$ac_link"
37166 case "(($ac_try" in
37167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37168 *) ac_try_echo=$ac_try;;
37170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37171 (eval "$ac_link") 2>conftest.er1
37173 grep -v '^ *+' conftest.er1 >conftest.err
37175 cat conftest.err >&5
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); } && {
37178 test -z "$ac_c_werror_flag" ||
37179 test ! -s conftest.err
37180 } && test -s conftest$ac_exeext &&
37181 $as_test_x conftest$ac_exeext; then
37182 ac_cv_func_vsyslog=yes
37184 echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37187 ac_cv_func_vsyslog=no
37190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37191 conftest$ac_exeext conftest.$ac_ext
37193 { echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
37194 echo "${ECHO_T}$ac_cv_func_vsyslog" >&6; }
37195 if test $ac_cv_func_vsyslog = yes; then
37197 cat >>confdefs.h <<_ACEOF
37198 #define HAVE_VSYSLOG 1
37202 case " $LIBOBJS " in
37203 *" vsyslog.$ac_objext "* ) ;;
37204 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
37209 { echo "$as_me:$LINENO: checking for vwarn" >&5
37210 echo $ECHO_N "checking for vwarn... $ECHO_C" >&6; }
37211 if test "${ac_cv_func_vwarn+set}" = set; then
37212 echo $ECHO_N "(cached) $ECHO_C" >&6
37214 cat >conftest.$ac_ext <<_ACEOF
37217 cat confdefs.h >>conftest.$ac_ext
37218 cat >>conftest.$ac_ext <<_ACEOF
37219 /* end confdefs.h. */
37220 /* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
37221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37222 #define vwarn innocuous_vwarn
37224 /* System header to define __stub macros and hopefully few prototypes,
37225 which can conflict with char vwarn (); below.
37226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37227 <limits.h> exists even on freestanding compilers. */
37230 # include <limits.h>
37232 # include <assert.h>
37237 /* Override any GCC internal prototype to avoid an error.
37238 Use char because int might match the return type of a GCC
37239 builtin and then its argument prototype would still apply. */
37244 /* The GNU C library defines this for functions which it implements
37245 to always fail with ENOSYS. Some functions are actually named
37246 something starting with __ and the normal name is an alias. */
37247 #if defined __stub_vwarn || defined __stub___vwarn
37259 rm -f conftest.$ac_objext conftest$ac_exeext
37260 if { (ac_try="$ac_link"
37261 case "(($ac_try" in
37262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37263 *) ac_try_echo=$ac_try;;
37265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37266 (eval "$ac_link") 2>conftest.er1
37268 grep -v '^ *+' conftest.er1 >conftest.err
37270 cat conftest.err >&5
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); } && {
37273 test -z "$ac_c_werror_flag" ||
37274 test ! -s conftest.err
37275 } && test -s conftest$ac_exeext &&
37276 $as_test_x conftest$ac_exeext; then
37277 ac_cv_func_vwarn=yes
37279 echo "$as_me: failed program was:" >&5
37280 sed 's/^/| /' conftest.$ac_ext >&5
37282 ac_cv_func_vwarn=no
37285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37286 conftest$ac_exeext conftest.$ac_ext
37288 { echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
37289 echo "${ECHO_T}$ac_cv_func_vwarn" >&6; }
37290 if test $ac_cv_func_vwarn = yes; then
37292 cat >>confdefs.h <<_ACEOF
37293 #define HAVE_VWARN 1
37297 case " $LIBOBJS " in
37298 *" vwarn.$ac_objext "* ) ;;
37299 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext"
37304 { echo "$as_me:$LINENO: checking for vwarnx" >&5
37305 echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6; }
37306 if test "${ac_cv_func_vwarnx+set}" = set; then
37307 echo $ECHO_N "(cached) $ECHO_C" >&6
37309 cat >conftest.$ac_ext <<_ACEOF
37312 cat confdefs.h >>conftest.$ac_ext
37313 cat >>conftest.$ac_ext <<_ACEOF
37314 /* end confdefs.h. */
37315 /* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
37316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37317 #define vwarnx innocuous_vwarnx
37319 /* System header to define __stub macros and hopefully few prototypes,
37320 which can conflict with char vwarnx (); below.
37321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37322 <limits.h> exists even on freestanding compilers. */
37325 # include <limits.h>
37327 # include <assert.h>
37332 /* Override any GCC internal prototype to avoid an error.
37333 Use char because int might match the return type of a GCC
37334 builtin and then its argument prototype would still apply. */
37339 /* The GNU C library defines this for functions which it implements
37340 to always fail with ENOSYS. Some functions are actually named
37341 something starting with __ and the normal name is an alias. */
37342 #if defined __stub_vwarnx || defined __stub___vwarnx
37354 rm -f conftest.$ac_objext conftest$ac_exeext
37355 if { (ac_try="$ac_link"
37356 case "(($ac_try" in
37357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37358 *) ac_try_echo=$ac_try;;
37360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37361 (eval "$ac_link") 2>conftest.er1
37363 grep -v '^ *+' conftest.er1 >conftest.err
37365 cat conftest.err >&5
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); } && {
37368 test -z "$ac_c_werror_flag" ||
37369 test ! -s conftest.err
37370 } && test -s conftest$ac_exeext &&
37371 $as_test_x conftest$ac_exeext; then
37372 ac_cv_func_vwarnx=yes
37374 echo "$as_me: failed program was:" >&5
37375 sed 's/^/| /' conftest.$ac_ext >&5
37377 ac_cv_func_vwarnx=no
37380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37381 conftest$ac_exeext conftest.$ac_ext
37383 { echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
37384 echo "${ECHO_T}$ac_cv_func_vwarnx" >&6; }
37385 if test $ac_cv_func_vwarnx = yes; then
37387 cat >>confdefs.h <<_ACEOF
37388 #define HAVE_VWARNX 1
37392 case " $LIBOBJS " in
37393 *" vwarnx.$ac_objext "* ) ;;
37394 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
37399 { echo "$as_me:$LINENO: checking for warn" >&5
37400 echo $ECHO_N "checking for warn... $ECHO_C" >&6; }
37401 if test "${ac_cv_func_warn+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37404 cat >conftest.$ac_ext <<_ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h. */
37410 /* Define warn to an innocuous variant, in case <limits.h> declares warn.
37411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37412 #define warn innocuous_warn
37414 /* System header to define __stub macros and hopefully few prototypes,
37415 which can conflict with char warn (); below.
37416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37417 <limits.h> exists even on freestanding compilers. */
37420 # include <limits.h>
37422 # include <assert.h>
37427 /* Override any GCC internal prototype to avoid an error.
37428 Use char because int might match the return type of a GCC
37429 builtin and then its argument prototype would still apply. */
37434 /* The GNU C library defines this for functions which it implements
37435 to always fail with ENOSYS. Some functions are actually named
37436 something starting with __ and the normal name is an alias. */
37437 #if defined __stub_warn || defined __stub___warn
37449 rm -f conftest.$ac_objext conftest$ac_exeext
37450 if { (ac_try="$ac_link"
37451 case "(($ac_try" in
37452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37453 *) ac_try_echo=$ac_try;;
37455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37456 (eval "$ac_link") 2>conftest.er1
37458 grep -v '^ *+' conftest.er1 >conftest.err
37460 cat conftest.err >&5
37461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462 (exit $ac_status); } && {
37463 test -z "$ac_c_werror_flag" ||
37464 test ! -s conftest.err
37465 } && test -s conftest$ac_exeext &&
37466 $as_test_x conftest$ac_exeext; then
37467 ac_cv_func_warn=yes
37469 echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37476 conftest$ac_exeext conftest.$ac_ext
37478 { echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
37479 echo "${ECHO_T}$ac_cv_func_warn" >&6; }
37480 if test $ac_cv_func_warn = yes; then
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_WARN 1
37487 case " $LIBOBJS " in
37488 *" warn.$ac_objext "* ) ;;
37489 *) LIBOBJS="$LIBOBJS warn.$ac_objext"
37494 { echo "$as_me:$LINENO: checking for warnx" >&5
37495 echo $ECHO_N "checking for warnx... $ECHO_C" >&6; }
37496 if test "${ac_cv_func_warnx+set}" = set; then
37497 echo $ECHO_N "(cached) $ECHO_C" >&6
37499 cat >conftest.$ac_ext <<_ACEOF
37502 cat confdefs.h >>conftest.$ac_ext
37503 cat >>conftest.$ac_ext <<_ACEOF
37504 /* end confdefs.h. */
37505 /* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
37506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37507 #define warnx innocuous_warnx
37509 /* System header to define __stub macros and hopefully few prototypes,
37510 which can conflict with char warnx (); below.
37511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37512 <limits.h> exists even on freestanding compilers. */
37515 # include <limits.h>
37517 # include <assert.h>
37522 /* Override any GCC internal prototype to avoid an error.
37523 Use char because int might match the return type of a GCC
37524 builtin and then its argument prototype would still apply. */
37529 /* The GNU C library defines this for functions which it implements
37530 to always fail with ENOSYS. Some functions are actually named
37531 something starting with __ and the normal name is an alias. */
37532 #if defined __stub_warnx || defined __stub___warnx
37544 rm -f conftest.$ac_objext conftest$ac_exeext
37545 if { (ac_try="$ac_link"
37546 case "(($ac_try" in
37547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548 *) ac_try_echo=$ac_try;;
37550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37551 (eval "$ac_link") 2>conftest.er1
37553 grep -v '^ *+' conftest.er1 >conftest.err
37555 cat conftest.err >&5
37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } && {
37558 test -z "$ac_c_werror_flag" ||
37559 test ! -s conftest.err
37560 } && test -s conftest$ac_exeext &&
37561 $as_test_x conftest$ac_exeext; then
37562 ac_cv_func_warnx=yes
37564 echo "$as_me: failed program was:" >&5
37565 sed 's/^/| /' conftest.$ac_ext >&5
37567 ac_cv_func_warnx=no
37570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37571 conftest$ac_exeext conftest.$ac_ext
37573 { echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
37574 echo "${ECHO_T}$ac_cv_func_warnx" >&6; }
37575 if test $ac_cv_func_warnx = yes; then
37577 cat >>confdefs.h <<_ACEOF
37578 #define HAVE_WARNX 1
37582 case " $LIBOBJS " in
37583 *" warnx.$ac_objext "* ) ;;
37584 *) LIBOBJS="$LIBOBJS warnx.$ac_objext"
37589 { echo "$as_me:$LINENO: checking for writev" >&5
37590 echo $ECHO_N "checking for writev... $ECHO_C" >&6; }
37591 if test "${ac_cv_func_writev+set}" = set; then
37592 echo $ECHO_N "(cached) $ECHO_C" >&6
37594 cat >conftest.$ac_ext <<_ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h. */
37600 /* Define writev to an innocuous variant, in case <limits.h> declares writev.
37601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37602 #define writev innocuous_writev
37604 /* System header to define __stub macros and hopefully few prototypes,
37605 which can conflict with char writev (); below.
37606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37607 <limits.h> exists even on freestanding compilers. */
37610 # include <limits.h>
37612 # include <assert.h>
37617 /* Override any GCC internal prototype to avoid an error.
37618 Use char because int might match the return type of a GCC
37619 builtin and then its argument prototype would still apply. */
37624 /* The GNU C library defines this for functions which it implements
37625 to always fail with ENOSYS. Some functions are actually named
37626 something starting with __ and the normal name is an alias. */
37627 #if defined __stub_writev || defined __stub___writev
37639 rm -f conftest.$ac_objext conftest$ac_exeext
37640 if { (ac_try="$ac_link"
37641 case "(($ac_try" in
37642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37643 *) ac_try_echo=$ac_try;;
37645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37646 (eval "$ac_link") 2>conftest.er1
37648 grep -v '^ *+' conftest.er1 >conftest.err
37650 cat conftest.err >&5
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); } && {
37653 test -z "$ac_c_werror_flag" ||
37654 test ! -s conftest.err
37655 } && test -s conftest$ac_exeext &&
37656 $as_test_x conftest$ac_exeext; then
37657 ac_cv_func_writev=yes
37659 echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37662 ac_cv_func_writev=no
37665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37666 conftest$ac_exeext conftest.$ac_ext
37668 { echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
37669 echo "${ECHO_T}$ac_cv_func_writev" >&6; }
37670 if test $ac_cv_func_writev = yes; then
37672 cat >>confdefs.h <<_ACEOF
37673 #define HAVE_WRITEV 1
37677 case " $LIBOBJS " in
37678 *" writev.$ac_objext "* ) ;;
37679 *) LIBOBJS="$LIBOBJS writev.$ac_objext"
37686 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then
37687 have_fnmatch_h_TRUE=
37688 have_fnmatch_h_FALSE='#'
37690 have_fnmatch_h_TRUE='#'
37691 have_fnmatch_h_FALSE=
37696 if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
37697 { echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
37698 echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6; }
37699 if test "${ac_cv_func_strndup_noproto+set}" = set; then
37700 echo $ECHO_N "(cached) $ECHO_C" >&6
37702 cat >conftest.$ac_ext <<_ACEOF
37705 cat confdefs.h >>conftest.$ac_ext
37706 cat >>conftest.$ac_ext <<_ACEOF
37707 /* end confdefs.h. */
37708 #include <string.h>
37709 struct foo { int foo; } xx;
37710 extern int strndup (struct foo*);
37719 rm -f conftest.$ac_objext
37720 if { (ac_try="$ac_compile"
37721 case "(($ac_try" in
37722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37723 *) ac_try_echo=$ac_try;;
37725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37726 (eval "$ac_compile") 2>conftest.er1
37728 grep -v '^ *+' conftest.er1 >conftest.err
37730 cat conftest.err >&5
37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37732 (exit $ac_status); } && {
37733 test -z "$ac_c_werror_flag" ||
37734 test ! -s conftest.err
37735 } && test -s conftest.$ac_objext; then
37736 eval "ac_cv_func_strndup_noproto=yes"
37738 echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37741 eval "ac_cv_func_strndup_noproto=no"
37744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37746 { echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
37747 echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6; }
37748 if test "$ac_cv_func_strndup_noproto" = yes; then
37750 cat >>confdefs.h <<\_ACEOF
37751 #define NEED_STRNDUP_PROTO 1
37757 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
37758 { echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
37759 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6; }
37760 if test "${ac_cv_func_strsep_noproto+set}" = set; then
37761 echo $ECHO_N "(cached) $ECHO_C" >&6
37763 cat >conftest.$ac_ext <<_ACEOF
37766 cat confdefs.h >>conftest.$ac_ext
37767 cat >>conftest.$ac_ext <<_ACEOF
37768 /* end confdefs.h. */
37769 #include <string.h>
37770 struct foo { int foo; } xx;
37771 extern int strsep (struct foo*);
37780 rm -f conftest.$ac_objext
37781 if { (ac_try="$ac_compile"
37782 case "(($ac_try" in
37783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37784 *) ac_try_echo=$ac_try;;
37786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37787 (eval "$ac_compile") 2>conftest.er1
37789 grep -v '^ *+' conftest.er1 >conftest.err
37791 cat conftest.err >&5
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); } && {
37794 test -z "$ac_c_werror_flag" ||
37795 test ! -s conftest.err
37796 } && test -s conftest.$ac_objext; then
37797 eval "ac_cv_func_strsep_noproto=yes"
37799 echo "$as_me: failed program was:" >&5
37800 sed 's/^/| /' conftest.$ac_ext >&5
37802 eval "ac_cv_func_strsep_noproto=no"
37805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37807 { echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
37808 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6; }
37809 if test "$ac_cv_func_strsep_noproto" = yes; then
37811 cat >>confdefs.h <<\_ACEOF
37812 #define NEED_STRSEP_PROTO 1
37818 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
37819 { echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
37820 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6; }
37821 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37824 cat >conftest.$ac_ext <<_ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h. */
37830 #include <string.h>
37831 struct foo { int foo; } xx;
37832 extern int strtok_r (struct foo*);
37841 rm -f conftest.$ac_objext
37842 if { (ac_try="$ac_compile"
37843 case "(($ac_try" in
37844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37845 *) ac_try_echo=$ac_try;;
37847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37848 (eval "$ac_compile") 2>conftest.er1
37850 grep -v '^ *+' conftest.er1 >conftest.err
37852 cat conftest.err >&5
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); } && {
37855 test -z "$ac_c_werror_flag" ||
37856 test ! -s conftest.err
37857 } && test -s conftest.$ac_objext; then
37858 eval "ac_cv_func_strtok_r_noproto=yes"
37860 echo "$as_me: failed program was:" >&5
37861 sed 's/^/| /' conftest.$ac_ext >&5
37863 eval "ac_cv_func_strtok_r_noproto=no"
37866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37868 { echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
37869 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6; }
37870 if test "$ac_cv_func_strtok_r_noproto" = yes; then
37872 cat >>confdefs.h <<\_ACEOF
37873 #define NEED_STRTOK_R_PROTO 1
37881 if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
37882 { echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
37883 echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6; }
37884 if test "${ac_cv_func_strsvis_noproto+set}" = set; then
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37887 cat >conftest.$ac_ext <<_ACEOF
37890 cat confdefs.h >>conftest.$ac_ext
37891 cat >>conftest.$ac_ext <<_ACEOF
37892 /* end confdefs.h. */
37896 struct foo { int foo; } xx;
37897 extern int strsvis (struct foo*);
37906 rm -f conftest.$ac_objext
37907 if { (ac_try="$ac_compile"
37908 case "(($ac_try" in
37909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37910 *) ac_try_echo=$ac_try;;
37912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37913 (eval "$ac_compile") 2>conftest.er1
37915 grep -v '^ *+' conftest.er1 >conftest.err
37917 cat conftest.err >&5
37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37919 (exit $ac_status); } && {
37920 test -z "$ac_c_werror_flag" ||
37921 test ! -s conftest.err
37922 } && test -s conftest.$ac_objext; then
37923 eval "ac_cv_func_strsvis_noproto=yes"
37925 echo "$as_me: failed program was:" >&5
37926 sed 's/^/| /' conftest.$ac_ext >&5
37928 eval "ac_cv_func_strsvis_noproto=no"
37931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37933 { echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
37934 echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6; }
37935 if test "$ac_cv_func_strsvis_noproto" = yes; then
37937 cat >>confdefs.h <<\_ACEOF
37938 #define NEED_STRSVIS_PROTO 1
37944 if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
37945 { echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
37946 echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6; }
37947 if test "${ac_cv_func_strunvis_noproto+set}" = set; then
37948 echo $ECHO_N "(cached) $ECHO_C" >&6
37950 cat >conftest.$ac_ext <<_ACEOF
37953 cat confdefs.h >>conftest.$ac_ext
37954 cat >>conftest.$ac_ext <<_ACEOF
37955 /* end confdefs.h. */
37959 struct foo { int foo; } xx;
37960 extern int strunvis (struct foo*);
37969 rm -f conftest.$ac_objext
37970 if { (ac_try="$ac_compile"
37971 case "(($ac_try" in
37972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973 *) ac_try_echo=$ac_try;;
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976 (eval "$ac_compile") 2>conftest.er1
37978 grep -v '^ *+' conftest.er1 >conftest.err
37980 cat conftest.err >&5
37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982 (exit $ac_status); } && {
37983 test -z "$ac_c_werror_flag" ||
37984 test ! -s conftest.err
37985 } && test -s conftest.$ac_objext; then
37986 eval "ac_cv_func_strunvis_noproto=yes"
37988 echo "$as_me: failed program was:" >&5
37989 sed 's/^/| /' conftest.$ac_ext >&5
37991 eval "ac_cv_func_strunvis_noproto=no"
37994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37996 { echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
37997 echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6; }
37998 if test "$ac_cv_func_strunvis_noproto" = yes; then
38000 cat >>confdefs.h <<\_ACEOF
38001 #define NEED_STRUNVIS_PROTO 1
38007 if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
38008 { echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
38009 echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6; }
38010 if test "${ac_cv_func_strvis_noproto+set}" = set; then
38011 echo $ECHO_N "(cached) $ECHO_C" >&6
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38022 struct foo { int foo; } xx;
38023 extern int strvis (struct foo*);
38032 rm -f conftest.$ac_objext
38033 if { (ac_try="$ac_compile"
38034 case "(($ac_try" in
38035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38036 *) ac_try_echo=$ac_try;;
38038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38039 (eval "$ac_compile") 2>conftest.er1
38041 grep -v '^ *+' conftest.er1 >conftest.err
38043 cat conftest.err >&5
38044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); } && {
38046 test -z "$ac_c_werror_flag" ||
38047 test ! -s conftest.err
38048 } && test -s conftest.$ac_objext; then
38049 eval "ac_cv_func_strvis_noproto=yes"
38051 echo "$as_me: failed program was:" >&5
38052 sed 's/^/| /' conftest.$ac_ext >&5
38054 eval "ac_cv_func_strvis_noproto=no"
38057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38059 { echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
38060 echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6; }
38061 if test "$ac_cv_func_strvis_noproto" = yes; then
38063 cat >>confdefs.h <<\_ACEOF
38064 #define NEED_STRVIS_PROTO 1
38070 if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
38071 { echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
38072 echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6; }
38073 if test "${ac_cv_func_strvisx_noproto+set}" = set; then
38074 echo $ECHO_N "(cached) $ECHO_C" >&6
38076 cat >conftest.$ac_ext <<_ACEOF
38079 cat confdefs.h >>conftest.$ac_ext
38080 cat >>conftest.$ac_ext <<_ACEOF
38081 /* end confdefs.h. */
38085 struct foo { int foo; } xx;
38086 extern int strvisx (struct foo*);
38095 rm -f conftest.$ac_objext
38096 if { (ac_try="$ac_compile"
38097 case "(($ac_try" in
38098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38099 *) ac_try_echo=$ac_try;;
38101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38102 (eval "$ac_compile") 2>conftest.er1
38104 grep -v '^ *+' conftest.er1 >conftest.err
38106 cat conftest.err >&5
38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } && {
38109 test -z "$ac_c_werror_flag" ||
38110 test ! -s conftest.err
38111 } && test -s conftest.$ac_objext; then
38112 eval "ac_cv_func_strvisx_noproto=yes"
38114 echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38117 eval "ac_cv_func_strvisx_noproto=no"
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38122 { echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
38123 echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6; }
38124 if test "$ac_cv_func_strvisx_noproto" = yes; then
38126 cat >>confdefs.h <<\_ACEOF
38127 #define NEED_STRVISX_PROTO 1
38133 if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
38134 { echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
38135 echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6; }
38136 if test "${ac_cv_func_svis_noproto+set}" = set; then
38137 echo $ECHO_N "(cached) $ECHO_C" >&6
38139 cat >conftest.$ac_ext <<_ACEOF
38142 cat confdefs.h >>conftest.$ac_ext
38143 cat >>conftest.$ac_ext <<_ACEOF
38144 /* end confdefs.h. */
38148 struct foo { int foo; } xx;
38149 extern int svis (struct foo*);
38158 rm -f conftest.$ac_objext
38159 if { (ac_try="$ac_compile"
38160 case "(($ac_try" in
38161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38162 *) ac_try_echo=$ac_try;;
38164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38165 (eval "$ac_compile") 2>conftest.er1
38167 grep -v '^ *+' conftest.er1 >conftest.err
38169 cat conftest.err >&5
38170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38171 (exit $ac_status); } && {
38172 test -z "$ac_c_werror_flag" ||
38173 test ! -s conftest.err
38174 } && test -s conftest.$ac_objext; then
38175 eval "ac_cv_func_svis_noproto=yes"
38177 echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38180 eval "ac_cv_func_svis_noproto=no"
38183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38185 { echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
38186 echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6; }
38187 if test "$ac_cv_func_svis_noproto" = yes; then
38189 cat >>confdefs.h <<\_ACEOF
38190 #define NEED_SVIS_PROTO 1
38196 if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
38197 { echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
38198 echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6; }
38199 if test "${ac_cv_func_unvis_noproto+set}" = set; then
38200 echo $ECHO_N "(cached) $ECHO_C" >&6
38202 cat >conftest.$ac_ext <<_ACEOF
38205 cat confdefs.h >>conftest.$ac_ext
38206 cat >>conftest.$ac_ext <<_ACEOF
38207 /* end confdefs.h. */
38211 struct foo { int foo; } xx;
38212 extern int unvis (struct foo*);
38221 rm -f conftest.$ac_objext
38222 if { (ac_try="$ac_compile"
38223 case "(($ac_try" in
38224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38225 *) ac_try_echo=$ac_try;;
38227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38228 (eval "$ac_compile") 2>conftest.er1
38230 grep -v '^ *+' conftest.er1 >conftest.err
38232 cat conftest.err >&5
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); } && {
38235 test -z "$ac_c_werror_flag" ||
38236 test ! -s conftest.err
38237 } && test -s conftest.$ac_objext; then
38238 eval "ac_cv_func_unvis_noproto=yes"
38240 echo "$as_me: failed program was:" >&5
38241 sed 's/^/| /' conftest.$ac_ext >&5
38243 eval "ac_cv_func_unvis_noproto=no"
38246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38248 { echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
38249 echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6; }
38250 if test "$ac_cv_func_unvis_noproto" = yes; then
38252 cat >>confdefs.h <<\_ACEOF
38253 #define NEED_UNVIS_PROTO 1
38259 if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
38260 { echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
38261 echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6; }
38262 if test "${ac_cv_func_vis_noproto+set}" = set; then
38263 echo $ECHO_N "(cached) $ECHO_C" >&6
38265 cat >conftest.$ac_ext <<_ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h. */
38274 struct foo { int foo; } xx;
38275 extern int vis (struct foo*);
38284 rm -f conftest.$ac_objext
38285 if { (ac_try="$ac_compile"
38286 case "(($ac_try" in
38287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288 *) ac_try_echo=$ac_try;;
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291 (eval "$ac_compile") 2>conftest.er1
38293 grep -v '^ *+' conftest.er1 >conftest.err
38295 cat conftest.err >&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); } && {
38298 test -z "$ac_c_werror_flag" ||
38299 test ! -s conftest.err
38300 } && test -s conftest.$ac_objext; then
38301 eval "ac_cv_func_vis_noproto=yes"
38303 echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38306 eval "ac_cv_func_vis_noproto=no"
38309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38311 { echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
38312 echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6; }
38313 if test "$ac_cv_func_vis_noproto" = yes; then
38315 cat >>confdefs.h <<\_ACEOF
38316 #define NEED_VIS_PROTO 1
38323 { echo "$as_me:$LINENO: checking for inet_aton" >&5
38324 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
38325 if test "${ac_cv_func_inet_aton+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38328 cat >conftest.$ac_ext <<_ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h. */
38334 #ifdef HAVE_SYS_TYPES_H
38335 #include <sys/types.h>
38337 #ifdef HAVE_SYS_SOCKET_H
38338 #include <sys/socket.h>
38340 #ifdef HAVE_NETINET_IN_H
38341 #include <netinet/in.h>
38343 #ifdef HAVE_ARPA_INET_H
38344 #include <arpa/inet.h>
38350 /* The GNU C library defines this for functions which it implements
38351 to always fail with ENOSYS. Some functions are actually named
38352 something starting with __ and the normal name is an alias. */
38353 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
38363 rm -f conftest.$ac_objext conftest$ac_exeext
38364 if { (ac_try="$ac_link"
38365 case "(($ac_try" in
38366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38367 *) ac_try_echo=$ac_try;;
38369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38370 (eval "$ac_link") 2>conftest.er1
38372 grep -v '^ *+' conftest.er1 >conftest.err
38374 cat conftest.err >&5
38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376 (exit $ac_status); } && {
38377 test -z "$ac_c_werror_flag" ||
38378 test ! -s conftest.err
38379 } && test -s conftest$ac_exeext &&
38380 $as_test_x conftest$ac_exeext; then
38381 eval "ac_cv_func_inet_aton=yes"
38383 echo "$as_me: failed program was:" >&5
38384 sed 's/^/| /' conftest.$ac_ext >&5
38386 eval "ac_cv_func_inet_aton=no"
38389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38390 conftest$ac_exeext conftest.$ac_ext
38393 if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
38395 cat >>confdefs.h <<_ACEOF
38396 #define HAVE_INET_ATON 1
38399 { echo "$as_me:$LINENO: result: yes" >&5
38400 echo "${ECHO_T}yes" >&6; }
38402 { echo "$as_me:$LINENO: result: no" >&5
38403 echo "${ECHO_T}no" >&6; }
38404 case " $LIBOBJS " in
38405 *" inet_aton.$ac_objext "* ) ;;
38406 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
38412 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
38413 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
38414 if test "${ac_cv_func_inet_ntop+set}" = set; then
38415 echo $ECHO_N "(cached) $ECHO_C" >&6
38417 cat >conftest.$ac_ext <<_ACEOF
38420 cat confdefs.h >>conftest.$ac_ext
38421 cat >>conftest.$ac_ext <<_ACEOF
38422 /* end confdefs.h. */
38423 #ifdef HAVE_SYS_TYPES_H
38424 #include <sys/types.h>
38426 #ifdef HAVE_SYS_SOCKET_H
38427 #include <sys/socket.h>
38429 #ifdef HAVE_NETINET_IN_H
38430 #include <netinet/in.h>
38432 #ifdef HAVE_ARPA_INET_H
38433 #include <arpa/inet.h>
38439 /* The GNU C library defines this for functions which it implements
38440 to always fail with ENOSYS. Some functions are actually named
38441 something starting with __ and the normal name is an alias. */
38442 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
38445 inet_ntop(0, 0, 0, 0);
38452 rm -f conftest.$ac_objext conftest$ac_exeext
38453 if { (ac_try="$ac_link"
38454 case "(($ac_try" in
38455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38456 *) ac_try_echo=$ac_try;;
38458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38459 (eval "$ac_link") 2>conftest.er1
38461 grep -v '^ *+' conftest.er1 >conftest.err
38463 cat conftest.err >&5
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); } && {
38466 test -z "$ac_c_werror_flag" ||
38467 test ! -s conftest.err
38468 } && test -s conftest$ac_exeext &&
38469 $as_test_x conftest$ac_exeext; then
38470 eval "ac_cv_func_inet_ntop=yes"
38472 echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38475 eval "ac_cv_func_inet_ntop=no"
38478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38479 conftest$ac_exeext conftest.$ac_ext
38482 if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
38484 cat >>confdefs.h <<_ACEOF
38485 #define HAVE_INET_NTOP 1
38488 { echo "$as_me:$LINENO: result: yes" >&5
38489 echo "${ECHO_T}yes" >&6; }
38491 { echo "$as_me:$LINENO: result: no" >&5
38492 echo "${ECHO_T}no" >&6; }
38493 case " $LIBOBJS " in
38494 *" inet_ntop.$ac_objext "* ) ;;
38495 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
38501 { echo "$as_me:$LINENO: checking for inet_pton" >&5
38502 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
38503 if test "${ac_cv_func_inet_pton+set}" = set; then
38504 echo $ECHO_N "(cached) $ECHO_C" >&6
38506 cat >conftest.$ac_ext <<_ACEOF
38509 cat confdefs.h >>conftest.$ac_ext
38510 cat >>conftest.$ac_ext <<_ACEOF
38511 /* end confdefs.h. */
38512 #ifdef HAVE_SYS_TYPES_H
38513 #include <sys/types.h>
38515 #ifdef HAVE_SYS_SOCKET_H
38516 #include <sys/socket.h>
38518 #ifdef HAVE_NETINET_IN_H
38519 #include <netinet/in.h>
38521 #ifdef HAVE_ARPA_INET_H
38522 #include <arpa/inet.h>
38528 /* The GNU C library defines this for functions which it implements
38529 to always fail with ENOSYS. Some functions are actually named
38530 something starting with __ and the normal name is an alias. */
38531 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (ac_try="$ac_link"
38543 case "(($ac_try" in
38544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545 *) ac_try_echo=$ac_try;;
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548 (eval "$ac_link") 2>conftest.er1
38550 grep -v '^ *+' conftest.er1 >conftest.err
38552 cat conftest.err >&5
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } && {
38555 test -z "$ac_c_werror_flag" ||
38556 test ! -s conftest.err
38557 } && test -s conftest$ac_exeext &&
38558 $as_test_x conftest$ac_exeext; then
38559 eval "ac_cv_func_inet_pton=yes"
38561 echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38564 eval "ac_cv_func_inet_pton=no"
38567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38568 conftest$ac_exeext conftest.$ac_ext
38571 if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
38573 cat >>confdefs.h <<_ACEOF
38574 #define HAVE_INET_PTON 1
38577 { echo "$as_me:$LINENO: result: yes" >&5
38578 echo "${ECHO_T}yes" >&6; }
38580 { echo "$as_me:$LINENO: result: no" >&5
38581 echo "${ECHO_T}no" >&6; }
38582 case " $LIBOBJS " in
38583 *" inet_pton.$ac_objext "* ) ;;
38584 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
38592 { echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
38593 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; }
38594 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
38595 echo $ECHO_N "(cached) $ECHO_C" >&6
38598 cat >conftest.$ac_ext <<_ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h. */
38604 #include <sys/types.h>
38605 #include <sys/socket.h>
38609 struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len
38614 rm -f conftest.$ac_objext
38615 if { (ac_try="$ac_compile"
38616 case "(($ac_try" in
38617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38618 *) ac_try_echo=$ac_try;;
38620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38621 (eval "$ac_compile") 2>conftest.er1
38623 grep -v '^ *+' conftest.er1 >conftest.err
38625 cat conftest.err >&5
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); } && {
38628 test -z "$ac_c_werror_flag" ||
38629 test ! -s conftest.err
38630 } && test -s conftest.$ac_objext; then
38631 ac_cv_type_struct_sockaddr_sa_len=yes
38633 echo "$as_me: failed program was:" >&5
38634 sed 's/^/| /' conftest.$ac_ext >&5
38636 ac_cv_type_struct_sockaddr_sa_len=no
38639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
38643 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6; }
38644 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
38647 cat >>confdefs.h <<\_ACEOF
38648 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
38656 if test "$ac_cv_func_getaddrinfo" = "yes"; then
38658 { echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
38659 echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6; }
38660 if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
38661 echo $ECHO_N "(cached) $ECHO_C" >&6
38663 if test "$cross_compiling" = yes; then
38664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38665 See \`config.log' for more details." >&5
38666 echo "$as_me: error: cannot run test program while cross compiling
38667 See \`config.log' for more details." >&2;}
38668 { (exit 1); exit 1; }; }
38670 cat >conftest.$ac_ext <<_ACEOF
38673 cat confdefs.h >>conftest.$ac_ext
38674 cat >>conftest.$ac_ext <<_ACEOF
38675 /* end confdefs.h. */
38677 #include <sys/types.h>
38678 #include <sys/socket.h>
38682 main(int argc, char **argv)
38684 struct addrinfo hints, *ai;
38685 memset(&hints, 0, sizeof(hints));
38686 hints.ai_flags = AI_PASSIVE;
38687 hints.ai_socktype = SOCK_STREAM;
38688 hints.ai_family = PF_UNSPEC;
38689 if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
38691 if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
38697 rm -f conftest$ac_exeext
38698 if { (ac_try="$ac_link"
38699 case "(($ac_try" in
38700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701 *) ac_try_echo=$ac_try;;
38703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38704 (eval "$ac_link") 2>&5
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38708 { (case "(($ac_try" in
38709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710 *) ac_try_echo=$ac_try;;
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713 (eval "$ac_try") 2>&5
38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716 (exit $ac_status); }; }; then
38717 ac_cv_func_getaddrinfo_numserv=yes
38719 echo "$as_me: program exited with status $ac_status" >&5
38720 echo "$as_me: failed program was:" >&5
38721 sed 's/^/| /' conftest.$ac_ext >&5
38723 ( exit $ac_status )
38724 ac_cv_func_getaddrinfo_numserv=no
38726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38731 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
38732 echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6; }
38733 if test "$ac_cv_func_getaddrinfo_numserv" = no; then
38734 case " $LIBOBJS " in
38735 *" getaddrinfo.$ac_objext "* ) ;;
38736 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
38740 case " $LIBOBJS " in
38741 *" freeaddrinfo.$ac_objext "* ) ;;
38742 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
38750 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
38751 { echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
38752 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6; }
38753 if test "${ac_cv_func_setenv_noproto+set}" = set; then
38754 echo $ECHO_N "(cached) $ECHO_C" >&6
38756 cat >conftest.$ac_ext <<_ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38762 #include <stdlib.h>
38763 struct foo { int foo; } xx;
38764 extern int setenv (struct foo*);
38773 rm -f conftest.$ac_objext
38774 if { (ac_try="$ac_compile"
38775 case "(($ac_try" in
38776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38777 *) ac_try_echo=$ac_try;;
38779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38780 (eval "$ac_compile") 2>conftest.er1
38782 grep -v '^ *+' conftest.er1 >conftest.err
38784 cat conftest.err >&5
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); } && {
38787 test -z "$ac_c_werror_flag" ||
38788 test ! -s conftest.err
38789 } && test -s conftest.$ac_objext; then
38790 eval "ac_cv_func_setenv_noproto=yes"
38792 echo "$as_me: failed program was:" >&5
38793 sed 's/^/| /' conftest.$ac_ext >&5
38795 eval "ac_cv_func_setenv_noproto=no"
38798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38800 { echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
38801 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6; }
38802 if test "$ac_cv_func_setenv_noproto" = yes; then
38804 cat >>confdefs.h <<\_ACEOF
38805 #define NEED_SETENV_PROTO 1
38812 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
38813 { echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
38814 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6; }
38815 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
38816 echo $ECHO_N "(cached) $ECHO_C" >&6
38818 cat >conftest.$ac_ext <<_ACEOF
38821 cat confdefs.h >>conftest.$ac_ext
38822 cat >>conftest.$ac_ext <<_ACEOF
38823 /* end confdefs.h. */
38824 #include <stdlib.h>
38825 struct foo { int foo; } xx;
38826 extern int unsetenv (struct foo*);
38835 rm -f conftest.$ac_objext
38836 if { (ac_try="$ac_compile"
38837 case "(($ac_try" in
38838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38839 *) ac_try_echo=$ac_try;;
38841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38842 (eval "$ac_compile") 2>conftest.er1
38844 grep -v '^ *+' conftest.er1 >conftest.err
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } && {
38849 test -z "$ac_c_werror_flag" ||
38850 test ! -s conftest.err
38851 } && test -s conftest.$ac_objext; then
38852 eval "ac_cv_func_unsetenv_noproto=yes"
38854 echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38857 eval "ac_cv_func_unsetenv_noproto=no"
38860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38862 { echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
38863 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6; }
38864 if test "$ac_cv_func_unsetenv_noproto" = yes; then
38866 cat >>confdefs.h <<\_ACEOF
38867 #define NEED_UNSETENV_PROTO 1
38874 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
38875 { echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
38876 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6; }
38877 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
38878 echo $ECHO_N "(cached) $ECHO_C" >&6
38880 cat >conftest.$ac_ext <<_ACEOF
38883 cat confdefs.h >>conftest.$ac_ext
38884 cat >>conftest.$ac_ext <<_ACEOF
38885 /* end confdefs.h. */
38886 #include <unistd.h>
38887 struct foo { int foo; } xx;
38888 extern int gethostname (struct foo*);
38897 rm -f conftest.$ac_objext
38898 if { (ac_try="$ac_compile"
38899 case "(($ac_try" in
38900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38901 *) ac_try_echo=$ac_try;;
38903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38904 (eval "$ac_compile") 2>conftest.er1
38906 grep -v '^ *+' conftest.er1 >conftest.err
38908 cat conftest.err >&5
38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); } && {
38911 test -z "$ac_c_werror_flag" ||
38912 test ! -s conftest.err
38913 } && test -s conftest.$ac_objext; then
38914 eval "ac_cv_func_gethostname_noproto=yes"
38916 echo "$as_me: failed program was:" >&5
38917 sed 's/^/| /' conftest.$ac_ext >&5
38919 eval "ac_cv_func_gethostname_noproto=no"
38922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38924 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
38925 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6; }
38926 if test "$ac_cv_func_gethostname_noproto" = yes; then
38928 cat >>confdefs.h <<\_ACEOF
38929 #define NEED_GETHOSTNAME_PROTO 1
38936 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
38937 { echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
38938 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6; }
38939 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
38940 echo $ECHO_N "(cached) $ECHO_C" >&6
38942 cat >conftest.$ac_ext <<_ACEOF
38945 cat confdefs.h >>conftest.$ac_ext
38946 cat >>conftest.$ac_ext <<_ACEOF
38947 /* end confdefs.h. */
38948 #include <unistd.h>
38949 struct foo { int foo; } xx;
38950 extern int mkstemp (struct foo*);
38959 rm -f conftest.$ac_objext
38960 if { (ac_try="$ac_compile"
38961 case "(($ac_try" in
38962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38963 *) ac_try_echo=$ac_try;;
38965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38966 (eval "$ac_compile") 2>conftest.er1
38968 grep -v '^ *+' conftest.er1 >conftest.err
38970 cat conftest.err >&5
38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38972 (exit $ac_status); } && {
38973 test -z "$ac_c_werror_flag" ||
38974 test ! -s conftest.err
38975 } && test -s conftest.$ac_objext; then
38976 eval "ac_cv_func_mkstemp_noproto=yes"
38978 echo "$as_me: failed program was:" >&5
38979 sed 's/^/| /' conftest.$ac_ext >&5
38981 eval "ac_cv_func_mkstemp_noproto=no"
38984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38986 { echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
38987 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6; }
38988 if test "$ac_cv_func_mkstemp_noproto" = yes; then
38990 cat >>confdefs.h <<\_ACEOF
38991 #define NEED_MKSTEMP_PROTO 1
38998 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
38999 { echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
39000 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6; }
39001 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
39002 echo $ECHO_N "(cached) $ECHO_C" >&6
39004 cat >conftest.$ac_ext <<_ACEOF
39007 cat confdefs.h >>conftest.$ac_ext
39008 cat >>conftest.$ac_ext <<_ACEOF
39009 /* end confdefs.h. */
39010 #include <unistd.h>
39011 struct foo { int foo; } xx;
39012 extern int getusershell (struct foo*);
39021 rm -f conftest.$ac_objext
39022 if { (ac_try="$ac_compile"
39023 case "(($ac_try" in
39024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39025 *) ac_try_echo=$ac_try;;
39027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39028 (eval "$ac_compile") 2>conftest.er1
39030 grep -v '^ *+' conftest.er1 >conftest.err
39032 cat conftest.err >&5
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } && {
39035 test -z "$ac_c_werror_flag" ||
39036 test ! -s conftest.err
39037 } && test -s conftest.$ac_objext; then
39038 eval "ac_cv_func_getusershell_noproto=yes"
39040 echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39043 eval "ac_cv_func_getusershell_noproto=no"
39046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39048 { echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
39049 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6; }
39050 if test "$ac_cv_func_getusershell_noproto" = yes; then
39052 cat >>confdefs.h <<\_ACEOF
39053 #define NEED_GETUSERSHELL_PROTO 1
39060 if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then
39061 { echo "$as_me:$LINENO: checking if daemon needs a prototype" >&5
39062 echo $ECHO_N "checking if daemon needs a prototype... $ECHO_C" >&6; }
39063 if test "${ac_cv_func_daemon_noproto+set}" = set; then
39064 echo $ECHO_N "(cached) $ECHO_C" >&6
39066 cat >conftest.$ac_ext <<_ACEOF
39069 cat confdefs.h >>conftest.$ac_ext
39070 cat >>conftest.$ac_ext <<_ACEOF
39071 /* end confdefs.h. */
39072 #include <unistd.h>
39073 struct foo { int foo; } xx;
39074 extern int daemon (struct foo*);
39083 rm -f conftest.$ac_objext
39084 if { (ac_try="$ac_compile"
39085 case "(($ac_try" in
39086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39087 *) ac_try_echo=$ac_try;;
39089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39090 (eval "$ac_compile") 2>conftest.er1
39092 grep -v '^ *+' conftest.er1 >conftest.err
39094 cat conftest.err >&5
39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096 (exit $ac_status); } && {
39097 test -z "$ac_c_werror_flag" ||
39098 test ! -s conftest.err
39099 } && test -s conftest.$ac_objext; then
39100 eval "ac_cv_func_daemon_noproto=yes"
39102 echo "$as_me: failed program was:" >&5
39103 sed 's/^/| /' conftest.$ac_ext >&5
39105 eval "ac_cv_func_daemon_noproto=no"
39108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39110 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon_noproto" >&5
39111 echo "${ECHO_T}$ac_cv_func_daemon_noproto" >&6; }
39112 if test "$ac_cv_func_daemon_noproto" = yes; then
39114 cat >>confdefs.h <<\_ACEOF
39115 #define NEED_DAEMON_PROTO 1
39122 if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then
39123 { echo "$as_me:$LINENO: checking if iruserok needs a prototype" >&5
39124 echo $ECHO_N "checking if iruserok needs a prototype... $ECHO_C" >&6; }
39125 if test "${ac_cv_func_iruserok_noproto+set}" = set; then
39126 echo $ECHO_N "(cached) $ECHO_C" >&6
39128 cat >conftest.$ac_ext <<_ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h. */
39135 #ifdef HAVE_SYS_TYPES_H
39136 #include <sys/types.h>
39138 #ifdef HAVE_SYS_SOCKET_H
39139 #include <sys/socket.h>
39141 #ifdef HAVE_NETINET_IN_H
39142 #include <netinet/in.h>
39144 #ifdef HAVE_ARPA_INET_H
39145 #include <arpa/inet.h>
39147 #ifdef HAVE_NETDB_H
39150 #ifdef HAVE_UNISTD_H
39151 #include <unistd.h>
39153 struct foo { int foo; } xx;
39154 extern int iruserok (struct foo*);
39163 rm -f conftest.$ac_objext
39164 if { (ac_try="$ac_compile"
39165 case "(($ac_try" in
39166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39167 *) ac_try_echo=$ac_try;;
39169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39170 (eval "$ac_compile") 2>conftest.er1
39172 grep -v '^ *+' conftest.er1 >conftest.err
39174 cat conftest.err >&5
39175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176 (exit $ac_status); } && {
39177 test -z "$ac_c_werror_flag" ||
39178 test ! -s conftest.err
39179 } && test -s conftest.$ac_objext; then
39180 eval "ac_cv_func_iruserok_noproto=yes"
39182 echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39185 eval "ac_cv_func_iruserok_noproto=no"
39188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39190 { echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_noproto" >&5
39191 echo "${ECHO_T}$ac_cv_func_iruserok_noproto" >&6; }
39192 if test "$ac_cv_func_iruserok_noproto" = yes; then
39194 cat >>confdefs.h <<\_ACEOF
39195 #define NEED_IRUSEROK_PROTO 1
39203 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
39204 { echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
39205 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6; }
39206 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
39207 echo $ECHO_N "(cached) $ECHO_C" >&6
39209 cat >conftest.$ac_ext <<_ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h. */
39216 #ifdef HAVE_SYS_TYPES_H
39217 #include <sys/types.h>
39219 #ifdef HAVE_SYS_SOCKET_H
39220 #include <sys/socket.h>
39222 #ifdef HAVE_NETINET_IN_H
39223 #include <netinet/in.h>
39225 #ifdef HAVE_ARPA_INET_H
39226 #include <arpa/inet.h>
39228 struct foo { int foo; } xx;
39229 extern int inet_aton (struct foo*);
39238 rm -f conftest.$ac_objext
39239 if { (ac_try="$ac_compile"
39240 case "(($ac_try" in
39241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39242 *) ac_try_echo=$ac_try;;
39244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39245 (eval "$ac_compile") 2>conftest.er1
39247 grep -v '^ *+' conftest.er1 >conftest.err
39249 cat conftest.err >&5
39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251 (exit $ac_status); } && {
39252 test -z "$ac_c_werror_flag" ||
39253 test ! -s conftest.err
39254 } && test -s conftest.$ac_objext; then
39255 eval "ac_cv_func_inet_aton_noproto=yes"
39257 echo "$as_me: failed program was:" >&5
39258 sed 's/^/| /' conftest.$ac_ext >&5
39260 eval "ac_cv_func_inet_aton_noproto=no"
39263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39265 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
39266 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6; }
39267 if test "$ac_cv_func_inet_aton_noproto" = yes; then
39269 cat >>confdefs.h <<\_ACEOF
39270 #define NEED_INET_ATON_PROTO 1
39280 { echo "$as_me:$LINENO: checking for crypt" >&5
39281 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
39282 if test "${ac_cv_funclib_crypt+set}" = set; then
39283 echo $ECHO_N "(cached) $ECHO_C" >&6
39286 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
39287 ac_save_LIBS="$LIBS"
39288 for ac_lib in "" crypt; do
39294 *) ac_lib="-l$ac_lib" ;;
39296 LIBS=" $ac_lib $ac_save_LIBS"
39297 cat >conftest.$ac_ext <<_ACEOF
39300 cat confdefs.h >>conftest.$ac_ext
39301 cat >>conftest.$ac_ext <<_ACEOF
39302 /* end confdefs.h. */
39312 rm -f conftest.$ac_objext conftest$ac_exeext
39313 if { (ac_try="$ac_link"
39314 case "(($ac_try" in
39315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39316 *) ac_try_echo=$ac_try;;
39318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39319 (eval "$ac_link") 2>conftest.er1
39321 grep -v '^ *+' conftest.er1 >conftest.err
39323 cat conftest.err >&5
39324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39325 (exit $ac_status); } && {
39326 test -z "$ac_c_werror_flag" ||
39327 test ! -s conftest.err
39328 } && test -s conftest$ac_exeext &&
39329 $as_test_x conftest$ac_exeext; then
39330 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
39332 echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.$ac_ext >&5
39338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39339 conftest$ac_exeext conftest.$ac_ext
39341 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
39342 LIBS="$ac_save_LIBS"
39348 eval "ac_res=\$ac_cv_funclib_crypt"
39352 for ac_func in crypt
39354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39358 echo $ECHO_N "(cached) $ECHO_C" >&6
39360 cat >conftest.$ac_ext <<_ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h. */
39366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39368 #define $ac_func innocuous_$ac_func
39370 /* System header to define __stub macros and hopefully few prototypes,
39371 which can conflict with char $ac_func (); below.
39372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39373 <limits.h> exists even on freestanding compilers. */
39376 # include <limits.h>
39378 # include <assert.h>
39383 /* Override any GCC internal prototype to avoid an error.
39384 Use char because int might match the return type of a GCC
39385 builtin and then its argument prototype would still apply. */
39390 /* The GNU C library defines this for functions which it implements
39391 to always fail with ENOSYS. Some functions are actually named
39392 something starting with __ and the normal name is an alias. */
39393 #if defined __stub_$ac_func || defined __stub___$ac_func
39400 return $ac_func ();
39405 rm -f conftest.$ac_objext conftest$ac_exeext
39406 if { (ac_try="$ac_link"
39407 case "(($ac_try" in
39408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39409 *) ac_try_echo=$ac_try;;
39411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39412 (eval "$ac_link") 2>conftest.er1
39414 grep -v '^ *+' conftest.er1 >conftest.err
39416 cat conftest.err >&5
39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39418 (exit $ac_status); } && {
39419 test -z "$ac_c_werror_flag" ||
39420 test ! -s conftest.err
39421 } && test -s conftest$ac_exeext &&
39422 $as_test_x conftest$ac_exeext; then
39423 eval "$as_ac_var=yes"
39425 echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39428 eval "$as_ac_var=no"
39431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39432 conftest$ac_exeext conftest.$ac_ext
39434 ac_res=`eval echo '${'$as_ac_var'}'`
39435 { echo "$as_me:$LINENO: result: $ac_res" >&5
39436 echo "${ECHO_T}$ac_res" >&6; }
39437 if test `eval echo '${'$as_ac_var'}'` = yes; then
39438 cat >>confdefs.h <<_ACEOF
39439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39447 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
39448 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
39449 eval "LIB_crypt=$ac_res"
39453 eval "ac_cv_func_crypt=yes"
39455 cat >>confdefs.h <<_ACEOF
39456 #define $ac_tr_func 1
39459 { echo "$as_me:$LINENO: result: yes" >&5
39460 echo "${ECHO_T}yes" >&6; }
39463 eval "ac_cv_func_crypt=no"
39465 { echo "$as_me:$LINENO: result: no" >&5
39466 echo "${ECHO_T}no" >&6; }
39469 eval "ac_cv_func_crypt=yes"
39470 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
39471 cat >>confdefs.h <<_ACEOF
39472 #define $ac_tr_func 1
39475 cat >>confdefs.h <<_ACEOF
39476 #define $ac_tr_lib 1
39479 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
39480 echo "${ECHO_T}yes, in $ac_res" >&6; }
39489 { echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
39490 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6; }
39491 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
39492 echo $ECHO_N "(cached) $ECHO_C" >&6
39494 cat >conftest.$ac_ext <<_ACEOF
39497 cat confdefs.h >>conftest.$ac_ext
39498 cat >>conftest.$ac_ext <<_ACEOF
39499 /* end confdefs.h. */
39501 #ifdef HAVE_SYS_TYPES_H
39502 #include <sys/types.h>
39504 #ifdef HAVE_SYS_SOCKET_H
39505 #include <sys/socket.h>
39507 #ifdef HAVE_NETINET_IN_H
39508 #include <netinet/in.h>
39510 #ifdef HAVE_ARPA_INET_H
39511 #include <arpa/inet.h>
39513 #ifdef HAVE_NETDB_H
39520 struct hostent *gethostbyname(const char *)
39525 rm -f conftest.$ac_objext
39526 if { (ac_try="$ac_compile"
39527 case "(($ac_try" in
39528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39529 *) ac_try_echo=$ac_try;;
39531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39532 (eval "$ac_compile") 2>conftest.er1
39534 grep -v '^ *+' conftest.er1 >conftest.err
39536 cat conftest.err >&5
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); } && {
39539 test -z "$ac_c_werror_flag" ||
39540 test ! -s conftest.err
39541 } && test -s conftest.$ac_objext; then
39542 eval "ac_cv_func_gethostbyname_proto_compat=yes"
39544 echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39547 eval "ac_cv_func_gethostbyname_proto_compat=no"
39550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39552 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
39553 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6; }
39555 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
39557 cat >>confdefs.h <<\_ACEOF
39558 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
39566 { echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
39567 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6; }
39568 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
39569 echo $ECHO_N "(cached) $ECHO_C" >&6
39571 cat >conftest.$ac_ext <<_ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39578 #ifdef HAVE_SYS_TYPES_H
39579 #include <sys/types.h>
39581 #ifdef HAVE_SYS_SOCKET_H
39582 #include <sys/socket.h>
39584 #ifdef HAVE_NETINET_IN_H
39585 #include <netinet/in.h>
39587 #ifdef HAVE_ARPA_INET_H
39588 #include <arpa/inet.h>
39590 #ifdef HAVE_NETDB_H
39597 struct hostent *gethostbyaddr(const void *, size_t, int)
39602 rm -f conftest.$ac_objext
39603 if { (ac_try="$ac_compile"
39604 case "(($ac_try" in
39605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606 *) ac_try_echo=$ac_try;;
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609 (eval "$ac_compile") 2>conftest.er1
39611 grep -v '^ *+' conftest.er1 >conftest.err
39613 cat conftest.err >&5
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); } && {
39616 test -z "$ac_c_werror_flag" ||
39617 test ! -s conftest.err
39618 } && test -s conftest.$ac_objext; then
39619 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
39621 echo "$as_me: failed program was:" >&5
39622 sed 's/^/| /' conftest.$ac_ext >&5
39624 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
39627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39629 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
39630 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6; }
39632 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
39634 cat >>confdefs.h <<\_ACEOF
39635 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
39643 { echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
39644 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6; }
39645 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
39646 echo $ECHO_N "(cached) $ECHO_C" >&6
39648 cat >conftest.$ac_ext <<_ACEOF
39651 cat confdefs.h >>conftest.$ac_ext
39652 cat >>conftest.$ac_ext <<_ACEOF
39653 /* end confdefs.h. */
39655 #ifdef HAVE_SYS_TYPES_H
39656 #include <sys/types.h>
39658 #ifdef HAVE_SYS_SOCKET_H
39659 #include <sys/socket.h>
39661 #ifdef HAVE_NETINET_IN_H
39662 #include <netinet/in.h>
39664 #ifdef HAVE_ARPA_INET_H
39665 #include <arpa/inet.h>
39667 #ifdef HAVE_NETDB_H
39674 struct servent *getservbyname(const char *, const char *)
39679 rm -f conftest.$ac_objext
39680 if { (ac_try="$ac_compile"
39681 case "(($ac_try" in
39682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39683 *) ac_try_echo=$ac_try;;
39685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39686 (eval "$ac_compile") 2>conftest.er1
39688 grep -v '^ *+' conftest.er1 >conftest.err
39690 cat conftest.err >&5
39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692 (exit $ac_status); } && {
39693 test -z "$ac_c_werror_flag" ||
39694 test ! -s conftest.err
39695 } && test -s conftest.$ac_objext; then
39696 eval "ac_cv_func_getservbyname_proto_compat=yes"
39698 echo "$as_me: failed program was:" >&5
39699 sed 's/^/| /' conftest.$ac_ext >&5
39701 eval "ac_cv_func_getservbyname_proto_compat=no"
39704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39706 { echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
39707 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6; }
39709 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
39711 cat >>confdefs.h <<\_ACEOF
39712 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
39720 { echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
39721 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
39723 echo $ECHO_N "(cached) $ECHO_C" >&6
39725 cat >conftest.$ac_ext <<_ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h. */
39732 #ifdef HAVE_SYS_TYPES_H
39733 #include <sys/types.h>
39735 #ifdef HAVE_SYS_SOCKET_H
39736 #include <sys/socket.h>
39742 int getsockname(int, struct sockaddr*, socklen_t*)
39747 rm -f conftest.$ac_objext
39748 if { (ac_try="$ac_compile"
39749 case "(($ac_try" in
39750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39751 *) ac_try_echo=$ac_try;;
39753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39754 (eval "$ac_compile") 2>conftest.er1
39756 grep -v '^ *+' conftest.er1 >conftest.err
39758 cat conftest.err >&5
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); } && {
39761 test -z "$ac_c_werror_flag" ||
39762 test ! -s conftest.err
39763 } && test -s conftest.$ac_objext; then
39764 eval "ac_cv_func_getsockname_proto_compat=yes"
39766 echo "$as_me: failed program was:" >&5
39767 sed 's/^/| /' conftest.$ac_ext >&5
39769 eval "ac_cv_func_getsockname_proto_compat=no"
39772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39774 { echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
39775 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6; }
39777 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
39779 cat >>confdefs.h <<\_ACEOF
39780 #define GETSOCKNAME_PROTO_COMPATIBLE 1
39788 { echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
39789 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6; }
39790 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
39791 echo $ECHO_N "(cached) $ECHO_C" >&6
39793 cat >conftest.$ac_ext <<_ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h. */
39800 #ifdef HAVE_SYSLOG_H
39801 #include <syslog.h>
39807 void openlog(const char *, int, int)
39812 rm -f conftest.$ac_objext
39813 if { (ac_try="$ac_compile"
39814 case "(($ac_try" in
39815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39816 *) ac_try_echo=$ac_try;;
39818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39819 (eval "$ac_compile") 2>conftest.er1
39821 grep -v '^ *+' conftest.er1 >conftest.err
39823 cat conftest.err >&5
39824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825 (exit $ac_status); } && {
39826 test -z "$ac_c_werror_flag" ||
39827 test ! -s conftest.err
39828 } && test -s conftest.$ac_objext; then
39829 eval "ac_cv_func_openlog_proto_compat=yes"
39831 echo "$as_me: failed program was:" >&5
39832 sed 's/^/| /' conftest.$ac_ext >&5
39834 eval "ac_cv_func_openlog_proto_compat=no"
39837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39839 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
39840 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6; }
39842 if test "$ac_cv_func_openlog_proto_compat" = yes; then
39844 cat >>confdefs.h <<\_ACEOF
39845 #define OPENLOG_PROTO_COMPATIBLE 1
39853 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
39854 { echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
39855 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6; }
39856 if test "${ac_cv_func_crypt_noproto+set}" = set; then
39857 echo $ECHO_N "(cached) $ECHO_C" >&6
39859 cat >conftest.$ac_ext <<_ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h. */
39866 #ifdef HAVE_CRYPT_H
39869 #ifdef HAVE_UNISTD_H
39870 #include <unistd.h>
39873 struct foo { int foo; } xx;
39874 extern int crypt (struct foo*);
39883 rm -f conftest.$ac_objext
39884 if { (ac_try="$ac_compile"
39885 case "(($ac_try" in
39886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39887 *) ac_try_echo=$ac_try;;
39889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39890 (eval "$ac_compile") 2>conftest.er1
39892 grep -v '^ *+' conftest.er1 >conftest.err
39894 cat conftest.err >&5
39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39896 (exit $ac_status); } && {
39897 test -z "$ac_c_werror_flag" ||
39898 test ! -s conftest.err
39899 } && test -s conftest.$ac_objext; then
39900 eval "ac_cv_func_crypt_noproto=yes"
39902 echo "$as_me: failed program was:" >&5
39903 sed 's/^/| /' conftest.$ac_ext >&5
39905 eval "ac_cv_func_crypt_noproto=no"
39908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39910 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
39911 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6; }
39912 if test "$ac_cv_func_crypt_noproto" = yes; then
39914 cat >>confdefs.h <<\_ACEOF
39915 #define NEED_CRYPT_PROTO 1
39924 { echo "$as_me:$LINENO: checking for h_errno" >&5
39925 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
39926 if test "${ac_cv_var_h_errno+set}" = set; then
39927 echo $ECHO_N "(cached) $ECHO_C" >&6
39931 cat >conftest.$ac_ext <<_ACEOF
39934 cat confdefs.h >>conftest.$ac_ext
39935 cat >>conftest.$ac_ext <<_ACEOF
39936 /* end confdefs.h. */
39937 #ifdef HAVE_SYS_TYPES_H
39938 #include <sys/types.h>
39940 #ifdef HAVE_NETDB_H
39943 void * foo(void) { return &h_errno; }
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (ac_try="$ac_link"
39954 case "(($ac_try" in
39955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39956 *) ac_try_echo=$ac_try;;
39958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39959 (eval "$ac_link") 2>conftest.er1
39961 grep -v '^ *+' conftest.er1 >conftest.err
39963 cat conftest.err >&5
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); } && {
39966 test -z "$ac_c_werror_flag" ||
39967 test ! -s conftest.err
39968 } && test -s conftest$ac_exeext &&
39969 $as_test_x conftest$ac_exeext; then
39970 ac_cv_var_h_errno=yes
39972 echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39975 ac_cv_var_h_errno=no
39978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39979 conftest$ac_exeext conftest.$ac_ext
39980 if test "$ac_cv_var_h_errno" != yes ; then
39981 cat >conftest.$ac_ext <<_ACEOF
39984 cat confdefs.h >>conftest.$ac_ext
39985 cat >>conftest.$ac_ext <<_ACEOF
39986 /* end confdefs.h. */
39987 extern int h_errno;
39988 int foo(void) { return h_errno; }
39997 rm -f conftest.$ac_objext conftest$ac_exeext
39998 if { (ac_try="$ac_link"
39999 case "(($ac_try" in
40000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40001 *) ac_try_echo=$ac_try;;
40003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40004 (eval "$ac_link") 2>conftest.er1
40006 grep -v '^ *+' conftest.er1 >conftest.err
40008 cat conftest.err >&5
40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); } && {
40011 test -z "$ac_c_werror_flag" ||
40012 test ! -s conftest.err
40013 } && test -s conftest$ac_exeext &&
40014 $as_test_x conftest$ac_exeext; then
40015 ac_cv_var_h_errno=yes
40017 echo "$as_me: failed program was:" >&5
40018 sed 's/^/| /' conftest.$ac_ext >&5
40020 ac_cv_var_h_errno=no
40023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40024 conftest$ac_exeext conftest.$ac_ext
40029 ac_foo=`eval echo \\$ac_cv_var_h_errno`
40030 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40031 echo "${ECHO_T}$ac_foo" >&6; }
40032 if test "$ac_foo" = yes; then
40034 cat >>confdefs.h <<_ACEOF
40035 #define HAVE_H_ERRNO 1
40038 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
40039 echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
40040 if test "${ac_cv_have_decl_h_errno+set}" = set; then
40041 echo $ECHO_N "(cached) $ECHO_C" >&6
40043 cat >conftest.$ac_ext <<_ACEOF
40046 cat confdefs.h >>conftest.$ac_ext
40047 cat >>conftest.$ac_ext <<_ACEOF
40048 /* end confdefs.h. */
40049 #ifdef HAVE_SYS_TYPES_H
40050 #include <sys/types.h>
40052 #ifdef HAVE_NETDB_H
40067 rm -f conftest.$ac_objext
40068 if { (ac_try="$ac_compile"
40069 case "(($ac_try" in
40070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40071 *) ac_try_echo=$ac_try;;
40073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40074 (eval "$ac_compile") 2>conftest.er1
40076 grep -v '^ *+' conftest.er1 >conftest.err
40078 cat conftest.err >&5
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } && {
40081 test -z "$ac_c_werror_flag" ||
40082 test ! -s conftest.err
40083 } && test -s conftest.$ac_objext; then
40084 ac_cv_have_decl_h_errno=yes
40086 echo "$as_me: failed program was:" >&5
40087 sed 's/^/| /' conftest.$ac_ext >&5
40089 ac_cv_have_decl_h_errno=no
40092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40094 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
40095 echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
40096 if test $ac_cv_have_decl_h_errno = yes; then
40098 cat >>confdefs.h <<_ACEOF
40099 #define HAVE_DECL_H_ERRNO 1
40104 cat >>confdefs.h <<_ACEOF
40105 #define HAVE_DECL_H_ERRNO 0
40116 { echo "$as_me:$LINENO: checking for h_errlist" >&5
40117 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6; }
40118 if test "${ac_cv_var_h_errlist+set}" = set; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40123 cat >conftest.$ac_ext <<_ACEOF
40126 cat confdefs.h >>conftest.$ac_ext
40127 cat >>conftest.$ac_ext <<_ACEOF
40128 /* end confdefs.h. */
40129 #ifdef HAVE_NETDB_H
40132 void * foo(void) { return &h_errlist; }
40141 rm -f conftest.$ac_objext conftest$ac_exeext
40142 if { (ac_try="$ac_link"
40143 case "(($ac_try" in
40144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40145 *) ac_try_echo=$ac_try;;
40147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40148 (eval "$ac_link") 2>conftest.er1
40150 grep -v '^ *+' conftest.er1 >conftest.err
40152 cat conftest.err >&5
40153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154 (exit $ac_status); } && {
40155 test -z "$ac_c_werror_flag" ||
40156 test ! -s conftest.err
40157 } && test -s conftest$ac_exeext &&
40158 $as_test_x conftest$ac_exeext; then
40159 ac_cv_var_h_errlist=yes
40161 echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40164 ac_cv_var_h_errlist=no
40167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40168 conftest$ac_exeext conftest.$ac_ext
40169 if test "$ac_cv_var_h_errlist" != yes ; then
40170 cat >conftest.$ac_ext <<_ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h. */
40176 extern int h_errlist;
40177 int foo(void) { return h_errlist; }
40186 rm -f conftest.$ac_objext conftest$ac_exeext
40187 if { (ac_try="$ac_link"
40188 case "(($ac_try" in
40189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40190 *) ac_try_echo=$ac_try;;
40192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40193 (eval "$ac_link") 2>conftest.er1
40195 grep -v '^ *+' conftest.er1 >conftest.err
40197 cat conftest.err >&5
40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199 (exit $ac_status); } && {
40200 test -z "$ac_c_werror_flag" ||
40201 test ! -s conftest.err
40202 } && test -s conftest$ac_exeext &&
40203 $as_test_x conftest$ac_exeext; then
40204 ac_cv_var_h_errlist=yes
40206 echo "$as_me: failed program was:" >&5
40207 sed 's/^/| /' conftest.$ac_ext >&5
40209 ac_cv_var_h_errlist=no
40212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40213 conftest$ac_exeext conftest.$ac_ext
40218 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
40219 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40220 echo "${ECHO_T}$ac_foo" >&6; }
40221 if test "$ac_foo" = yes; then
40223 cat >>confdefs.h <<_ACEOF
40224 #define HAVE_H_ERRLIST 1
40227 { echo "$as_me:$LINENO: checking whether h_errlist is declared" >&5
40228 echo $ECHO_N "checking whether h_errlist is declared... $ECHO_C" >&6; }
40229 if test "${ac_cv_have_decl_h_errlist+set}" = set; then
40230 echo $ECHO_N "(cached) $ECHO_C" >&6
40232 cat >conftest.$ac_ext <<_ACEOF
40235 cat confdefs.h >>conftest.$ac_ext
40236 cat >>conftest.$ac_ext <<_ACEOF
40237 /* end confdefs.h. */
40238 #ifdef HAVE_NETDB_H
40253 rm -f conftest.$ac_objext
40254 if { (ac_try="$ac_compile"
40255 case "(($ac_try" in
40256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257 *) ac_try_echo=$ac_try;;
40259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40260 (eval "$ac_compile") 2>conftest.er1
40262 grep -v '^ *+' conftest.er1 >conftest.err
40264 cat conftest.err >&5
40265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266 (exit $ac_status); } && {
40267 test -z "$ac_c_werror_flag" ||
40268 test ! -s conftest.err
40269 } && test -s conftest.$ac_objext; then
40270 ac_cv_have_decl_h_errlist=yes
40272 echo "$as_me: failed program was:" >&5
40273 sed 's/^/| /' conftest.$ac_ext >&5
40275 ac_cv_have_decl_h_errlist=no
40278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40280 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errlist" >&5
40281 echo "${ECHO_T}$ac_cv_have_decl_h_errlist" >&6; }
40282 if test $ac_cv_have_decl_h_errlist = yes; then
40284 cat >>confdefs.h <<_ACEOF
40285 #define HAVE_DECL_H_ERRLIST 1
40290 cat >>confdefs.h <<_ACEOF
40291 #define HAVE_DECL_H_ERRLIST 0
40302 { echo "$as_me:$LINENO: checking for h_nerr" >&5
40303 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6; }
40304 if test "${ac_cv_var_h_nerr+set}" = set; then
40305 echo $ECHO_N "(cached) $ECHO_C" >&6
40309 cat >conftest.$ac_ext <<_ACEOF
40312 cat confdefs.h >>conftest.$ac_ext
40313 cat >>conftest.$ac_ext <<_ACEOF
40314 /* end confdefs.h. */
40315 #ifdef HAVE_NETDB_H
40318 void * foo(void) { return &h_nerr; }
40327 rm -f conftest.$ac_objext conftest$ac_exeext
40328 if { (ac_try="$ac_link"
40329 case "(($ac_try" in
40330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40331 *) ac_try_echo=$ac_try;;
40333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40334 (eval "$ac_link") 2>conftest.er1
40336 grep -v '^ *+' conftest.er1 >conftest.err
40338 cat conftest.err >&5
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); } && {
40341 test -z "$ac_c_werror_flag" ||
40342 test ! -s conftest.err
40343 } && test -s conftest$ac_exeext &&
40344 $as_test_x conftest$ac_exeext; then
40345 ac_cv_var_h_nerr=yes
40347 echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40350 ac_cv_var_h_nerr=no
40353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40354 conftest$ac_exeext conftest.$ac_ext
40355 if test "$ac_cv_var_h_nerr" != yes ; then
40356 cat >conftest.$ac_ext <<_ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h. */
40363 int foo(void) { return h_nerr; }
40372 rm -f conftest.$ac_objext conftest$ac_exeext
40373 if { (ac_try="$ac_link"
40374 case "(($ac_try" in
40375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40376 *) ac_try_echo=$ac_try;;
40378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40379 (eval "$ac_link") 2>conftest.er1
40381 grep -v '^ *+' conftest.er1 >conftest.err
40383 cat conftest.err >&5
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); } && {
40386 test -z "$ac_c_werror_flag" ||
40387 test ! -s conftest.err
40388 } && test -s conftest$ac_exeext &&
40389 $as_test_x conftest$ac_exeext; then
40390 ac_cv_var_h_nerr=yes
40392 echo "$as_me: failed program was:" >&5
40393 sed 's/^/| /' conftest.$ac_ext >&5
40395 ac_cv_var_h_nerr=no
40398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40399 conftest$ac_exeext conftest.$ac_ext
40404 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
40405 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40406 echo "${ECHO_T}$ac_foo" >&6; }
40407 if test "$ac_foo" = yes; then
40409 cat >>confdefs.h <<_ACEOF
40410 #define HAVE_H_NERR 1
40413 { echo "$as_me:$LINENO: checking whether h_nerr is declared" >&5
40414 echo $ECHO_N "checking whether h_nerr is declared... $ECHO_C" >&6; }
40415 if test "${ac_cv_have_decl_h_nerr+set}" = set; then
40416 echo $ECHO_N "(cached) $ECHO_C" >&6
40418 cat >conftest.$ac_ext <<_ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h. */
40424 #ifdef HAVE_NETDB_H
40439 rm -f conftest.$ac_objext
40440 if { (ac_try="$ac_compile"
40441 case "(($ac_try" in
40442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40443 *) ac_try_echo=$ac_try;;
40445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40446 (eval "$ac_compile") 2>conftest.er1
40448 grep -v '^ *+' conftest.er1 >conftest.err
40450 cat conftest.err >&5
40451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452 (exit $ac_status); } && {
40453 test -z "$ac_c_werror_flag" ||
40454 test ! -s conftest.err
40455 } && test -s conftest.$ac_objext; then
40456 ac_cv_have_decl_h_nerr=yes
40458 echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40461 ac_cv_have_decl_h_nerr=no
40464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40466 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_nerr" >&5
40467 echo "${ECHO_T}$ac_cv_have_decl_h_nerr" >&6; }
40468 if test $ac_cv_have_decl_h_nerr = yes; then
40470 cat >>confdefs.h <<_ACEOF
40471 #define HAVE_DECL_H_NERR 1
40476 cat >>confdefs.h <<_ACEOF
40477 #define HAVE_DECL_H_NERR 0
40488 { echo "$as_me:$LINENO: checking for __progname" >&5
40489 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
40490 if test "${ac_cv_var___progname+set}" = set; then
40491 echo $ECHO_N "(cached) $ECHO_C" >&6
40495 cat >conftest.$ac_ext <<_ACEOF
40498 cat confdefs.h >>conftest.$ac_ext
40499 cat >>conftest.$ac_ext <<_ACEOF
40500 /* end confdefs.h. */
40504 void * foo(void) { return &__progname; }
40513 rm -f conftest.$ac_objext conftest$ac_exeext
40514 if { (ac_try="$ac_link"
40515 case "(($ac_try" in
40516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40517 *) ac_try_echo=$ac_try;;
40519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40520 (eval "$ac_link") 2>conftest.er1
40522 grep -v '^ *+' conftest.er1 >conftest.err
40524 cat conftest.err >&5
40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526 (exit $ac_status); } && {
40527 test -z "$ac_c_werror_flag" ||
40528 test ! -s conftest.err
40529 } && test -s conftest$ac_exeext &&
40530 $as_test_x conftest$ac_exeext; then
40531 ac_cv_var___progname=yes
40533 echo "$as_me: failed program was:" >&5
40534 sed 's/^/| /' conftest.$ac_ext >&5
40536 ac_cv_var___progname=no
40539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40540 conftest$ac_exeext conftest.$ac_ext
40541 if test "$ac_cv_var___progname" != yes ; then
40542 cat >conftest.$ac_ext <<_ACEOF
40545 cat confdefs.h >>conftest.$ac_ext
40546 cat >>conftest.$ac_ext <<_ACEOF
40547 /* end confdefs.h. */
40548 extern int __progname;
40549 int foo(void) { return __progname; }
40558 rm -f conftest.$ac_objext conftest$ac_exeext
40559 if { (ac_try="$ac_link"
40560 case "(($ac_try" in
40561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40562 *) ac_try_echo=$ac_try;;
40564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40565 (eval "$ac_link") 2>conftest.er1
40567 grep -v '^ *+' conftest.er1 >conftest.err
40569 cat conftest.err >&5
40570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40571 (exit $ac_status); } && {
40572 test -z "$ac_c_werror_flag" ||
40573 test ! -s conftest.err
40574 } && test -s conftest$ac_exeext &&
40575 $as_test_x conftest$ac_exeext; then
40576 ac_cv_var___progname=yes
40578 echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40581 ac_cv_var___progname=no
40584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40585 conftest$ac_exeext conftest.$ac_ext
40590 ac_foo=`eval echo \\$ac_cv_var___progname`
40591 { echo "$as_me:$LINENO: result: $ac_foo" >&5
40592 echo "${ECHO_T}$ac_foo" >&6; }
40593 if test "$ac_foo" = yes; then
40595 cat >>confdefs.h <<_ACEOF
40596 #define HAVE___PROGNAME 1
40599 { echo "$as_me:$LINENO: checking whether __progname is declared" >&5
40600 echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6; }
40601 if test "${ac_cv_have_decl___progname+set}" = set; then
40602 echo $ECHO_N "(cached) $ECHO_C" >&6
40604 cat >conftest.$ac_ext <<_ACEOF
40607 cat confdefs.h >>conftest.$ac_ext
40608 cat >>conftest.$ac_ext <<_ACEOF
40609 /* end confdefs.h. */
40625 rm -f conftest.$ac_objext
40626 if { (ac_try="$ac_compile"
40627 case "(($ac_try" in
40628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40629 *) ac_try_echo=$ac_try;;
40631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40632 (eval "$ac_compile") 2>conftest.er1
40634 grep -v '^ *+' conftest.er1 >conftest.err
40636 cat conftest.err >&5
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); } && {
40639 test -z "$ac_c_werror_flag" ||
40640 test ! -s conftest.err
40641 } && test -s conftest.$ac_objext; then
40642 ac_cv_have_decl___progname=yes
40644 echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40647 ac_cv_have_decl___progname=no
40650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40652 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5
40653 echo "${ECHO_T}$ac_cv_have_decl___progname" >&6; }
40654 if test $ac_cv_have_decl___progname = yes; then
40656 cat >>confdefs.h <<_ACEOF
40657 #define HAVE_DECL___PROGNAME 1
40662 cat >>confdefs.h <<_ACEOF
40663 #define HAVE_DECL___PROGNAME 0
40673 { echo "$as_me:$LINENO: checking whether optarg is declared" >&5
40674 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; }
40675 if test "${ac_cv_have_decl_optarg+set}" = set; then
40676 echo $ECHO_N "(cached) $ECHO_C" >&6
40678 cat >conftest.$ac_ext <<_ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h. */
40684 $ac_includes_default
40696 rm -f conftest.$ac_objext
40697 if { (ac_try="$ac_compile"
40698 case "(($ac_try" in
40699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40700 *) ac_try_echo=$ac_try;;
40702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40703 (eval "$ac_compile") 2>conftest.er1
40705 grep -v '^ *+' conftest.er1 >conftest.err
40707 cat conftest.err >&5
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); } && {
40710 test -z "$ac_c_werror_flag" ||
40711 test ! -s conftest.err
40712 } && test -s conftest.$ac_objext; then
40713 ac_cv_have_decl_optarg=yes
40715 echo "$as_me: failed program was:" >&5
40716 sed 's/^/| /' conftest.$ac_ext >&5
40718 ac_cv_have_decl_optarg=no
40721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40723 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
40724 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; }
40725 if test $ac_cv_have_decl_optarg = yes; then
40727 cat >>confdefs.h <<_ACEOF
40728 #define HAVE_DECL_OPTARG 1
40733 cat >>confdefs.h <<_ACEOF
40734 #define HAVE_DECL_OPTARG 0
40738 #include <stdlib.h>
40739 #ifdef HAVE_UNISTD_H
40740 #include <unistd.h>
40743 { echo "$as_me:$LINENO: checking whether optind is declared" >&5
40744 echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; }
40745 if test "${ac_cv_have_decl_optind+set}" = set; then
40746 echo $ECHO_N "(cached) $ECHO_C" >&6
40748 cat >conftest.$ac_ext <<_ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h. */
40754 $ac_includes_default
40766 rm -f conftest.$ac_objext
40767 if { (ac_try="$ac_compile"
40768 case "(($ac_try" in
40769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40770 *) ac_try_echo=$ac_try;;
40772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40773 (eval "$ac_compile") 2>conftest.er1
40775 grep -v '^ *+' conftest.er1 >conftest.err
40777 cat conftest.err >&5
40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779 (exit $ac_status); } && {
40780 test -z "$ac_c_werror_flag" ||
40781 test ! -s conftest.err
40782 } && test -s conftest.$ac_objext; then
40783 ac_cv_have_decl_optind=yes
40785 echo "$as_me: failed program was:" >&5
40786 sed 's/^/| /' conftest.$ac_ext >&5
40788 ac_cv_have_decl_optind=no
40791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40793 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5
40794 echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; }
40795 if test $ac_cv_have_decl_optind = yes; then
40797 cat >>confdefs.h <<_ACEOF
40798 #define HAVE_DECL_OPTIND 1
40803 cat >>confdefs.h <<_ACEOF
40804 #define HAVE_DECL_OPTIND 0
40808 #include <stdlib.h>
40809 #ifdef HAVE_UNISTD_H
40810 #include <unistd.h>
40813 { echo "$as_me:$LINENO: checking whether opterr is declared" >&5
40814 echo $ECHO_N "checking whether opterr is declared... $ECHO_C" >&6; }
40815 if test "${ac_cv_have_decl_opterr+set}" = set; then
40816 echo $ECHO_N "(cached) $ECHO_C" >&6
40818 cat >conftest.$ac_ext <<_ACEOF
40821 cat confdefs.h >>conftest.$ac_ext
40822 cat >>conftest.$ac_ext <<_ACEOF
40823 /* end confdefs.h. */
40824 $ac_includes_default
40836 rm -f conftest.$ac_objext
40837 if { (ac_try="$ac_compile"
40838 case "(($ac_try" in
40839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40840 *) ac_try_echo=$ac_try;;
40842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40843 (eval "$ac_compile") 2>conftest.er1
40845 grep -v '^ *+' conftest.er1 >conftest.err
40847 cat conftest.err >&5
40848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849 (exit $ac_status); } && {
40850 test -z "$ac_c_werror_flag" ||
40851 test ! -s conftest.err
40852 } && test -s conftest.$ac_objext; then
40853 ac_cv_have_decl_opterr=yes
40855 echo "$as_me: failed program was:" >&5
40856 sed 's/^/| /' conftest.$ac_ext >&5
40858 ac_cv_have_decl_opterr=no
40861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40863 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_opterr" >&5
40864 echo "${ECHO_T}$ac_cv_have_decl_opterr" >&6; }
40865 if test $ac_cv_have_decl_opterr = yes; then
40867 cat >>confdefs.h <<_ACEOF
40868 #define HAVE_DECL_OPTERR 1
40873 cat >>confdefs.h <<_ACEOF
40874 #define HAVE_DECL_OPTERR 0
40878 #include <stdlib.h>
40879 #ifdef HAVE_UNISTD_H
40880 #include <unistd.h>
40883 { echo "$as_me:$LINENO: checking whether optopt is declared" >&5
40884 echo $ECHO_N "checking whether optopt is declared... $ECHO_C" >&6; }
40885 if test "${ac_cv_have_decl_optopt+set}" = set; then
40886 echo $ECHO_N "(cached) $ECHO_C" >&6
40888 cat >conftest.$ac_ext <<_ACEOF
40891 cat confdefs.h >>conftest.$ac_ext
40892 cat >>conftest.$ac_ext <<_ACEOF
40893 /* end confdefs.h. */
40894 $ac_includes_default
40906 rm -f conftest.$ac_objext
40907 if { (ac_try="$ac_compile"
40908 case "(($ac_try" in
40909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40910 *) ac_try_echo=$ac_try;;
40912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40913 (eval "$ac_compile") 2>conftest.er1
40915 grep -v '^ *+' conftest.er1 >conftest.err
40917 cat conftest.err >&5
40918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919 (exit $ac_status); } && {
40920 test -z "$ac_c_werror_flag" ||
40921 test ! -s conftest.err
40922 } && test -s conftest.$ac_objext; then
40923 ac_cv_have_decl_optopt=yes
40925 echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40928 ac_cv_have_decl_optopt=no
40931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optopt" >&5
40934 echo "${ECHO_T}$ac_cv_have_decl_optopt" >&6; }
40935 if test $ac_cv_have_decl_optopt = yes; then
40937 cat >>confdefs.h <<_ACEOF
40938 #define HAVE_DECL_OPTOPT 1
40943 cat >>confdefs.h <<_ACEOF
40944 #define HAVE_DECL_OPTOPT 0
40948 #include <stdlib.h>
40949 #ifdef HAVE_UNISTD_H
40950 #include <unistd.h>
40953 { echo "$as_me:$LINENO: checking whether environ is declared" >&5
40954 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; }
40955 if test "${ac_cv_have_decl_environ+set}" = set; then
40956 echo $ECHO_N "(cached) $ECHO_C" >&6
40958 cat >conftest.$ac_ext <<_ACEOF
40961 cat confdefs.h >>conftest.$ac_ext
40962 cat >>conftest.$ac_ext <<_ACEOF
40963 /* end confdefs.h. */
40964 $ac_includes_default
40976 rm -f conftest.$ac_objext
40977 if { (ac_try="$ac_compile"
40978 case "(($ac_try" in
40979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40980 *) ac_try_echo=$ac_try;;
40982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40983 (eval "$ac_compile") 2>conftest.er1
40985 grep -v '^ *+' conftest.er1 >conftest.err
40987 cat conftest.err >&5
40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989 (exit $ac_status); } && {
40990 test -z "$ac_c_werror_flag" ||
40991 test ! -s conftest.err
40992 } && test -s conftest.$ac_objext; then
40993 ac_cv_have_decl_environ=yes
40995 echo "$as_me: failed program was:" >&5
40996 sed 's/^/| /' conftest.$ac_ext >&5
40998 ac_cv_have_decl_environ=no
41001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
41004 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; }
41005 if test $ac_cv_have_decl_environ = yes; then
41007 cat >>confdefs.h <<_ACEOF
41008 #define HAVE_DECL_ENVIRON 1
41013 cat >>confdefs.h <<_ACEOF
41014 #define HAVE_DECL_ENVIRON 0
41018 #include <stdlib.h>
41019 #ifdef HAVE_UNISTD_H
41020 #include <unistd.h>
41029 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41030 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
41031 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
41032 echo $ECHO_N "(cached) $ECHO_C" >&6
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41045 struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff
41050 rm -f conftest.$ac_objext
41051 if { (ac_try="$ac_compile"
41052 case "(($ac_try" in
41053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41054 *) ac_try_echo=$ac_try;;
41056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41057 (eval "$ac_compile") 2>conftest.er1
41059 grep -v '^ *+' conftest.er1 >conftest.err
41061 cat conftest.err >&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); } && {
41064 test -z "$ac_c_werror_flag" ||
41065 test ! -s conftest.err
41066 } && test -s conftest.$ac_objext; then
41067 ac_cv_type_struct_tm_tm_gmtoff=yes
41069 echo "$as_me: failed program was:" >&5
41070 sed 's/^/| /' conftest.$ac_ext >&5
41072 ac_cv_type_struct_tm_tm_gmtoff=no
41075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41078 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
41079 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6; }
41080 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
41083 cat >>confdefs.h <<\_ACEOF
41084 #define HAVE_STRUCT_TM_TM_GMTOFF 1
41093 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
41094 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
41095 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
41096 echo $ECHO_N "(cached) $ECHO_C" >&6
41099 cat >conftest.$ac_ext <<_ACEOF
41102 cat confdefs.h >>conftest.$ac_ext
41103 cat >>conftest.$ac_ext <<_ACEOF
41104 /* end confdefs.h. */
41109 struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone
41114 rm -f conftest.$ac_objext
41115 if { (ac_try="$ac_compile"
41116 case "(($ac_try" in
41117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41118 *) ac_try_echo=$ac_try;;
41120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41121 (eval "$ac_compile") 2>conftest.er1
41123 grep -v '^ *+' conftest.er1 >conftest.err
41125 cat conftest.err >&5
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); } && {
41128 test -z "$ac_c_werror_flag" ||
41129 test ! -s conftest.err
41130 } && test -s conftest.$ac_objext; then
41131 ac_cv_type_struct_tm_tm_zone=yes
41133 echo "$as_me: failed program was:" >&5
41134 sed 's/^/| /' conftest.$ac_ext >&5
41136 ac_cv_type_struct_tm_tm_zone=no
41139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41142 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
41143 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6; }
41144 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
41147 cat >>confdefs.h <<\_ACEOF
41148 #define HAVE_STRUCT_TM_TM_ZONE 1
41158 { echo "$as_me:$LINENO: checking for timezone" >&5
41159 echo $ECHO_N "checking for timezone... $ECHO_C" >&6; }
41160 if test "${ac_cv_var_timezone+set}" = set; then
41161 echo $ECHO_N "(cached) $ECHO_C" >&6
41165 cat >conftest.$ac_ext <<_ACEOF
41168 cat confdefs.h >>conftest.$ac_ext
41169 cat >>conftest.$ac_ext <<_ACEOF
41170 /* end confdefs.h. */
41172 void * foo(void) { return &timezone; }
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (ac_try="$ac_link"
41183 case "(($ac_try" in
41184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41185 *) ac_try_echo=$ac_try;;
41187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41188 (eval "$ac_link") 2>conftest.er1
41190 grep -v '^ *+' conftest.er1 >conftest.err
41192 cat conftest.err >&5
41193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194 (exit $ac_status); } && {
41195 test -z "$ac_c_werror_flag" ||
41196 test ! -s conftest.err
41197 } && test -s conftest$ac_exeext &&
41198 $as_test_x conftest$ac_exeext; then
41199 ac_cv_var_timezone=yes
41201 echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41204 ac_cv_var_timezone=no
41207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41208 conftest$ac_exeext conftest.$ac_ext
41209 if test "$ac_cv_var_timezone" != yes ; then
41210 cat >conftest.$ac_ext <<_ACEOF
41213 cat confdefs.h >>conftest.$ac_ext
41214 cat >>conftest.$ac_ext <<_ACEOF
41215 /* end confdefs.h. */
41216 extern int timezone;
41217 int foo(void) { return timezone; }
41226 rm -f conftest.$ac_objext conftest$ac_exeext
41227 if { (ac_try="$ac_link"
41228 case "(($ac_try" in
41229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41230 *) ac_try_echo=$ac_try;;
41232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41233 (eval "$ac_link") 2>conftest.er1
41235 grep -v '^ *+' conftest.er1 >conftest.err
41237 cat conftest.err >&5
41238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239 (exit $ac_status); } && {
41240 test -z "$ac_c_werror_flag" ||
41241 test ! -s conftest.err
41242 } && test -s conftest$ac_exeext &&
41243 $as_test_x conftest$ac_exeext; then
41244 ac_cv_var_timezone=yes
41246 echo "$as_me: failed program was:" >&5
41247 sed 's/^/| /' conftest.$ac_ext >&5
41249 ac_cv_var_timezone=no
41252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41253 conftest$ac_exeext conftest.$ac_ext
41258 ac_foo=`eval echo \\$ac_cv_var_timezone`
41259 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41260 echo "${ECHO_T}$ac_foo" >&6; }
41261 if test "$ac_foo" = yes; then
41263 cat >>confdefs.h <<_ACEOF
41264 #define HAVE_TIMEZONE 1
41267 { echo "$as_me:$LINENO: checking whether timezone is declared" >&5
41268 echo $ECHO_N "checking whether timezone is declared... $ECHO_C" >&6; }
41269 if test "${ac_cv_have_decl_timezone+set}" = set; then
41270 echo $ECHO_N "(cached) $ECHO_C" >&6
41272 cat >conftest.$ac_ext <<_ACEOF
41275 cat confdefs.h >>conftest.$ac_ext
41276 cat >>conftest.$ac_ext <<_ACEOF
41277 /* end confdefs.h. */
41291 rm -f conftest.$ac_objext
41292 if { (ac_try="$ac_compile"
41293 case "(($ac_try" in
41294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41295 *) ac_try_echo=$ac_try;;
41297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41298 (eval "$ac_compile") 2>conftest.er1
41300 grep -v '^ *+' conftest.er1 >conftest.err
41302 cat conftest.err >&5
41303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41304 (exit $ac_status); } && {
41305 test -z "$ac_c_werror_flag" ||
41306 test ! -s conftest.err
41307 } && test -s conftest.$ac_objext; then
41308 ac_cv_have_decl_timezone=yes
41310 echo "$as_me: failed program was:" >&5
41311 sed 's/^/| /' conftest.$ac_ext >&5
41313 ac_cv_have_decl_timezone=no
41316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41318 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_timezone" >&5
41319 echo "${ECHO_T}$ac_cv_have_decl_timezone" >&6; }
41320 if test $ac_cv_have_decl_timezone = yes; then
41322 cat >>confdefs.h <<_ACEOF
41323 #define HAVE_DECL_TIMEZONE 1
41328 cat >>confdefs.h <<_ACEOF
41329 #define HAVE_DECL_TIMEZONE 0
41339 { echo "$as_me:$LINENO: checking for altzone" >&5
41340 echo $ECHO_N "checking for altzone... $ECHO_C" >&6; }
41341 if test "${ac_cv_var_altzone+set}" = set; then
41342 echo $ECHO_N "(cached) $ECHO_C" >&6
41346 cat >conftest.$ac_ext <<_ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h. */
41353 void * foo(void) { return &altzone; }
41362 rm -f conftest.$ac_objext conftest$ac_exeext
41363 if { (ac_try="$ac_link"
41364 case "(($ac_try" in
41365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41366 *) ac_try_echo=$ac_try;;
41368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41369 (eval "$ac_link") 2>conftest.er1
41371 grep -v '^ *+' conftest.er1 >conftest.err
41373 cat conftest.err >&5
41374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375 (exit $ac_status); } && {
41376 test -z "$ac_c_werror_flag" ||
41377 test ! -s conftest.err
41378 } && test -s conftest$ac_exeext &&
41379 $as_test_x conftest$ac_exeext; then
41380 ac_cv_var_altzone=yes
41382 echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41385 ac_cv_var_altzone=no
41388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41389 conftest$ac_exeext conftest.$ac_ext
41390 if test "$ac_cv_var_altzone" != yes ; then
41391 cat >conftest.$ac_ext <<_ACEOF
41394 cat confdefs.h >>conftest.$ac_ext
41395 cat >>conftest.$ac_ext <<_ACEOF
41396 /* end confdefs.h. */
41397 extern int altzone;
41398 int foo(void) { return altzone; }
41407 rm -f conftest.$ac_objext conftest$ac_exeext
41408 if { (ac_try="$ac_link"
41409 case "(($ac_try" in
41410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41411 *) ac_try_echo=$ac_try;;
41413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41414 (eval "$ac_link") 2>conftest.er1
41416 grep -v '^ *+' conftest.er1 >conftest.err
41418 cat conftest.err >&5
41419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41420 (exit $ac_status); } && {
41421 test -z "$ac_c_werror_flag" ||
41422 test ! -s conftest.err
41423 } && test -s conftest$ac_exeext &&
41424 $as_test_x conftest$ac_exeext; then
41425 ac_cv_var_altzone=yes
41427 echo "$as_me: failed program was:" >&5
41428 sed 's/^/| /' conftest.$ac_ext >&5
41430 ac_cv_var_altzone=no
41433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41434 conftest$ac_exeext conftest.$ac_ext
41439 ac_foo=`eval echo \\$ac_cv_var_altzone`
41440 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41441 echo "${ECHO_T}$ac_foo" >&6; }
41442 if test "$ac_foo" = yes; then
41444 cat >>confdefs.h <<_ACEOF
41445 #define HAVE_ALTZONE 1
41448 { echo "$as_me:$LINENO: checking whether altzone is declared" >&5
41449 echo $ECHO_N "checking whether altzone is declared... $ECHO_C" >&6; }
41450 if test "${ac_cv_have_decl_altzone+set}" = set; then
41451 echo $ECHO_N "(cached) $ECHO_C" >&6
41453 cat >conftest.$ac_ext <<_ACEOF
41456 cat confdefs.h >>conftest.$ac_ext
41457 cat >>conftest.$ac_ext <<_ACEOF
41458 /* end confdefs.h. */
41472 rm -f conftest.$ac_objext
41473 if { (ac_try="$ac_compile"
41474 case "(($ac_try" in
41475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41476 *) ac_try_echo=$ac_try;;
41478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41479 (eval "$ac_compile") 2>conftest.er1
41481 grep -v '^ *+' conftest.er1 >conftest.err
41483 cat conftest.err >&5
41484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); } && {
41486 test -z "$ac_c_werror_flag" ||
41487 test ! -s conftest.err
41488 } && test -s conftest.$ac_objext; then
41489 ac_cv_have_decl_altzone=yes
41491 echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41494 ac_cv_have_decl_altzone=no
41497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41499 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_altzone" >&5
41500 echo "${ECHO_T}$ac_cv_have_decl_altzone" >&6; }
41501 if test $ac_cv_have_decl_altzone = yes; then
41503 cat >>confdefs.h <<_ACEOF
41504 #define HAVE_DECL_ALTZONE 1
41509 cat >>confdefs.h <<_ACEOF
41510 #define HAVE_DECL_ALTZONE 0
41522 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
41523 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
41524 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
41525 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41526 echo $ECHO_N "(cached) $ECHO_C" >&6
41528 cat >conftest.$ac_ext <<_ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h. */
41535 #include <sys/types.h>
41537 #include <stdlib.h>
41538 #include <stddef.h>
41541 #include <sys/types.h>
41542 #include <sys/socket.h>
41551 rm -f conftest.$ac_objext
41552 if { (ac_try="$ac_compile"
41553 case "(($ac_try" in
41554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555 *) ac_try_echo=$ac_try;;
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558 (eval "$ac_compile") 2>conftest.er1
41560 grep -v '^ *+' conftest.er1 >conftest.err
41562 cat conftest.err >&5
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); } && {
41565 test -z "$ac_c_werror_flag" ||
41566 test ! -s conftest.err
41567 } && test -s conftest.$ac_objext; then
41568 eval "ac_cv_type_$cv=yes"
41570 echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41573 eval "ac_cv_type_$cv=no"
41576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41578 ac_foo=`eval echo \\$ac_cv_type_$cv`
41579 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41580 echo "${ECHO_T}$ac_foo" >&6; }
41581 if test "$ac_foo" = yes; then
41582 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41584 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
41585 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
41586 if test "${ac_cv_type_sa_family_t+set}" = set; then
41587 echo $ECHO_N "(cached) $ECHO_C" >&6
41589 cat >conftest.$ac_ext <<_ACEOF
41592 cat confdefs.h >>conftest.$ac_ext
41593 cat >>conftest.$ac_ext <<_ACEOF
41594 /* end confdefs.h. */
41595 $ac_includes_default
41596 typedef sa_family_t ac__type_new_;
41600 if ((ac__type_new_ *) 0)
41602 if (sizeof (ac__type_new_))
41608 rm -f conftest.$ac_objext
41609 if { (ac_try="$ac_compile"
41610 case "(($ac_try" in
41611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41612 *) ac_try_echo=$ac_try;;
41614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41615 (eval "$ac_compile") 2>conftest.er1
41617 grep -v '^ *+' conftest.er1 >conftest.err
41619 cat conftest.err >&5
41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41621 (exit $ac_status); } && {
41622 test -z "$ac_c_werror_flag" ||
41623 test ! -s conftest.err
41624 } && test -s conftest.$ac_objext; then
41625 ac_cv_type_sa_family_t=yes
41627 echo "$as_me: failed program was:" >&5
41628 sed 's/^/| /' conftest.$ac_ext >&5
41630 ac_cv_type_sa_family_t=no
41633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41635 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
41636 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
41637 if test $ac_cv_type_sa_family_t = yes; then
41639 cat >>confdefs.h <<_ACEOF
41640 #define HAVE_SA_FAMILY_T 1
41648 cat >>confdefs.h <<_ACEOF
41649 #define $ac_tr_hdr 1
41656 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
41657 { echo "$as_me:$LINENO: checking for socklen_t" >&5
41658 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
41659 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41660 echo $ECHO_N "(cached) $ECHO_C" >&6
41662 cat >conftest.$ac_ext <<_ACEOF
41665 cat confdefs.h >>conftest.$ac_ext
41666 cat >>conftest.$ac_ext <<_ACEOF
41667 /* end confdefs.h. */
41669 #include <sys/types.h>
41671 #include <stdlib.h>
41672 #include <stddef.h>
41675 #include <sys/types.h>
41676 #include <sys/socket.h>
41685 rm -f conftest.$ac_objext
41686 if { (ac_try="$ac_compile"
41687 case "(($ac_try" in
41688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41689 *) ac_try_echo=$ac_try;;
41691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41692 (eval "$ac_compile") 2>conftest.er1
41694 grep -v '^ *+' conftest.er1 >conftest.err
41696 cat conftest.err >&5
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); } && {
41699 test -z "$ac_c_werror_flag" ||
41700 test ! -s conftest.err
41701 } && test -s conftest.$ac_objext; then
41702 eval "ac_cv_type_$cv=yes"
41704 echo "$as_me: failed program was:" >&5
41705 sed 's/^/| /' conftest.$ac_ext >&5
41707 eval "ac_cv_type_$cv=no"
41710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41712 ac_foo=`eval echo \\$ac_cv_type_$cv`
41713 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41714 echo "${ECHO_T}$ac_foo" >&6; }
41715 if test "$ac_foo" = yes; then
41716 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41718 { echo "$as_me:$LINENO: checking for socklen_t" >&5
41719 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
41720 if test "${ac_cv_type_socklen_t+set}" = set; then
41721 echo $ECHO_N "(cached) $ECHO_C" >&6
41723 cat >conftest.$ac_ext <<_ACEOF
41726 cat confdefs.h >>conftest.$ac_ext
41727 cat >>conftest.$ac_ext <<_ACEOF
41728 /* end confdefs.h. */
41729 $ac_includes_default
41730 typedef socklen_t ac__type_new_;
41734 if ((ac__type_new_ *) 0)
41736 if (sizeof (ac__type_new_))
41742 rm -f conftest.$ac_objext
41743 if { (ac_try="$ac_compile"
41744 case "(($ac_try" in
41745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41746 *) ac_try_echo=$ac_try;;
41748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41749 (eval "$ac_compile") 2>conftest.er1
41751 grep -v '^ *+' conftest.er1 >conftest.err
41753 cat conftest.err >&5
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); } && {
41756 test -z "$ac_c_werror_flag" ||
41757 test ! -s conftest.err
41758 } && test -s conftest.$ac_objext; then
41759 ac_cv_type_socklen_t=yes
41761 echo "$as_me: failed program was:" >&5
41762 sed 's/^/| /' conftest.$ac_ext >&5
41764 ac_cv_type_socklen_t=no
41767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41769 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
41770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
41771 if test $ac_cv_type_socklen_t = yes; then
41773 cat >>confdefs.h <<_ACEOF
41774 #define HAVE_SOCKLEN_T 1
41782 cat >>confdefs.h <<_ACEOF
41783 #define $ac_tr_hdr 1
41790 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
41791 { echo "$as_me:$LINENO: checking for struct sockaddr" >&5
41792 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
41793 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41794 echo $ECHO_N "(cached) $ECHO_C" >&6
41796 cat >conftest.$ac_ext <<_ACEOF
41799 cat confdefs.h >>conftest.$ac_ext
41800 cat >>conftest.$ac_ext <<_ACEOF
41801 /* end confdefs.h. */
41803 #include <sys/types.h>
41805 #include <stdlib.h>
41806 #include <stddef.h>
41809 #include <sys/types.h>
41810 #include <sys/socket.h>
41814 struct sockaddr foo;
41819 rm -f conftest.$ac_objext
41820 if { (ac_try="$ac_compile"
41821 case "(($ac_try" in
41822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41823 *) ac_try_echo=$ac_try;;
41825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41826 (eval "$ac_compile") 2>conftest.er1
41828 grep -v '^ *+' conftest.er1 >conftest.err
41830 cat conftest.err >&5
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); } && {
41833 test -z "$ac_c_werror_flag" ||
41834 test ! -s conftest.err
41835 } && test -s conftest.$ac_objext; then
41836 eval "ac_cv_type_$cv=yes"
41838 echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41841 eval "ac_cv_type_$cv=no"
41844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41846 ac_foo=`eval echo \\$ac_cv_type_$cv`
41847 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41848 echo "${ECHO_T}$ac_foo" >&6; }
41849 if test "$ac_foo" = yes; then
41850 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41852 { echo "$as_me:$LINENO: checking for struct sockaddr" >&5
41853 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; }
41854 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
41855 echo $ECHO_N "(cached) $ECHO_C" >&6
41857 cat >conftest.$ac_ext <<_ACEOF
41860 cat confdefs.h >>conftest.$ac_ext
41861 cat >>conftest.$ac_ext <<_ACEOF
41862 /* end confdefs.h. */
41863 $ac_includes_default
41864 typedef struct sockaddr ac__type_new_;
41868 if ((ac__type_new_ *) 0)
41870 if (sizeof (ac__type_new_))
41876 rm -f conftest.$ac_objext
41877 if { (ac_try="$ac_compile"
41878 case "(($ac_try" in
41879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41880 *) ac_try_echo=$ac_try;;
41882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41883 (eval "$ac_compile") 2>conftest.er1
41885 grep -v '^ *+' conftest.er1 >conftest.err
41887 cat conftest.err >&5
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } && {
41890 test -z "$ac_c_werror_flag" ||
41891 test ! -s conftest.err
41892 } && test -s conftest.$ac_objext; then
41893 ac_cv_type_struct_sockaddr=yes
41895 echo "$as_me: failed program was:" >&5
41896 sed 's/^/| /' conftest.$ac_ext >&5
41898 ac_cv_type_struct_sockaddr=no
41901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41903 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
41904 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6; }
41905 if test $ac_cv_type_struct_sockaddr = yes; then
41907 cat >>confdefs.h <<_ACEOF
41908 #define HAVE_STRUCT_SOCKADDR 1
41916 cat >>confdefs.h <<_ACEOF
41917 #define $ac_tr_hdr 1
41924 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
41925 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
41926 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
41927 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
41928 echo $ECHO_N "(cached) $ECHO_C" >&6
41930 cat >conftest.$ac_ext <<_ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h. */
41937 #include <sys/types.h>
41939 #include <stdlib.h>
41940 #include <stddef.h>
41943 #include <sys/types.h>
41944 #include <sys/socket.h>
41948 struct sockaddr_storage foo;
41953 rm -f conftest.$ac_objext
41954 if { (ac_try="$ac_compile"
41955 case "(($ac_try" in
41956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41957 *) ac_try_echo=$ac_try;;
41959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41960 (eval "$ac_compile") 2>conftest.er1
41962 grep -v '^ *+' conftest.er1 >conftest.err
41964 cat conftest.err >&5
41965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41966 (exit $ac_status); } && {
41967 test -z "$ac_c_werror_flag" ||
41968 test ! -s conftest.err
41969 } && test -s conftest.$ac_objext; then
41970 eval "ac_cv_type_$cv=yes"
41972 echo "$as_me: failed program was:" >&5
41973 sed 's/^/| /' conftest.$ac_ext >&5
41975 eval "ac_cv_type_$cv=no"
41978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41980 ac_foo=`eval echo \\$ac_cv_type_$cv`
41981 { echo "$as_me:$LINENO: result: $ac_foo" >&5
41982 echo "${ECHO_T}$ac_foo" >&6; }
41983 if test "$ac_foo" = yes; then
41984 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
41986 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
41987 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
41988 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
41989 echo $ECHO_N "(cached) $ECHO_C" >&6
41991 cat >conftest.$ac_ext <<_ACEOF
41994 cat confdefs.h >>conftest.$ac_ext
41995 cat >>conftest.$ac_ext <<_ACEOF
41996 /* end confdefs.h. */
41997 $ac_includes_default
41998 typedef struct sockaddr_storage ac__type_new_;
42002 if ((ac__type_new_ *) 0)
42004 if (sizeof (ac__type_new_))
42010 rm -f conftest.$ac_objext
42011 if { (ac_try="$ac_compile"
42012 case "(($ac_try" in
42013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42014 *) ac_try_echo=$ac_try;;
42016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42017 (eval "$ac_compile") 2>conftest.er1
42019 grep -v '^ *+' conftest.er1 >conftest.err
42021 cat conftest.err >&5
42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023 (exit $ac_status); } && {
42024 test -z "$ac_c_werror_flag" ||
42025 test ! -s conftest.err
42026 } && test -s conftest.$ac_objext; then
42027 ac_cv_type_struct_sockaddr_storage=yes
42029 echo "$as_me: failed program was:" >&5
42030 sed 's/^/| /' conftest.$ac_ext >&5
42032 ac_cv_type_struct_sockaddr_storage=no
42035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42037 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
42038 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
42039 if test $ac_cv_type_struct_sockaddr_storage = yes; then
42041 cat >>confdefs.h <<_ACEOF
42042 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
42050 cat >>confdefs.h <<_ACEOF
42051 #define $ac_tr_hdr 1
42058 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
42059 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
42060 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
42061 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42062 echo $ECHO_N "(cached) $ECHO_C" >&6
42064 cat >conftest.$ac_ext <<_ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h. */
42071 #include <sys/types.h>
42073 #include <stdlib.h>
42074 #include <stddef.h>
42077 #include <sys/types.h>
42082 struct addrinfo foo;
42087 rm -f conftest.$ac_objext
42088 if { (ac_try="$ac_compile"
42089 case "(($ac_try" in
42090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42091 *) ac_try_echo=$ac_try;;
42093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42094 (eval "$ac_compile") 2>conftest.er1
42096 grep -v '^ *+' conftest.er1 >conftest.err
42098 cat conftest.err >&5
42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100 (exit $ac_status); } && {
42101 test -z "$ac_c_werror_flag" ||
42102 test ! -s conftest.err
42103 } && test -s conftest.$ac_objext; then
42104 eval "ac_cv_type_$cv=yes"
42106 echo "$as_me: failed program was:" >&5
42107 sed 's/^/| /' conftest.$ac_ext >&5
42109 eval "ac_cv_type_$cv=no"
42112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42114 ac_foo=`eval echo \\$ac_cv_type_$cv`
42115 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42116 echo "${ECHO_T}$ac_foo" >&6; }
42117 if test "$ac_foo" = yes; then
42118 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42120 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
42121 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
42122 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
42123 echo $ECHO_N "(cached) $ECHO_C" >&6
42125 cat >conftest.$ac_ext <<_ACEOF
42128 cat confdefs.h >>conftest.$ac_ext
42129 cat >>conftest.$ac_ext <<_ACEOF
42130 /* end confdefs.h. */
42131 $ac_includes_default
42132 typedef struct addrinfo ac__type_new_;
42136 if ((ac__type_new_ *) 0)
42138 if (sizeof (ac__type_new_))
42144 rm -f conftest.$ac_objext
42145 if { (ac_try="$ac_compile"
42146 case "(($ac_try" in
42147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42148 *) ac_try_echo=$ac_try;;
42150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42151 (eval "$ac_compile") 2>conftest.er1
42153 grep -v '^ *+' conftest.er1 >conftest.err
42155 cat conftest.err >&5
42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157 (exit $ac_status); } && {
42158 test -z "$ac_c_werror_flag" ||
42159 test ! -s conftest.err
42160 } && test -s conftest.$ac_objext; then
42161 ac_cv_type_struct_addrinfo=yes
42163 echo "$as_me: failed program was:" >&5
42164 sed 's/^/| /' conftest.$ac_ext >&5
42166 ac_cv_type_struct_addrinfo=no
42169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42171 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
42172 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
42173 if test $ac_cv_type_struct_addrinfo = yes; then
42175 cat >>confdefs.h <<_ACEOF
42176 #define HAVE_STRUCT_ADDRINFO 1
42184 cat >>confdefs.h <<_ACEOF
42185 #define $ac_tr_hdr 1
42192 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
42193 { echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
42194 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
42195 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42196 echo $ECHO_N "(cached) $ECHO_C" >&6
42198 cat >conftest.$ac_ext <<_ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h. */
42205 #include <sys/types.h>
42207 #include <stdlib.h>
42208 #include <stddef.h>
42210 #include <ifaddrs.h>
42214 struct ifaddrs foo;
42219 rm -f conftest.$ac_objext
42220 if { (ac_try="$ac_compile"
42221 case "(($ac_try" in
42222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42223 *) ac_try_echo=$ac_try;;
42225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42226 (eval "$ac_compile") 2>conftest.er1
42228 grep -v '^ *+' conftest.er1 >conftest.err
42230 cat conftest.err >&5
42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42232 (exit $ac_status); } && {
42233 test -z "$ac_c_werror_flag" ||
42234 test ! -s conftest.err
42235 } && test -s conftest.$ac_objext; then
42236 eval "ac_cv_type_$cv=yes"
42238 echo "$as_me: failed program was:" >&5
42239 sed 's/^/| /' conftest.$ac_ext >&5
42241 eval "ac_cv_type_$cv=no"
42244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42246 ac_foo=`eval echo \\$ac_cv_type_$cv`
42247 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42248 echo "${ECHO_T}$ac_foo" >&6; }
42249 if test "$ac_foo" = yes; then
42250 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42252 { echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
42253 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; }
42254 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
42255 echo $ECHO_N "(cached) $ECHO_C" >&6
42257 cat >conftest.$ac_ext <<_ACEOF
42260 cat confdefs.h >>conftest.$ac_ext
42261 cat >>conftest.$ac_ext <<_ACEOF
42262 /* end confdefs.h. */
42263 $ac_includes_default
42264 typedef struct ifaddrs ac__type_new_;
42268 if ((ac__type_new_ *) 0)
42270 if (sizeof (ac__type_new_))
42276 rm -f conftest.$ac_objext
42277 if { (ac_try="$ac_compile"
42278 case "(($ac_try" in
42279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42280 *) ac_try_echo=$ac_try;;
42282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42283 (eval "$ac_compile") 2>conftest.er1
42285 grep -v '^ *+' conftest.er1 >conftest.err
42287 cat conftest.err >&5
42288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289 (exit $ac_status); } && {
42290 test -z "$ac_c_werror_flag" ||
42291 test ! -s conftest.err
42292 } && test -s conftest.$ac_objext; then
42293 ac_cv_type_struct_ifaddrs=yes
42295 echo "$as_me: failed program was:" >&5
42296 sed 's/^/| /' conftest.$ac_ext >&5
42298 ac_cv_type_struct_ifaddrs=no
42301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42303 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
42304 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6; }
42305 if test $ac_cv_type_struct_ifaddrs = yes; then
42307 cat >>confdefs.h <<_ACEOF
42308 #define HAVE_STRUCT_IFADDRS 1
42316 cat >>confdefs.h <<_ACEOF
42317 #define $ac_tr_hdr 1
42324 cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
42325 { echo "$as_me:$LINENO: checking for struct iovec" >&5
42326 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
42327 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42328 echo $ECHO_N "(cached) $ECHO_C" >&6
42330 cat >conftest.$ac_ext <<_ACEOF
42333 cat confdefs.h >>conftest.$ac_ext
42334 cat >>conftest.$ac_ext <<_ACEOF
42335 /* end confdefs.h. */
42337 #include <sys/types.h>
42339 #include <stdlib.h>
42340 #include <stddef.h>
42343 #include <sys/types.h>
42344 #include <sys/uio.h>
42354 rm -f conftest.$ac_objext
42355 if { (ac_try="$ac_compile"
42356 case "(($ac_try" in
42357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42358 *) ac_try_echo=$ac_try;;
42360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42361 (eval "$ac_compile") 2>conftest.er1
42363 grep -v '^ *+' conftest.er1 >conftest.err
42365 cat conftest.err >&5
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); } && {
42368 test -z "$ac_c_werror_flag" ||
42369 test ! -s conftest.err
42370 } && test -s conftest.$ac_objext; then
42371 eval "ac_cv_type_$cv=yes"
42373 echo "$as_me: failed program was:" >&5
42374 sed 's/^/| /' conftest.$ac_ext >&5
42376 eval "ac_cv_type_$cv=no"
42379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42381 ac_foo=`eval echo \\$ac_cv_type_$cv`
42382 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42383 echo "${ECHO_T}$ac_foo" >&6; }
42384 if test "$ac_foo" = yes; then
42385 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42387 { echo "$as_me:$LINENO: checking for struct iovec" >&5
42388 echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; }
42389 if test "${ac_cv_type_struct_iovec+set}" = set; then
42390 echo $ECHO_N "(cached) $ECHO_C" >&6
42392 cat >conftest.$ac_ext <<_ACEOF
42395 cat confdefs.h >>conftest.$ac_ext
42396 cat >>conftest.$ac_ext <<_ACEOF
42397 /* end confdefs.h. */
42398 $ac_includes_default
42399 typedef struct iovec ac__type_new_;
42403 if ((ac__type_new_ *) 0)
42405 if (sizeof (ac__type_new_))
42411 rm -f conftest.$ac_objext
42412 if { (ac_try="$ac_compile"
42413 case "(($ac_try" in
42414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42415 *) ac_try_echo=$ac_try;;
42417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42418 (eval "$ac_compile") 2>conftest.er1
42420 grep -v '^ *+' conftest.er1 >conftest.err
42422 cat conftest.err >&5
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); } && {
42425 test -z "$ac_c_werror_flag" ||
42426 test ! -s conftest.err
42427 } && test -s conftest.$ac_objext; then
42428 ac_cv_type_struct_iovec=yes
42430 echo "$as_me: failed program was:" >&5
42431 sed 's/^/| /' conftest.$ac_ext >&5
42433 ac_cv_type_struct_iovec=no
42436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42438 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
42439 echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; }
42440 if test $ac_cv_type_struct_iovec = yes; then
42442 cat >>confdefs.h <<_ACEOF
42443 #define HAVE_STRUCT_IOVEC 1
42451 cat >>confdefs.h <<_ACEOF
42452 #define $ac_tr_hdr 1
42459 cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
42460 { echo "$as_me:$LINENO: checking for struct msghdr" >&5
42461 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
42462 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
42463 echo $ECHO_N "(cached) $ECHO_C" >&6
42465 cat >conftest.$ac_ext <<_ACEOF
42468 cat confdefs.h >>conftest.$ac_ext
42469 cat >>conftest.$ac_ext <<_ACEOF
42470 /* end confdefs.h. */
42472 #include <sys/types.h>
42474 #include <stdlib.h>
42475 #include <stddef.h>
42478 #include <sys/types.h>
42479 #include <sys/socket.h>
42489 rm -f conftest.$ac_objext
42490 if { (ac_try="$ac_compile"
42491 case "(($ac_try" in
42492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42493 *) ac_try_echo=$ac_try;;
42495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42496 (eval "$ac_compile") 2>conftest.er1
42498 grep -v '^ *+' conftest.er1 >conftest.err
42500 cat conftest.err >&5
42501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42502 (exit $ac_status); } && {
42503 test -z "$ac_c_werror_flag" ||
42504 test ! -s conftest.err
42505 } && test -s conftest.$ac_objext; then
42506 eval "ac_cv_type_$cv=yes"
42508 echo "$as_me: failed program was:" >&5
42509 sed 's/^/| /' conftest.$ac_ext >&5
42511 eval "ac_cv_type_$cv=no"
42514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42516 ac_foo=`eval echo \\$ac_cv_type_$cv`
42517 { echo "$as_me:$LINENO: result: $ac_foo" >&5
42518 echo "${ECHO_T}$ac_foo" >&6; }
42519 if test "$ac_foo" = yes; then
42520 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42522 { echo "$as_me:$LINENO: checking for struct msghdr" >&5
42523 echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; }
42524 if test "${ac_cv_type_struct_msghdr+set}" = set; then
42525 echo $ECHO_N "(cached) $ECHO_C" >&6
42527 cat >conftest.$ac_ext <<_ACEOF
42530 cat confdefs.h >>conftest.$ac_ext
42531 cat >>conftest.$ac_ext <<_ACEOF
42532 /* end confdefs.h. */
42533 $ac_includes_default
42534 typedef struct msghdr ac__type_new_;
42538 if ((ac__type_new_ *) 0)
42540 if (sizeof (ac__type_new_))
42546 rm -f conftest.$ac_objext
42547 if { (ac_try="$ac_compile"
42548 case "(($ac_try" in
42549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42550 *) ac_try_echo=$ac_try;;
42552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42553 (eval "$ac_compile") 2>conftest.er1
42555 grep -v '^ *+' conftest.er1 >conftest.err
42557 cat conftest.err >&5
42558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42559 (exit $ac_status); } && {
42560 test -z "$ac_c_werror_flag" ||
42561 test ! -s conftest.err
42562 } && test -s conftest.$ac_objext; then
42563 ac_cv_type_struct_msghdr=yes
42565 echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42568 ac_cv_type_struct_msghdr=no
42571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42573 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
42574 echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; }
42575 if test $ac_cv_type_struct_msghdr = yes; then
42577 cat >>confdefs.h <<_ACEOF
42578 #define HAVE_STRUCT_MSGHDR 1
42586 cat >>confdefs.h <<_ACEOF
42587 #define $ac_tr_hdr 1
42595 { echo "$as_me:$LINENO: checking for struct winsize" >&5
42596 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6; }
42597 if test "${ac_cv_struct_winsize+set}" = set; then
42598 echo $ECHO_N "(cached) $ECHO_C" >&6
42601 ac_cv_struct_winsize=no
42602 for i in sys/termios.h sys/ioctl.h; do
42603 cat >conftest.$ac_ext <<_ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h. */
42612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42613 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then
42614 ac_cv_struct_winsize=yes; break
42621 if test "$ac_cv_struct_winsize" = "yes"; then
42623 cat >>confdefs.h <<\_ACEOF
42624 #define HAVE_STRUCT_WINSIZE 1
42628 { echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
42629 echo "${ECHO_T}$ac_cv_struct_winsize" >&6; }
42630 cat >conftest.$ac_ext <<_ACEOF
42633 cat confdefs.h >>conftest.$ac_ext
42634 cat >>conftest.$ac_ext <<_ACEOF
42635 /* end confdefs.h. */
42636 #include <termios.h>
42639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42640 $EGREP "ws_xpixel" >/dev/null 2>&1; then
42642 cat >>confdefs.h <<\_ACEOF
42643 #define HAVE_WS_XPIXEL 1
42649 cat >conftest.$ac_ext <<_ACEOF
42652 cat confdefs.h >>conftest.$ac_ext
42653 cat >>conftest.$ac_ext <<_ACEOF
42654 /* end confdefs.h. */
42655 #include <termios.h>
42658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42659 $EGREP "ws_ypixel" >/dev/null 2>&1; then
42661 cat >>confdefs.h <<\_ACEOF
42662 #define HAVE_WS_YPIXEL 1
42672 { echo "$as_me:$LINENO: checking for struct spwd" >&5
42673 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6; }
42674 if test "${ac_cv_struct_spwd+set}" = set; then
42675 echo $ECHO_N "(cached) $ECHO_C" >&6
42678 cat >conftest.$ac_ext <<_ACEOF
42681 cat confdefs.h >>conftest.$ac_ext
42682 cat >>conftest.$ac_ext <<_ACEOF
42683 /* end confdefs.h. */
42686 #ifdef HAVE_SHADOW_H
42687 #include <shadow.h>
42697 rm -f conftest.$ac_objext
42698 if { (ac_try="$ac_compile"
42699 case "(($ac_try" in
42700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42701 *) ac_try_echo=$ac_try;;
42703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42704 (eval "$ac_compile") 2>conftest.er1
42706 grep -v '^ *+' conftest.er1 >conftest.err
42708 cat conftest.err >&5
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } && {
42711 test -z "$ac_c_werror_flag" ||
42712 test ! -s conftest.err
42713 } && test -s conftest.$ac_objext; then
42714 ac_cv_struct_spwd=yes
42716 echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42719 ac_cv_struct_spwd=no
42722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42726 { echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
42727 echo "${ECHO_T}$ac_cv_struct_spwd" >&6; }
42729 if test "$ac_cv_struct_spwd" = "yes"; then
42731 cat >>confdefs.h <<\_ACEOF
42732 #define HAVE_STRUCT_SPWD 1
42739 # Check if we want samba's socket wrapper
42744 # Check whether --enable-socket-wrapper was given.
42745 if test "${enable_socket_wrapper+set}" = set; then
42746 enableval=$enable_socket_wrapper;
42750 if test "x$enable_socket_wrapper" = xyes; then
42751 have_socket_wrapper_TRUE=
42752 have_socket_wrapper_FALSE='#'
42754 have_socket_wrapper_TRUE='#'
42755 have_socket_wrapper_FALSE=
42758 if test "x$enable_socket_wrapper" = xyes ; then
42760 cat >>confdefs.h <<\_ACEOF
42761 #define SOCKET_WRAPPER_REPLACE 1
42769 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
42772 LIBADD_roken="$LIB_roken"
42773 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
42776 # Check whether --enable-otp was given.
42777 if test "${enable_otp+set}" = set; then
42778 enableval=$enable_otp;
42781 if test "$enable_otp" = yes -a "$db_type" = unknown; then
42782 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
42783 echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
42784 { (exit 1); exit 1; }; }
42786 if test "$enable_otp" != no; then
42787 if test "$db_type" != unknown; then
42793 if test "$enable_otp" = yes; then
42795 cat >>confdefs.h <<\_ACEOF
42799 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
42802 { echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
42803 echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6; }
42804 { echo "$as_me:$LINENO: result: $enable_otp" >&5
42805 echo "${ECHO_T}$enable_otp" >&6; }
42806 if test "$enable_otp" = yes; then
42816 # Check whether --enable-osfc2 was given.
42817 if test "${enable_osfc2+set}" = set; then
42818 enableval=$enable_osfc2;
42822 if test "$enable_osfc2" = yes; then
42824 cat >>confdefs.h <<\_ACEOF
42825 #define HAVE_OSFC2 1
42828 LIB_security=-lsecurity
42833 # Check whether --enable-mmap was given.
42834 if test "${enable_mmap+set}" = set; then
42835 enableval=$enable_mmap;
42838 if test "$enable_mmap" = "no"; then
42840 cat >>confdefs.h <<\_ACEOF
42846 # Check whether --enable-afs-string-to-key was given.
42847 if test "${enable_afs_string_to_key+set}" = set; then
42848 enableval=$enable_afs_string_to_key;
42850 enable_afs_string_to_key=yes
42854 if test "$enable_afs_string_to_key" = "yes"; then
42856 cat >>confdefs.h <<\_ACEOF
42857 #define ENABLE_AFS_STRING_TO_KEY 1
42863 # Extract the first word of "nroff", so it can be a program name with args.
42864 set dummy nroff; ac_word=$2
42865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42867 if test "${ac_cv_path_NROFF+set}" = set; then
42868 echo $ECHO_N "(cached) $ECHO_C" >&6
42872 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
42875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42876 for as_dir in $PATH
42879 test -z "$as_dir" && as_dir=.
42880 for ac_exec_ext in '' $ac_executable_extensions; do
42881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42882 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
42883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42893 NROFF=$ac_cv_path_NROFF
42894 if test -n "$NROFF"; then
42895 { echo "$as_me:$LINENO: result: $NROFF" >&5
42896 echo "${ECHO_T}$NROFF" >&6; }
42898 { echo "$as_me:$LINENO: result: no" >&5
42899 echo "${ECHO_T}no" >&6; }
42903 # Extract the first word of "groff", so it can be a program name with args.
42904 set dummy groff; ac_word=$2
42905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42907 if test "${ac_cv_path_GROFF+set}" = set; then
42908 echo $ECHO_N "(cached) $ECHO_C" >&6
42912 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
42915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42916 for as_dir in $PATH
42919 test -z "$as_dir" && as_dir=.
42920 for ac_exec_ext in '' $ac_executable_extensions; do
42921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42922 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
42923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42933 GROFF=$ac_cv_path_GROFF
42934 if test -n "$GROFF"; then
42935 { echo "$as_me:$LINENO: result: $GROFF" >&5
42936 echo "${ECHO_T}$GROFF" >&6; }
42938 { echo "$as_me:$LINENO: result: no" >&5
42939 echo "${ECHO_T}no" >&6; }
42943 { echo "$as_me:$LINENO: checking how to format man pages" >&5
42944 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6; }
42945 if test "${ac_cv_sys_man_format+set}" = set; then
42946 echo $ECHO_N "(cached) $ECHO_C" >&6
42948 cat > conftest.1 << END
42949 .Dd January 1, 1970
42957 if test "$NROFF" ; then
42958 for i in "-mdoc" "-mandoc"; do
42959 if "$NROFF" $i conftest.1 2> /dev/null | \
42960 grep Jan > /dev/null 2>&1 ; then
42961 ac_cv_sys_man_format="$NROFF $i"
42966 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
42967 for i in "-mdoc" "-mandoc"; do
42968 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
42969 grep Jan > /dev/null 2>&1 ; then
42970 ac_cv_sys_man_format="$GROFF -Tascii $i"
42975 if test "$ac_cv_sys_man_format"; then
42976 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
42980 { echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
42981 echo "${ECHO_T}$ac_cv_sys_man_format" >&6; }
42982 if test "$ac_cv_sys_man_format"; then
42983 CATMAN="$ac_cv_sys_man_format"
42986 if test "$CATMAN"; then
42994 { echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
42995 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6; }
42996 if test "${ac_cv_sys_catman_ext+set}" = set; then
42997 echo $ECHO_N "(cached) $ECHO_C" >&6
42999 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
43000 ac_cv_sys_catman_ext=0
43002 ac_cv_sys_catman_ext=number
43006 { echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
43007 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6; }
43008 if test "$ac_cv_sys_catman_ext" = number; then
43009 CATMANEXT='$$section'
43018 # Check whether --with-readline was given.
43019 if test "${with_readline+set}" = set; then
43020 withval=$with_readline;
43024 # Check whether --with-readline-lib was given.
43025 if test "${with_readline_lib+set}" = set; then
43026 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
43027 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
43028 echo "$as_me: error: No argument for --with-readline-lib" >&2;}
43029 { (exit 1); exit 1; }; }
43030 elif test "X$with_readline" = "X"; then
43036 # Check whether --with-readline-include was given.
43037 if test "${with_readline_include+set}" = set; then
43038 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then
43039 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
43040 echo "$as_me: error: No argument for --with-readline-include" >&2;}
43041 { (exit 1); exit 1; }; }
43042 elif test "X$with_readline" = "X"; then
43048 # Check whether --with-readline-config was given.
43049 if test "${with_readline_config+set}" = set; then
43050 withval=$with_readline_config;
43056 { echo "$as_me:$LINENO: checking for readline" >&5
43057 echo $ECHO_N "checking for readline... $ECHO_C" >&6; }
43059 case "$with_readline" in
43062 *) d="$with_readline" ;;
43068 if test "$with_readline_include" = ""; then
43069 if test -d "$i/include/readline"; then
43070 header_dirs="$header_dirs $i/include/readline"
43072 if test -d "$i/include"; then
43073 header_dirs="$header_dirs $i/include"
43076 if test "$with_readline_lib" = ""; then
43077 if test -d "$i/lib$abilibdirext"; then
43078 lib_dirs="$lib_dirs $i/lib$abilibdirext"
43083 if test "$with_readline_include"; then
43084 header_dirs="$with_readline_include $header_dirs"
43086 if test "$with_readline_lib"; then
43087 lib_dirs="$with_readline_lib $lib_dirs"
43090 if test "$with_readline_config" = ""; then
43091 with_readline_config=''
43097 case "$with_readline_config" in
43099 if test -f $with_readline/bin/ ; then
43100 with_readline_config=$with_readline/bin/
43105 case "$with_readline_config" in
43109 readline_cflags="`$with_readline_config --cflags 2>&1`"
43110 readline_libs="`$with_readline_config --libs 2>&1`"
43115 if test "$with_readline" != no; then
43116 save_CFLAGS="$CFLAGS"
43118 if test "$readline_cflags" -a "$readline_libs"; then
43119 CFLAGS="$readline_cflags $save_CFLAGS"
43120 LIBS="$readline_libs $save_LIBS"
43121 cat >conftest.$ac_ext <<_ACEOF
43124 cat confdefs.h >>conftest.$ac_ext
43125 cat >>conftest.$ac_ext <<_ACEOF
43126 /* end confdefs.h. */
43128 #include <readline.h>
43137 rm -f conftest.$ac_objext conftest$ac_exeext
43138 if { (ac_try="$ac_link"
43139 case "(($ac_try" in
43140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43141 *) ac_try_echo=$ac_try;;
43143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43144 (eval "$ac_link") 2>conftest.er1
43146 grep -v '^ *+' conftest.er1 >conftest.err
43148 cat conftest.err >&5
43149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150 (exit $ac_status); } && {
43151 test -z "$ac_c_werror_flag" ||
43152 test ! -s conftest.err
43153 } && test -s conftest$ac_exeext &&
43154 $as_test_x conftest$ac_exeext; then
43156 INCLUDE_readline="$readline_cflags"
43157 LIB_readline="$readline_libs"
43158 { echo "$as_me:$LINENO: result: from $with_readline_config" >&5
43159 echo "${ECHO_T}from $with_readline_config" >&6; }
43162 echo "$as_me: failed program was:" >&5
43163 sed 's/^/| /' conftest.$ac_ext >&5
43168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43169 conftest$ac_exeext conftest.$ac_ext
43171 if test "$found" = no; then
43173 for i in $header_dirs; do
43174 CFLAGS="-I$i $save_CFLAGS"
43175 cat >conftest.$ac_ext <<_ACEOF
43178 cat confdefs.h >>conftest.$ac_ext
43179 cat >>conftest.$ac_ext <<_ACEOF
43180 /* end confdefs.h. */
43182 #include <readline.h>
43191 rm -f conftest.$ac_objext
43192 if { (ac_try="$ac_compile"
43193 case "(($ac_try" in
43194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43195 *) ac_try_echo=$ac_try;;
43197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43198 (eval "$ac_compile") 2>conftest.er1
43200 grep -v '^ *+' conftest.er1 >conftest.err
43202 cat conftest.err >&5
43203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43204 (exit $ac_status); } && {
43205 test -z "$ac_c_werror_flag" ||
43206 test ! -s conftest.err
43207 } && test -s conftest.$ac_objext; then
43210 echo "$as_me: failed program was:" >&5
43211 sed 's/^/| /' conftest.$ac_ext >&5
43216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43218 for i in $lib_dirs; do
43219 LIBS="-L$i -lreadline $save_LIBS"
43220 cat >conftest.$ac_ext <<_ACEOF
43223 cat confdefs.h >>conftest.$ac_ext
43224 cat >>conftest.$ac_ext <<_ACEOF
43225 /* end confdefs.h. */
43227 #include <readline.h>
43236 rm -f conftest.$ac_objext conftest$ac_exeext
43237 if { (ac_try="$ac_link"
43238 case "(($ac_try" in
43239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43240 *) ac_try_echo=$ac_try;;
43242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43243 (eval "$ac_link") 2>conftest.er1
43245 grep -v '^ *+' conftest.er1 >conftest.err
43247 cat conftest.err >&5
43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249 (exit $ac_status); } && {
43250 test -z "$ac_c_werror_flag" ||
43251 test ! -s conftest.err
43252 } && test -s conftest$ac_exeext &&
43253 $as_test_x conftest$ac_exeext; then
43256 echo "$as_me: failed program was:" >&5
43257 sed 's/^/| /' conftest.$ac_ext >&5
43262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43263 conftest$ac_exeext conftest.$ac_ext
43265 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
43266 INCLUDE_readline="-I$ires"
43267 LIB_readline="-L$lres -lreadline "
43269 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
43270 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
43273 CFLAGS="$save_CFLAGS"
43277 if test "$found" = yes; then
43279 cat >>confdefs.h <<_ACEOF
43288 { echo "$as_me:$LINENO: result: no" >&5
43289 echo "${ECHO_T}no" >&6; }
43298 # Check whether --with-hesiod was given.
43299 if test "${with_hesiod+set}" = set; then
43300 withval=$with_hesiod;
43304 # Check whether --with-hesiod-lib was given.
43305 if test "${with_hesiod_lib+set}" = set; then
43306 withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then
43307 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
43308 echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
43309 { (exit 1); exit 1; }; }
43310 elif test "X$with_hesiod" = "X"; then
43316 # Check whether --with-hesiod-include was given.
43317 if test "${with_hesiod_include+set}" = set; then
43318 withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then
43319 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
43320 echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
43321 { (exit 1); exit 1; }; }
43322 elif test "X$with_hesiod" = "X"; then
43328 # Check whether --with-hesiod-config was given.
43329 if test "${with_hesiod_config+set}" = set; then
43330 withval=$with_hesiod_config;
43336 { echo "$as_me:$LINENO: checking for hesiod" >&5
43337 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6; }
43339 case "$with_hesiod" in
43342 *) d="$with_hesiod" ;;
43348 if test "$with_hesiod_include" = ""; then
43349 if test -d "$i/include/hesiod"; then
43350 header_dirs="$header_dirs $i/include/hesiod"
43352 if test -d "$i/include"; then
43353 header_dirs="$header_dirs $i/include"
43356 if test "$with_hesiod_lib" = ""; then
43357 if test -d "$i/lib$abilibdirext"; then
43358 lib_dirs="$lib_dirs $i/lib$abilibdirext"
43363 if test "$with_hesiod_include"; then
43364 header_dirs="$with_hesiod_include $header_dirs"
43366 if test "$with_hesiod_lib"; then
43367 lib_dirs="$with_hesiod_lib $lib_dirs"
43370 if test "$with_hesiod_config" = ""; then
43371 with_hesiod_config=''
43377 case "$with_hesiod_config" in
43379 if test -f $with_hesiod/bin/ ; then
43380 with_hesiod_config=$with_hesiod/bin/
43385 case "$with_hesiod_config" in
43389 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
43390 hesiod_libs="`$with_hesiod_config --libs 2>&1`"
43395 if test "$with_hesiod" != no; then
43396 save_CFLAGS="$CFLAGS"
43398 if test "$hesiod_cflags" -a "$hesiod_libs"; then
43399 CFLAGS="$hesiod_cflags $save_CFLAGS"
43400 LIBS="$hesiod_libs $save_LIBS"
43401 cat >conftest.$ac_ext <<_ACEOF
43404 cat confdefs.h >>conftest.$ac_ext
43405 cat >>conftest.$ac_ext <<_ACEOF
43406 /* end confdefs.h. */
43407 #include <hesiod.h>
43416 rm -f conftest.$ac_objext conftest$ac_exeext
43417 if { (ac_try="$ac_link"
43418 case "(($ac_try" in
43419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43420 *) ac_try_echo=$ac_try;;
43422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43423 (eval "$ac_link") 2>conftest.er1
43425 grep -v '^ *+' conftest.er1 >conftest.err
43427 cat conftest.err >&5
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); } && {
43430 test -z "$ac_c_werror_flag" ||
43431 test ! -s conftest.err
43432 } && test -s conftest$ac_exeext &&
43433 $as_test_x conftest$ac_exeext; then
43435 INCLUDE_hesiod="$hesiod_cflags"
43436 LIB_hesiod="$hesiod_libs"
43437 { echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
43438 echo "${ECHO_T}from $with_hesiod_config" >&6; }
43441 echo "$as_me: failed program was:" >&5
43442 sed 's/^/| /' conftest.$ac_ext >&5
43447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43448 conftest$ac_exeext conftest.$ac_ext
43450 if test "$found" = no; then
43452 for i in $header_dirs; do
43453 CFLAGS="-I$i $save_CFLAGS"
43454 cat >conftest.$ac_ext <<_ACEOF
43457 cat confdefs.h >>conftest.$ac_ext
43458 cat >>conftest.$ac_ext <<_ACEOF
43459 /* end confdefs.h. */
43460 #include <hesiod.h>
43469 rm -f conftest.$ac_objext
43470 if { (ac_try="$ac_compile"
43471 case "(($ac_try" in
43472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43473 *) ac_try_echo=$ac_try;;
43475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43476 (eval "$ac_compile") 2>conftest.er1
43478 grep -v '^ *+' conftest.er1 >conftest.err
43480 cat conftest.err >&5
43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482 (exit $ac_status); } && {
43483 test -z "$ac_c_werror_flag" ||
43484 test ! -s conftest.err
43485 } && test -s conftest.$ac_objext; then
43488 echo "$as_me: failed program was:" >&5
43489 sed 's/^/| /' conftest.$ac_ext >&5
43494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43496 for i in $lib_dirs; do
43497 LIBS="-L$i -lhesiod $save_LIBS"
43498 cat >conftest.$ac_ext <<_ACEOF
43501 cat confdefs.h >>conftest.$ac_ext
43502 cat >>conftest.$ac_ext <<_ACEOF
43503 /* end confdefs.h. */
43504 #include <hesiod.h>
43513 rm -f conftest.$ac_objext conftest$ac_exeext
43514 if { (ac_try="$ac_link"
43515 case "(($ac_try" in
43516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43517 *) ac_try_echo=$ac_try;;
43519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43520 (eval "$ac_link") 2>conftest.er1
43522 grep -v '^ *+' conftest.er1 >conftest.err
43524 cat conftest.err >&5
43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526 (exit $ac_status); } && {
43527 test -z "$ac_c_werror_flag" ||
43528 test ! -s conftest.err
43529 } && test -s conftest$ac_exeext &&
43530 $as_test_x conftest$ac_exeext; then
43533 echo "$as_me: failed program was:" >&5
43534 sed 's/^/| /' conftest.$ac_ext >&5
43539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43540 conftest$ac_exeext conftest.$ac_ext
43542 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
43543 INCLUDE_hesiod="-I$ires"
43544 LIB_hesiod="-L$lres -lhesiod "
43546 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
43547 echo "${ECHO_T}headers $ires, libraries $lres" >&6; }
43550 CFLAGS="$save_CFLAGS"
43554 if test "$found" = yes; then
43556 cat >>confdefs.h <<_ACEOF
43565 { echo "$as_me:$LINENO: result: no" >&5
43566 echo "${ECHO_T}no" >&6; }
43574 # Check whether --enable-bigendian was given.
43575 if test "${enable_bigendian+set}" = set; then
43576 enableval=$enable_bigendian; krb_cv_c_bigendian=yes
43579 # Check whether --enable-littleendian was given.
43580 if test "${enable_littleendian+set}" = set; then
43581 enableval=$enable_littleendian; krb_cv_c_bigendian=no
43584 { echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
43585 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6; }
43586 if test "${krb_cv_c_bigendian_compile+set}" = set; then
43587 echo $ECHO_N "(cached) $ECHO_C" >&6
43589 cat >conftest.$ac_ext <<_ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h. */
43596 #include <sys/types.h>
43597 #include <sys/param.h>
43598 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
43599 bogus endian macros
43602 rm -f conftest.$ac_objext
43603 if { (ac_try="$ac_compile"
43604 case "(($ac_try" in
43605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43606 *) ac_try_echo=$ac_try;;
43608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43609 (eval "$ac_compile") 2>conftest.er1
43611 grep -v '^ *+' conftest.er1 >conftest.err
43613 cat conftest.err >&5
43614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43615 (exit $ac_status); } && {
43616 test -z "$ac_c_werror_flag" ||
43617 test ! -s conftest.err
43618 } && test -s conftest.$ac_objext; then
43619 krb_cv_c_bigendian_compile=yes
43621 echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43624 krb_cv_c_bigendian_compile=no
43627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43629 { echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
43630 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6; }
43631 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
43632 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
43633 if test "${krb_cv_c_bigendian+set}" = set; then
43634 echo $ECHO_N "(cached) $ECHO_C" >&6
43637 if test "$krb_cv_c_bigendian_compile" = "yes"; then
43638 cat >conftest.$ac_ext <<_ACEOF
43641 cat confdefs.h >>conftest.$ac_ext
43642 cat >>conftest.$ac_ext <<_ACEOF
43643 /* end confdefs.h. */
43645 #include <sys/types.h>
43646 #include <sys/param.h>
43647 #if BYTE_ORDER != BIG_ENDIAN
43651 rm -f conftest.$ac_objext
43652 if { (ac_try="$ac_compile"
43653 case "(($ac_try" in
43654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43655 *) ac_try_echo=$ac_try;;
43657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43658 (eval "$ac_compile") 2>conftest.er1
43660 grep -v '^ *+' conftest.er1 >conftest.err
43662 cat conftest.err >&5
43663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43664 (exit $ac_status); } && {
43665 test -z "$ac_c_werror_flag" ||
43666 test ! -s conftest.err
43667 } && test -s conftest.$ac_objext; then
43668 krb_cv_c_bigendian=yes
43670 echo "$as_me: failed program was:" >&5
43671 sed 's/^/| /' conftest.$ac_ext >&5
43673 krb_cv_c_bigendian=no
43676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43678 if test "$cross_compiling" = yes; then
43679 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
43680 echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
43681 { (exit 1); exit 1; }; }
43683 cat >conftest.$ac_ext <<_ACEOF
43686 cat confdefs.h >>conftest.$ac_ext
43687 cat >>conftest.$ac_ext <<_ACEOF
43688 /* end confdefs.h. */
43689 main (int argc, char **argv) {
43690 /* Are we little or big endian? From Harbison&Steele. */
43694 char c[sizeof (long)];
43697 exit (u.c[sizeof (long) - 1] == 1);
43700 rm -f conftest$ac_exeext
43701 if { (ac_try="$ac_link"
43702 case "(($ac_try" in
43703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43704 *) ac_try_echo=$ac_try;;
43706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43707 (eval "$ac_link") 2>&5
43709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43711 { (case "(($ac_try" in
43712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43713 *) ac_try_echo=$ac_try;;
43715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43716 (eval "$ac_try") 2>&5
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); }; }; then
43720 krb_cv_c_bigendian=no
43722 echo "$as_me: program exited with status $ac_status" >&5
43723 echo "$as_me: failed program was:" >&5
43724 sed 's/^/| /' conftest.$ac_ext >&5
43726 ( exit $ac_status )
43727 krb_cv_c_bigendian=yes
43729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43736 { echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
43737 echo "${ECHO_T}$krb_cv_c_bigendian" >&6; }
43738 if test "$krb_cv_c_bigendian" = "yes"; then
43740 cat >>confdefs.h <<\_ACEOF
43741 #define WORDS_BIGENDIAN 1
43744 if test "$krb_cv_c_bigendian_compile" = "yes"; then
43746 cat >>confdefs.h <<\_ACEOF
43747 #define ENDIANESS_IN_SYS_PARAM_H 1
43753 { echo "$as_me:$LINENO: checking for inline" >&5
43754 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
43755 if test "${ac_cv_c_inline+set}" = set; then
43756 echo $ECHO_N "(cached) $ECHO_C" >&6
43759 for ac_kw in inline __inline__ __inline; do
43760 cat >conftest.$ac_ext <<_ACEOF
43763 cat confdefs.h >>conftest.$ac_ext
43764 cat >>conftest.$ac_ext <<_ACEOF
43765 /* end confdefs.h. */
43766 #ifndef __cplusplus
43768 static $ac_kw foo_t static_foo () {return 0; }
43769 $ac_kw foo_t foo () {return 0; }
43773 rm -f conftest.$ac_objext
43774 if { (ac_try="$ac_compile"
43775 case "(($ac_try" in
43776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43777 *) ac_try_echo=$ac_try;;
43779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43780 (eval "$ac_compile") 2>conftest.er1
43782 grep -v '^ *+' conftest.er1 >conftest.err
43784 cat conftest.err >&5
43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43786 (exit $ac_status); } && {
43787 test -z "$ac_c_werror_flag" ||
43788 test ! -s conftest.err
43789 } && test -s conftest.$ac_objext; then
43790 ac_cv_c_inline=$ac_kw
43792 echo "$as_me: failed program was:" >&5
43793 sed 's/^/| /' conftest.$ac_ext >&5
43798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43799 test "$ac_cv_c_inline" != no && break
43803 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
43804 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
43807 case $ac_cv_c_inline in
43810 case $ac_cv_c_inline in
43812 *) ac_val=$ac_cv_c_inline;;
43814 cat >>confdefs.h <<_ACEOF
43815 #ifndef __cplusplus
43816 #define inline $ac_val
43827 { echo "$as_me:$LINENO: checking for dlopen" >&5
43828 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
43829 if test "${ac_cv_funclib_dlopen+set}" = set; then
43830 echo $ECHO_N "(cached) $ECHO_C" >&6
43833 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
43834 ac_save_LIBS="$LIBS"
43835 for ac_lib in "" dl; do
43841 *) ac_lib="-l$ac_lib" ;;
43843 LIBS=" $ac_lib $ac_save_LIBS"
43844 cat >conftest.$ac_ext <<_ACEOF
43847 cat confdefs.h >>conftest.$ac_ext
43848 cat >>conftest.$ac_ext <<_ACEOF
43849 /* end confdefs.h. */
43851 #ifdef HAVE_DLFCN_H
43862 rm -f conftest.$ac_objext conftest$ac_exeext
43863 if { (ac_try="$ac_link"
43864 case "(($ac_try" in
43865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43866 *) ac_try_echo=$ac_try;;
43868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43869 (eval "$ac_link") 2>conftest.er1
43871 grep -v '^ *+' conftest.er1 >conftest.err
43873 cat conftest.err >&5
43874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43875 (exit $ac_status); } && {
43876 test -z "$ac_c_werror_flag" ||
43877 test ! -s conftest.err
43878 } && test -s conftest$ac_exeext &&
43879 $as_test_x conftest$ac_exeext; then
43880 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
43882 echo "$as_me: failed program was:" >&5
43883 sed 's/^/| /' conftest.$ac_ext >&5
43888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43889 conftest$ac_exeext conftest.$ac_ext
43891 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
43892 LIBS="$ac_save_LIBS"
43898 eval "ac_res=\$ac_cv_funclib_dlopen"
43902 for ac_func in dlopen
43904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43908 echo $ECHO_N "(cached) $ECHO_C" >&6
43910 cat >conftest.$ac_ext <<_ACEOF
43913 cat confdefs.h >>conftest.$ac_ext
43914 cat >>conftest.$ac_ext <<_ACEOF
43915 /* end confdefs.h. */
43916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43918 #define $ac_func innocuous_$ac_func
43920 /* System header to define __stub macros and hopefully few prototypes,
43921 which can conflict with char $ac_func (); below.
43922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43923 <limits.h> exists even on freestanding compilers. */
43926 # include <limits.h>
43928 # include <assert.h>
43933 /* Override any GCC internal prototype to avoid an error.
43934 Use char because int might match the return type of a GCC
43935 builtin and then its argument prototype would still apply. */
43940 /* The GNU C library defines this for functions which it implements
43941 to always fail with ENOSYS. Some functions are actually named
43942 something starting with __ and the normal name is an alias. */
43943 #if defined __stub_$ac_func || defined __stub___$ac_func
43950 return $ac_func ();
43955 rm -f conftest.$ac_objext conftest$ac_exeext
43956 if { (ac_try="$ac_link"
43957 case "(($ac_try" in
43958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43959 *) ac_try_echo=$ac_try;;
43961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43962 (eval "$ac_link") 2>conftest.er1
43964 grep -v '^ *+' conftest.er1 >conftest.err
43966 cat conftest.err >&5
43967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43968 (exit $ac_status); } && {
43969 test -z "$ac_c_werror_flag" ||
43970 test ! -s conftest.err
43971 } && test -s conftest$ac_exeext &&
43972 $as_test_x conftest$ac_exeext; then
43973 eval "$as_ac_var=yes"
43975 echo "$as_me: failed program was:" >&5
43976 sed 's/^/| /' conftest.$ac_ext >&5
43978 eval "$as_ac_var=no"
43981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43982 conftest$ac_exeext conftest.$ac_ext
43984 ac_res=`eval echo '${'$as_ac_var'}'`
43985 { echo "$as_me:$LINENO: result: $ac_res" >&5
43986 echo "${ECHO_T}$ac_res" >&6; }
43987 if test `eval echo '${'$as_ac_var'}'` = yes; then
43988 cat >>confdefs.h <<_ACEOF
43989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43997 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
43998 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
43999 eval "LIB_dlopen=$ac_res"
44003 eval "ac_cv_func_dlopen=yes"
44005 cat >>confdefs.h <<_ACEOF
44006 #define $ac_tr_func 1
44009 { echo "$as_me:$LINENO: result: yes" >&5
44010 echo "${ECHO_T}yes" >&6; }
44013 eval "ac_cv_func_dlopen=no"
44015 { echo "$as_me:$LINENO: result: no" >&5
44016 echo "${ECHO_T}no" >&6; }
44019 eval "ac_cv_func_dlopen=yes"
44020 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
44021 cat >>confdefs.h <<_ACEOF
44022 #define $ac_tr_func 1
44025 cat >>confdefs.h <<_ACEOF
44026 #define $ac_tr_lib 1
44029 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
44030 echo "${ECHO_T}yes, in $ac_res" >&6; }
44035 if test "$ac_cv_funclib_dlopen" != no; then
44037 HAVE_DLOPEN_FALSE='#'
44039 HAVE_DLOPEN_TRUE='#'
44051 *-*-aix4*|*-*-aix5*)
44056 if test "$aix" != no; then
44063 if test "$aix" = 4; then
44073 # Check whether --enable-dynamic-afs was given.
44074 if test "${enable_dynamic_afs+set}" = set; then
44075 enableval=$enable_dynamic_afs;
44079 if test "$aix" != no; then
44080 if test "$enable_dynamic_afs" != no; then
44082 if test "$ac_cv_func_dlopen" = no; then
44086 { echo "$as_me:$LINENO: checking for loadquery" >&5
44087 echo $ECHO_N "checking for loadquery... $ECHO_C" >&6; }
44088 if test "${ac_cv_funclib_loadquery+set}" = set; then
44089 echo $ECHO_N "(cached) $ECHO_C" >&6
44092 if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
44093 ac_save_LIBS="$LIBS"
44094 for ac_lib in "" ld; do
44100 *) ac_lib="-l$ac_lib" ;;
44102 LIBS=" $ac_lib $ac_save_LIBS"
44103 cat >conftest.$ac_ext <<_ACEOF
44106 cat confdefs.h >>conftest.$ac_ext
44107 cat >>conftest.$ac_ext <<_ACEOF
44108 /* end confdefs.h. */
44118 rm -f conftest.$ac_objext conftest$ac_exeext
44119 if { (ac_try="$ac_link"
44120 case "(($ac_try" in
44121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44122 *) ac_try_echo=$ac_try;;
44124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44125 (eval "$ac_link") 2>conftest.er1
44127 grep -v '^ *+' conftest.er1 >conftest.err
44129 cat conftest.err >&5
44130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131 (exit $ac_status); } && {
44132 test -z "$ac_c_werror_flag" ||
44133 test ! -s conftest.err
44134 } && test -s conftest$ac_exeext &&
44135 $as_test_x conftest$ac_exeext; then
44136 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
44138 echo "$as_me: failed program was:" >&5
44139 sed 's/^/| /' conftest.$ac_ext >&5
44144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44145 conftest$ac_exeext conftest.$ac_ext
44147 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
44148 LIBS="$ac_save_LIBS"
44154 eval "ac_res=\$ac_cv_funclib_loadquery"
44158 for ac_func in loadquery
44160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44164 echo $ECHO_N "(cached) $ECHO_C" >&6
44166 cat >conftest.$ac_ext <<_ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h. */
44172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44174 #define $ac_func innocuous_$ac_func
44176 /* System header to define __stub macros and hopefully few prototypes,
44177 which can conflict with char $ac_func (); below.
44178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44179 <limits.h> exists even on freestanding compilers. */
44182 # include <limits.h>
44184 # include <assert.h>
44189 /* Override any GCC internal prototype to avoid an error.
44190 Use char because int might match the return type of a GCC
44191 builtin and then its argument prototype would still apply. */
44196 /* The GNU C library defines this for functions which it implements
44197 to always fail with ENOSYS. Some functions are actually named
44198 something starting with __ and the normal name is an alias. */
44199 #if defined __stub_$ac_func || defined __stub___$ac_func
44206 return $ac_func ();
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (ac_try="$ac_link"
44213 case "(($ac_try" in
44214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44215 *) ac_try_echo=$ac_try;;
44217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44218 (eval "$ac_link") 2>conftest.er1
44220 grep -v '^ *+' conftest.er1 >conftest.err
44222 cat conftest.err >&5
44223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44224 (exit $ac_status); } && {
44225 test -z "$ac_c_werror_flag" ||
44226 test ! -s conftest.err
44227 } && test -s conftest$ac_exeext &&
44228 $as_test_x conftest$ac_exeext; then
44229 eval "$as_ac_var=yes"
44231 echo "$as_me: failed program was:" >&5
44232 sed 's/^/| /' conftest.$ac_ext >&5
44234 eval "$as_ac_var=no"
44237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44238 conftest$ac_exeext conftest.$ac_ext
44240 ac_res=`eval echo '${'$as_ac_var'}'`
44241 { echo "$as_me:$LINENO: result: $ac_res" >&5
44242 echo "${ECHO_T}$ac_res" >&6; }
44243 if test `eval echo '${'$as_ac_var'}'` = yes; then
44244 cat >>confdefs.h <<_ACEOF
44245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44253 eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
44254 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
44255 eval "LIB_loadquery=$ac_res"
44259 eval "ac_cv_func_loadquery=yes"
44260 eval "LIB_loadquery="
44261 cat >>confdefs.h <<_ACEOF
44262 #define $ac_tr_func 1
44265 { echo "$as_me:$LINENO: result: yes" >&5
44266 echo "${ECHO_T}yes" >&6; }
44269 eval "ac_cv_func_loadquery=no"
44270 eval "LIB_loadquery="
44271 { echo "$as_me:$LINENO: result: no" >&5
44272 echo "${ECHO_T}no" >&6; }
44275 eval "ac_cv_func_loadquery=yes"
44276 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
44277 cat >>confdefs.h <<_ACEOF
44278 #define $ac_tr_func 1
44281 cat >>confdefs.h <<_ACEOF
44282 #define $ac_tr_lib 1
44285 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
44286 echo "${ECHO_T}yes, in $ac_res" >&6; }
44292 if test "$ac_cv_func_dlopen" != no; then
44293 AIX_EXTRA_KAFS='$(LIB_dlopen)'
44294 elif test "$ac_cv_func_loadquery" != no; then
44295 AIX_EXTRA_KAFS='$(LIB_loadquery)'
44297 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
44298 echo "$as_me: not using dynloaded AFS library" >&6;}
44300 enable_dynamic_afs=no
44307 if test "$enable_dynamic_afs" != no; then
44308 AIX_DYNAMIC_AFS_TRUE=
44309 AIX_DYNAMIC_AFS_FALSE='#'
44311 AIX_DYNAMIC_AFS_TRUE='#'
44312 AIX_DYNAMIC_AFS_FALSE=
44324 cat >>confdefs.h <<\_ACEOF
44334 if test "$irix" != no; then
44354 *-*-solaris2.[89] | *-*-solaris2.10)
44361 if test "$sunos" != no; then
44363 cat >>confdefs.h <<_ACEOF
44364 #define SunOS $sunos
44370 { echo "$as_me:$LINENO: checking for X" >&5
44371 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
44374 # Check whether --with-x was given.
44375 if test "${with_x+set}" = set; then
44379 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
44380 if test "x$with_x" = xno; then
44381 # The user explicitly disabled X.
44384 case $x_includes,$x_libraries in #(
44385 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
44386 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
44387 { (exit 1); exit 1; }; };; #(
44388 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
44389 echo $ECHO_N "(cached) $ECHO_C" >&6
44391 # One or both of the vars are not set, and there is no cached value.
44392 ac_x_includes=no ac_x_libraries=no
44393 rm -f -r conftest.dir
44394 if mkdir conftest.dir; then
44396 cat >Imakefile <<'_ACEOF'
44398 @echo incroot='${INCROOT}'
44400 @echo usrlibdir='${USRLIBDIR}'
44402 @echo libdir='${LIBDIR}'
44404 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
44405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44406 for ac_var in incroot usrlibdir libdir; do
44407 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
44409 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
44410 for ac_extension in a so sl; do
44411 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
44412 test -f "$ac_im_libdir/libX11.$ac_extension"; then
44413 ac_im_usrlibdir=$ac_im_libdir; break
44416 # Screen out bogus values from the imake configuration. They are
44417 # bogus both because they are the default anyway, and because
44418 # using them would break gcc on systems where it needs fixed includes.
44419 case $ac_im_incroot in
44420 /usr/include) ac_x_includes= ;;
44421 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
44423 case $ac_im_usrlibdir in
44424 /usr/lib | /lib) ;;
44425 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
44429 rm -f -r conftest.dir
44432 # Standard set of common directories for X headers.
44433 # Check X11 before X11Rn because it is often a symlink to the current release.
44445 /usr/local/X11/include
44446 /usr/local/X11R6/include
44447 /usr/local/X11R5/include
44448 /usr/local/X11R4/include
44450 /usr/local/include/X11
44451 /usr/local/include/X11R6
44452 /usr/local/include/X11R5
44453 /usr/local/include/X11R4
44457 /usr/XFree86/include/X11
44461 /usr/unsupported/include
44462 /usr/athena/include
44463 /usr/local/x11r5/include
44464 /usr/lpp/Xamples/include
44466 /usr/openwin/include
44467 /usr/openwin/share/include'
44469 if test "$ac_x_includes" = no; then
44470 # Guess where to find include files, by looking for Xlib.h.
44471 # First, try using that file with no special directory specified.
44472 cat >conftest.$ac_ext <<_ACEOF
44475 cat confdefs.h >>conftest.$ac_ext
44476 cat >>conftest.$ac_ext <<_ACEOF
44477 /* end confdefs.h. */
44478 #include <X11/Xlib.h>
44480 if { (ac_try="$ac_cpp conftest.$ac_ext"
44481 case "(($ac_try" in
44482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44483 *) ac_try_echo=$ac_try;;
44485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44488 grep -v '^ *+' conftest.er1 >conftest.err
44490 cat conftest.err >&5
44491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492 (exit $ac_status); } >/dev/null && {
44493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44494 test ! -s conftest.err
44496 # We can compile using X headers with no special include directory.
44499 echo "$as_me: failed program was:" >&5
44500 sed 's/^/| /' conftest.$ac_ext >&5
44502 for ac_dir in $ac_x_header_dirs; do
44503 if test -r "$ac_dir/X11/Xlib.h"; then
44504 ac_x_includes=$ac_dir
44510 rm -f conftest.err conftest.$ac_ext
44511 fi # $ac_x_includes = no
44513 if test "$ac_x_libraries" = no; then
44514 # Check for the libraries.
44515 # See if we find them without any special options.
44516 # Don't add to $LIBS permanently.
44519 cat >conftest.$ac_ext <<_ACEOF
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h. */
44525 #include <X11/Xlib.h>
44534 rm -f conftest.$ac_objext conftest$ac_exeext
44535 if { (ac_try="$ac_link"
44536 case "(($ac_try" in
44537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44538 *) ac_try_echo=$ac_try;;
44540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44541 (eval "$ac_link") 2>conftest.er1
44543 grep -v '^ *+' conftest.er1 >conftest.err
44545 cat conftest.err >&5
44546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44547 (exit $ac_status); } && {
44548 test -z "$ac_c_werror_flag" ||
44549 test ! -s conftest.err
44550 } && test -s conftest$ac_exeext &&
44551 $as_test_x conftest$ac_exeext; then
44553 # We can link X programs with no special library path.
44556 echo "$as_me: failed program was:" >&5
44557 sed 's/^/| /' conftest.$ac_ext >&5
44560 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
44562 # Don't even attempt the hair of trying to link an X program!
44563 for ac_extension in a so sl; do
44564 if test -r "$ac_dir/libX11.$ac_extension"; then
44565 ac_x_libraries=$ac_dir
44572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44573 conftest$ac_exeext conftest.$ac_ext
44574 fi # $ac_x_libraries = no
44576 case $ac_x_includes,$ac_x_libraries in #(
44577 no,* | *,no | *\'*)
44578 # Didn't find X, or a directory has "'" in its name.
44579 ac_cv_have_x="have_x=no";; #(
44581 # Record where we found X for the cache.
44582 ac_cv_have_x="have_x=yes\
44583 ac_x_includes='$ac_x_includes'\
44584 ac_x_libraries='$ac_x_libraries'"
44590 eval "$ac_cv_have_x"
44593 if test "$have_x" != yes; then
44594 { echo "$as_me:$LINENO: result: $have_x" >&5
44595 echo "${ECHO_T}$have_x" >&6; }
44598 # If each of the values was on the command line, it overrides each guess.
44599 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
44600 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
44601 # Update the cache value to reflect the command line values.
44602 ac_cv_have_x="have_x=yes\
44603 ac_x_includes='$x_includes'\
44604 ac_x_libraries='$x_libraries'"
44605 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
44606 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
44610 if test "$no_x" = yes; then
44611 # Not all programs may use this symbol, but it does not hurt to define it.
44613 cat >>confdefs.h <<\_ACEOF
44614 #define X_DISPLAY_MISSING 1
44617 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
44619 if test -n "$x_includes"; then
44620 X_CFLAGS="$X_CFLAGS -I$x_includes"
44623 # It would also be nice to do this for all -L options, not just this one.
44624 if test -n "$x_libraries"; then
44625 X_LIBS="$X_LIBS -L$x_libraries"
44626 # For Solaris; some versions of Sun CC require a space after -R and
44627 # others require no space. Words are not sufficient . . . .
44628 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
44629 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
44630 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
44631 ac_xsave_c_werror_flag=$ac_c_werror_flag
44632 ac_c_werror_flag=yes
44633 cat >conftest.$ac_ext <<_ACEOF
44636 cat confdefs.h >>conftest.$ac_ext
44637 cat >>conftest.$ac_ext <<_ACEOF
44638 /* end confdefs.h. */
44648 rm -f conftest.$ac_objext conftest$ac_exeext
44649 if { (ac_try="$ac_link"
44650 case "(($ac_try" in
44651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44652 *) ac_try_echo=$ac_try;;
44654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44655 (eval "$ac_link") 2>conftest.er1
44657 grep -v '^ *+' conftest.er1 >conftest.err
44659 cat conftest.err >&5
44660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44661 (exit $ac_status); } && {
44662 test -z "$ac_c_werror_flag" ||
44663 test ! -s conftest.err
44664 } && test -s conftest$ac_exeext &&
44665 $as_test_x conftest$ac_exeext; then
44666 { echo "$as_me:$LINENO: result: no" >&5
44667 echo "${ECHO_T}no" >&6; }
44668 X_LIBS="$X_LIBS -R$x_libraries"
44670 echo "$as_me: failed program was:" >&5
44671 sed 's/^/| /' conftest.$ac_ext >&5
44673 LIBS="$ac_xsave_LIBS -R $x_libraries"
44674 cat >conftest.$ac_ext <<_ACEOF
44677 cat confdefs.h >>conftest.$ac_ext
44678 cat >>conftest.$ac_ext <<_ACEOF
44679 /* end confdefs.h. */
44689 rm -f conftest.$ac_objext conftest$ac_exeext
44690 if { (ac_try="$ac_link"
44691 case "(($ac_try" in
44692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44693 *) ac_try_echo=$ac_try;;
44695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44696 (eval "$ac_link") 2>conftest.er1
44698 grep -v '^ *+' conftest.er1 >conftest.err
44700 cat conftest.err >&5
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); } && {
44703 test -z "$ac_c_werror_flag" ||
44704 test ! -s conftest.err
44705 } && test -s conftest$ac_exeext &&
44706 $as_test_x conftest$ac_exeext; then
44707 { echo "$as_me:$LINENO: result: yes" >&5
44708 echo "${ECHO_T}yes" >&6; }
44709 X_LIBS="$X_LIBS -R $x_libraries"
44711 echo "$as_me: failed program was:" >&5
44712 sed 's/^/| /' conftest.$ac_ext >&5
44714 { echo "$as_me:$LINENO: result: neither works" >&5
44715 echo "${ECHO_T}neither works" >&6; }
44718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44719 conftest$ac_exeext conftest.$ac_ext
44722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44723 conftest$ac_exeext conftest.$ac_ext
44724 ac_c_werror_flag=$ac_xsave_c_werror_flag
44725 LIBS=$ac_xsave_LIBS
44728 # Check for system-dependent libraries X programs must link with.
44729 # Do this before checking for the system-independent R6 libraries
44730 # (-lICE), since we may need -lsocket or whatever for X linking.
44732 if test "$ISC" = yes; then
44733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
44735 # Martyn Johnson says this is needed for Ultrix, if the X
44736 # libraries were built with DECnet support. And Karl Berry says
44737 # the Alpha needs dnet_stub (dnet does not exist).
44738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
44739 cat >conftest.$ac_ext <<_ACEOF
44742 cat confdefs.h >>conftest.$ac_ext
44743 cat >>conftest.$ac_ext <<_ACEOF
44744 /* end confdefs.h. */
44746 /* Override any GCC internal prototype to avoid an error.
44747 Use char because int might match the return type of a GCC
44748 builtin and then its argument prototype would still apply. */
44752 char XOpenDisplay ();
44756 return XOpenDisplay ();
44761 rm -f conftest.$ac_objext conftest$ac_exeext
44762 if { (ac_try="$ac_link"
44763 case "(($ac_try" in
44764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44765 *) ac_try_echo=$ac_try;;
44767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44768 (eval "$ac_link") 2>conftest.er1
44770 grep -v '^ *+' conftest.er1 >conftest.err
44772 cat conftest.err >&5
44773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44774 (exit $ac_status); } && {
44775 test -z "$ac_c_werror_flag" ||
44776 test ! -s conftest.err
44777 } && test -s conftest$ac_exeext &&
44778 $as_test_x conftest$ac_exeext; then
44781 echo "$as_me: failed program was:" >&5
44782 sed 's/^/| /' conftest.$ac_ext >&5
44784 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
44785 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
44786 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
44787 echo $ECHO_N "(cached) $ECHO_C" >&6
44789 ac_check_lib_save_LIBS=$LIBS
44790 LIBS="-ldnet $LIBS"
44791 cat >conftest.$ac_ext <<_ACEOF
44794 cat confdefs.h >>conftest.$ac_ext
44795 cat >>conftest.$ac_ext <<_ACEOF
44796 /* end confdefs.h. */
44798 /* Override any GCC internal prototype to avoid an error.
44799 Use char because int might match the return type of a GCC
44800 builtin and then its argument prototype would still apply. */
44808 return dnet_ntoa ();
44813 rm -f conftest.$ac_objext conftest$ac_exeext
44814 if { (ac_try="$ac_link"
44815 case "(($ac_try" in
44816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44817 *) ac_try_echo=$ac_try;;
44819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44820 (eval "$ac_link") 2>conftest.er1
44822 grep -v '^ *+' conftest.er1 >conftest.err
44824 cat conftest.err >&5
44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44826 (exit $ac_status); } && {
44827 test -z "$ac_c_werror_flag" ||
44828 test ! -s conftest.err
44829 } && test -s conftest$ac_exeext &&
44830 $as_test_x conftest$ac_exeext; then
44831 ac_cv_lib_dnet_dnet_ntoa=yes
44833 echo "$as_me: failed program was:" >&5
44834 sed 's/^/| /' conftest.$ac_ext >&5
44836 ac_cv_lib_dnet_dnet_ntoa=no
44839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44840 conftest$ac_exeext conftest.$ac_ext
44841 LIBS=$ac_check_lib_save_LIBS
44843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
44844 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
44845 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
44846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
44849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
44850 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
44851 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
44852 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
44853 echo $ECHO_N "(cached) $ECHO_C" >&6
44855 ac_check_lib_save_LIBS=$LIBS
44856 LIBS="-ldnet_stub $LIBS"
44857 cat >conftest.$ac_ext <<_ACEOF
44860 cat confdefs.h >>conftest.$ac_ext
44861 cat >>conftest.$ac_ext <<_ACEOF
44862 /* end confdefs.h. */
44864 /* Override any GCC internal prototype to avoid an error.
44865 Use char because int might match the return type of a GCC
44866 builtin and then its argument prototype would still apply. */
44874 return dnet_ntoa ();
44879 rm -f conftest.$ac_objext conftest$ac_exeext
44880 if { (ac_try="$ac_link"
44881 case "(($ac_try" in
44882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44883 *) ac_try_echo=$ac_try;;
44885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44886 (eval "$ac_link") 2>conftest.er1
44888 grep -v '^ *+' conftest.er1 >conftest.err
44890 cat conftest.err >&5
44891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44892 (exit $ac_status); } && {
44893 test -z "$ac_c_werror_flag" ||
44894 test ! -s conftest.err
44895 } && test -s conftest$ac_exeext &&
44896 $as_test_x conftest$ac_exeext; then
44897 ac_cv_lib_dnet_stub_dnet_ntoa=yes
44899 echo "$as_me: failed program was:" >&5
44900 sed 's/^/| /' conftest.$ac_ext >&5
44902 ac_cv_lib_dnet_stub_dnet_ntoa=no
44905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44906 conftest$ac_exeext conftest.$ac_ext
44907 LIBS=$ac_check_lib_save_LIBS
44909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
44910 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
44911 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
44912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
44918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44919 conftest$ac_exeext conftest.$ac_ext
44920 LIBS="$ac_xsave_LIBS"
44922 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
44923 # to get the SysV transport functions.
44924 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
44926 # The nsl library prevents programs from opening the X display
44927 # on Irix 5.2, according to T.E. Dickey.
44928 # The functions gethostbyname, getservbyname, and inet_addr are
44929 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
44930 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
44931 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
44932 if test "${ac_cv_func_gethostbyname+set}" = set; then
44933 echo $ECHO_N "(cached) $ECHO_C" >&6
44935 cat >conftest.$ac_ext <<_ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h. */
44941 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
44942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44943 #define gethostbyname innocuous_gethostbyname
44945 /* System header to define __stub macros and hopefully few prototypes,
44946 which can conflict with char gethostbyname (); below.
44947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44948 <limits.h> exists even on freestanding compilers. */
44951 # include <limits.h>
44953 # include <assert.h>
44956 #undef gethostbyname
44958 /* Override any GCC internal prototype to avoid an error.
44959 Use char because int might match the return type of a GCC
44960 builtin and then its argument prototype would still apply. */
44964 char gethostbyname ();
44965 /* The GNU C library defines this for functions which it implements
44966 to always fail with ENOSYS. Some functions are actually named
44967 something starting with __ and the normal name is an alias. */
44968 #if defined __stub_gethostbyname || defined __stub___gethostbyname
44975 return gethostbyname ();
44980 rm -f conftest.$ac_objext conftest$ac_exeext
44981 if { (ac_try="$ac_link"
44982 case "(($ac_try" in
44983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44984 *) ac_try_echo=$ac_try;;
44986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44987 (eval "$ac_link") 2>conftest.er1
44989 grep -v '^ *+' conftest.er1 >conftest.err
44991 cat conftest.err >&5
44992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44993 (exit $ac_status); } && {
44994 test -z "$ac_c_werror_flag" ||
44995 test ! -s conftest.err
44996 } && test -s conftest$ac_exeext &&
44997 $as_test_x conftest$ac_exeext; then
44998 ac_cv_func_gethostbyname=yes
45000 echo "$as_me: failed program was:" >&5
45001 sed 's/^/| /' conftest.$ac_ext >&5
45003 ac_cv_func_gethostbyname=no
45006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45007 conftest$ac_exeext conftest.$ac_ext
45009 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
45010 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
45012 if test $ac_cv_func_gethostbyname = no; then
45013 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
45014 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
45015 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
45016 echo $ECHO_N "(cached) $ECHO_C" >&6
45018 ac_check_lib_save_LIBS=$LIBS
45020 cat >conftest.$ac_ext <<_ACEOF
45023 cat confdefs.h >>conftest.$ac_ext
45024 cat >>conftest.$ac_ext <<_ACEOF
45025 /* end confdefs.h. */
45027 /* Override any GCC internal prototype to avoid an error.
45028 Use char because int might match the return type of a GCC
45029 builtin and then its argument prototype would still apply. */
45033 char gethostbyname ();
45037 return gethostbyname ();
45042 rm -f conftest.$ac_objext conftest$ac_exeext
45043 if { (ac_try="$ac_link"
45044 case "(($ac_try" in
45045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45046 *) ac_try_echo=$ac_try;;
45048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45049 (eval "$ac_link") 2>conftest.er1
45051 grep -v '^ *+' conftest.er1 >conftest.err
45053 cat conftest.err >&5
45054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45055 (exit $ac_status); } && {
45056 test -z "$ac_c_werror_flag" ||
45057 test ! -s conftest.err
45058 } && test -s conftest$ac_exeext &&
45059 $as_test_x conftest$ac_exeext; then
45060 ac_cv_lib_nsl_gethostbyname=yes
45062 echo "$as_me: failed program was:" >&5
45063 sed 's/^/| /' conftest.$ac_ext >&5
45065 ac_cv_lib_nsl_gethostbyname=no
45068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45069 conftest$ac_exeext conftest.$ac_ext
45070 LIBS=$ac_check_lib_save_LIBS
45072 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
45073 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
45074 if test $ac_cv_lib_nsl_gethostbyname = yes; then
45075 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
45078 if test $ac_cv_lib_nsl_gethostbyname = no; then
45079 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
45080 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
45081 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
45082 echo $ECHO_N "(cached) $ECHO_C" >&6
45084 ac_check_lib_save_LIBS=$LIBS
45086 cat >conftest.$ac_ext <<_ACEOF
45089 cat confdefs.h >>conftest.$ac_ext
45090 cat >>conftest.$ac_ext <<_ACEOF
45091 /* end confdefs.h. */
45093 /* Override any GCC internal prototype to avoid an error.
45094 Use char because int might match the return type of a GCC
45095 builtin and then its argument prototype would still apply. */
45099 char gethostbyname ();
45103 return gethostbyname ();
45108 rm -f conftest.$ac_objext conftest$ac_exeext
45109 if { (ac_try="$ac_link"
45110 case "(($ac_try" in
45111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45112 *) ac_try_echo=$ac_try;;
45114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45115 (eval "$ac_link") 2>conftest.er1
45117 grep -v '^ *+' conftest.er1 >conftest.err
45119 cat conftest.err >&5
45120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45121 (exit $ac_status); } && {
45122 test -z "$ac_c_werror_flag" ||
45123 test ! -s conftest.err
45124 } && test -s conftest$ac_exeext &&
45125 $as_test_x conftest$ac_exeext; then
45126 ac_cv_lib_bsd_gethostbyname=yes
45128 echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45131 ac_cv_lib_bsd_gethostbyname=no
45134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45135 conftest$ac_exeext conftest.$ac_ext
45136 LIBS=$ac_check_lib_save_LIBS
45138 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
45139 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
45140 if test $ac_cv_lib_bsd_gethostbyname = yes; then
45141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
45147 # lieder@skyler.mavd.honeywell.com says without -lsocket,
45148 # socket/setsockopt and other routines are undefined under SCO ODT
45149 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
45150 # on later versions), says Simon Leinen: it contains gethostby*
45151 # variants that don't use the name server (or something). -lsocket
45152 # must be given before -lnsl if both are needed. We assume that
45153 # if connect needs -lnsl, so does gethostbyname.
45154 { echo "$as_me:$LINENO: checking for connect" >&5
45155 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
45156 if test "${ac_cv_func_connect+set}" = set; then
45157 echo $ECHO_N "(cached) $ECHO_C" >&6
45159 cat >conftest.$ac_ext <<_ACEOF
45162 cat confdefs.h >>conftest.$ac_ext
45163 cat >>conftest.$ac_ext <<_ACEOF
45164 /* end confdefs.h. */
45165 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
45166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45167 #define connect innocuous_connect
45169 /* System header to define __stub macros and hopefully few prototypes,
45170 which can conflict with char connect (); below.
45171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45172 <limits.h> exists even on freestanding compilers. */
45175 # include <limits.h>
45177 # include <assert.h>
45182 /* Override any GCC internal prototype to avoid an error.
45183 Use char because int might match the return type of a GCC
45184 builtin and then its argument prototype would still apply. */
45189 /* The GNU C library defines this for functions which it implements
45190 to always fail with ENOSYS. Some functions are actually named
45191 something starting with __ and the normal name is an alias. */
45192 #if defined __stub_connect || defined __stub___connect
45204 rm -f conftest.$ac_objext conftest$ac_exeext
45205 if { (ac_try="$ac_link"
45206 case "(($ac_try" in
45207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45208 *) ac_try_echo=$ac_try;;
45210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45211 (eval "$ac_link") 2>conftest.er1
45213 grep -v '^ *+' conftest.er1 >conftest.err
45215 cat conftest.err >&5
45216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217 (exit $ac_status); } && {
45218 test -z "$ac_c_werror_flag" ||
45219 test ! -s conftest.err
45220 } && test -s conftest$ac_exeext &&
45221 $as_test_x conftest$ac_exeext; then
45222 ac_cv_func_connect=yes
45224 echo "$as_me: failed program was:" >&5
45225 sed 's/^/| /' conftest.$ac_ext >&5
45227 ac_cv_func_connect=no
45230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45231 conftest$ac_exeext conftest.$ac_ext
45233 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
45234 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
45236 if test $ac_cv_func_connect = no; then
45237 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
45238 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
45239 if test "${ac_cv_lib_socket_connect+set}" = set; then
45240 echo $ECHO_N "(cached) $ECHO_C" >&6
45242 ac_check_lib_save_LIBS=$LIBS
45243 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
45244 cat >conftest.$ac_ext <<_ACEOF
45247 cat confdefs.h >>conftest.$ac_ext
45248 cat >>conftest.$ac_ext <<_ACEOF
45249 /* end confdefs.h. */
45251 /* Override any GCC internal prototype to avoid an error.
45252 Use char because int might match the return type of a GCC
45253 builtin and then its argument prototype would still apply. */
45266 rm -f conftest.$ac_objext conftest$ac_exeext
45267 if { (ac_try="$ac_link"
45268 case "(($ac_try" in
45269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45270 *) ac_try_echo=$ac_try;;
45272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45273 (eval "$ac_link") 2>conftest.er1
45275 grep -v '^ *+' conftest.er1 >conftest.err
45277 cat conftest.err >&5
45278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279 (exit $ac_status); } && {
45280 test -z "$ac_c_werror_flag" ||
45281 test ! -s conftest.err
45282 } && test -s conftest$ac_exeext &&
45283 $as_test_x conftest$ac_exeext; then
45284 ac_cv_lib_socket_connect=yes
45286 echo "$as_me: failed program was:" >&5
45287 sed 's/^/| /' conftest.$ac_ext >&5
45289 ac_cv_lib_socket_connect=no
45292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45293 conftest$ac_exeext conftest.$ac_ext
45294 LIBS=$ac_check_lib_save_LIBS
45296 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
45297 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
45298 if test $ac_cv_lib_socket_connect = yes; then
45299 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
45304 # Guillermo Gomez says -lposix is necessary on A/UX.
45305 { echo "$as_me:$LINENO: checking for remove" >&5
45306 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
45307 if test "${ac_cv_func_remove+set}" = set; then
45308 echo $ECHO_N "(cached) $ECHO_C" >&6
45310 cat >conftest.$ac_ext <<_ACEOF
45313 cat confdefs.h >>conftest.$ac_ext
45314 cat >>conftest.$ac_ext <<_ACEOF
45315 /* end confdefs.h. */
45316 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
45317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45318 #define remove innocuous_remove
45320 /* System header to define __stub macros and hopefully few prototypes,
45321 which can conflict with char remove (); below.
45322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45323 <limits.h> exists even on freestanding compilers. */
45326 # include <limits.h>
45328 # include <assert.h>
45333 /* Override any GCC internal prototype to avoid an error.
45334 Use char because int might match the return type of a GCC
45335 builtin and then its argument prototype would still apply. */
45340 /* The GNU C library defines this for functions which it implements
45341 to always fail with ENOSYS. Some functions are actually named
45342 something starting with __ and the normal name is an alias. */
45343 #if defined __stub_remove || defined __stub___remove
45355 rm -f conftest.$ac_objext conftest$ac_exeext
45356 if { (ac_try="$ac_link"
45357 case "(($ac_try" in
45358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45359 *) ac_try_echo=$ac_try;;
45361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45362 (eval "$ac_link") 2>conftest.er1
45364 grep -v '^ *+' conftest.er1 >conftest.err
45366 cat conftest.err >&5
45367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45368 (exit $ac_status); } && {
45369 test -z "$ac_c_werror_flag" ||
45370 test ! -s conftest.err
45371 } && test -s conftest$ac_exeext &&
45372 $as_test_x conftest$ac_exeext; then
45373 ac_cv_func_remove=yes
45375 echo "$as_me: failed program was:" >&5
45376 sed 's/^/| /' conftest.$ac_ext >&5
45378 ac_cv_func_remove=no
45381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45382 conftest$ac_exeext conftest.$ac_ext
45384 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
45385 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
45387 if test $ac_cv_func_remove = no; then
45388 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
45389 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
45390 if test "${ac_cv_lib_posix_remove+set}" = set; then
45391 echo $ECHO_N "(cached) $ECHO_C" >&6
45393 ac_check_lib_save_LIBS=$LIBS
45394 LIBS="-lposix $LIBS"
45395 cat >conftest.$ac_ext <<_ACEOF
45398 cat confdefs.h >>conftest.$ac_ext
45399 cat >>conftest.$ac_ext <<_ACEOF
45400 /* end confdefs.h. */
45402 /* Override any GCC internal prototype to avoid an error.
45403 Use char because int might match the return type of a GCC
45404 builtin and then its argument prototype would still apply. */
45417 rm -f conftest.$ac_objext conftest$ac_exeext
45418 if { (ac_try="$ac_link"
45419 case "(($ac_try" in
45420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45421 *) ac_try_echo=$ac_try;;
45423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45424 (eval "$ac_link") 2>conftest.er1
45426 grep -v '^ *+' conftest.er1 >conftest.err
45428 cat conftest.err >&5
45429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45430 (exit $ac_status); } && {
45431 test -z "$ac_c_werror_flag" ||
45432 test ! -s conftest.err
45433 } && test -s conftest$ac_exeext &&
45434 $as_test_x conftest$ac_exeext; then
45435 ac_cv_lib_posix_remove=yes
45437 echo "$as_me: failed program was:" >&5
45438 sed 's/^/| /' conftest.$ac_ext >&5
45440 ac_cv_lib_posix_remove=no
45443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45444 conftest$ac_exeext conftest.$ac_ext
45445 LIBS=$ac_check_lib_save_LIBS
45447 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
45448 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
45449 if test $ac_cv_lib_posix_remove = yes; then
45450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
45455 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
45456 { echo "$as_me:$LINENO: checking for shmat" >&5
45457 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
45458 if test "${ac_cv_func_shmat+set}" = set; then
45459 echo $ECHO_N "(cached) $ECHO_C" >&6
45461 cat >conftest.$ac_ext <<_ACEOF
45464 cat confdefs.h >>conftest.$ac_ext
45465 cat >>conftest.$ac_ext <<_ACEOF
45466 /* end confdefs.h. */
45467 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
45468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45469 #define shmat innocuous_shmat
45471 /* System header to define __stub macros and hopefully few prototypes,
45472 which can conflict with char shmat (); below.
45473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45474 <limits.h> exists even on freestanding compilers. */
45477 # include <limits.h>
45479 # include <assert.h>
45484 /* Override any GCC internal prototype to avoid an error.
45485 Use char because int might match the return type of a GCC
45486 builtin and then its argument prototype would still apply. */
45491 /* The GNU C library defines this for functions which it implements
45492 to always fail with ENOSYS. Some functions are actually named
45493 something starting with __ and the normal name is an alias. */
45494 #if defined __stub_shmat || defined __stub___shmat
45506 rm -f conftest.$ac_objext conftest$ac_exeext
45507 if { (ac_try="$ac_link"
45508 case "(($ac_try" in
45509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45510 *) ac_try_echo=$ac_try;;
45512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45513 (eval "$ac_link") 2>conftest.er1
45515 grep -v '^ *+' conftest.er1 >conftest.err
45517 cat conftest.err >&5
45518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45519 (exit $ac_status); } && {
45520 test -z "$ac_c_werror_flag" ||
45521 test ! -s conftest.err
45522 } && test -s conftest$ac_exeext &&
45523 $as_test_x conftest$ac_exeext; then
45524 ac_cv_func_shmat=yes
45526 echo "$as_me: failed program was:" >&5
45527 sed 's/^/| /' conftest.$ac_ext >&5
45529 ac_cv_func_shmat=no
45532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45533 conftest$ac_exeext conftest.$ac_ext
45535 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
45536 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
45538 if test $ac_cv_func_shmat = no; then
45539 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
45540 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
45541 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
45542 echo $ECHO_N "(cached) $ECHO_C" >&6
45544 ac_check_lib_save_LIBS=$LIBS
45546 cat >conftest.$ac_ext <<_ACEOF
45549 cat confdefs.h >>conftest.$ac_ext
45550 cat >>conftest.$ac_ext <<_ACEOF
45551 /* end confdefs.h. */
45553 /* Override any GCC internal prototype to avoid an error.
45554 Use char because int might match the return type of a GCC
45555 builtin and then its argument prototype would still apply. */
45568 rm -f conftest.$ac_objext conftest$ac_exeext
45569 if { (ac_try="$ac_link"
45570 case "(($ac_try" in
45571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45572 *) ac_try_echo=$ac_try;;
45574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45575 (eval "$ac_link") 2>conftest.er1
45577 grep -v '^ *+' conftest.er1 >conftest.err
45579 cat conftest.err >&5
45580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45581 (exit $ac_status); } && {
45582 test -z "$ac_c_werror_flag" ||
45583 test ! -s conftest.err
45584 } && test -s conftest$ac_exeext &&
45585 $as_test_x conftest$ac_exeext; then
45586 ac_cv_lib_ipc_shmat=yes
45588 echo "$as_me: failed program was:" >&5
45589 sed 's/^/| /' conftest.$ac_ext >&5
45591 ac_cv_lib_ipc_shmat=no
45594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45595 conftest$ac_exeext conftest.$ac_ext
45596 LIBS=$ac_check_lib_save_LIBS
45598 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
45599 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
45600 if test $ac_cv_lib_ipc_shmat = yes; then
45601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
45607 # Check for libraries that X11R6 Xt/Xaw programs need.
45608 ac_save_LDFLAGS=$LDFLAGS
45609 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
45610 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
45611 # check for ICE first), but we must link in the order -lSM -lICE or
45612 # we get undefined symbols. So assume we have SM if we have ICE.
45613 # These have to be linked with before -lX11, unlike the other
45614 # libraries we check for below, so use a different variable.
45615 # John Interrante, Karl Berry
45616 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
45617 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
45618 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
45619 echo $ECHO_N "(cached) $ECHO_C" >&6
45621 ac_check_lib_save_LIBS=$LIBS
45622 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
45623 cat >conftest.$ac_ext <<_ACEOF
45626 cat confdefs.h >>conftest.$ac_ext
45627 cat >>conftest.$ac_ext <<_ACEOF
45628 /* end confdefs.h. */
45630 /* Override any GCC internal prototype to avoid an error.
45631 Use char because int might match the return type of a GCC
45632 builtin and then its argument prototype would still apply. */
45636 char IceConnectionNumber ();
45640 return IceConnectionNumber ();
45645 rm -f conftest.$ac_objext conftest$ac_exeext
45646 if { (ac_try="$ac_link"
45647 case "(($ac_try" in
45648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45649 *) ac_try_echo=$ac_try;;
45651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45652 (eval "$ac_link") 2>conftest.er1
45654 grep -v '^ *+' conftest.er1 >conftest.err
45656 cat conftest.err >&5
45657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45658 (exit $ac_status); } && {
45659 test -z "$ac_c_werror_flag" ||
45660 test ! -s conftest.err
45661 } && test -s conftest$ac_exeext &&
45662 $as_test_x conftest$ac_exeext; then
45663 ac_cv_lib_ICE_IceConnectionNumber=yes
45665 echo "$as_me: failed program was:" >&5
45666 sed 's/^/| /' conftest.$ac_ext >&5
45668 ac_cv_lib_ICE_IceConnectionNumber=no
45671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45672 conftest$ac_exeext conftest.$ac_ext
45673 LIBS=$ac_check_lib_save_LIBS
45675 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
45676 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
45677 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
45678 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
45681 LDFLAGS=$ac_save_LDFLAGS
45686 # try to figure out if we need any additional ld flags, like -R
45687 # and yes, the autoconf X test is utterly broken
45688 if test "$no_x" != yes; then
45689 { echo "$as_me:$LINENO: checking for special X linker flags" >&5
45690 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6; }
45691 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
45692 echo $ECHO_N "(cached) $ECHO_C" >&6
45695 ac_save_libs="$LIBS"
45696 ac_save_cflags="$CFLAGS"
45697 CFLAGS="$CFLAGS $X_CFLAGS"
45698 krb_cv_sys_x_libs_rpath=""
45699 krb_cv_sys_x_libs=""
45700 for rflag in "" "-R" "-R " "-rpath "; do
45701 if test "$rflag" = ""; then
45705 for flag in $X_LIBS; do
45708 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
45716 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
45717 if test "$cross_compiling" = yes; then
45718 krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break
45720 cat >conftest.$ac_ext <<_ACEOF
45722 #include <X11/Xlib.h>
45725 XOpenDisplay(NULL);
45727 main(int argc, char **argv)
45733 rm -f conftest$ac_exeext
45734 if { (ac_try="$ac_link"
45735 case "(($ac_try" in
45736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45737 *) ac_try_echo=$ac_try;;
45739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45740 (eval "$ac_link") 2>&5
45742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45744 { (case "(($ac_try" in
45745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45746 *) ac_try_echo=$ac_try;;
45748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45749 (eval "$ac_try") 2>&5
45751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45752 (exit $ac_status); }; }; then
45753 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
45755 echo "$as_me: program exited with status $ac_status" >&5
45756 echo "$as_me: failed program was:" >&5
45757 sed 's/^/| /' conftest.$ac_ext >&5
45759 ( exit $ac_status )
45762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45767 LIBS="$ac_save_libs"
45768 CFLAGS="$ac_save_cflags"
45771 { echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
45772 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6; }
45773 X_LIBS="$krb_cv_sys_x_libs"
45777 if test "$no_x" != yes; then
45787 save_CFLAGS="$CFLAGS"
45788 CFLAGS="$X_CFLAGS $CFLAGS"
45790 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
45791 save_LDFLAGS="$LDFLAGS"
45792 LDFLAGS="$LDFLAGS $X_LIBS"
45794 ## check for XauWriteAuth first, so we detect the case where
45795 ## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this
45796 ## could be done by checking for XauReadAuth in -lXau first, but this
45797 ## breaks in IRIX 6.5
45802 { echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
45803 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6; }
45804 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
45805 echo $ECHO_N "(cached) $ECHO_C" >&6
45808 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
45809 ac_save_LIBS="$LIBS"
45810 for ac_lib in "" X11 Xau; do
45816 *) ac_lib="-l$ac_lib" ;;
45818 LIBS=" $ac_lib $ac_save_LIBS"
45819 cat >conftest.$ac_ext <<_ACEOF
45822 cat confdefs.h >>conftest.$ac_ext
45823 cat >>conftest.$ac_ext <<_ACEOF
45824 /* end confdefs.h. */
45825 #include <X11/Xauth.h>
45834 rm -f conftest.$ac_objext conftest$ac_exeext
45835 if { (ac_try="$ac_link"
45836 case "(($ac_try" in
45837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45838 *) ac_try_echo=$ac_try;;
45840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45841 (eval "$ac_link") 2>conftest.er1
45843 grep -v '^ *+' conftest.er1 >conftest.err
45845 cat conftest.err >&5
45846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45847 (exit $ac_status); } && {
45848 test -z "$ac_c_werror_flag" ||
45849 test ! -s conftest.err
45850 } && test -s conftest$ac_exeext &&
45851 $as_test_x conftest$ac_exeext; then
45852 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
45854 echo "$as_me: failed program was:" >&5
45855 sed 's/^/| /' conftest.$ac_ext >&5
45860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45861 conftest$ac_exeext conftest.$ac_ext
45863 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
45864 LIBS="$ac_save_LIBS"
45870 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
45874 for ac_func in XauWriteAuth
45876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45880 echo $ECHO_N "(cached) $ECHO_C" >&6
45882 cat >conftest.$ac_ext <<_ACEOF
45885 cat confdefs.h >>conftest.$ac_ext
45886 cat >>conftest.$ac_ext <<_ACEOF
45887 /* end confdefs.h. */
45888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45890 #define $ac_func innocuous_$ac_func
45892 /* System header to define __stub macros and hopefully few prototypes,
45893 which can conflict with char $ac_func (); below.
45894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45895 <limits.h> exists even on freestanding compilers. */
45898 # include <limits.h>
45900 # include <assert.h>
45905 /* Override any GCC internal prototype to avoid an error.
45906 Use char because int might match the return type of a GCC
45907 builtin and then its argument prototype would still apply. */
45912 /* The GNU C library defines this for functions which it implements
45913 to always fail with ENOSYS. Some functions are actually named
45914 something starting with __ and the normal name is an alias. */
45915 #if defined __stub_$ac_func || defined __stub___$ac_func
45922 return $ac_func ();
45927 rm -f conftest.$ac_objext conftest$ac_exeext
45928 if { (ac_try="$ac_link"
45929 case "(($ac_try" in
45930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45931 *) ac_try_echo=$ac_try;;
45933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45934 (eval "$ac_link") 2>conftest.er1
45936 grep -v '^ *+' conftest.er1 >conftest.err
45938 cat conftest.err >&5
45939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45940 (exit $ac_status); } && {
45941 test -z "$ac_c_werror_flag" ||
45942 test ! -s conftest.err
45943 } && test -s conftest$ac_exeext &&
45944 $as_test_x conftest$ac_exeext; then
45945 eval "$as_ac_var=yes"
45947 echo "$as_me: failed program was:" >&5
45948 sed 's/^/| /' conftest.$ac_ext >&5
45950 eval "$as_ac_var=no"
45953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45954 conftest$ac_exeext conftest.$ac_ext
45956 ac_res=`eval echo '${'$as_ac_var'}'`
45957 { echo "$as_me:$LINENO: result: $ac_res" >&5
45958 echo "${ECHO_T}$ac_res" >&6; }
45959 if test `eval echo '${'$as_ac_var'}'` = yes; then
45960 cat >>confdefs.h <<_ACEOF
45961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45969 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45970 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45971 eval "LIB_XauWriteAuth=$ac_res"
45975 eval "ac_cv_func_XauWriteAuth=yes"
45976 eval "LIB_XauWriteAuth="
45977 cat >>confdefs.h <<_ACEOF
45978 #define $ac_tr_func 1
45981 { echo "$as_me:$LINENO: result: yes" >&5
45982 echo "${ECHO_T}yes" >&6; }
45985 eval "ac_cv_func_XauWriteAuth=no"
45986 eval "LIB_XauWriteAuth="
45987 { echo "$as_me:$LINENO: result: no" >&5
45988 echo "${ECHO_T}no" >&6; }
45991 eval "ac_cv_func_XauWriteAuth=yes"
45992 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45993 cat >>confdefs.h <<_ACEOF
45994 #define $ac_tr_func 1
45997 cat >>confdefs.h <<_ACEOF
45998 #define $ac_tr_lib 1
46001 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46002 echo "${ECHO_T}yes, in $ac_res" >&6; }
46008 LIBS="$LIB_XauWriteAuth $LIBS"
46012 { echo "$as_me:$LINENO: checking for XauReadAuth" >&5
46013 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6; }
46014 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
46015 echo $ECHO_N "(cached) $ECHO_C" >&6
46018 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
46019 ac_save_LIBS="$LIBS"
46020 for ac_lib in "" X11 Xau; do
46026 *) ac_lib="-l$ac_lib" ;;
46028 LIBS=" $ac_lib $ac_save_LIBS"
46029 cat >conftest.$ac_ext <<_ACEOF
46032 cat confdefs.h >>conftest.$ac_ext
46033 cat >>conftest.$ac_ext <<_ACEOF
46034 /* end confdefs.h. */
46035 #include <X11/Xauth.h>
46044 rm -f conftest.$ac_objext conftest$ac_exeext
46045 if { (ac_try="$ac_link"
46046 case "(($ac_try" in
46047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46048 *) ac_try_echo=$ac_try;;
46050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46051 (eval "$ac_link") 2>conftest.er1
46053 grep -v '^ *+' conftest.er1 >conftest.err
46055 cat conftest.err >&5
46056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46057 (exit $ac_status); } && {
46058 test -z "$ac_c_werror_flag" ||
46059 test ! -s conftest.err
46060 } && test -s conftest$ac_exeext &&
46061 $as_test_x conftest$ac_exeext; then
46062 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
46064 echo "$as_me: failed program was:" >&5
46065 sed 's/^/| /' conftest.$ac_ext >&5
46070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46071 conftest$ac_exeext conftest.$ac_ext
46073 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
46074 LIBS="$ac_save_LIBS"
46080 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
46084 for ac_func in XauReadAuth
46086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46090 echo $ECHO_N "(cached) $ECHO_C" >&6
46092 cat >conftest.$ac_ext <<_ACEOF
46095 cat confdefs.h >>conftest.$ac_ext
46096 cat >>conftest.$ac_ext <<_ACEOF
46097 /* end confdefs.h. */
46098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46100 #define $ac_func innocuous_$ac_func
46102 /* System header to define __stub macros and hopefully few prototypes,
46103 which can conflict with char $ac_func (); below.
46104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46105 <limits.h> exists even on freestanding compilers. */
46108 # include <limits.h>
46110 # include <assert.h>
46115 /* Override any GCC internal prototype to avoid an error.
46116 Use char because int might match the return type of a GCC
46117 builtin and then its argument prototype would still apply. */
46122 /* The GNU C library defines this for functions which it implements
46123 to always fail with ENOSYS. Some functions are actually named
46124 something starting with __ and the normal name is an alias. */
46125 #if defined __stub_$ac_func || defined __stub___$ac_func
46132 return $ac_func ();
46137 rm -f conftest.$ac_objext conftest$ac_exeext
46138 if { (ac_try="$ac_link"
46139 case "(($ac_try" in
46140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46141 *) ac_try_echo=$ac_try;;
46143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46144 (eval "$ac_link") 2>conftest.er1
46146 grep -v '^ *+' conftest.er1 >conftest.err
46148 cat conftest.err >&5
46149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150 (exit $ac_status); } && {
46151 test -z "$ac_c_werror_flag" ||
46152 test ! -s conftest.err
46153 } && test -s conftest$ac_exeext &&
46154 $as_test_x conftest$ac_exeext; then
46155 eval "$as_ac_var=yes"
46157 echo "$as_me: failed program was:" >&5
46158 sed 's/^/| /' conftest.$ac_ext >&5
46160 eval "$as_ac_var=no"
46163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46164 conftest$ac_exeext conftest.$ac_ext
46166 ac_res=`eval echo '${'$as_ac_var'}'`
46167 { echo "$as_me:$LINENO: result: $ac_res" >&5
46168 echo "${ECHO_T}$ac_res" >&6; }
46169 if test `eval echo '${'$as_ac_var'}'` = yes; then
46170 cat >>confdefs.h <<_ACEOF
46171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46179 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46180 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46181 eval "LIB_XauReadAuth=$ac_res"
46185 eval "ac_cv_func_XauReadAuth=yes"
46186 eval "LIB_XauReadAuth="
46187 cat >>confdefs.h <<_ACEOF
46188 #define $ac_tr_func 1
46191 { echo "$as_me:$LINENO: result: yes" >&5
46192 echo "${ECHO_T}yes" >&6; }
46195 eval "ac_cv_func_XauReadAuth=no"
46196 eval "LIB_XauReadAuth="
46197 { echo "$as_me:$LINENO: result: no" >&5
46198 echo "${ECHO_T}no" >&6; }
46201 eval "ac_cv_func_XauReadAuth=yes"
46202 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
46203 cat >>confdefs.h <<_ACEOF
46204 #define $ac_tr_func 1
46207 cat >>confdefs.h <<_ACEOF
46208 #define $ac_tr_lib 1
46211 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46212 echo "${ECHO_T}yes, in $ac_res" >&6; }
46217 LIBS="$LIB_XauReadAauth $LIBS"
46221 { echo "$as_me:$LINENO: checking for XauFileName" >&5
46222 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6; }
46223 if test "${ac_cv_funclib_XauFileName+set}" = set; then
46224 echo $ECHO_N "(cached) $ECHO_C" >&6
46227 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
46228 ac_save_LIBS="$LIBS"
46229 for ac_lib in "" X11 Xau; do
46235 *) ac_lib="-l$ac_lib" ;;
46237 LIBS=" $ac_lib $ac_save_LIBS"
46238 cat >conftest.$ac_ext <<_ACEOF
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h. */
46244 #include <X11/Xauth.h>
46253 rm -f conftest.$ac_objext conftest$ac_exeext
46254 if { (ac_try="$ac_link"
46255 case "(($ac_try" in
46256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46257 *) ac_try_echo=$ac_try;;
46259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46260 (eval "$ac_link") 2>conftest.er1
46262 grep -v '^ *+' conftest.er1 >conftest.err
46264 cat conftest.err >&5
46265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266 (exit $ac_status); } && {
46267 test -z "$ac_c_werror_flag" ||
46268 test ! -s conftest.err
46269 } && test -s conftest$ac_exeext &&
46270 $as_test_x conftest$ac_exeext; then
46271 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
46273 echo "$as_me: failed program was:" >&5
46274 sed 's/^/| /' conftest.$ac_ext >&5
46279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46280 conftest$ac_exeext conftest.$ac_ext
46282 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
46283 LIBS="$ac_save_LIBS"
46289 eval "ac_res=\$ac_cv_funclib_XauFileName"
46293 for ac_func in XauFileName
46295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46299 echo $ECHO_N "(cached) $ECHO_C" >&6
46301 cat >conftest.$ac_ext <<_ACEOF
46304 cat confdefs.h >>conftest.$ac_ext
46305 cat >>conftest.$ac_ext <<_ACEOF
46306 /* end confdefs.h. */
46307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46309 #define $ac_func innocuous_$ac_func
46311 /* System header to define __stub macros and hopefully few prototypes,
46312 which can conflict with char $ac_func (); below.
46313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46314 <limits.h> exists even on freestanding compilers. */
46317 # include <limits.h>
46319 # include <assert.h>
46324 /* Override any GCC internal prototype to avoid an error.
46325 Use char because int might match the return type of a GCC
46326 builtin and then its argument prototype would still apply. */
46331 /* The GNU C library defines this for functions which it implements
46332 to always fail with ENOSYS. Some functions are actually named
46333 something starting with __ and the normal name is an alias. */
46334 #if defined __stub_$ac_func || defined __stub___$ac_func
46341 return $ac_func ();
46346 rm -f conftest.$ac_objext conftest$ac_exeext
46347 if { (ac_try="$ac_link"
46348 case "(($ac_try" in
46349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46350 *) ac_try_echo=$ac_try;;
46352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46353 (eval "$ac_link") 2>conftest.er1
46355 grep -v '^ *+' conftest.er1 >conftest.err
46357 cat conftest.err >&5
46358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46359 (exit $ac_status); } && {
46360 test -z "$ac_c_werror_flag" ||
46361 test ! -s conftest.err
46362 } && test -s conftest$ac_exeext &&
46363 $as_test_x conftest$ac_exeext; then
46364 eval "$as_ac_var=yes"
46366 echo "$as_me: failed program was:" >&5
46367 sed 's/^/| /' conftest.$ac_ext >&5
46369 eval "$as_ac_var=no"
46372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46373 conftest$ac_exeext conftest.$ac_ext
46375 ac_res=`eval echo '${'$as_ac_var'}'`
46376 { echo "$as_me:$LINENO: result: $ac_res" >&5
46377 echo "${ECHO_T}$ac_res" >&6; }
46378 if test `eval echo '${'$as_ac_var'}'` = yes; then
46379 cat >>confdefs.h <<_ACEOF
46380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46388 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46389 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
46390 eval "LIB_XauFileName=$ac_res"
46394 eval "ac_cv_func_XauFileName=yes"
46395 eval "LIB_XauFileName="
46396 cat >>confdefs.h <<_ACEOF
46397 #define $ac_tr_func 1
46400 { echo "$as_me:$LINENO: result: yes" >&5
46401 echo "${ECHO_T}yes" >&6; }
46404 eval "ac_cv_func_XauFileName=no"
46405 eval "LIB_XauFileName="
46406 { echo "$as_me:$LINENO: result: no" >&5
46407 echo "${ECHO_T}no" >&6; }
46410 eval "ac_cv_func_XauFileName=yes"
46411 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
46412 cat >>confdefs.h <<_ACEOF
46413 #define $ac_tr_func 1
46416 cat >>confdefs.h <<_ACEOF
46417 #define $ac_tr_lib 1
46420 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
46421 echo "${ECHO_T}yes, in $ac_res" >&6; }
46428 ## set LIB_XauReadAuth to union of these tests, since this is what the
46429 ## Makefiles are using
46430 case "$ac_cv_funclib_XauWriteAuth" in
46433 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
46434 if test "$ac_cv_funclib_XauFileName" = yes; then
46435 LIB_XauReadAuth="$LIB_XauWriteAuth"
46437 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
46440 if test "$ac_cv_funclib_XauFileName" = yes; then
46441 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
46443 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
46449 if test "$AUTOMAKE" != ""; then
46450 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
46451 NEED_WRITEAUTH_TRUE=
46452 NEED_WRITEAUTH_FALSE='#'
46454 NEED_WRITEAUTH_TRUE='#'
46455 NEED_WRITEAUTH_FALSE=
46461 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
46462 NEED_WRITEAUTH_TRUE=
46463 NEED_WRITEAUTH_FALSE='#'
46465 NEED_WRITEAUTH_TRUE='#'
46466 NEED_WRITEAUTH_FALSE=
46469 CFLAGS=$save_CFLAGS
46471 LDFLAGS=$save_LDFLAGS
46475 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
46476 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
46477 if test "${ac_cv_c_const+set}" = set; then
46478 echo $ECHO_N "(cached) $ECHO_C" >&6
46480 cat >conftest.$ac_ext <<_ACEOF
46483 cat confdefs.h >>conftest.$ac_ext
46484 cat >>conftest.$ac_ext <<_ACEOF
46485 /* end confdefs.h. */
46490 /* FIXME: Include the comments suggested by Paul. */
46491 #ifndef __cplusplus
46492 /* Ultrix mips cc rejects this. */
46493 typedef int charset[2];
46495 /* SunOS 4.1.1 cc rejects this. */
46496 char const *const *pcpcc;
46498 /* NEC SVR4.0.2 mips cc rejects this. */
46499 struct point {int x, y;};
46500 static struct point const zero = {0,0};
46501 /* AIX XL C 1.02.0.0 rejects this.
46502 It does not let you subtract one const X* pointer from another in
46503 an arm of an if-expression whose if-part is not a constant
46505 const char *g = "string";
46506 pcpcc = &g + (g ? g-g : 0);
46507 /* HPUX 7.0 cc rejects these. */
46509 ppc = (char**) pcpcc;
46510 pcpcc = (char const *const *) ppc;
46511 { /* SCO 3.2v4 cc rejects this. */
46513 char const *s = 0 ? (char *) 0 : (char const *) 0;
46518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
46519 int x[] = {25, 17};
46520 const int *foo = &x[0];
46523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
46524 typedef const int *iptr;
46528 { /* AIX XL C 1.02.0.0 rejects this saying
46529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
46530 struct s { int j; const int *ap[3]; };
46531 struct s *b; b->j = 5;
46533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
46534 const int foo = 10;
46535 if (!foo) return 0;
46537 return !cs[0] && !zero.x;
46544 rm -f conftest.$ac_objext
46545 if { (ac_try="$ac_compile"
46546 case "(($ac_try" in
46547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46548 *) ac_try_echo=$ac_try;;
46550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46551 (eval "$ac_compile") 2>conftest.er1
46553 grep -v '^ *+' conftest.er1 >conftest.err
46555 cat conftest.err >&5
46556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46557 (exit $ac_status); } && {
46558 test -z "$ac_c_werror_flag" ||
46559 test ! -s conftest.err
46560 } && test -s conftest.$ac_objext; then
46563 echo "$as_me: failed program was:" >&5
46564 sed 's/^/| /' conftest.$ac_ext >&5
46569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46571 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
46572 echo "${ECHO_T}$ac_cv_c_const" >&6; }
46573 if test $ac_cv_c_const = no; then
46575 cat >>confdefs.h <<\_ACEOF
46581 { echo "$as_me:$LINENO: checking for off_t" >&5
46582 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
46583 if test "${ac_cv_type_off_t+set}" = set; then
46584 echo $ECHO_N "(cached) $ECHO_C" >&6
46586 cat >conftest.$ac_ext <<_ACEOF
46589 cat confdefs.h >>conftest.$ac_ext
46590 cat >>conftest.$ac_ext <<_ACEOF
46591 /* end confdefs.h. */
46592 $ac_includes_default
46593 typedef off_t ac__type_new_;
46597 if ((ac__type_new_ *) 0)
46599 if (sizeof (ac__type_new_))
46605 rm -f conftest.$ac_objext
46606 if { (ac_try="$ac_compile"
46607 case "(($ac_try" in
46608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46609 *) ac_try_echo=$ac_try;;
46611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46612 (eval "$ac_compile") 2>conftest.er1
46614 grep -v '^ *+' conftest.er1 >conftest.err
46616 cat conftest.err >&5
46617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618 (exit $ac_status); } && {
46619 test -z "$ac_c_werror_flag" ||
46620 test ! -s conftest.err
46621 } && test -s conftest.$ac_objext; then
46622 ac_cv_type_off_t=yes
46624 echo "$as_me: failed program was:" >&5
46625 sed 's/^/| /' conftest.$ac_ext >&5
46627 ac_cv_type_off_t=no
46630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46632 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46633 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
46634 if test $ac_cv_type_off_t = yes; then
46638 cat >>confdefs.h <<_ACEOF
46639 #define off_t long int
46644 { echo "$as_me:$LINENO: checking for mode_t" >&5
46645 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
46646 if test "${ac_cv_type_mode_t+set}" = set; then
46647 echo $ECHO_N "(cached) $ECHO_C" >&6
46649 cat >conftest.$ac_ext <<_ACEOF
46652 cat confdefs.h >>conftest.$ac_ext
46653 cat >>conftest.$ac_ext <<_ACEOF
46654 /* end confdefs.h. */
46655 #include <sys/types.h>
46657 #include <stdlib.h>
46658 #include <stddef.h>
46662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46663 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
46664 ac_cv_type_mode_t=yes
46666 ac_cv_type_mode_t=no
46671 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46672 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
46673 if test $ac_cv_type_mode_t = no; then
46675 cat >>confdefs.h <<\_ACEOF
46676 #define mode_t unsigned short
46681 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
46682 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
46683 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
46684 echo $ECHO_N "(cached) $ECHO_C" >&6
46686 cat >conftest.$ac_ext <<_ACEOF
46689 cat confdefs.h >>conftest.$ac_ext
46690 cat >>conftest.$ac_ext <<_ACEOF
46691 /* end confdefs.h. */
46692 #include <sys/types.h>
46694 #include <stdlib.h>
46695 #include <stddef.h>
46697 #include <signal.h>
46699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46700 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
46701 ac_cv_type_sig_atomic_t=yes
46703 ac_cv_type_sig_atomic_t=no
46708 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
46709 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
46710 if test $ac_cv_type_sig_atomic_t = no; then
46712 cat >>confdefs.h <<\_ACEOF
46713 #define sig_atomic_t int
46720 cv=`echo "long long" | sed 'y%./+- %__p__%'`
46721 { echo "$as_me:$LINENO: checking for long long" >&5
46722 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
46723 if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
46724 echo $ECHO_N "(cached) $ECHO_C" >&6
46726 cat >conftest.$ac_ext <<_ACEOF
46729 cat confdefs.h >>conftest.$ac_ext
46730 cat >>conftest.$ac_ext <<_ACEOF
46731 /* end confdefs.h. */
46733 #include <sys/types.h>
46735 #include <stdlib.h>
46736 #include <stddef.h>
46747 rm -f conftest.$ac_objext
46748 if { (ac_try="$ac_compile"
46749 case "(($ac_try" in
46750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46751 *) ac_try_echo=$ac_try;;
46753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46754 (eval "$ac_compile") 2>conftest.er1
46756 grep -v '^ *+' conftest.er1 >conftest.err
46758 cat conftest.err >&5
46759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760 (exit $ac_status); } && {
46761 test -z "$ac_c_werror_flag" ||
46762 test ! -s conftest.err
46763 } && test -s conftest.$ac_objext; then
46764 eval "ac_cv_type_$cv=yes"
46766 echo "$as_me: failed program was:" >&5
46767 sed 's/^/| /' conftest.$ac_ext >&5
46769 eval "ac_cv_type_$cv=no"
46772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46774 ac_foo=`eval echo \\$ac_cv_type_$cv`
46775 { echo "$as_me:$LINENO: result: $ac_foo" >&5
46776 echo "${ECHO_T}$ac_foo" >&6; }
46777 if test "$ac_foo" = yes; then
46778 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
46780 { echo "$as_me:$LINENO: checking for long long" >&5
46781 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
46782 if test "${ac_cv_type_long_long+set}" = set; then
46783 echo $ECHO_N "(cached) $ECHO_C" >&6
46785 cat >conftest.$ac_ext <<_ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h. */
46791 $ac_includes_default
46792 typedef long long ac__type_new_;
46796 if ((ac__type_new_ *) 0)
46798 if (sizeof (ac__type_new_))
46804 rm -f conftest.$ac_objext
46805 if { (ac_try="$ac_compile"
46806 case "(($ac_try" in
46807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46808 *) ac_try_echo=$ac_try;;
46810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46811 (eval "$ac_compile") 2>conftest.er1
46813 grep -v '^ *+' conftest.er1 >conftest.err
46815 cat conftest.err >&5
46816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46817 (exit $ac_status); } && {
46818 test -z "$ac_c_werror_flag" ||
46819 test ! -s conftest.err
46820 } && test -s conftest.$ac_objext; then
46821 ac_cv_type_long_long=yes
46823 echo "$as_me: failed program was:" >&5
46824 sed 's/^/| /' conftest.$ac_ext >&5
46826 ac_cv_type_long_long=no
46829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46831 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
46832 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
46833 if test $ac_cv_type_long_long = yes; then
46835 cat >>confdefs.h <<_ACEOF
46836 #define HAVE_LONG_LONG 1
46844 cat >>confdefs.h <<_ACEOF
46845 #define $ac_tr_hdr 1
46850 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
46852 if test "${ac_cv_header_time+set}" = set; then
46853 echo $ECHO_N "(cached) $ECHO_C" >&6
46855 cat >conftest.$ac_ext <<_ACEOF
46858 cat confdefs.h >>conftest.$ac_ext
46859 cat >>conftest.$ac_ext <<_ACEOF
46860 /* end confdefs.h. */
46861 #include <sys/types.h>
46862 #include <sys/time.h>
46868 if ((struct tm *) 0)
46874 rm -f conftest.$ac_objext
46875 if { (ac_try="$ac_compile"
46876 case "(($ac_try" in
46877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46878 *) ac_try_echo=$ac_try;;
46880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46881 (eval "$ac_compile") 2>conftest.er1
46883 grep -v '^ *+' conftest.er1 >conftest.err
46885 cat conftest.err >&5
46886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46887 (exit $ac_status); } && {
46888 test -z "$ac_c_werror_flag" ||
46889 test ! -s conftest.err
46890 } && test -s conftest.$ac_objext; then
46891 ac_cv_header_time=yes
46893 echo "$as_me: failed program was:" >&5
46894 sed 's/^/| /' conftest.$ac_ext >&5
46896 ac_cv_header_time=no
46899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46901 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46902 echo "${ECHO_T}$ac_cv_header_time" >&6; }
46903 if test $ac_cv_header_time = yes; then
46905 cat >>confdefs.h <<\_ACEOF
46906 #define TIME_WITH_SYS_TIME 1
46911 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
46912 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
46913 if test "${ac_cv_struct_tm+set}" = set; then
46914 echo $ECHO_N "(cached) $ECHO_C" >&6
46916 cat >conftest.$ac_ext <<_ACEOF
46919 cat confdefs.h >>conftest.$ac_ext
46920 cat >>conftest.$ac_ext <<_ACEOF
46921 /* end confdefs.h. */
46922 #include <sys/types.h>
46929 int *p = &tm.tm_sec;
46935 rm -f conftest.$ac_objext
46936 if { (ac_try="$ac_compile"
46937 case "(($ac_try" in
46938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46939 *) ac_try_echo=$ac_try;;
46941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46942 (eval "$ac_compile") 2>conftest.er1
46944 grep -v '^ *+' conftest.er1 >conftest.err
46946 cat conftest.err >&5
46947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948 (exit $ac_status); } && {
46949 test -z "$ac_c_werror_flag" ||
46950 test ! -s conftest.err
46951 } && test -s conftest.$ac_objext; then
46952 ac_cv_struct_tm=time.h
46954 echo "$as_me: failed program was:" >&5
46955 sed 's/^/| /' conftest.$ac_ext >&5
46957 ac_cv_struct_tm=sys/time.h
46960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46962 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
46963 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
46964 if test $ac_cv_struct_tm = sys/time.h; then
46966 cat >>confdefs.h <<\_ACEOF
46967 #define TM_IN_SYS_TIME 1
46973 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
46974 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
46975 if test "${ac_cv_header_stdc+set}" = set; then
46976 echo $ECHO_N "(cached) $ECHO_C" >&6
46978 cat >conftest.$ac_ext <<_ACEOF
46981 cat confdefs.h >>conftest.$ac_ext
46982 cat >>conftest.$ac_ext <<_ACEOF
46983 /* end confdefs.h. */
46984 #include <stdlib.h>
46985 #include <stdarg.h>
46986 #include <string.h>
46997 rm -f conftest.$ac_objext
46998 if { (ac_try="$ac_compile"
46999 case "(($ac_try" in
47000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47001 *) ac_try_echo=$ac_try;;
47003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47004 (eval "$ac_compile") 2>conftest.er1
47006 grep -v '^ *+' conftest.er1 >conftest.err
47008 cat conftest.err >&5
47009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010 (exit $ac_status); } && {
47011 test -z "$ac_c_werror_flag" ||
47012 test ! -s conftest.err
47013 } && test -s conftest.$ac_objext; then
47014 ac_cv_header_stdc=yes
47016 echo "$as_me: failed program was:" >&5
47017 sed 's/^/| /' conftest.$ac_ext >&5
47019 ac_cv_header_stdc=no
47022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47024 if test $ac_cv_header_stdc = yes; then
47025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
47026 cat >conftest.$ac_ext <<_ACEOF
47029 cat confdefs.h >>conftest.$ac_ext
47030 cat >>conftest.$ac_ext <<_ACEOF
47031 /* end confdefs.h. */
47032 #include <string.h>
47035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47036 $EGREP "memchr" >/dev/null 2>&1; then
47039 ac_cv_header_stdc=no
47045 if test $ac_cv_header_stdc = yes; then
47046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
47047 cat >conftest.$ac_ext <<_ACEOF
47050 cat confdefs.h >>conftest.$ac_ext
47051 cat >>conftest.$ac_ext <<_ACEOF
47052 /* end confdefs.h. */
47053 #include <stdlib.h>
47056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47057 $EGREP "free" >/dev/null 2>&1; then
47060 ac_cv_header_stdc=no
47066 if test $ac_cv_header_stdc = yes; then
47067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
47068 if test "$cross_compiling" = yes; then
47071 cat >conftest.$ac_ext <<_ACEOF
47074 cat confdefs.h >>conftest.$ac_ext
47075 cat >>conftest.$ac_ext <<_ACEOF
47076 /* end confdefs.h. */
47078 #include <stdlib.h>
47079 #if ((' ' & 0x0FF) == 0x020)
47080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
47081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
47083 # define ISLOWER(c) \
47084 (('a' <= (c) && (c) <= 'i') \
47085 || ('j' <= (c) && (c) <= 'r') \
47086 || ('s' <= (c) && (c) <= 'z'))
47087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
47090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
47095 for (i = 0; i < 256; i++)
47096 if (XOR (islower (i), ISLOWER (i))
47097 || toupper (i) != TOUPPER (i))
47102 rm -f conftest$ac_exeext
47103 if { (ac_try="$ac_link"
47104 case "(($ac_try" in
47105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47106 *) ac_try_echo=$ac_try;;
47108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47109 (eval "$ac_link") 2>&5
47111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47113 { (case "(($ac_try" in
47114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47115 *) ac_try_echo=$ac_try;;
47117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47118 (eval "$ac_try") 2>&5
47120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47121 (exit $ac_status); }; }; then
47124 echo "$as_me: program exited with status $ac_status" >&5
47125 echo "$as_me: failed program was:" >&5
47126 sed 's/^/| /' conftest.$ac_ext >&5
47128 ( exit $ac_status )
47129 ac_cv_header_stdc=no
47131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47137 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
47138 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
47139 if test $ac_cv_header_stdc = yes; then
47141 cat >>confdefs.h <<\_ACEOF
47142 #define STDC_HEADERS 1
47214 netinet/in6_machtypes.h \
47255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47260 echo $ECHO_N "(cached) $ECHO_C" >&6
47262 ac_res=`eval echo '${'$as_ac_Header'}'`
47263 { echo "$as_me:$LINENO: result: $ac_res" >&5
47264 echo "${ECHO_T}$ac_res" >&6; }
47266 # Is the header compilable?
47267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
47268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
47269 cat >conftest.$ac_ext <<_ACEOF
47272 cat confdefs.h >>conftest.$ac_ext
47273 cat >>conftest.$ac_ext <<_ACEOF
47274 /* end confdefs.h. */
47275 $ac_includes_default
47276 #include <$ac_header>
47278 rm -f conftest.$ac_objext
47279 if { (ac_try="$ac_compile"
47280 case "(($ac_try" in
47281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47282 *) ac_try_echo=$ac_try;;
47284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47285 (eval "$ac_compile") 2>conftest.er1
47287 grep -v '^ *+' conftest.er1 >conftest.err
47289 cat conftest.err >&5
47290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47291 (exit $ac_status); } && {
47292 test -z "$ac_c_werror_flag" ||
47293 test ! -s conftest.err
47294 } && test -s conftest.$ac_objext; then
47295 ac_header_compiler=yes
47297 echo "$as_me: failed program was:" >&5
47298 sed 's/^/| /' conftest.$ac_ext >&5
47300 ac_header_compiler=no
47303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47305 echo "${ECHO_T}$ac_header_compiler" >&6; }
47307 # Is the header present?
47308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
47309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
47310 cat >conftest.$ac_ext <<_ACEOF
47313 cat confdefs.h >>conftest.$ac_ext
47314 cat >>conftest.$ac_ext <<_ACEOF
47315 /* end confdefs.h. */
47316 #include <$ac_header>
47318 if { (ac_try="$ac_cpp conftest.$ac_ext"
47319 case "(($ac_try" in
47320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47321 *) ac_try_echo=$ac_try;;
47323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47326 grep -v '^ *+' conftest.er1 >conftest.err
47328 cat conftest.err >&5
47329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47330 (exit $ac_status); } >/dev/null && {
47331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47332 test ! -s conftest.err
47334 ac_header_preproc=yes
47336 echo "$as_me: failed program was:" >&5
47337 sed 's/^/| /' conftest.$ac_ext >&5
47339 ac_header_preproc=no
47342 rm -f conftest.err conftest.$ac_ext
47343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47344 echo "${ECHO_T}$ac_header_preproc" >&6; }
47346 # So? What about this header?
47347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47353 ac_header_preproc=yes
47356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
47363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
47364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47369 ## ----------------------------------- ##
47370 ## Report this to heimdal-bugs@h5l.org ##
47371 ## ----------------------------------- ##
47373 ) | sed "s/^/$as_me: WARNING: /" >&2
47376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47379 echo $ECHO_N "(cached) $ECHO_C" >&6
47381 eval "$as_ac_Header=\$ac_header_preproc"
47383 ac_res=`eval echo '${'$as_ac_Header'}'`
47384 { echo "$as_me:$LINENO: result: $ac_res" >&5
47385 echo "${ECHO_T}$ac_res" >&6; }
47388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47389 cat >>confdefs.h <<_ACEOF
47390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47399 for ac_header in term.h
47401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47405 echo $ECHO_N "(cached) $ECHO_C" >&6
47407 cat >conftest.$ac_ext <<_ACEOF
47410 cat confdefs.h >>conftest.$ac_ext
47411 cat >>conftest.$ac_ext <<_ACEOF
47412 /* end confdefs.h. */
47413 #include <$ac_header>
47415 if { (ac_try="$ac_cpp conftest.$ac_ext"
47416 case "(($ac_try" in
47417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47418 *) ac_try_echo=$ac_try;;
47420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47423 grep -v '^ *+' conftest.er1 >conftest.err
47425 cat conftest.err >&5
47426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47427 (exit $ac_status); } >/dev/null && {
47428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47429 test ! -s conftest.err
47431 eval "$as_ac_Header=yes"
47433 echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47436 eval "$as_ac_Header=no"
47439 rm -f conftest.err conftest.$ac_ext
47441 ac_res=`eval echo '${'$as_ac_Header'}'`
47442 { echo "$as_me:$LINENO: result: $ac_res" >&5
47443 echo "${ECHO_T}$ac_res" >&6; }
47444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47445 cat >>confdefs.h <<_ACEOF
47446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47455 for ac_header in net/if.h
47457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47461 echo $ECHO_N "(cached) $ECHO_C" >&6
47463 cat >conftest.$ac_ext <<_ACEOF
47466 cat confdefs.h >>conftest.$ac_ext
47467 cat >>conftest.$ac_ext <<_ACEOF
47468 /* end confdefs.h. */
47469 $ac_includes_default
47470 #if HAVE_SYS_SOCKET_H
47471 #include <sys/socket.h>
47474 #include <$ac_header>
47476 rm -f conftest.$ac_objext
47477 if { (ac_try="$ac_compile"
47478 case "(($ac_try" in
47479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47480 *) ac_try_echo=$ac_try;;
47482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47483 (eval "$ac_compile") 2>conftest.er1
47485 grep -v '^ *+' conftest.er1 >conftest.err
47487 cat conftest.err >&5
47488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47489 (exit $ac_status); } && {
47490 test -z "$ac_c_werror_flag" ||
47491 test ! -s conftest.err
47492 } && test -s conftest.$ac_objext; then
47493 eval "$as_ac_Header=yes"
47495 echo "$as_me: failed program was:" >&5
47496 sed 's/^/| /' conftest.$ac_ext >&5
47498 eval "$as_ac_Header=no"
47501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47503 ac_res=`eval echo '${'$as_ac_Header'}'`
47504 { echo "$as_me:$LINENO: result: $ac_res" >&5
47505 echo "${ECHO_T}$ac_res" >&6; }
47506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47507 cat >>confdefs.h <<_ACEOF
47508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47517 for ac_header in sys/ptyvar.h
47519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47523 echo $ECHO_N "(cached) $ECHO_C" >&6
47525 cat >conftest.$ac_ext <<_ACEOF
47528 cat confdefs.h >>conftest.$ac_ext
47529 cat >>conftest.$ac_ext <<_ACEOF
47530 /* end confdefs.h. */
47531 $ac_includes_default
47533 #include <sys/tty.h>
47536 #include <$ac_header>
47538 rm -f conftest.$ac_objext
47539 if { (ac_try="$ac_compile"
47540 case "(($ac_try" in
47541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47542 *) ac_try_echo=$ac_try;;
47544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47545 (eval "$ac_compile") 2>conftest.er1
47547 grep -v '^ *+' conftest.er1 >conftest.err
47549 cat conftest.err >&5
47550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); } && {
47552 test -z "$ac_c_werror_flag" ||
47553 test ! -s conftest.err
47554 } && test -s conftest.$ac_objext; then
47555 eval "$as_ac_Header=yes"
47557 echo "$as_me: failed program was:" >&5
47558 sed 's/^/| /' conftest.$ac_ext >&5
47560 eval "$as_ac_Header=no"
47563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47565 ac_res=`eval echo '${'$as_ac_Header'}'`
47566 { echo "$as_me:$LINENO: result: $ac_res" >&5
47567 echo "${ECHO_T}$ac_res" >&6; }
47568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47569 cat >>confdefs.h <<_ACEOF
47570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47579 for ac_header in sys/strtty.h
47581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47585 echo $ECHO_N "(cached) $ECHO_C" >&6
47587 cat >conftest.$ac_ext <<_ACEOF
47590 cat confdefs.h >>conftest.$ac_ext
47591 cat >>conftest.$ac_ext <<_ACEOF
47592 /* end confdefs.h. */
47593 $ac_includes_default
47595 #include <termios.h>
47597 #if HAVE_SYS_STREAM_H
47598 #include <sys/stream.h>
47601 #include <$ac_header>
47603 rm -f conftest.$ac_objext
47604 if { (ac_try="$ac_compile"
47605 case "(($ac_try" in
47606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47607 *) ac_try_echo=$ac_try;;
47609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47610 (eval "$ac_compile") 2>conftest.er1
47612 grep -v '^ *+' conftest.er1 >conftest.err
47614 cat conftest.err >&5
47615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47616 (exit $ac_status); } && {
47617 test -z "$ac_c_werror_flag" ||
47618 test ! -s conftest.err
47619 } && test -s conftest.$ac_objext; then
47620 eval "$as_ac_Header=yes"
47622 echo "$as_me: failed program was:" >&5
47623 sed 's/^/| /' conftest.$ac_ext >&5
47625 eval "$as_ac_Header=no"
47628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47630 ac_res=`eval echo '${'$as_ac_Header'}'`
47631 { echo "$as_me:$LINENO: result: $ac_res" >&5
47632 echo "${ECHO_T}$ac_res" >&6; }
47633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47634 cat >>confdefs.h <<_ACEOF
47635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47644 for ac_header in sys/ucred.h
47646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47650 echo $ECHO_N "(cached) $ECHO_C" >&6
47652 cat >conftest.$ac_ext <<_ACEOF
47655 cat confdefs.h >>conftest.$ac_ext
47656 cat >>conftest.$ac_ext <<_ACEOF
47657 /* end confdefs.h. */
47658 $ac_includes_default
47659 #if HAVE_SYS_TYPES_H
47660 #include <sys/types.h>
47662 #if HAVE_SYS_PARAM_H
47663 #include <sys/param.h>
47666 #include <$ac_header>
47668 rm -f conftest.$ac_objext
47669 if { (ac_try="$ac_compile"
47670 case "(($ac_try" in
47671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47672 *) ac_try_echo=$ac_try;;
47674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47675 (eval "$ac_compile") 2>conftest.er1
47677 grep -v '^ *+' conftest.er1 >conftest.err
47679 cat conftest.err >&5
47680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47681 (exit $ac_status); } && {
47682 test -z "$ac_c_werror_flag" ||
47683 test ! -s conftest.err
47684 } && test -s conftest.$ac_objext; then
47685 eval "$as_ac_Header=yes"
47687 echo "$as_me: failed program was:" >&5
47688 sed 's/^/| /' conftest.$ac_ext >&5
47690 eval "$as_ac_Header=no"
47693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47695 ac_res=`eval echo '${'$as_ac_Header'}'`
47696 { echo "$as_me:$LINENO: result: $ac_res" >&5
47697 echo "${ECHO_T}$ac_res" >&6; }
47698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47699 cat >>confdefs.h <<_ACEOF
47700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47709 for ac_header in security/pam_modules.h
47711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47715 echo $ECHO_N "(cached) $ECHO_C" >&6
47717 cat >conftest.$ac_ext <<_ACEOF
47720 cat confdefs.h >>conftest.$ac_ext
47721 cat >>conftest.$ac_ext <<_ACEOF
47722 /* end confdefs.h. */
47723 $ac_includes_default
47724 #include <security/pam_appl.h>
47727 #include <$ac_header>
47729 rm -f conftest.$ac_objext
47730 if { (ac_try="$ac_compile"
47731 case "(($ac_try" in
47732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47733 *) ac_try_echo=$ac_try;;
47735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47736 (eval "$ac_compile") 2>conftest.er1
47738 grep -v '^ *+' conftest.er1 >conftest.err
47740 cat conftest.err >&5
47741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742 (exit $ac_status); } && {
47743 test -z "$ac_c_werror_flag" ||
47744 test ! -s conftest.err
47745 } && test -s conftest.$ac_objext; then
47746 eval "$as_ac_Header=yes"
47748 echo "$as_me: failed program was:" >&5
47749 sed 's/^/| /' conftest.$ac_ext >&5
47751 eval "$as_ac_Header=no"
47754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47756 ac_res=`eval echo '${'$as_ac_Header'}'`
47757 { echo "$as_me:$LINENO: result: $ac_res" >&5
47758 echo "${ECHO_T}$ac_res" >&6; }
47759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47760 cat >>confdefs.h <<_ACEOF
47761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47769 # Check whether --enable-netinfo was given.
47770 if test "${enable_netinfo+set}" = set; then
47771 enableval=$enable_netinfo;
47775 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
47777 cat >>confdefs.h <<\_ACEOF
47778 #define HAVE_NETINFO 1
47792 { echo "$as_me:$LINENO: checking for logwtmp" >&5
47793 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6; }
47794 if test "${ac_cv_funclib_logwtmp+set}" = set; then
47795 echo $ECHO_N "(cached) $ECHO_C" >&6
47798 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
47799 ac_save_LIBS="$LIBS"
47800 for ac_lib in "" util; do
47806 *) ac_lib="-l$ac_lib" ;;
47808 LIBS=" $ac_lib $ac_save_LIBS"
47809 cat >conftest.$ac_ext <<_ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h. */
47828 rm -f conftest.$ac_objext conftest$ac_exeext
47829 if { (ac_try="$ac_link"
47830 case "(($ac_try" in
47831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47832 *) ac_try_echo=$ac_try;;
47834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47835 (eval "$ac_link") 2>conftest.er1
47837 grep -v '^ *+' conftest.er1 >conftest.err
47839 cat conftest.err >&5
47840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47841 (exit $ac_status); } && {
47842 test -z "$ac_c_werror_flag" ||
47843 test ! -s conftest.err
47844 } && test -s conftest$ac_exeext &&
47845 $as_test_x conftest$ac_exeext; then
47846 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
47848 echo "$as_me: failed program was:" >&5
47849 sed 's/^/| /' conftest.$ac_ext >&5
47854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47855 conftest$ac_exeext conftest.$ac_ext
47857 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
47858 LIBS="$ac_save_LIBS"
47864 eval "ac_res=\$ac_cv_funclib_logwtmp"
47868 for ac_func in logwtmp
47870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47874 echo $ECHO_N "(cached) $ECHO_C" >&6
47876 cat >conftest.$ac_ext <<_ACEOF
47879 cat confdefs.h >>conftest.$ac_ext
47880 cat >>conftest.$ac_ext <<_ACEOF
47881 /* end confdefs.h. */
47882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47884 #define $ac_func innocuous_$ac_func
47886 /* System header to define __stub macros and hopefully few prototypes,
47887 which can conflict with char $ac_func (); below.
47888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47889 <limits.h> exists even on freestanding compilers. */
47892 # include <limits.h>
47894 # include <assert.h>
47899 /* Override any GCC internal prototype to avoid an error.
47900 Use char because int might match the return type of a GCC
47901 builtin and then its argument prototype would still apply. */
47906 /* The GNU C library defines this for functions which it implements
47907 to always fail with ENOSYS. Some functions are actually named
47908 something starting with __ and the normal name is an alias. */
47909 #if defined __stub_$ac_func || defined __stub___$ac_func
47916 return $ac_func ();
47921 rm -f conftest.$ac_objext conftest$ac_exeext
47922 if { (ac_try="$ac_link"
47923 case "(($ac_try" in
47924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47925 *) ac_try_echo=$ac_try;;
47927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47928 (eval "$ac_link") 2>conftest.er1
47930 grep -v '^ *+' conftest.er1 >conftest.err
47932 cat conftest.err >&5
47933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47934 (exit $ac_status); } && {
47935 test -z "$ac_c_werror_flag" ||
47936 test ! -s conftest.err
47937 } && test -s conftest$ac_exeext &&
47938 $as_test_x conftest$ac_exeext; then
47939 eval "$as_ac_var=yes"
47941 echo "$as_me: failed program was:" >&5
47942 sed 's/^/| /' conftest.$ac_ext >&5
47944 eval "$as_ac_var=no"
47947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47948 conftest$ac_exeext conftest.$ac_ext
47950 ac_res=`eval echo '${'$as_ac_var'}'`
47951 { echo "$as_me:$LINENO: result: $ac_res" >&5
47952 echo "${ECHO_T}$ac_res" >&6; }
47953 if test `eval echo '${'$as_ac_var'}'` = yes; then
47954 cat >>confdefs.h <<_ACEOF
47955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47963 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47964 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47965 eval "LIB_logwtmp=$ac_res"
47969 eval "ac_cv_func_logwtmp=yes"
47970 eval "LIB_logwtmp="
47971 cat >>confdefs.h <<_ACEOF
47972 #define $ac_tr_func 1
47975 { echo "$as_me:$LINENO: result: yes" >&5
47976 echo "${ECHO_T}yes" >&6; }
47979 eval "ac_cv_func_logwtmp=no"
47980 eval "LIB_logwtmp="
47981 { echo "$as_me:$LINENO: result: no" >&5
47982 echo "${ECHO_T}no" >&6; }
47985 eval "ac_cv_func_logwtmp=yes"
47986 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47987 cat >>confdefs.h <<_ACEOF
47988 #define $ac_tr_func 1
47991 cat >>confdefs.h <<_ACEOF
47992 #define $ac_tr_lib 1
47995 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47996 echo "${ECHO_T}yes, in $ac_res" >&6; }
48004 { echo "$as_me:$LINENO: checking for logout" >&5
48005 echo $ECHO_N "checking for logout... $ECHO_C" >&6; }
48006 if test "${ac_cv_funclib_logout+set}" = set; then
48007 echo $ECHO_N "(cached) $ECHO_C" >&6
48010 if eval "test \"\$ac_cv_func_logout\" != yes" ; then
48011 ac_save_LIBS="$LIBS"
48012 for ac_lib in "" util; do
48018 *) ac_lib="-l$ac_lib" ;;
48020 LIBS=" $ac_lib $ac_save_LIBS"
48021 cat >conftest.$ac_ext <<_ACEOF
48024 cat confdefs.h >>conftest.$ac_ext
48025 cat >>conftest.$ac_ext <<_ACEOF
48026 /* end confdefs.h. */
48040 rm -f conftest.$ac_objext conftest$ac_exeext
48041 if { (ac_try="$ac_link"
48042 case "(($ac_try" in
48043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48044 *) ac_try_echo=$ac_try;;
48046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48047 (eval "$ac_link") 2>conftest.er1
48049 grep -v '^ *+' conftest.er1 >conftest.err
48051 cat conftest.err >&5
48052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48053 (exit $ac_status); } && {
48054 test -z "$ac_c_werror_flag" ||
48055 test ! -s conftest.err
48056 } && test -s conftest$ac_exeext &&
48057 $as_test_x conftest$ac_exeext; then
48058 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
48060 echo "$as_me: failed program was:" >&5
48061 sed 's/^/| /' conftest.$ac_ext >&5
48066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48067 conftest$ac_exeext conftest.$ac_ext
48069 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
48070 LIBS="$ac_save_LIBS"
48076 eval "ac_res=\$ac_cv_funclib_logout"
48080 for ac_func in logout
48082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48086 echo $ECHO_N "(cached) $ECHO_C" >&6
48088 cat >conftest.$ac_ext <<_ACEOF
48091 cat confdefs.h >>conftest.$ac_ext
48092 cat >>conftest.$ac_ext <<_ACEOF
48093 /* end confdefs.h. */
48094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48096 #define $ac_func innocuous_$ac_func
48098 /* System header to define __stub macros and hopefully few prototypes,
48099 which can conflict with char $ac_func (); below.
48100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48101 <limits.h> exists even on freestanding compilers. */
48104 # include <limits.h>
48106 # include <assert.h>
48111 /* Override any GCC internal prototype to avoid an error.
48112 Use char because int might match the return type of a GCC
48113 builtin and then its argument prototype would still apply. */
48118 /* The GNU C library defines this for functions which it implements
48119 to always fail with ENOSYS. Some functions are actually named
48120 something starting with __ and the normal name is an alias. */
48121 #if defined __stub_$ac_func || defined __stub___$ac_func
48128 return $ac_func ();
48133 rm -f conftest.$ac_objext conftest$ac_exeext
48134 if { (ac_try="$ac_link"
48135 case "(($ac_try" in
48136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48137 *) ac_try_echo=$ac_try;;
48139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48140 (eval "$ac_link") 2>conftest.er1
48142 grep -v '^ *+' conftest.er1 >conftest.err
48144 cat conftest.err >&5
48145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48146 (exit $ac_status); } && {
48147 test -z "$ac_c_werror_flag" ||
48148 test ! -s conftest.err
48149 } && test -s conftest$ac_exeext &&
48150 $as_test_x conftest$ac_exeext; then
48151 eval "$as_ac_var=yes"
48153 echo "$as_me: failed program was:" >&5
48154 sed 's/^/| /' conftest.$ac_ext >&5
48156 eval "$as_ac_var=no"
48159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48160 conftest$ac_exeext conftest.$ac_ext
48162 ac_res=`eval echo '${'$as_ac_var'}'`
48163 { echo "$as_me:$LINENO: result: $ac_res" >&5
48164 echo "${ECHO_T}$ac_res" >&6; }
48165 if test `eval echo '${'$as_ac_var'}'` = yes; then
48166 cat >>confdefs.h <<_ACEOF
48167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48175 eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48176 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48177 eval "LIB_logout=$ac_res"
48181 eval "ac_cv_func_logout=yes"
48183 cat >>confdefs.h <<_ACEOF
48184 #define $ac_tr_func 1
48187 { echo "$as_me:$LINENO: result: yes" >&5
48188 echo "${ECHO_T}yes" >&6; }
48191 eval "ac_cv_func_logout=no"
48193 { echo "$as_me:$LINENO: result: no" >&5
48194 echo "${ECHO_T}no" >&6; }
48197 eval "ac_cv_func_logout=yes"
48198 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48199 cat >>confdefs.h <<_ACEOF
48200 #define $ac_tr_func 1
48203 cat >>confdefs.h <<_ACEOF
48204 #define $ac_tr_lib 1
48207 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48208 echo "${ECHO_T}yes, in $ac_res" >&6; }
48216 { echo "$as_me:$LINENO: checking for openpty" >&5
48217 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
48218 if test "${ac_cv_funclib_openpty+set}" = set; then
48219 echo $ECHO_N "(cached) $ECHO_C" >&6
48222 if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
48223 ac_save_LIBS="$LIBS"
48224 for ac_lib in "" util; do
48230 *) ac_lib="-l$ac_lib" ;;
48232 LIBS=" $ac_lib $ac_save_LIBS"
48233 cat >conftest.$ac_ext <<_ACEOF
48236 cat confdefs.h >>conftest.$ac_ext
48237 cat >>conftest.$ac_ext <<_ACEOF
48238 /* end confdefs.h. */
48252 rm -f conftest.$ac_objext conftest$ac_exeext
48253 if { (ac_try="$ac_link"
48254 case "(($ac_try" in
48255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48256 *) ac_try_echo=$ac_try;;
48258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48259 (eval "$ac_link") 2>conftest.er1
48261 grep -v '^ *+' conftest.er1 >conftest.err
48263 cat conftest.err >&5
48264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48265 (exit $ac_status); } && {
48266 test -z "$ac_c_werror_flag" ||
48267 test ! -s conftest.err
48268 } && test -s conftest$ac_exeext &&
48269 $as_test_x conftest$ac_exeext; then
48270 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
48272 echo "$as_me: failed program was:" >&5
48273 sed 's/^/| /' conftest.$ac_ext >&5
48278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48279 conftest$ac_exeext conftest.$ac_ext
48281 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
48282 LIBS="$ac_save_LIBS"
48288 eval "ac_res=\$ac_cv_funclib_openpty"
48292 for ac_func in openpty
48294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48298 echo $ECHO_N "(cached) $ECHO_C" >&6
48300 cat >conftest.$ac_ext <<_ACEOF
48303 cat confdefs.h >>conftest.$ac_ext
48304 cat >>conftest.$ac_ext <<_ACEOF
48305 /* end confdefs.h. */
48306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48308 #define $ac_func innocuous_$ac_func
48310 /* System header to define __stub macros and hopefully few prototypes,
48311 which can conflict with char $ac_func (); below.
48312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48313 <limits.h> exists even on freestanding compilers. */
48316 # include <limits.h>
48318 # include <assert.h>
48323 /* Override any GCC internal prototype to avoid an error.
48324 Use char because int might match the return type of a GCC
48325 builtin and then its argument prototype would still apply. */
48330 /* The GNU C library defines this for functions which it implements
48331 to always fail with ENOSYS. Some functions are actually named
48332 something starting with __ and the normal name is an alias. */
48333 #if defined __stub_$ac_func || defined __stub___$ac_func
48340 return $ac_func ();
48345 rm -f conftest.$ac_objext conftest$ac_exeext
48346 if { (ac_try="$ac_link"
48347 case "(($ac_try" in
48348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48349 *) ac_try_echo=$ac_try;;
48351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48352 (eval "$ac_link") 2>conftest.er1
48354 grep -v '^ *+' conftest.er1 >conftest.err
48356 cat conftest.err >&5
48357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358 (exit $ac_status); } && {
48359 test -z "$ac_c_werror_flag" ||
48360 test ! -s conftest.err
48361 } && test -s conftest$ac_exeext &&
48362 $as_test_x conftest$ac_exeext; then
48363 eval "$as_ac_var=yes"
48365 echo "$as_me: failed program was:" >&5
48366 sed 's/^/| /' conftest.$ac_ext >&5
48368 eval "$as_ac_var=no"
48371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48372 conftest$ac_exeext conftest.$ac_ext
48374 ac_res=`eval echo '${'$as_ac_var'}'`
48375 { echo "$as_me:$LINENO: result: $ac_res" >&5
48376 echo "${ECHO_T}$ac_res" >&6; }
48377 if test `eval echo '${'$as_ac_var'}'` = yes; then
48378 cat >>confdefs.h <<_ACEOF
48379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48387 eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48388 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48389 eval "LIB_openpty=$ac_res"
48393 eval "ac_cv_func_openpty=yes"
48394 eval "LIB_openpty="
48395 cat >>confdefs.h <<_ACEOF
48396 #define $ac_tr_func 1
48399 { echo "$as_me:$LINENO: result: yes" >&5
48400 echo "${ECHO_T}yes" >&6; }
48403 eval "ac_cv_func_openpty=no"
48404 eval "LIB_openpty="
48405 { echo "$as_me:$LINENO: result: no" >&5
48406 echo "${ECHO_T}no" >&6; }
48409 eval "ac_cv_func_openpty=yes"
48410 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48411 cat >>confdefs.h <<_ACEOF
48412 #define $ac_tr_func 1
48415 cat >>confdefs.h <<_ACEOF
48416 #define $ac_tr_lib 1
48419 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48420 echo "${ECHO_T}yes, in $ac_res" >&6; }
48429 { echo "$as_me:$LINENO: checking for tgetent" >&5
48430 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; }
48431 if test "${ac_cv_funclib_tgetent+set}" = set; then
48432 echo $ECHO_N "(cached) $ECHO_C" >&6
48435 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
48436 ac_save_LIBS="$LIBS"
48437 for ac_lib in "" termcap ncurses curses; do
48443 *) ac_lib="-l$ac_lib" ;;
48445 LIBS=" $ac_lib $ac_save_LIBS"
48446 cat >conftest.$ac_ext <<_ACEOF
48449 cat confdefs.h >>conftest.$ac_ext
48450 cat >>conftest.$ac_ext <<_ACEOF
48451 /* end confdefs.h. */
48453 #ifdef HAVE_TERMCAP_H
48454 #include <termcap.h>
48456 #ifdef HAVE_CURSES_H
48457 #include <curses.h>
48468 rm -f conftest.$ac_objext conftest$ac_exeext
48469 if { (ac_try="$ac_link"
48470 case "(($ac_try" in
48471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48472 *) ac_try_echo=$ac_try;;
48474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48475 (eval "$ac_link") 2>conftest.er1
48477 grep -v '^ *+' conftest.er1 >conftest.err
48479 cat conftest.err >&5
48480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48481 (exit $ac_status); } && {
48482 test -z "$ac_c_werror_flag" ||
48483 test ! -s conftest.err
48484 } && test -s conftest$ac_exeext &&
48485 $as_test_x conftest$ac_exeext; then
48486 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
48488 echo "$as_me: failed program was:" >&5
48489 sed 's/^/| /' conftest.$ac_ext >&5
48494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48495 conftest$ac_exeext conftest.$ac_ext
48497 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
48498 LIBS="$ac_save_LIBS"
48504 eval "ac_res=\$ac_cv_funclib_tgetent"
48508 for ac_func in tgetent
48510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48514 echo $ECHO_N "(cached) $ECHO_C" >&6
48516 cat >conftest.$ac_ext <<_ACEOF
48519 cat confdefs.h >>conftest.$ac_ext
48520 cat >>conftest.$ac_ext <<_ACEOF
48521 /* end confdefs.h. */
48522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48524 #define $ac_func innocuous_$ac_func
48526 /* System header to define __stub macros and hopefully few prototypes,
48527 which can conflict with char $ac_func (); below.
48528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48529 <limits.h> exists even on freestanding compilers. */
48532 # include <limits.h>
48534 # include <assert.h>
48539 /* Override any GCC internal prototype to avoid an error.
48540 Use char because int might match the return type of a GCC
48541 builtin and then its argument prototype would still apply. */
48546 /* The GNU C library defines this for functions which it implements
48547 to always fail with ENOSYS. Some functions are actually named
48548 something starting with __ and the normal name is an alias. */
48549 #if defined __stub_$ac_func || defined __stub___$ac_func
48556 return $ac_func ();
48561 rm -f conftest.$ac_objext conftest$ac_exeext
48562 if { (ac_try="$ac_link"
48563 case "(($ac_try" in
48564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48565 *) ac_try_echo=$ac_try;;
48567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48568 (eval "$ac_link") 2>conftest.er1
48570 grep -v '^ *+' conftest.er1 >conftest.err
48572 cat conftest.err >&5
48573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48574 (exit $ac_status); } && {
48575 test -z "$ac_c_werror_flag" ||
48576 test ! -s conftest.err
48577 } && test -s conftest$ac_exeext &&
48578 $as_test_x conftest$ac_exeext; then
48579 eval "$as_ac_var=yes"
48581 echo "$as_me: failed program was:" >&5
48582 sed 's/^/| /' conftest.$ac_ext >&5
48584 eval "$as_ac_var=no"
48587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48588 conftest$ac_exeext conftest.$ac_ext
48590 ac_res=`eval echo '${'$as_ac_var'}'`
48591 { echo "$as_me:$LINENO: result: $ac_res" >&5
48592 echo "${ECHO_T}$ac_res" >&6; }
48593 if test `eval echo '${'$as_ac_var'}'` = yes; then
48594 cat >>confdefs.h <<_ACEOF
48595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48603 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48604 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48605 eval "LIB_tgetent=$ac_res"
48609 eval "ac_cv_func_tgetent=yes"
48610 eval "LIB_tgetent="
48611 cat >>confdefs.h <<_ACEOF
48612 #define $ac_tr_func 1
48615 { echo "$as_me:$LINENO: result: yes" >&5
48616 echo "${ECHO_T}yes" >&6; }
48619 eval "ac_cv_func_tgetent=no"
48620 eval "LIB_tgetent="
48621 { echo "$as_me:$LINENO: result: no" >&5
48622 echo "${ECHO_T}no" >&6; }
48625 eval "ac_cv_func_tgetent=yes"
48626 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48627 cat >>confdefs.h <<_ACEOF
48628 #define $ac_tr_func 1
48631 cat >>confdefs.h <<_ACEOF
48632 #define $ac_tr_lib 1
48635 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48636 echo "${ECHO_T}yes, in $ac_res" >&6; }
48703 yp_get_default_domain \
48706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48710 echo $ECHO_N "(cached) $ECHO_C" >&6
48712 cat >conftest.$ac_ext <<_ACEOF
48715 cat confdefs.h >>conftest.$ac_ext
48716 cat >>conftest.$ac_ext <<_ACEOF
48717 /* end confdefs.h. */
48718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48720 #define $ac_func innocuous_$ac_func
48722 /* System header to define __stub macros and hopefully few prototypes,
48723 which can conflict with char $ac_func (); below.
48724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48725 <limits.h> exists even on freestanding compilers. */
48728 # include <limits.h>
48730 # include <assert.h>
48735 /* Override any GCC internal prototype to avoid an error.
48736 Use char because int might match the return type of a GCC
48737 builtin and then its argument prototype would still apply. */
48742 /* The GNU C library defines this for functions which it implements
48743 to always fail with ENOSYS. Some functions are actually named
48744 something starting with __ and the normal name is an alias. */
48745 #if defined __stub_$ac_func || defined __stub___$ac_func
48752 return $ac_func ();
48757 rm -f conftest.$ac_objext conftest$ac_exeext
48758 if { (ac_try="$ac_link"
48759 case "(($ac_try" in
48760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48761 *) ac_try_echo=$ac_try;;
48763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48764 (eval "$ac_link") 2>conftest.er1
48766 grep -v '^ *+' conftest.er1 >conftest.err
48768 cat conftest.err >&5
48769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48770 (exit $ac_status); } && {
48771 test -z "$ac_c_werror_flag" ||
48772 test ! -s conftest.err
48773 } && test -s conftest$ac_exeext &&
48774 $as_test_x conftest$ac_exeext; then
48775 eval "$as_ac_var=yes"
48777 echo "$as_me: failed program was:" >&5
48778 sed 's/^/| /' conftest.$ac_ext >&5
48780 eval "$as_ac_var=no"
48783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48784 conftest$ac_exeext conftest.$ac_ext
48786 ac_res=`eval echo '${'$as_ac_var'}'`
48787 { echo "$as_me:$LINENO: result: $ac_res" >&5
48788 echo "${ECHO_T}$ac_res" >&6; }
48789 if test `eval echo '${'$as_ac_var'}'` = yes; then
48790 cat >>confdefs.h <<_ACEOF
48791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48800 for ac_header in stdlib.h unistd.h
48802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48807 echo $ECHO_N "(cached) $ECHO_C" >&6
48809 ac_res=`eval echo '${'$as_ac_Header'}'`
48810 { echo "$as_me:$LINENO: result: $ac_res" >&5
48811 echo "${ECHO_T}$ac_res" >&6; }
48813 # Is the header compilable?
48814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48816 cat >conftest.$ac_ext <<_ACEOF
48819 cat confdefs.h >>conftest.$ac_ext
48820 cat >>conftest.$ac_ext <<_ACEOF
48821 /* end confdefs.h. */
48822 $ac_includes_default
48823 #include <$ac_header>
48825 rm -f conftest.$ac_objext
48826 if { (ac_try="$ac_compile"
48827 case "(($ac_try" in
48828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48829 *) ac_try_echo=$ac_try;;
48831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48832 (eval "$ac_compile") 2>conftest.er1
48834 grep -v '^ *+' conftest.er1 >conftest.err
48836 cat conftest.err >&5
48837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48838 (exit $ac_status); } && {
48839 test -z "$ac_c_werror_flag" ||
48840 test ! -s conftest.err
48841 } && test -s conftest.$ac_objext; then
48842 ac_header_compiler=yes
48844 echo "$as_me: failed program was:" >&5
48845 sed 's/^/| /' conftest.$ac_ext >&5
48847 ac_header_compiler=no
48850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48852 echo "${ECHO_T}$ac_header_compiler" >&6; }
48854 # Is the header present?
48855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48857 cat >conftest.$ac_ext <<_ACEOF
48860 cat confdefs.h >>conftest.$ac_ext
48861 cat >>conftest.$ac_ext <<_ACEOF
48862 /* end confdefs.h. */
48863 #include <$ac_header>
48865 if { (ac_try="$ac_cpp conftest.$ac_ext"
48866 case "(($ac_try" in
48867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48868 *) ac_try_echo=$ac_try;;
48870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48873 grep -v '^ *+' conftest.er1 >conftest.err
48875 cat conftest.err >&5
48876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877 (exit $ac_status); } >/dev/null && {
48878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48879 test ! -s conftest.err
48881 ac_header_preproc=yes
48883 echo "$as_me: failed program was:" >&5
48884 sed 's/^/| /' conftest.$ac_ext >&5
48886 ac_header_preproc=no
48889 rm -f conftest.err conftest.$ac_ext
48890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48891 echo "${ECHO_T}$ac_header_preproc" >&6; }
48893 # So? What about this header?
48894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48900 ac_header_preproc=yes
48903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
48910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
48911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48916 ## ----------------------------------- ##
48917 ## Report this to heimdal-bugs@h5l.org ##
48918 ## ----------------------------------- ##
48920 ) | sed "s/^/$as_me: WARNING: /" >&2
48923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48926 echo $ECHO_N "(cached) $ECHO_C" >&6
48928 eval "$as_ac_Header=\$ac_header_preproc"
48930 ac_res=`eval echo '${'$as_ac_Header'}'`
48931 { echo "$as_me:$LINENO: result: $ac_res" >&5
48932 echo "${ECHO_T}$ac_res" >&6; }
48935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48936 cat >>confdefs.h <<_ACEOF
48937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48945 for ac_func in getpagesize
48947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48951 echo $ECHO_N "(cached) $ECHO_C" >&6
48953 cat >conftest.$ac_ext <<_ACEOF
48956 cat confdefs.h >>conftest.$ac_ext
48957 cat >>conftest.$ac_ext <<_ACEOF
48958 /* end confdefs.h. */
48959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48961 #define $ac_func innocuous_$ac_func
48963 /* System header to define __stub macros and hopefully few prototypes,
48964 which can conflict with char $ac_func (); below.
48965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48966 <limits.h> exists even on freestanding compilers. */
48969 # include <limits.h>
48971 # include <assert.h>
48976 /* Override any GCC internal prototype to avoid an error.
48977 Use char because int might match the return type of a GCC
48978 builtin and then its argument prototype would still apply. */
48983 /* The GNU C library defines this for functions which it implements
48984 to always fail with ENOSYS. Some functions are actually named
48985 something starting with __ and the normal name is an alias. */
48986 #if defined __stub_$ac_func || defined __stub___$ac_func
48993 return $ac_func ();
48998 rm -f conftest.$ac_objext conftest$ac_exeext
48999 if { (ac_try="$ac_link"
49000 case "(($ac_try" in
49001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49002 *) ac_try_echo=$ac_try;;
49004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49005 (eval "$ac_link") 2>conftest.er1
49007 grep -v '^ *+' conftest.er1 >conftest.err
49009 cat conftest.err >&5
49010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49011 (exit $ac_status); } && {
49012 test -z "$ac_c_werror_flag" ||
49013 test ! -s conftest.err
49014 } && test -s conftest$ac_exeext &&
49015 $as_test_x conftest$ac_exeext; then
49016 eval "$as_ac_var=yes"
49018 echo "$as_me: failed program was:" >&5
49019 sed 's/^/| /' conftest.$ac_ext >&5
49021 eval "$as_ac_var=no"
49024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49025 conftest$ac_exeext conftest.$ac_ext
49027 ac_res=`eval echo '${'$as_ac_var'}'`
49028 { echo "$as_me:$LINENO: result: $ac_res" >&5
49029 echo "${ECHO_T}$ac_res" >&6; }
49030 if test `eval echo '${'$as_ac_var'}'` = yes; then
49031 cat >>confdefs.h <<_ACEOF
49032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49038 { echo "$as_me:$LINENO: checking for working mmap" >&5
49039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
49040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
49041 echo $ECHO_N "(cached) $ECHO_C" >&6
49043 if test "$cross_compiling" = yes; then
49044 ac_cv_func_mmap_fixed_mapped=no
49046 cat >conftest.$ac_ext <<_ACEOF
49049 cat confdefs.h >>conftest.$ac_ext
49050 cat >>conftest.$ac_ext <<_ACEOF
49051 /* end confdefs.h. */
49052 $ac_includes_default
49053 /* malloc might have been renamed as rpl_malloc. */
49056 /* Thanks to Mike Haertel and Jim Avera for this test.
49057 Here is a matrix of mmap possibilities:
49058 mmap private not fixed
49059 mmap private fixed at somewhere currently unmapped
49060 mmap private fixed at somewhere already mapped
49061 mmap shared not fixed
49062 mmap shared fixed at somewhere currently unmapped
49063 mmap shared fixed at somewhere already mapped
49064 For private mappings, we should verify that changes cannot be read()
49065 back from the file, nor mmap's back from the file at a different
49066 address. (There have been systems where private was not correctly
49067 implemented like the infamous i386 svr4.0, and systems where the
49068 VM page cache was not coherent with the file system buffer cache
49069 like early versions of FreeBSD and possibly contemporary NetBSD.)
49070 For shared mappings, we should conversely verify that changes get
49071 propagated back to all the places they're supposed to be.
49073 Grep wants private fixed already mapped.
49074 The main things grep needs to know about mmap are:
49075 * does it exist and is it safe to write into the mmap'd area
49076 * how to use it (BSD variants) */
49079 #include <sys/mman.h>
49081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
49085 /* This mess was copied from the GNU getpagesize.h. */
49086 #ifndef HAVE_GETPAGESIZE
49087 /* Assume that all systems that can run configure have sys/param.h. */
49088 # ifndef HAVE_SYS_PARAM_H
49089 # define HAVE_SYS_PARAM_H 1
49092 # ifdef _SC_PAGESIZE
49093 # define getpagesize() sysconf(_SC_PAGESIZE)
49094 # else /* no _SC_PAGESIZE */
49095 # ifdef HAVE_SYS_PARAM_H
49096 # include <sys/param.h>
49097 # ifdef EXEC_PAGESIZE
49098 # define getpagesize() EXEC_PAGESIZE
49099 # else /* no EXEC_PAGESIZE */
49101 # define getpagesize() NBPG * CLSIZE
49104 # endif /* no CLSIZE */
49105 # else /* no NBPG */
49107 # define getpagesize() NBPC
49108 # else /* no NBPC */
49110 # define getpagesize() PAGESIZE
49111 # endif /* PAGESIZE */
49112 # endif /* no NBPC */
49113 # endif /* no NBPG */
49114 # endif /* no EXEC_PAGESIZE */
49115 # else /* no HAVE_SYS_PARAM_H */
49116 # define getpagesize() 8192 /* punt totally */
49117 # endif /* no HAVE_SYS_PARAM_H */
49118 # endif /* no _SC_PAGESIZE */
49120 #endif /* no HAVE_GETPAGESIZE */
49125 char *data, *data2, *data3;
49129 pagesize = getpagesize ();
49131 /* First, make a file with some known garbage in it. */
49132 data = (char *) malloc (pagesize);
49135 for (i = 0; i < pagesize; ++i)
49136 *(data + i) = rand ();
49138 fd = creat ("conftest.mmap", 0600);
49141 if (write (fd, data, pagesize) != pagesize)
49145 /* Next, try to mmap the file at a fixed address which already has
49146 something else allocated at it. If we can, also make sure that
49147 we see the same garbage. */
49148 fd = open ("conftest.mmap", O_RDWR);
49151 data2 = (char *) malloc (2 * pagesize);
49154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
49155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
49156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
49158 for (i = 0; i < pagesize; ++i)
49159 if (*(data + i) != *(data2 + i))
49162 /* Finally, make sure that changes to the mapped area do not
49163 percolate back to the file as seen by read(). (This is a bug on
49164 some variants of i386 svr4.0.) */
49165 for (i = 0; i < pagesize; ++i)
49166 *(data2 + i) = *(data2 + i) + 1;
49167 data3 = (char *) malloc (pagesize);
49170 if (read (fd, data3, pagesize) != pagesize)
49172 for (i = 0; i < pagesize; ++i)
49173 if (*(data + i) != *(data3 + i))
49179 rm -f conftest$ac_exeext
49180 if { (ac_try="$ac_link"
49181 case "(($ac_try" in
49182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49183 *) ac_try_echo=$ac_try;;
49185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49186 (eval "$ac_link") 2>&5
49188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49190 { (case "(($ac_try" in
49191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49192 *) ac_try_echo=$ac_try;;
49194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49195 (eval "$ac_try") 2>&5
49197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49198 (exit $ac_status); }; }; then
49199 ac_cv_func_mmap_fixed_mapped=yes
49201 echo "$as_me: program exited with status $ac_status" >&5
49202 echo "$as_me: failed program was:" >&5
49203 sed 's/^/| /' conftest.$ac_ext >&5
49205 ( exit $ac_status )
49206 ac_cv_func_mmap_fixed_mapped=no
49208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
49214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
49215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
49217 cat >>confdefs.h <<\_ACEOF
49218 #define HAVE_MMAP 1
49222 rm -f conftest.mmap
49229 for ac_header in capability.h sys/capability.h
49231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49236 echo $ECHO_N "(cached) $ECHO_C" >&6
49238 ac_res=`eval echo '${'$as_ac_Header'}'`
49239 { echo "$as_me:$LINENO: result: $ac_res" >&5
49240 echo "${ECHO_T}$ac_res" >&6; }
49242 # Is the header compilable?
49243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
49244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
49245 cat >conftest.$ac_ext <<_ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h. */
49251 $ac_includes_default
49252 #include <$ac_header>
49254 rm -f conftest.$ac_objext
49255 if { (ac_try="$ac_compile"
49256 case "(($ac_try" in
49257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49258 *) ac_try_echo=$ac_try;;
49260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49261 (eval "$ac_compile") 2>conftest.er1
49263 grep -v '^ *+' conftest.er1 >conftest.err
49265 cat conftest.err >&5
49266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49267 (exit $ac_status); } && {
49268 test -z "$ac_c_werror_flag" ||
49269 test ! -s conftest.err
49270 } && test -s conftest.$ac_objext; then
49271 ac_header_compiler=yes
49273 echo "$as_me: failed program was:" >&5
49274 sed 's/^/| /' conftest.$ac_ext >&5
49276 ac_header_compiler=no
49279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49281 echo "${ECHO_T}$ac_header_compiler" >&6; }
49283 # Is the header present?
49284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
49285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
49286 cat >conftest.$ac_ext <<_ACEOF
49289 cat confdefs.h >>conftest.$ac_ext
49290 cat >>conftest.$ac_ext <<_ACEOF
49291 /* end confdefs.h. */
49292 #include <$ac_header>
49294 if { (ac_try="$ac_cpp conftest.$ac_ext"
49295 case "(($ac_try" in
49296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49297 *) ac_try_echo=$ac_try;;
49299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49302 grep -v '^ *+' conftest.er1 >conftest.err
49304 cat conftest.err >&5
49305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49306 (exit $ac_status); } >/dev/null && {
49307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49308 test ! -s conftest.err
49310 ac_header_preproc=yes
49312 echo "$as_me: failed program was:" >&5
49313 sed 's/^/| /' conftest.$ac_ext >&5
49315 ac_header_preproc=no
49318 rm -f conftest.err conftest.$ac_ext
49319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49320 echo "${ECHO_T}$ac_header_preproc" >&6; }
49322 # So? What about this header?
49323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49329 ac_header_preproc=yes
49332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
49339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
49340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49345 ## ----------------------------------- ##
49346 ## Report this to heimdal-bugs@h5l.org ##
49347 ## ----------------------------------- ##
49349 ) | sed "s/^/$as_me: WARNING: /" >&2
49352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
49353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
49354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49355 echo $ECHO_N "(cached) $ECHO_C" >&6
49357 eval "$as_ac_Header=\$ac_header_preproc"
49359 ac_res=`eval echo '${'$as_ac_Header'}'`
49360 { echo "$as_me:$LINENO: result: $ac_res" >&5
49361 echo "${ECHO_T}$ac_res" >&6; }
49364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49365 cat >>confdefs.h <<_ACEOF
49366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49376 for ac_func in sgi_getcapabilitybyname cap_set_proc
49378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49382 echo $ECHO_N "(cached) $ECHO_C" >&6
49384 cat >conftest.$ac_ext <<_ACEOF
49387 cat confdefs.h >>conftest.$ac_ext
49388 cat >>conftest.$ac_ext <<_ACEOF
49389 /* end confdefs.h. */
49390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49392 #define $ac_func innocuous_$ac_func
49394 /* System header to define __stub macros and hopefully few prototypes,
49395 which can conflict with char $ac_func (); below.
49396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49397 <limits.h> exists even on freestanding compilers. */
49400 # include <limits.h>
49402 # include <assert.h>
49407 /* Override any GCC internal prototype to avoid an error.
49408 Use char because int might match the return type of a GCC
49409 builtin and then its argument prototype would still apply. */
49414 /* The GNU C library defines this for functions which it implements
49415 to always fail with ENOSYS. Some functions are actually named
49416 something starting with __ and the normal name is an alias. */
49417 #if defined __stub_$ac_func || defined __stub___$ac_func
49424 return $ac_func ();
49429 rm -f conftest.$ac_objext conftest$ac_exeext
49430 if { (ac_try="$ac_link"
49431 case "(($ac_try" in
49432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49433 *) ac_try_echo=$ac_try;;
49435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49436 (eval "$ac_link") 2>conftest.er1
49438 grep -v '^ *+' conftest.er1 >conftest.err
49440 cat conftest.err >&5
49441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49442 (exit $ac_status); } && {
49443 test -z "$ac_c_werror_flag" ||
49444 test ! -s conftest.err
49445 } && test -s conftest$ac_exeext &&
49446 $as_test_x conftest$ac_exeext; then
49447 eval "$as_ac_var=yes"
49449 echo "$as_me: failed program was:" >&5
49450 sed 's/^/| /' conftest.$ac_ext >&5
49452 eval "$as_ac_var=no"
49455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49456 conftest$ac_exeext conftest.$ac_ext
49458 ac_res=`eval echo '${'$as_ac_var'}'`
49459 { echo "$as_me:$LINENO: result: $ac_res" >&5
49460 echo "${ECHO_T}$ac_res" >&6; }
49461 if test `eval echo '${'$as_ac_var'}'` = yes; then
49462 cat >>confdefs.h <<_ACEOF
49463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49475 { echo "$as_me:$LINENO: checking for getpwnam_r" >&5
49476 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; }
49477 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
49478 echo $ECHO_N "(cached) $ECHO_C" >&6
49481 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
49482 ac_save_LIBS="$LIBS"
49483 for ac_lib in "" c_r; do
49489 *) ac_lib="-l$ac_lib" ;;
49491 LIBS=" $ac_lib $ac_save_LIBS"
49492 cat >conftest.$ac_ext <<_ACEOF
49495 cat confdefs.h >>conftest.$ac_ext
49496 cat >>conftest.$ac_ext <<_ACEOF
49497 /* end confdefs.h. */
49507 rm -f conftest.$ac_objext conftest$ac_exeext
49508 if { (ac_try="$ac_link"
49509 case "(($ac_try" in
49510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49511 *) ac_try_echo=$ac_try;;
49513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49514 (eval "$ac_link") 2>conftest.er1
49516 grep -v '^ *+' conftest.er1 >conftest.err
49518 cat conftest.err >&5
49519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49520 (exit $ac_status); } && {
49521 test -z "$ac_c_werror_flag" ||
49522 test ! -s conftest.err
49523 } && test -s conftest$ac_exeext &&
49524 $as_test_x conftest$ac_exeext; then
49525 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
49527 echo "$as_me: failed program was:" >&5
49528 sed 's/^/| /' conftest.$ac_ext >&5
49533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49534 conftest$ac_exeext conftest.$ac_ext
49536 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
49537 LIBS="$ac_save_LIBS"
49543 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
49547 for ac_func in getpwnam_r
49549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49553 echo $ECHO_N "(cached) $ECHO_C" >&6
49555 cat >conftest.$ac_ext <<_ACEOF
49558 cat confdefs.h >>conftest.$ac_ext
49559 cat >>conftest.$ac_ext <<_ACEOF
49560 /* end confdefs.h. */
49561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49563 #define $ac_func innocuous_$ac_func
49565 /* System header to define __stub macros and hopefully few prototypes,
49566 which can conflict with char $ac_func (); below.
49567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49568 <limits.h> exists even on freestanding compilers. */
49571 # include <limits.h>
49573 # include <assert.h>
49578 /* Override any GCC internal prototype to avoid an error.
49579 Use char because int might match the return type of a GCC
49580 builtin and then its argument prototype would still apply. */
49585 /* The GNU C library defines this for functions which it implements
49586 to always fail with ENOSYS. Some functions are actually named
49587 something starting with __ and the normal name is an alias. */
49588 #if defined __stub_$ac_func || defined __stub___$ac_func
49595 return $ac_func ();
49600 rm -f conftest.$ac_objext conftest$ac_exeext
49601 if { (ac_try="$ac_link"
49602 case "(($ac_try" in
49603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49604 *) ac_try_echo=$ac_try;;
49606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49607 (eval "$ac_link") 2>conftest.er1
49609 grep -v '^ *+' conftest.er1 >conftest.err
49611 cat conftest.err >&5
49612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49613 (exit $ac_status); } && {
49614 test -z "$ac_c_werror_flag" ||
49615 test ! -s conftest.err
49616 } && test -s conftest$ac_exeext &&
49617 $as_test_x conftest$ac_exeext; then
49618 eval "$as_ac_var=yes"
49620 echo "$as_me: failed program was:" >&5
49621 sed 's/^/| /' conftest.$ac_ext >&5
49623 eval "$as_ac_var=no"
49626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49627 conftest$ac_exeext conftest.$ac_ext
49629 ac_res=`eval echo '${'$as_ac_var'}'`
49630 { echo "$as_me:$LINENO: result: $ac_res" >&5
49631 echo "${ECHO_T}$ac_res" >&6; }
49632 if test `eval echo '${'$as_ac_var'}'` = yes; then
49633 cat >>confdefs.h <<_ACEOF
49634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49642 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49643 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49644 eval "LIB_getpwnam_r=$ac_res"
49648 eval "ac_cv_func_getpwnam_r=yes"
49649 eval "LIB_getpwnam_r="
49650 cat >>confdefs.h <<_ACEOF
49651 #define $ac_tr_func 1
49654 { echo "$as_me:$LINENO: result: yes" >&5
49655 echo "${ECHO_T}yes" >&6; }
49658 eval "ac_cv_func_getpwnam_r=no"
49659 eval "LIB_getpwnam_r="
49660 { echo "$as_me:$LINENO: result: no" >&5
49661 echo "${ECHO_T}no" >&6; }
49664 eval "ac_cv_func_getpwnam_r=yes"
49665 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49666 cat >>confdefs.h <<_ACEOF
49667 #define $ac_tr_func 1
49670 cat >>confdefs.h <<_ACEOF
49671 #define $ac_tr_lib 1
49674 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49675 echo "${ECHO_T}yes, in $ac_res" >&6; }
49680 if test "$ac_cv_func_getpwnam_r" = yes; then
49681 { echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
49682 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6; }
49683 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
49684 echo $ECHO_N "(cached) $ECHO_C" >&6
49687 LIBS="$LIBS $LIB_getpwnam_r"
49688 if test "$cross_compiling" = yes; then
49691 cat >conftest.$ac_ext <<_ACEOF
49694 cat confdefs.h >>conftest.$ac_ext
49695 cat >>conftest.$ac_ext <<_ACEOF
49696 /* end confdefs.h. */
49698 #define _POSIX_PTHREAD_SEMANTICS
49700 int main(int argc, char **argv)
49702 struct passwd pw, *pwd;
49703 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
49707 rm -f conftest$ac_exeext
49708 if { (ac_try="$ac_link"
49709 case "(($ac_try" in
49710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49711 *) ac_try_echo=$ac_try;;
49713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49714 (eval "$ac_link") 2>&5
49716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49718 { (case "(($ac_try" in
49719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49720 *) ac_try_echo=$ac_try;;
49722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49723 (eval "$ac_try") 2>&5
49725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49726 (exit $ac_status); }; }; then
49727 ac_cv_func_getpwnam_r_posix=yes
49729 echo "$as_me: program exited with status $ac_status" >&5
49730 echo "$as_me: failed program was:" >&5
49731 sed 's/^/| /' conftest.$ac_ext >&5
49733 ( exit $ac_status )
49734 ac_cv_func_getpwnam_r_posix=no
49736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49742 { echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
49743 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6; }
49744 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
49746 cat >>confdefs.h <<\_ACEOF
49747 #define POSIX_GETPWNAM_R 1
49754 if test "$enable_pthread_support" != no; then
49756 LIBS="$LIBS $PTHREADS_LIBS"
49760 { echo "$as_me:$LINENO: checking for door_create" >&5
49761 echo $ECHO_N "checking for door_create... $ECHO_C" >&6; }
49762 if test "${ac_cv_funclib_door_create+set}" = set; then
49763 echo $ECHO_N "(cached) $ECHO_C" >&6
49766 if eval "test \"\$ac_cv_func_door_create\" != yes" ; then
49767 ac_save_LIBS="$LIBS"
49768 for ac_lib in "" door; do
49774 *) ac_lib="-l$ac_lib" ;;
49776 LIBS=" $ac_lib $ac_save_LIBS"
49777 cat >conftest.$ac_ext <<_ACEOF
49780 cat confdefs.h >>conftest.$ac_ext
49781 cat >>conftest.$ac_ext <<_ACEOF
49782 /* end confdefs.h. */
49792 rm -f conftest.$ac_objext conftest$ac_exeext
49793 if { (ac_try="$ac_link"
49794 case "(($ac_try" in
49795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49796 *) ac_try_echo=$ac_try;;
49798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49799 (eval "$ac_link") 2>conftest.er1
49801 grep -v '^ *+' conftest.er1 >conftest.err
49803 cat conftest.err >&5
49804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49805 (exit $ac_status); } && {
49806 test -z "$ac_c_werror_flag" ||
49807 test ! -s conftest.err
49808 } && test -s conftest$ac_exeext &&
49809 $as_test_x conftest$ac_exeext; then
49810 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break
49812 echo "$as_me: failed program was:" >&5
49813 sed 's/^/| /' conftest.$ac_ext >&5
49818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49819 conftest$ac_exeext conftest.$ac_ext
49821 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}"
49822 LIBS="$ac_save_LIBS"
49828 eval "ac_res=\$ac_cv_funclib_door_create"
49832 for ac_func in door_create
49834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49838 echo $ECHO_N "(cached) $ECHO_C" >&6
49840 cat >conftest.$ac_ext <<_ACEOF
49843 cat confdefs.h >>conftest.$ac_ext
49844 cat >>conftest.$ac_ext <<_ACEOF
49845 /* end confdefs.h. */
49846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49848 #define $ac_func innocuous_$ac_func
49850 /* System header to define __stub macros and hopefully few prototypes,
49851 which can conflict with char $ac_func (); below.
49852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49853 <limits.h> exists even on freestanding compilers. */
49856 # include <limits.h>
49858 # include <assert.h>
49863 /* Override any GCC internal prototype to avoid an error.
49864 Use char because int might match the return type of a GCC
49865 builtin and then its argument prototype would still apply. */
49870 /* The GNU C library defines this for functions which it implements
49871 to always fail with ENOSYS. Some functions are actually named
49872 something starting with __ and the normal name is an alias. */
49873 #if defined __stub_$ac_func || defined __stub___$ac_func
49880 return $ac_func ();
49885 rm -f conftest.$ac_objext conftest$ac_exeext
49886 if { (ac_try="$ac_link"
49887 case "(($ac_try" in
49888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49889 *) ac_try_echo=$ac_try;;
49891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49892 (eval "$ac_link") 2>conftest.er1
49894 grep -v '^ *+' conftest.er1 >conftest.err
49896 cat conftest.err >&5
49897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49898 (exit $ac_status); } && {
49899 test -z "$ac_c_werror_flag" ||
49900 test ! -s conftest.err
49901 } && test -s conftest$ac_exeext &&
49902 $as_test_x conftest$ac_exeext; then
49903 eval "$as_ac_var=yes"
49905 echo "$as_me: failed program was:" >&5
49906 sed 's/^/| /' conftest.$ac_ext >&5
49908 eval "$as_ac_var=no"
49911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49912 conftest$ac_exeext conftest.$ac_ext
49914 ac_res=`eval echo '${'$as_ac_var'}'`
49915 { echo "$as_me:$LINENO: result: $ac_res" >&5
49916 echo "${ECHO_T}$ac_res" >&6; }
49917 if test `eval echo '${'$as_ac_var'}'` = yes; then
49918 cat >>confdefs.h <<_ACEOF
49919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49927 eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49928 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49929 eval "LIB_door_create=$ac_res"
49933 eval "ac_cv_func_door_create=yes"
49934 eval "LIB_door_create="
49935 cat >>confdefs.h <<_ACEOF
49936 #define $ac_tr_func 1
49939 { echo "$as_me:$LINENO: result: yes" >&5
49940 echo "${ECHO_T}yes" >&6; }
49943 eval "ac_cv_func_door_create=no"
49944 eval "LIB_door_create="
49945 { echo "$as_me:$LINENO: result: no" >&5
49946 echo "${ECHO_T}no" >&6; }
49949 eval "ac_cv_func_door_create=yes"
49950 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49951 cat >>confdefs.h <<_ACEOF
49952 #define $ac_tr_func 1
49955 cat >>confdefs.h <<_ACEOF
49956 #define $ac_tr_lib 1
49959 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49960 echo "${ECHO_T}yes, in $ac_res" >&6; }
49968 # Check whether --enable-kcm was given.
49969 if test "${enable_kcm+set}" = set; then
49970 enableval=$enable_kcm;
49976 if test "$enable_kcm" = yes ; then
49977 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then
49981 if test "$enable_kcm" = yes; then
49983 cat >>confdefs.h <<\_ACEOF
49988 if test "$enable_kcm" = yes; then
50001 for ac_func in getudbnam setlim
50003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50007 echo $ECHO_N "(cached) $ECHO_C" >&6
50009 cat >conftest.$ac_ext <<_ACEOF
50012 cat confdefs.h >>conftest.$ac_ext
50013 cat >>conftest.$ac_ext <<_ACEOF
50014 /* end confdefs.h. */
50015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50017 #define $ac_func innocuous_$ac_func
50019 /* System header to define __stub macros and hopefully few prototypes,
50020 which can conflict with char $ac_func (); below.
50021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50022 <limits.h> exists even on freestanding compilers. */
50025 # include <limits.h>
50027 # include <assert.h>
50032 /* Override any GCC internal prototype to avoid an error.
50033 Use char because int might match the return type of a GCC
50034 builtin and then its argument prototype would still apply. */
50039 /* The GNU C library defines this for functions which it implements
50040 to always fail with ENOSYS. Some functions are actually named
50041 something starting with __ and the normal name is an alias. */
50042 #if defined __stub_$ac_func || defined __stub___$ac_func
50049 return $ac_func ();
50054 rm -f conftest.$ac_objext conftest$ac_exeext
50055 if { (ac_try="$ac_link"
50056 case "(($ac_try" in
50057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50058 *) ac_try_echo=$ac_try;;
50060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50061 (eval "$ac_link") 2>conftest.er1
50063 grep -v '^ *+' conftest.er1 >conftest.err
50065 cat conftest.err >&5
50066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50067 (exit $ac_status); } && {
50068 test -z "$ac_c_werror_flag" ||
50069 test ! -s conftest.err
50070 } && test -s conftest$ac_exeext &&
50071 $as_test_x conftest$ac_exeext; then
50072 eval "$as_ac_var=yes"
50074 echo "$as_me: failed program was:" >&5
50075 sed 's/^/| /' conftest.$ac_ext >&5
50077 eval "$as_ac_var=no"
50080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50081 conftest$ac_exeext conftest.$ac_ext
50083 ac_res=`eval echo '${'$as_ac_var'}'`
50084 { echo "$as_me:$LINENO: result: $ac_res" >&5
50085 echo "${ECHO_T}$ac_res" >&6; }
50086 if test `eval echo '${'$as_ac_var'}'` = yes; then
50087 cat >>confdefs.h <<_ACEOF
50088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50099 { echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50100 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6; }
50101 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50102 echo $ECHO_N "(cached) $ECHO_C" >&6
50105 cat >conftest.$ac_ext <<_ACEOF
50108 cat confdefs.h >>conftest.$ac_ext
50109 cat >>conftest.$ac_ext <<_ACEOF
50110 /* end confdefs.h. */
50115 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr
50120 rm -f conftest.$ac_objext
50121 if { (ac_try="$ac_compile"
50122 case "(($ac_try" in
50123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50124 *) ac_try_echo=$ac_try;;
50126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50127 (eval "$ac_compile") 2>conftest.er1
50129 grep -v '^ *+' conftest.er1 >conftest.err
50131 cat conftest.err >&5
50132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50133 (exit $ac_status); } && {
50134 test -z "$ac_c_werror_flag" ||
50135 test ! -s conftest.err
50136 } && test -s conftest.$ac_objext; then
50137 ac_cv_type_struct_utmp_ut_addr=yes
50139 echo "$as_me: failed program was:" >&5
50140 sed 's/^/| /' conftest.$ac_ext >&5
50142 ac_cv_type_struct_utmp_ut_addr=no
50145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50148 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50149 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6; }
50150 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50153 cat >>confdefs.h <<\_ACEOF
50154 #define HAVE_STRUCT_UTMP_UT_ADDR 1
50163 { echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50164 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6; }
50165 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50166 echo $ECHO_N "(cached) $ECHO_C" >&6
50169 cat >conftest.$ac_ext <<_ACEOF
50172 cat confdefs.h >>conftest.$ac_ext
50173 cat >>conftest.$ac_ext <<_ACEOF
50174 /* end confdefs.h. */
50179 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host
50184 rm -f conftest.$ac_objext
50185 if { (ac_try="$ac_compile"
50186 case "(($ac_try" in
50187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50188 *) ac_try_echo=$ac_try;;
50190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50191 (eval "$ac_compile") 2>conftest.er1
50193 grep -v '^ *+' conftest.er1 >conftest.err
50195 cat conftest.err >&5
50196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50197 (exit $ac_status); } && {
50198 test -z "$ac_c_werror_flag" ||
50199 test ! -s conftest.err
50200 } && test -s conftest.$ac_objext; then
50201 ac_cv_type_struct_utmp_ut_host=yes
50203 echo "$as_me: failed program was:" >&5
50204 sed 's/^/| /' conftest.$ac_ext >&5
50206 ac_cv_type_struct_utmp_ut_host=no
50209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50212 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
50213 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6; }
50214 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
50217 cat >>confdefs.h <<\_ACEOF
50218 #define HAVE_STRUCT_UTMP_UT_HOST 1
50227 { echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
50228 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6; }
50229 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
50230 echo $ECHO_N "(cached) $ECHO_C" >&6
50233 cat >conftest.$ac_ext <<_ACEOF
50236 cat confdefs.h >>conftest.$ac_ext
50237 cat >>conftest.$ac_ext <<_ACEOF
50238 /* end confdefs.h. */
50243 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id
50248 rm -f conftest.$ac_objext
50249 if { (ac_try="$ac_compile"
50250 case "(($ac_try" in
50251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50252 *) ac_try_echo=$ac_try;;
50254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50255 (eval "$ac_compile") 2>conftest.er1
50257 grep -v '^ *+' conftest.er1 >conftest.err
50259 cat conftest.err >&5
50260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50261 (exit $ac_status); } && {
50262 test -z "$ac_c_werror_flag" ||
50263 test ! -s conftest.err
50264 } && test -s conftest.$ac_objext; then
50265 ac_cv_type_struct_utmp_ut_id=yes
50267 echo "$as_me: failed program was:" >&5
50268 sed 's/^/| /' conftest.$ac_ext >&5
50270 ac_cv_type_struct_utmp_ut_id=no
50273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50276 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
50277 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6; }
50278 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
50281 cat >>confdefs.h <<\_ACEOF
50282 #define HAVE_STRUCT_UTMP_UT_ID 1
50291 { echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
50292 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6; }
50293 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
50294 echo $ECHO_N "(cached) $ECHO_C" >&6
50297 cat >conftest.$ac_ext <<_ACEOF
50300 cat confdefs.h >>conftest.$ac_ext
50301 cat >>conftest.$ac_ext <<_ACEOF
50302 /* end confdefs.h. */
50307 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid
50312 rm -f conftest.$ac_objext
50313 if { (ac_try="$ac_compile"
50314 case "(($ac_try" in
50315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50316 *) ac_try_echo=$ac_try;;
50318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50319 (eval "$ac_compile") 2>conftest.er1
50321 grep -v '^ *+' conftest.er1 >conftest.err
50323 cat conftest.err >&5
50324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325 (exit $ac_status); } && {
50326 test -z "$ac_c_werror_flag" ||
50327 test ! -s conftest.err
50328 } && test -s conftest.$ac_objext; then
50329 ac_cv_type_struct_utmp_ut_pid=yes
50331 echo "$as_me: failed program was:" >&5
50332 sed 's/^/| /' conftest.$ac_ext >&5
50334 ac_cv_type_struct_utmp_ut_pid=no
50337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50340 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
50341 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6; }
50342 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
50345 cat >>confdefs.h <<\_ACEOF
50346 #define HAVE_STRUCT_UTMP_UT_PID 1
50355 { echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
50356 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6; }
50357 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
50358 echo $ECHO_N "(cached) $ECHO_C" >&6
50361 cat >conftest.$ac_ext <<_ACEOF
50364 cat confdefs.h >>conftest.$ac_ext
50365 cat >>conftest.$ac_ext <<_ACEOF
50366 /* end confdefs.h. */
50371 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type
50376 rm -f conftest.$ac_objext
50377 if { (ac_try="$ac_compile"
50378 case "(($ac_try" in
50379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50380 *) ac_try_echo=$ac_try;;
50382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50383 (eval "$ac_compile") 2>conftest.er1
50385 grep -v '^ *+' conftest.er1 >conftest.err
50387 cat conftest.err >&5
50388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50389 (exit $ac_status); } && {
50390 test -z "$ac_c_werror_flag" ||
50391 test ! -s conftest.err
50392 } && test -s conftest.$ac_objext; then
50393 ac_cv_type_struct_utmp_ut_type=yes
50395 echo "$as_me: failed program was:" >&5
50396 sed 's/^/| /' conftest.$ac_ext >&5
50398 ac_cv_type_struct_utmp_ut_type=no
50401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50404 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
50405 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6; }
50406 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
50409 cat >>confdefs.h <<\_ACEOF
50410 #define HAVE_STRUCT_UTMP_UT_TYPE 1
50419 { echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
50420 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6; }
50421 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
50422 echo $ECHO_N "(cached) $ECHO_C" >&6
50425 cat >conftest.$ac_ext <<_ACEOF
50428 cat confdefs.h >>conftest.$ac_ext
50429 cat >>conftest.$ac_ext <<_ACEOF
50430 /* end confdefs.h. */
50435 struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user
50440 rm -f conftest.$ac_objext
50441 if { (ac_try="$ac_compile"
50442 case "(($ac_try" in
50443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50444 *) ac_try_echo=$ac_try;;
50446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50447 (eval "$ac_compile") 2>conftest.er1
50449 grep -v '^ *+' conftest.er1 >conftest.err
50451 cat conftest.err >&5
50452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453 (exit $ac_status); } && {
50454 test -z "$ac_c_werror_flag" ||
50455 test ! -s conftest.err
50456 } && test -s conftest.$ac_objext; then
50457 ac_cv_type_struct_utmp_ut_user=yes
50459 echo "$as_me: failed program was:" >&5
50460 sed 's/^/| /' conftest.$ac_ext >&5
50462 ac_cv_type_struct_utmp_ut_user=no
50465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50468 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
50469 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6; }
50470 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
50473 cat >>confdefs.h <<\_ACEOF
50474 #define HAVE_STRUCT_UTMP_UT_USER 1
50483 { echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
50484 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6; }
50485 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
50486 echo $ECHO_N "(cached) $ECHO_C" >&6
50489 cat >conftest.$ac_ext <<_ACEOF
50492 cat confdefs.h >>conftest.$ac_ext
50493 cat >>conftest.$ac_ext <<_ACEOF
50494 /* end confdefs.h. */
50499 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit
50504 rm -f conftest.$ac_objext
50505 if { (ac_try="$ac_compile"
50506 case "(($ac_try" in
50507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50508 *) ac_try_echo=$ac_try;;
50510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50511 (eval "$ac_compile") 2>conftest.er1
50513 grep -v '^ *+' conftest.er1 >conftest.err
50515 cat conftest.err >&5
50516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50517 (exit $ac_status); } && {
50518 test -z "$ac_c_werror_flag" ||
50519 test ! -s conftest.err
50520 } && test -s conftest.$ac_objext; then
50521 ac_cv_type_struct_utmpx_ut_exit=yes
50523 echo "$as_me: failed program was:" >&5
50524 sed 's/^/| /' conftest.$ac_ext >&5
50526 ac_cv_type_struct_utmpx_ut_exit=no
50529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50532 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
50533 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6; }
50534 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
50537 cat >>confdefs.h <<\_ACEOF
50538 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
50547 { echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
50548 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6; }
50549 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
50550 echo $ECHO_N "(cached) $ECHO_C" >&6
50553 cat >conftest.$ac_ext <<_ACEOF
50556 cat confdefs.h >>conftest.$ac_ext
50557 cat >>conftest.$ac_ext <<_ACEOF
50558 /* end confdefs.h. */
50563 struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen
50568 rm -f conftest.$ac_objext
50569 if { (ac_try="$ac_compile"
50570 case "(($ac_try" in
50571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50572 *) ac_try_echo=$ac_try;;
50574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50575 (eval "$ac_compile") 2>conftest.er1
50577 grep -v '^ *+' conftest.er1 >conftest.err
50579 cat conftest.err >&5
50580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50581 (exit $ac_status); } && {
50582 test -z "$ac_c_werror_flag" ||
50583 test ! -s conftest.err
50584 } && test -s conftest.$ac_objext; then
50585 ac_cv_type_struct_utmpx_ut_syslen=yes
50587 echo "$as_me: failed program was:" >&5
50588 sed 's/^/| /' conftest.$ac_ext >&5
50590 ac_cv_type_struct_utmpx_ut_syslen=no
50593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50596 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
50597 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6; }
50598 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
50601 cat >>confdefs.h <<\_ACEOF
50602 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
50610 { echo "$as_me:$LINENO: checking for int8_t" >&5
50611 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
50612 if test "${ac_cv_type_int8_t+set}" = set; then
50613 echo $ECHO_N "(cached) $ECHO_C" >&6
50615 cat >conftest.$ac_ext <<_ACEOF
50618 cat confdefs.h >>conftest.$ac_ext
50619 cat >>conftest.$ac_ext <<_ACEOF
50620 /* end confdefs.h. */
50622 #ifdef HAVE_INTTYPES_H
50623 #include <inttypes.h>
50625 #ifdef HAVE_SYS_TYPES_H
50626 #include <sys/types.h>
50628 #ifdef HAVE_SYS_BITYPES_H
50629 #include <sys/bitypes.h>
50631 #ifdef HAVE_BIND_BITYPES_H
50632 #include <bind/bitypes.h>
50634 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50635 #include <netinet/in6_machtypes.h>
50639 typedef int8_t ac__type_new_;
50643 if ((ac__type_new_ *) 0)
50645 if (sizeof (ac__type_new_))
50651 rm -f conftest.$ac_objext
50652 if { (ac_try="$ac_compile"
50653 case "(($ac_try" in
50654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50655 *) ac_try_echo=$ac_try;;
50657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50658 (eval "$ac_compile") 2>conftest.er1
50660 grep -v '^ *+' conftest.er1 >conftest.err
50662 cat conftest.err >&5
50663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50664 (exit $ac_status); } && {
50665 test -z "$ac_c_werror_flag" ||
50666 test ! -s conftest.err
50667 } && test -s conftest.$ac_objext; then
50668 ac_cv_type_int8_t=yes
50670 echo "$as_me: failed program was:" >&5
50671 sed 's/^/| /' conftest.$ac_ext >&5
50673 ac_cv_type_int8_t=no
50676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50678 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
50679 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
50680 if test $ac_cv_type_int8_t = yes; then
50682 cat >>confdefs.h <<_ACEOF
50683 #define HAVE_INT8_T 1
50688 { echo "$as_me:$LINENO: checking for int16_t" >&5
50689 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
50690 if test "${ac_cv_type_int16_t+set}" = set; then
50691 echo $ECHO_N "(cached) $ECHO_C" >&6
50693 cat >conftest.$ac_ext <<_ACEOF
50696 cat confdefs.h >>conftest.$ac_ext
50697 cat >>conftest.$ac_ext <<_ACEOF
50698 /* end confdefs.h. */
50700 #ifdef HAVE_INTTYPES_H
50701 #include <inttypes.h>
50703 #ifdef HAVE_SYS_TYPES_H
50704 #include <sys/types.h>
50706 #ifdef HAVE_SYS_BITYPES_H
50707 #include <sys/bitypes.h>
50709 #ifdef HAVE_BIND_BITYPES_H
50710 #include <bind/bitypes.h>
50712 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50713 #include <netinet/in6_machtypes.h>
50717 typedef int16_t ac__type_new_;
50721 if ((ac__type_new_ *) 0)
50723 if (sizeof (ac__type_new_))
50729 rm -f conftest.$ac_objext
50730 if { (ac_try="$ac_compile"
50731 case "(($ac_try" in
50732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50733 *) ac_try_echo=$ac_try;;
50735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50736 (eval "$ac_compile") 2>conftest.er1
50738 grep -v '^ *+' conftest.er1 >conftest.err
50740 cat conftest.err >&5
50741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50742 (exit $ac_status); } && {
50743 test -z "$ac_c_werror_flag" ||
50744 test ! -s conftest.err
50745 } && test -s conftest.$ac_objext; then
50746 ac_cv_type_int16_t=yes
50748 echo "$as_me: failed program was:" >&5
50749 sed 's/^/| /' conftest.$ac_ext >&5
50751 ac_cv_type_int16_t=no
50754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50756 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
50757 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
50758 if test $ac_cv_type_int16_t = yes; then
50760 cat >>confdefs.h <<_ACEOF
50761 #define HAVE_INT16_T 1
50766 { echo "$as_me:$LINENO: checking for int32_t" >&5
50767 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
50768 if test "${ac_cv_type_int32_t+set}" = set; then
50769 echo $ECHO_N "(cached) $ECHO_C" >&6
50771 cat >conftest.$ac_ext <<_ACEOF
50774 cat confdefs.h >>conftest.$ac_ext
50775 cat >>conftest.$ac_ext <<_ACEOF
50776 /* end confdefs.h. */
50778 #ifdef HAVE_INTTYPES_H
50779 #include <inttypes.h>
50781 #ifdef HAVE_SYS_TYPES_H
50782 #include <sys/types.h>
50784 #ifdef HAVE_SYS_BITYPES_H
50785 #include <sys/bitypes.h>
50787 #ifdef HAVE_BIND_BITYPES_H
50788 #include <bind/bitypes.h>
50790 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50791 #include <netinet/in6_machtypes.h>
50795 typedef int32_t ac__type_new_;
50799 if ((ac__type_new_ *) 0)
50801 if (sizeof (ac__type_new_))
50807 rm -f conftest.$ac_objext
50808 if { (ac_try="$ac_compile"
50809 case "(($ac_try" in
50810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50811 *) ac_try_echo=$ac_try;;
50813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50814 (eval "$ac_compile") 2>conftest.er1
50816 grep -v '^ *+' conftest.er1 >conftest.err
50818 cat conftest.err >&5
50819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50820 (exit $ac_status); } && {
50821 test -z "$ac_c_werror_flag" ||
50822 test ! -s conftest.err
50823 } && test -s conftest.$ac_objext; then
50824 ac_cv_type_int32_t=yes
50826 echo "$as_me: failed program was:" >&5
50827 sed 's/^/| /' conftest.$ac_ext >&5
50829 ac_cv_type_int32_t=no
50832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50834 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
50835 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
50836 if test $ac_cv_type_int32_t = yes; then
50838 cat >>confdefs.h <<_ACEOF
50839 #define HAVE_INT32_T 1
50844 { echo "$as_me:$LINENO: checking for int64_t" >&5
50845 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
50846 if test "${ac_cv_type_int64_t+set}" = set; then
50847 echo $ECHO_N "(cached) $ECHO_C" >&6
50849 cat >conftest.$ac_ext <<_ACEOF
50852 cat confdefs.h >>conftest.$ac_ext
50853 cat >>conftest.$ac_ext <<_ACEOF
50854 /* end confdefs.h. */
50856 #ifdef HAVE_INTTYPES_H
50857 #include <inttypes.h>
50859 #ifdef HAVE_SYS_TYPES_H
50860 #include <sys/types.h>
50862 #ifdef HAVE_SYS_BITYPES_H
50863 #include <sys/bitypes.h>
50865 #ifdef HAVE_BIND_BITYPES_H
50866 #include <bind/bitypes.h>
50868 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50869 #include <netinet/in6_machtypes.h>
50873 typedef int64_t ac__type_new_;
50877 if ((ac__type_new_ *) 0)
50879 if (sizeof (ac__type_new_))
50885 rm -f conftest.$ac_objext
50886 if { (ac_try="$ac_compile"
50887 case "(($ac_try" in
50888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50889 *) ac_try_echo=$ac_try;;
50891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50892 (eval "$ac_compile") 2>conftest.er1
50894 grep -v '^ *+' conftest.er1 >conftest.err
50896 cat conftest.err >&5
50897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50898 (exit $ac_status); } && {
50899 test -z "$ac_c_werror_flag" ||
50900 test ! -s conftest.err
50901 } && test -s conftest.$ac_objext; then
50902 ac_cv_type_int64_t=yes
50904 echo "$as_me: failed program was:" >&5
50905 sed 's/^/| /' conftest.$ac_ext >&5
50907 ac_cv_type_int64_t=no
50910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50912 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
50913 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
50914 if test $ac_cv_type_int64_t = yes; then
50916 cat >>confdefs.h <<_ACEOF
50917 #define HAVE_INT64_T 1
50922 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
50923 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
50924 if test "${ac_cv_type_u_int8_t+set}" = set; then
50925 echo $ECHO_N "(cached) $ECHO_C" >&6
50927 cat >conftest.$ac_ext <<_ACEOF
50930 cat confdefs.h >>conftest.$ac_ext
50931 cat >>conftest.$ac_ext <<_ACEOF
50932 /* end confdefs.h. */
50934 #ifdef HAVE_INTTYPES_H
50935 #include <inttypes.h>
50937 #ifdef HAVE_SYS_TYPES_H
50938 #include <sys/types.h>
50940 #ifdef HAVE_SYS_BITYPES_H
50941 #include <sys/bitypes.h>
50943 #ifdef HAVE_BIND_BITYPES_H
50944 #include <bind/bitypes.h>
50946 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
50947 #include <netinet/in6_machtypes.h>
50951 typedef u_int8_t ac__type_new_;
50955 if ((ac__type_new_ *) 0)
50957 if (sizeof (ac__type_new_))
50963 rm -f conftest.$ac_objext
50964 if { (ac_try="$ac_compile"
50965 case "(($ac_try" in
50966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50967 *) ac_try_echo=$ac_try;;
50969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50970 (eval "$ac_compile") 2>conftest.er1
50972 grep -v '^ *+' conftest.er1 >conftest.err
50974 cat conftest.err >&5
50975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50976 (exit $ac_status); } && {
50977 test -z "$ac_c_werror_flag" ||
50978 test ! -s conftest.err
50979 } && test -s conftest.$ac_objext; then
50980 ac_cv_type_u_int8_t=yes
50982 echo "$as_me: failed program was:" >&5
50983 sed 's/^/| /' conftest.$ac_ext >&5
50985 ac_cv_type_u_int8_t=no
50988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50990 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
50991 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
50992 if test $ac_cv_type_u_int8_t = yes; then
50994 cat >>confdefs.h <<_ACEOF
50995 #define HAVE_U_INT8_T 1
51000 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
51001 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
51002 if test "${ac_cv_type_u_int16_t+set}" = set; then
51003 echo $ECHO_N "(cached) $ECHO_C" >&6
51005 cat >conftest.$ac_ext <<_ACEOF
51008 cat confdefs.h >>conftest.$ac_ext
51009 cat >>conftest.$ac_ext <<_ACEOF
51010 /* end confdefs.h. */
51012 #ifdef HAVE_INTTYPES_H
51013 #include <inttypes.h>
51015 #ifdef HAVE_SYS_TYPES_H
51016 #include <sys/types.h>
51018 #ifdef HAVE_SYS_BITYPES_H
51019 #include <sys/bitypes.h>
51021 #ifdef HAVE_BIND_BITYPES_H
51022 #include <bind/bitypes.h>
51024 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51025 #include <netinet/in6_machtypes.h>
51029 typedef u_int16_t ac__type_new_;
51033 if ((ac__type_new_ *) 0)
51035 if (sizeof (ac__type_new_))
51041 rm -f conftest.$ac_objext
51042 if { (ac_try="$ac_compile"
51043 case "(($ac_try" in
51044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51045 *) ac_try_echo=$ac_try;;
51047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51048 (eval "$ac_compile") 2>conftest.er1
51050 grep -v '^ *+' conftest.er1 >conftest.err
51052 cat conftest.err >&5
51053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51054 (exit $ac_status); } && {
51055 test -z "$ac_c_werror_flag" ||
51056 test ! -s conftest.err
51057 } && test -s conftest.$ac_objext; then
51058 ac_cv_type_u_int16_t=yes
51060 echo "$as_me: failed program was:" >&5
51061 sed 's/^/| /' conftest.$ac_ext >&5
51063 ac_cv_type_u_int16_t=no
51066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51068 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51069 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
51070 if test $ac_cv_type_u_int16_t = yes; then
51072 cat >>confdefs.h <<_ACEOF
51073 #define HAVE_U_INT16_T 1
51078 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
51079 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
51080 if test "${ac_cv_type_u_int32_t+set}" = set; then
51081 echo $ECHO_N "(cached) $ECHO_C" >&6
51083 cat >conftest.$ac_ext <<_ACEOF
51086 cat confdefs.h >>conftest.$ac_ext
51087 cat >>conftest.$ac_ext <<_ACEOF
51088 /* end confdefs.h. */
51090 #ifdef HAVE_INTTYPES_H
51091 #include <inttypes.h>
51093 #ifdef HAVE_SYS_TYPES_H
51094 #include <sys/types.h>
51096 #ifdef HAVE_SYS_BITYPES_H
51097 #include <sys/bitypes.h>
51099 #ifdef HAVE_BIND_BITYPES_H
51100 #include <bind/bitypes.h>
51102 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51103 #include <netinet/in6_machtypes.h>
51107 typedef u_int32_t ac__type_new_;
51111 if ((ac__type_new_ *) 0)
51113 if (sizeof (ac__type_new_))
51119 rm -f conftest.$ac_objext
51120 if { (ac_try="$ac_compile"
51121 case "(($ac_try" in
51122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51123 *) ac_try_echo=$ac_try;;
51125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51126 (eval "$ac_compile") 2>conftest.er1
51128 grep -v '^ *+' conftest.er1 >conftest.err
51130 cat conftest.err >&5
51131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51132 (exit $ac_status); } && {
51133 test -z "$ac_c_werror_flag" ||
51134 test ! -s conftest.err
51135 } && test -s conftest.$ac_objext; then
51136 ac_cv_type_u_int32_t=yes
51138 echo "$as_me: failed program was:" >&5
51139 sed 's/^/| /' conftest.$ac_ext >&5
51141 ac_cv_type_u_int32_t=no
51144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51146 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
51147 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
51148 if test $ac_cv_type_u_int32_t = yes; then
51150 cat >>confdefs.h <<_ACEOF
51151 #define HAVE_U_INT32_T 1
51156 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
51157 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
51158 if test "${ac_cv_type_u_int64_t+set}" = set; then
51159 echo $ECHO_N "(cached) $ECHO_C" >&6
51161 cat >conftest.$ac_ext <<_ACEOF
51164 cat confdefs.h >>conftest.$ac_ext
51165 cat >>conftest.$ac_ext <<_ACEOF
51166 /* end confdefs.h. */
51168 #ifdef HAVE_INTTYPES_H
51169 #include <inttypes.h>
51171 #ifdef HAVE_SYS_TYPES_H
51172 #include <sys/types.h>
51174 #ifdef HAVE_SYS_BITYPES_H
51175 #include <sys/bitypes.h>
51177 #ifdef HAVE_BIND_BITYPES_H
51178 #include <bind/bitypes.h>
51180 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51181 #include <netinet/in6_machtypes.h>
51185 typedef u_int64_t ac__type_new_;
51189 if ((ac__type_new_ *) 0)
51191 if (sizeof (ac__type_new_))
51197 rm -f conftest.$ac_objext
51198 if { (ac_try="$ac_compile"
51199 case "(($ac_try" in
51200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51201 *) ac_try_echo=$ac_try;;
51203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51204 (eval "$ac_compile") 2>conftest.er1
51206 grep -v '^ *+' conftest.er1 >conftest.err
51208 cat conftest.err >&5
51209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51210 (exit $ac_status); } && {
51211 test -z "$ac_c_werror_flag" ||
51212 test ! -s conftest.err
51213 } && test -s conftest.$ac_objext; then
51214 ac_cv_type_u_int64_t=yes
51216 echo "$as_me: failed program was:" >&5
51217 sed 's/^/| /' conftest.$ac_ext >&5
51219 ac_cv_type_u_int64_t=no
51222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51224 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
51225 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
51226 if test $ac_cv_type_u_int64_t = yes; then
51228 cat >>confdefs.h <<_ACEOF
51229 #define HAVE_U_INT64_T 1
51234 { echo "$as_me:$LINENO: checking for uint8_t" >&5
51235 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
51236 if test "${ac_cv_type_uint8_t+set}" = set; then
51237 echo $ECHO_N "(cached) $ECHO_C" >&6
51239 cat >conftest.$ac_ext <<_ACEOF
51242 cat confdefs.h >>conftest.$ac_ext
51243 cat >>conftest.$ac_ext <<_ACEOF
51244 /* end confdefs.h. */
51246 #ifdef HAVE_INTTYPES_H
51247 #include <inttypes.h>
51249 #ifdef HAVE_SYS_TYPES_H
51250 #include <sys/types.h>
51252 #ifdef HAVE_SYS_BITYPES_H
51253 #include <sys/bitypes.h>
51255 #ifdef HAVE_BIND_BITYPES_H
51256 #include <bind/bitypes.h>
51258 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51259 #include <netinet/in6_machtypes.h>
51263 typedef uint8_t ac__type_new_;
51267 if ((ac__type_new_ *) 0)
51269 if (sizeof (ac__type_new_))
51275 rm -f conftest.$ac_objext
51276 if { (ac_try="$ac_compile"
51277 case "(($ac_try" in
51278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51279 *) ac_try_echo=$ac_try;;
51281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51282 (eval "$ac_compile") 2>conftest.er1
51284 grep -v '^ *+' conftest.er1 >conftest.err
51286 cat conftest.err >&5
51287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288 (exit $ac_status); } && {
51289 test -z "$ac_c_werror_flag" ||
51290 test ! -s conftest.err
51291 } && test -s conftest.$ac_objext; then
51292 ac_cv_type_uint8_t=yes
51294 echo "$as_me: failed program was:" >&5
51295 sed 's/^/| /' conftest.$ac_ext >&5
51297 ac_cv_type_uint8_t=no
51300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51302 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
51303 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
51304 if test $ac_cv_type_uint8_t = yes; then
51306 cat >>confdefs.h <<_ACEOF
51307 #define HAVE_UINT8_T 1
51312 { echo "$as_me:$LINENO: checking for uint16_t" >&5
51313 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
51314 if test "${ac_cv_type_uint16_t+set}" = set; then
51315 echo $ECHO_N "(cached) $ECHO_C" >&6
51317 cat >conftest.$ac_ext <<_ACEOF
51320 cat confdefs.h >>conftest.$ac_ext
51321 cat >>conftest.$ac_ext <<_ACEOF
51322 /* end confdefs.h. */
51324 #ifdef HAVE_INTTYPES_H
51325 #include <inttypes.h>
51327 #ifdef HAVE_SYS_TYPES_H
51328 #include <sys/types.h>
51330 #ifdef HAVE_SYS_BITYPES_H
51331 #include <sys/bitypes.h>
51333 #ifdef HAVE_BIND_BITYPES_H
51334 #include <bind/bitypes.h>
51336 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51337 #include <netinet/in6_machtypes.h>
51341 typedef uint16_t ac__type_new_;
51345 if ((ac__type_new_ *) 0)
51347 if (sizeof (ac__type_new_))
51353 rm -f conftest.$ac_objext
51354 if { (ac_try="$ac_compile"
51355 case "(($ac_try" in
51356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51357 *) ac_try_echo=$ac_try;;
51359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51360 (eval "$ac_compile") 2>conftest.er1
51362 grep -v '^ *+' conftest.er1 >conftest.err
51364 cat conftest.err >&5
51365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51366 (exit $ac_status); } && {
51367 test -z "$ac_c_werror_flag" ||
51368 test ! -s conftest.err
51369 } && test -s conftest.$ac_objext; then
51370 ac_cv_type_uint16_t=yes
51372 echo "$as_me: failed program was:" >&5
51373 sed 's/^/| /' conftest.$ac_ext >&5
51375 ac_cv_type_uint16_t=no
51378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51380 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
51381 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
51382 if test $ac_cv_type_uint16_t = yes; then
51384 cat >>confdefs.h <<_ACEOF
51385 #define HAVE_UINT16_T 1
51390 { echo "$as_me:$LINENO: checking for uint32_t" >&5
51391 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
51392 if test "${ac_cv_type_uint32_t+set}" = set; then
51393 echo $ECHO_N "(cached) $ECHO_C" >&6
51395 cat >conftest.$ac_ext <<_ACEOF
51398 cat confdefs.h >>conftest.$ac_ext
51399 cat >>conftest.$ac_ext <<_ACEOF
51400 /* end confdefs.h. */
51402 #ifdef HAVE_INTTYPES_H
51403 #include <inttypes.h>
51405 #ifdef HAVE_SYS_TYPES_H
51406 #include <sys/types.h>
51408 #ifdef HAVE_SYS_BITYPES_H
51409 #include <sys/bitypes.h>
51411 #ifdef HAVE_BIND_BITYPES_H
51412 #include <bind/bitypes.h>
51414 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51415 #include <netinet/in6_machtypes.h>
51419 typedef uint32_t ac__type_new_;
51423 if ((ac__type_new_ *) 0)
51425 if (sizeof (ac__type_new_))
51431 rm -f conftest.$ac_objext
51432 if { (ac_try="$ac_compile"
51433 case "(($ac_try" in
51434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51435 *) ac_try_echo=$ac_try;;
51437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51438 (eval "$ac_compile") 2>conftest.er1
51440 grep -v '^ *+' conftest.er1 >conftest.err
51442 cat conftest.err >&5
51443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51444 (exit $ac_status); } && {
51445 test -z "$ac_c_werror_flag" ||
51446 test ! -s conftest.err
51447 } && test -s conftest.$ac_objext; then
51448 ac_cv_type_uint32_t=yes
51450 echo "$as_me: failed program was:" >&5
51451 sed 's/^/| /' conftest.$ac_ext >&5
51453 ac_cv_type_uint32_t=no
51456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51458 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
51459 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
51460 if test $ac_cv_type_uint32_t = yes; then
51462 cat >>confdefs.h <<_ACEOF
51463 #define HAVE_UINT32_T 1
51468 { echo "$as_me:$LINENO: checking for uint64_t" >&5
51469 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
51470 if test "${ac_cv_type_uint64_t+set}" = set; then
51471 echo $ECHO_N "(cached) $ECHO_C" >&6
51473 cat >conftest.$ac_ext <<_ACEOF
51476 cat confdefs.h >>conftest.$ac_ext
51477 cat >>conftest.$ac_ext <<_ACEOF
51478 /* end confdefs.h. */
51480 #ifdef HAVE_INTTYPES_H
51481 #include <inttypes.h>
51483 #ifdef HAVE_SYS_TYPES_H
51484 #include <sys/types.h>
51486 #ifdef HAVE_SYS_BITYPES_H
51487 #include <sys/bitypes.h>
51489 #ifdef HAVE_BIND_BITYPES_H
51490 #include <bind/bitypes.h>
51492 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
51493 #include <netinet/in6_machtypes.h>
51497 typedef uint64_t ac__type_new_;
51501 if ((ac__type_new_ *) 0)
51503 if (sizeof (ac__type_new_))
51509 rm -f conftest.$ac_objext
51510 if { (ac_try="$ac_compile"
51511 case "(($ac_try" in
51512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51513 *) ac_try_echo=$ac_try;;
51515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51516 (eval "$ac_compile") 2>conftest.er1
51518 grep -v '^ *+' conftest.er1 >conftest.err
51520 cat conftest.err >&5
51521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51522 (exit $ac_status); } && {
51523 test -z "$ac_c_werror_flag" ||
51524 test ! -s conftest.err
51525 } && test -s conftest.$ac_objext; then
51526 ac_cv_type_uint64_t=yes
51528 echo "$as_me: failed program was:" >&5
51529 sed 's/^/| /' conftest.$ac_ext >&5
51531 ac_cv_type_uint64_t=no
51534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51536 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
51537 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
51538 if test $ac_cv_type_uint64_t = yes; then
51540 cat >>confdefs.h <<_ACEOF
51541 #define HAVE_UINT64_T 1
51550 { echo "$as_me:$LINENO: checking for framework security" >&5
51551 echo $ECHO_N "checking for framework security... $ECHO_C" >&6; }
51552 if test "${rk_cv_framework_security+set}" = set; then
51553 echo $ECHO_N "(cached) $ECHO_C" >&6
51556 if test "$rk_cv_framework_security" != yes; then
51557 ac_save_LIBS="$LIBS"
51558 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation"
51559 cat >conftest.$ac_ext <<_ACEOF
51562 cat confdefs.h >>conftest.$ac_ext
51563 cat >>conftest.$ac_ext <<_ACEOF
51564 /* end confdefs.h. */
51565 #include <Security/Security.h>
51570 SecKeychainSearchRef searchRef;
51571 SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef);
51572 CFRelease(&searchRef);
51578 rm -f conftest.$ac_objext conftest$ac_exeext
51579 if { (ac_try="$ac_link"
51580 case "(($ac_try" in
51581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51582 *) ac_try_echo=$ac_try;;
51584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51585 (eval "$ac_link") 2>conftest.er1
51587 grep -v '^ *+' conftest.er1 >conftest.err
51589 cat conftest.err >&5
51590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51591 (exit $ac_status); } && {
51592 test -z "$ac_c_werror_flag" ||
51593 test ! -s conftest.err
51594 } && test -s conftest$ac_exeext &&
51595 $as_test_x conftest$ac_exeext; then
51596 rk_cv_framework_security=yes
51598 echo "$as_me: failed program was:" >&5
51599 sed 's/^/| /' conftest.$ac_ext >&5
51604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51605 conftest$ac_exeext conftest.$ac_ext
51606 LIBS="$ac_save_LIBS"
51612 if test "$rk_cv_framework_security" = yes; then
51614 cat >>confdefs.h <<\_ACEOF
51615 #define HAVE_FRAMEWORK_SECURITY 1
51618 { echo "$as_me:$LINENO: result: yes" >&5
51619 echo "${ECHO_T}yes" >&6; }
51621 { echo "$as_me:$LINENO: result: no" >&5
51622 echo "${ECHO_T}no" >&6; }
51624 if test "$rk_cv_framework_security" = yes; then
51625 FRAMEWORK_SECURITY_TRUE=
51626 FRAMEWORK_SECURITY_FALSE='#'
51628 FRAMEWORK_SECURITY_TRUE='#'
51629 FRAMEWORK_SECURITY_FALSE=
51633 if test "$rk_cv_framework_security" = yes; then
51635 if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then
51636 { echo "$as_me:$LINENO: checking if SecKeyGetCSPHandle needs a prototype" >&5
51637 echo $ECHO_N "checking if SecKeyGetCSPHandle needs a prototype... $ECHO_C" >&6; }
51638 if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then
51639 echo $ECHO_N "(cached) $ECHO_C" >&6
51641 cat >conftest.$ac_ext <<_ACEOF
51644 cat confdefs.h >>conftest.$ac_ext
51645 cat >>conftest.$ac_ext <<_ACEOF
51646 /* end confdefs.h. */
51647 #include <Security/Security.h>
51648 struct foo { int foo; } xx;
51649 extern int SecKeyGetCSPHandle (struct foo*);
51653 SecKeyGetCSPHandle(&xx)
51658 rm -f conftest.$ac_objext
51659 if { (ac_try="$ac_compile"
51660 case "(($ac_try" in
51661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51662 *) ac_try_echo=$ac_try;;
51664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51665 (eval "$ac_compile") 2>conftest.er1
51667 grep -v '^ *+' conftest.er1 >conftest.err
51669 cat conftest.err >&5
51670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51671 (exit $ac_status); } && {
51672 test -z "$ac_c_werror_flag" ||
51673 test ! -s conftest.err
51674 } && test -s conftest.$ac_objext; then
51675 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes"
51677 echo "$as_me: failed program was:" >&5
51678 sed 's/^/| /' conftest.$ac_ext >&5
51680 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no"
51683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51685 { echo "$as_me:$LINENO: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5
51686 echo "${ECHO_T}$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; }
51687 if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then
51689 cat >>confdefs.h <<\_ACEOF
51690 #define NEED_SECKEYGETCSPHANDLE_PROTO 1
51704 { echo "$as_me:$LINENO: checking for el_init" >&5
51705 echo $ECHO_N "checking for el_init... $ECHO_C" >&6; }
51706 if test "${ac_cv_funclib_el_init+set}" = set; then
51707 echo $ECHO_N "(cached) $ECHO_C" >&6
51710 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
51711 ac_save_LIBS="$LIBS"
51712 for ac_lib in "" edit; do
51718 *) ac_lib="-l$ac_lib" ;;
51720 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
51721 cat >conftest.$ac_ext <<_ACEOF
51724 cat confdefs.h >>conftest.$ac_ext
51725 cat >>conftest.$ac_ext <<_ACEOF
51726 /* end confdefs.h. */
51736 rm -f conftest.$ac_objext conftest$ac_exeext
51737 if { (ac_try="$ac_link"
51738 case "(($ac_try" in
51739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51740 *) ac_try_echo=$ac_try;;
51742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51743 (eval "$ac_link") 2>conftest.er1
51745 grep -v '^ *+' conftest.er1 >conftest.err
51747 cat conftest.err >&5
51748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51749 (exit $ac_status); } && {
51750 test -z "$ac_c_werror_flag" ||
51751 test ! -s conftest.err
51752 } && test -s conftest$ac_exeext &&
51753 $as_test_x conftest$ac_exeext; then
51754 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
51756 echo "$as_me: failed program was:" >&5
51757 sed 's/^/| /' conftest.$ac_ext >&5
51762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51763 conftest$ac_exeext conftest.$ac_ext
51765 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
51766 LIBS="$ac_save_LIBS"
51772 eval "ac_res=\$ac_cv_funclib_el_init"
51776 for ac_func in el_init
51778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
51780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
51781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51782 echo $ECHO_N "(cached) $ECHO_C" >&6
51784 cat >conftest.$ac_ext <<_ACEOF
51787 cat confdefs.h >>conftest.$ac_ext
51788 cat >>conftest.$ac_ext <<_ACEOF
51789 /* end confdefs.h. */
51790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51792 #define $ac_func innocuous_$ac_func
51794 /* System header to define __stub macros and hopefully few prototypes,
51795 which can conflict with char $ac_func (); below.
51796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51797 <limits.h> exists even on freestanding compilers. */
51800 # include <limits.h>
51802 # include <assert.h>
51807 /* Override any GCC internal prototype to avoid an error.
51808 Use char because int might match the return type of a GCC
51809 builtin and then its argument prototype would still apply. */
51814 /* The GNU C library defines this for functions which it implements
51815 to always fail with ENOSYS. Some functions are actually named
51816 something starting with __ and the normal name is an alias. */
51817 #if defined __stub_$ac_func || defined __stub___$ac_func
51824 return $ac_func ();
51829 rm -f conftest.$ac_objext conftest$ac_exeext
51830 if { (ac_try="$ac_link"
51831 case "(($ac_try" in
51832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51833 *) ac_try_echo=$ac_try;;
51835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51836 (eval "$ac_link") 2>conftest.er1
51838 grep -v '^ *+' conftest.er1 >conftest.err
51840 cat conftest.err >&5
51841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51842 (exit $ac_status); } && {
51843 test -z "$ac_c_werror_flag" ||
51844 test ! -s conftest.err
51845 } && test -s conftest$ac_exeext &&
51846 $as_test_x conftest$ac_exeext; then
51847 eval "$as_ac_var=yes"
51849 echo "$as_me: failed program was:" >&5
51850 sed 's/^/| /' conftest.$ac_ext >&5
51852 eval "$as_ac_var=no"
51855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51856 conftest$ac_exeext conftest.$ac_ext
51858 ac_res=`eval echo '${'$as_ac_var'}'`
51859 { echo "$as_me:$LINENO: result: $ac_res" >&5
51860 echo "${ECHO_T}$ac_res" >&6; }
51861 if test `eval echo '${'$as_ac_var'}'` = yes; then
51862 cat >>confdefs.h <<_ACEOF
51863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51871 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
51872 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
51873 eval "LIB_el_init=$ac_res"
51877 eval "ac_cv_func_el_init=yes"
51878 eval "LIB_el_init="
51879 cat >>confdefs.h <<_ACEOF
51880 #define $ac_tr_func 1
51883 { echo "$as_me:$LINENO: result: yes" >&5
51884 echo "${ECHO_T}yes" >&6; }
51887 eval "ac_cv_func_el_init=no"
51888 eval "LIB_el_init="
51889 { echo "$as_me:$LINENO: result: no" >&5
51890 echo "${ECHO_T}no" >&6; }
51893 eval "ac_cv_func_el_init=yes"
51894 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
51895 cat >>confdefs.h <<_ACEOF
51896 #define $ac_tr_func 1
51899 cat >>confdefs.h <<_ACEOF
51900 #define $ac_tr_lib 1
51903 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
51904 echo "${ECHO_T}yes, in $ac_res" >&6; }
51909 if test "$ac_cv_func_el_init" = yes ; then
51910 { echo "$as_me:$LINENO: checking for four argument el_init" >&5
51911 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6; }
51912 if test "${ac_cv_func_el_init_four+set}" = set; then
51913 echo $ECHO_N "(cached) $ECHO_C" >&6
51916 cat >conftest.$ac_ext <<_ACEOF
51919 cat confdefs.h >>conftest.$ac_ext
51920 cat >>conftest.$ac_ext <<_ACEOF
51921 /* end confdefs.h. */
51923 #include <histedit.h>
51927 el_init("", NULL, NULL, NULL);
51932 rm -f conftest.$ac_objext
51933 if { (ac_try="$ac_compile"
51934 case "(($ac_try" in
51935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51936 *) ac_try_echo=$ac_try;;
51938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51939 (eval "$ac_compile") 2>conftest.er1
51941 grep -v '^ *+' conftest.er1 >conftest.err
51943 cat conftest.err >&5
51944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51945 (exit $ac_status); } && {
51946 test -z "$ac_c_werror_flag" ||
51947 test ! -s conftest.err
51948 } && test -s conftest.$ac_objext; then
51949 ac_cv_func_el_init_four=yes
51951 echo "$as_me: failed program was:" >&5
51952 sed 's/^/| /' conftest.$ac_ext >&5
51954 ac_cv_func_el_init_four=no
51957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51959 { echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
51960 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6; }
51961 if test "$ac_cv_func_el_init_four" = yes; then
51963 cat >>confdefs.h <<\_ACEOF
51964 #define HAVE_FOUR_VALUED_EL_INIT 1
51972 if test "$with_readline" = yes; then
51974 elif test "$ac_cv_func_readline" = yes; then
51976 elif test "$ac_cv_func_el_init" = yes; then
51978 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
51980 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
51982 if test "$ac_foo" = yes; then
51984 el_compat_FALSE='#'
51991 cat >>confdefs.h <<\_ACEOF
51992 #define HAVE_READLINE 1
51999 cat >>confdefs.h <<\_ACEOF
52000 #define AUTHENTICATION 1
52003 cat >>confdefs.h <<\_ACEOF
52004 #define ENCRYPTION 1
52007 cat >>confdefs.h <<\_ACEOF
52008 #define DES_ENCRYPTION 1
52011 cat >>confdefs.h <<\_ACEOF
52012 #define DIAGNOSTICS 1
52015 cat >>confdefs.h <<\_ACEOF
52016 #define OLD_ENVIRON 1
52020 cat >>confdefs.h <<\_ACEOF
52026 # Simple test for streamspty, based on the existance of getmsg(), alas
52027 # this breaks on SunOS4 which have streams but BSD-like ptys
52029 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52032 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52035 { echo "$as_me:$LINENO: checking for getmsg" >&5
52036 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6; }
52037 if test "${ac_cv_func_getmsg+set}" = set; then
52038 echo $ECHO_N "(cached) $ECHO_C" >&6
52040 cat >conftest.$ac_ext <<_ACEOF
52043 cat confdefs.h >>conftest.$ac_ext
52044 cat >>conftest.$ac_ext <<_ACEOF
52045 /* end confdefs.h. */
52046 /* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52048 #define getmsg innocuous_getmsg
52050 /* System header to define __stub macros and hopefully few prototypes,
52051 which can conflict with char getmsg (); below.
52052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52053 <limits.h> exists even on freestanding compilers. */
52056 # include <limits.h>
52058 # include <assert.h>
52063 /* Override any GCC internal prototype to avoid an error.
52064 Use char because int might match the return type of a GCC
52065 builtin and then its argument prototype would still apply. */
52070 /* The GNU C library defines this for functions which it implements
52071 to always fail with ENOSYS. Some functions are actually named
52072 something starting with __ and the normal name is an alias. */
52073 #if defined __stub_getmsg || defined __stub___getmsg
52085 rm -f conftest.$ac_objext conftest$ac_exeext
52086 if { (ac_try="$ac_link"
52087 case "(($ac_try" in
52088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52089 *) ac_try_echo=$ac_try;;
52091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52092 (eval "$ac_link") 2>conftest.er1
52094 grep -v '^ *+' conftest.er1 >conftest.err
52096 cat conftest.err >&5
52097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52098 (exit $ac_status); } && {
52099 test -z "$ac_c_werror_flag" ||
52100 test ! -s conftest.err
52101 } && test -s conftest$ac_exeext &&
52102 $as_test_x conftest$ac_exeext; then
52103 ac_cv_func_getmsg=yes
52105 echo "$as_me: failed program was:" >&5
52106 sed 's/^/| /' conftest.$ac_ext >&5
52108 ac_cv_func_getmsg=no
52111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52112 conftest$ac_exeext conftest.$ac_ext
52114 { echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52115 echo "${ECHO_T}$ac_cv_func_getmsg" >&6; }
52117 if test "$ac_cv_func_getmsg" = "yes"; then
52118 { echo "$as_me:$LINENO: checking if getmsg works" >&5
52119 echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6; }
52120 if test "${ac_cv_func_getmsg_works+set}" = set; then
52121 echo $ECHO_N "(cached) $ECHO_C" >&6
52123 if test "$cross_compiling" = yes; then
52124 ac_cv_func_getmsg_works=no
52126 cat >conftest.$ac_ext <<_ACEOF
52129 cat confdefs.h >>conftest.$ac_ext
52130 cat >>conftest.$ac_ext <<_ACEOF
52131 /* end confdefs.h. */
52136 int main(int argc, char **argv)
52139 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52140 if(ret < 0 && errno == ENOSYS)
52146 rm -f conftest$ac_exeext
52147 if { (ac_try="$ac_link"
52148 case "(($ac_try" in
52149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52150 *) ac_try_echo=$ac_try;;
52152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52153 (eval "$ac_link") 2>&5
52155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52157 { (case "(($ac_try" in
52158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52159 *) ac_try_echo=$ac_try;;
52161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52162 (eval "$ac_try") 2>&5
52164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52165 (exit $ac_status); }; }; then
52166 ac_cv_func_getmsg_works=yes
52168 echo "$as_me: program exited with status $ac_status" >&5
52169 echo "$as_me: failed program was:" >&5
52170 sed 's/^/| /' conftest.$ac_ext >&5
52172 ( exit $ac_status )
52173 ac_cv_func_getmsg_works=no
52175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52180 { echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52181 echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6; }
52182 if test "$ac_cv_func_getmsg_works" = "yes"; then
52184 cat >>confdefs.h <<\_ACEOF
52185 #define HAVE_GETMSG 1
52189 cat >>confdefs.h <<\_ACEOF
52190 #define STREAMSPTY 1
52204 # Extract the first word of "compile_et", so it can be a program name with args.
52205 set dummy compile_et; ac_word=$2
52206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52208 if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52209 echo $ECHO_N "(cached) $ECHO_C" >&6
52211 if test -n "$COMPILE_ET"; then
52212 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52215 for as_dir in $PATH
52218 test -z "$as_dir" && as_dir=.
52219 for ac_exec_ext in '' $ac_executable_extensions; do
52220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52221 ac_cv_prog_COMPILE_ET="compile_et"
52222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52231 COMPILE_ET=$ac_cv_prog_COMPILE_ET
52232 if test -n "$COMPILE_ET"; then
52233 { echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52234 echo "${ECHO_T}$COMPILE_ET" >&6; }
52236 { echo "$as_me:$LINENO: result: no" >&5
52237 echo "${ECHO_T}no" >&6; }
52242 krb_cv_compile_et="no"
52243 krb_cv_com_err_need_r=""
52244 krb_cv_compile_et_cross=no
52245 if test "${COMPILE_ET}" = "compile_et"; then
52247 { echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52248 echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6; }
52249 cat > conftest_et.et <<'EOF'
52250 error_table test conf
52253 error_code CODE1, "CODE1"
52255 error_code CODE2, "CODE2"
52258 if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52259 save_CPPFLAGS="${CPPFLAGS}"
52260 if test -d "/usr/include/et"; then
52261 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52263 if test "$cross_compiling" = yes; then
52264 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes
52266 cat >conftest.$ac_ext <<_ACEOF
52268 #include <com_err.h>
52269 #include <string.h>
52270 #include "conftest_et.h"
52271 int main(int argc, char **argv){
52272 #ifndef ERROR_TABLE_BASE_conf
52273 #error compile_et does not handle error_table N M
52275 return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
52278 rm -f conftest$ac_exeext
52279 if { (ac_try="$ac_link"
52280 case "(($ac_try" in
52281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52282 *) ac_try_echo=$ac_try;;
52284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52285 (eval "$ac_link") 2>&5
52287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52289 { (case "(($ac_try" in
52290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52291 *) ac_try_echo=$ac_try;;
52293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52294 (eval "$ac_try") 2>&5
52296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52297 (exit $ac_status); }; }; then
52298 krb_cv_compile_et="yes"
52300 echo "$as_me: program exited with status $ac_status" >&5
52301 echo "$as_me: failed program was:" >&5
52302 sed 's/^/| /' conftest.$ac_ext >&5
52304 ( exit $ac_status )
52305 CPPFLAGS="${save_CPPFLAGS}"
52307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52312 { echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
52313 echo "${ECHO_T}${krb_cv_compile_et}" >&6; }
52314 if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then
52315 { echo "$as_me:$LINENO: checking for if com_err generates a initialize_conf_error_table_r" >&5
52316 echo $ECHO_N "checking for if com_err generates a initialize_conf_error_table_r... $ECHO_C" >&6; }
52317 cat >conftest.$ac_ext <<_ACEOF
52320 cat confdefs.h >>conftest.$ac_ext
52321 cat >>conftest.$ac_ext <<_ACEOF
52322 /* end confdefs.h. */
52323 #include "conftest_et.h"
52325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52326 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then
52327 krb_cv_com_err_need_r="ok"
52331 if test X"$krb_cv_com_err_need_r" = X ; then
52332 { echo "$as_me:$LINENO: result: no" >&5
52333 echo "${ECHO_T}no" >&6; }
52334 krb_cv_compile_et=no
52336 { echo "$as_me:$LINENO: result: yes" >&5
52337 echo "${ECHO_T}yes" >&6; }
52343 if test "${krb_cv_compile_et_cross}" = yes ; then
52344 krb_cv_com_err="cross"
52345 elif test "${krb_cv_compile_et}" = "yes"; then
52346 krb_cv_save_LIBS="${LIBS}"
52347 LIBS="${LIBS} -lcom_err"
52348 { echo "$as_me:$LINENO: checking for com_err" >&5
52349 echo $ECHO_N "checking for com_err... $ECHO_C" >&6; }
52350 cat >conftest.$ac_ext <<_ACEOF
52353 cat confdefs.h >>conftest.$ac_ext
52354 cat >>conftest.$ac_ext <<_ACEOF
52355 /* end confdefs.h. */
52356 #include <com_err.h>
52362 p = error_message(0);
52363 initialize_error_table_r(0,0,0,0);
52369 rm -f conftest.$ac_objext conftest$ac_exeext
52370 if { (ac_try="$ac_link"
52371 case "(($ac_try" in
52372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52373 *) ac_try_echo=$ac_try;;
52375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52376 (eval "$ac_link") 2>conftest.er1
52378 grep -v '^ *+' conftest.er1 >conftest.err
52380 cat conftest.err >&5
52381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52382 (exit $ac_status); } && {
52383 test -z "$ac_c_werror_flag" ||
52384 test ! -s conftest.err
52385 } && test -s conftest$ac_exeext &&
52386 $as_test_x conftest$ac_exeext; then
52387 krb_cv_com_err="yes"
52389 echo "$as_me: failed program was:" >&5
52390 sed 's/^/| /' conftest.$ac_ext >&5
52392 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
52395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52396 conftest$ac_exeext conftest.$ac_ext
52397 { echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
52398 echo "${ECHO_T}${krb_cv_com_err}" >&6; }
52399 LIBS="${krb_cv_save_LIBS}"
52401 krb_cv_com_err="no"
52404 if test "${krb_cv_com_err}" = "yes"; then
52406 LIB_com_err="-lcom_err"
52409 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
52410 echo "$as_me: Using the already-installed com_err" >&6;}
52412 elif test "${krb_cv_com_err}" = "cross"; then
52413 DIR_com_err="com_err"
52414 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
52415 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
52416 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
52417 { echo "$as_me:$LINENO: Using our own com_err with toolchain compile_et" >&5
52418 echo "$as_me: Using our own com_err with toolchain compile_et" >&6;}
52421 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
52422 DIR_com_err="com_err"
52423 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
52424 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
52425 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
52426 { echo "$as_me:$LINENO: Using our own com_err" >&5
52427 echo "$as_me: Using our own com_err" >&6;}
52430 if test "$localcomerr" = yes; then
52445 { echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
52446 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6; }
52448 z='sia afskauthlib'
52453 if test "$ac_cv_header_siad_h" = yes; then
52454 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
52459 *-*-freebsd*) ac_cv_want_pam_krb4=no ;;
52460 *) ac_cv_want_pam_krb4=yes ;;
52463 if test "$ac_cv_want_pam_krb4" = yes -a \
52464 "$ac_cv_header_security_pam_modules_h" = yes -a \
52465 "$enable_shared" = yes; then
52466 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
52471 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
52476 if test "$LIB_AUTH_SUBDIRS"; then
52477 { echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
52478 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6; }
52480 { echo "$as_me:$LINENO: result: none" >&5
52481 echo "${ECHO_T}none" >&6; }
52487 # This is done by AC_OUTPUT but we need the result here.
52488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52494 while test "x$y" != "x$x"; do
52499 cat >>confdefs.h <<_ACEOF
52500 #define BINDIR "$x"
52505 while test "x$y" != "x$x"; do
52510 cat >>confdefs.h <<_ACEOF
52511 #define LIBDIR "$x"
52516 while test "x$y" != "x$x"; do
52521 cat >>confdefs.h <<_ACEOF
52522 #define LIBEXECDIR "$x"
52525 x="${localstatedir}"
52527 while test "x$y" != "x$x"; do
52532 cat >>confdefs.h <<_ACEOF
52533 #define LOCALSTATEDIR "$x"
52538 while test "x$y" != "x$x"; do
52543 cat >>confdefs.h <<_ACEOF
52544 #define SBINDIR "$x"
52549 while test "x$y" != "x$x"; do
52554 cat >>confdefs.h <<_ACEOF
52555 #define SYSCONFDIR "$x"
52562 # Check whether --enable-developer was given.
52563 if test "${enable_developer+set}" = set; then
52564 enableval=$enable_developer;
52567 if test "X$enable_developer" = Xyes; then
52572 WFLAGS_NOIMPLICITINT=""
52573 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
52574 # -Wno-implicit-int for broken X11 headers
52575 # leave these out for now:
52576 # -Wcast-align doesn't work well on alpha osf/1
52577 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
52578 # -Wmissing-declarations -Wnested-externs
52579 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags"
52580 WFLAGS_NOUNUSED="-Wno-unused"
52581 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
52589 ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile packages/debian/Makefile doc/Makefile tools/Makefile"
52592 cat >confcache <<\_ACEOF
52593 # This file is a shell script that caches the results of configure
52594 # tests run on this system so they can be shared between configure
52595 # scripts and configure runs, see configure's option --config-cache.
52596 # It is not useful on other systems. If it contains results you don't
52597 # want to keep, you may remove or edit it.
52599 # config.status only pays attention to the cache file if you give it
52600 # the --recheck option to rerun configure.
52602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52604 # following values.
52608 # The following way of writing the cache mishandles newlines in values,
52609 # but we know of no workaround that is simple, portable, and efficient.
52610 # So, we kill variables containing newlines.
52611 # Ultrix sh set writes to stderr and can't be redirected directly,
52612 # and sets the high bit in the cache file unless we assign to the vars.
52614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52615 eval ac_val=\$$ac_var
52619 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52623 _ | IFS | as_nl) ;; #(
52624 *) $as_unset $ac_var ;;
52630 case $as_nl`(ac_space=' '; set) 2>&1` in #(
52631 *${as_nl}ac_space=\ *)
52632 # `set' does not quote correctly, so add quotes (double-quote
52633 # substitution turns \\\\ into \\, and sed turns \\ into \).
52636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52639 # `set' quotes correctly as required by POSIX, so do not add quotes.
52640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52654 if test -w "$cache_file"; then
52655 test "x$cache_file" != "x/dev/null" &&
52656 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52657 echo "$as_me: updating cache $cache_file" >&6;}
52658 cat confcache >$cache_file
52660 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52661 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52667 # Let make expand exec_prefix.
52668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52670 DEFS=-DHAVE_CONFIG_H
52674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52675 # 1. Remove the extension, and $U if already installed.
52676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52677 ac_i=`echo "$ac_i" | sed "$ac_script"`
52678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
52679 # will be set to the directory where LIBOBJS objects are built.
52680 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52681 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52683 LIBOBJS=$ac_libobjs
52685 LTLIBOBJS=$ac_ltlibobjs
52688 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
52689 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
52690 Usually this means the macro was only invoked conditionally." >&5
52691 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
52692 Usually this means the macro was only invoked conditionally." >&2;}
52693 { (exit 1); exit 1; }; }
52695 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
52696 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
52697 Usually this means the macro was only invoked conditionally." >&5
52698 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
52699 Usually this means the macro was only invoked conditionally." >&2;}
52700 { (exit 1); exit 1; }; }
52702 if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then
52703 { { echo "$as_me:$LINENO: error: conditional \"versionscript\" was never defined.
52704 Usually this means the macro was only invoked conditionally." >&5
52705 echo "$as_me: error: conditional \"versionscript\" was never defined.
52706 Usually this means the macro was only invoked conditionally." >&2;}
52707 { (exit 1); exit 1; }; }
52709 if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then
52710 { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP_MODULE\" was never defined.
52711 Usually this means the macro was only invoked conditionally." >&5
52712 echo "$as_me: error: conditional \"OPENLDAP_MODULE\" was never defined.
52713 Usually this means the macro was only invoked conditionally." >&2;}
52714 { (exit 1); exit 1; }; }
52716 if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then
52717 { { echo "$as_me:$LINENO: error: conditional \"PKINIT\" was never defined.
52718 Usually this means the macro was only invoked conditionally." >&5
52719 echo "$as_me: error: conditional \"PKINIT\" was never defined.
52720 Usually this means the macro was only invoked conditionally." >&2;}
52721 { (exit 1); exit 1; }; }
52723 if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
52724 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
52725 Usually this means the macro was only invoked conditionally." >&5
52726 echo "$as_me: error: conditional \"KRB4\" was never defined.
52727 Usually this means the macro was only invoked conditionally." >&2;}
52728 { (exit 1); exit 1; }; }
52730 if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
52731 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
52732 Usually this means the macro was only invoked conditionally." >&5
52733 echo "$as_me: error: conditional \"KRB5\" was never defined.
52734 Usually this means the macro was only invoked conditionally." >&2;}
52735 { (exit 1); exit 1; }; }
52737 if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
52738 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
52739 Usually this means the macro was only invoked conditionally." >&5
52740 echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
52741 Usually this means the macro was only invoked conditionally." >&2;}
52742 { (exit 1); exit 1; }; }
52744 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
52745 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
52746 Usually this means the macro was only invoked conditionally." >&5
52747 echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
52748 Usually this means the macro was only invoked conditionally." >&2;}
52749 { (exit 1); exit 1; }; }
52751 if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
52752 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
52753 Usually this means the macro was only invoked conditionally." >&5
52754 echo "$as_me: error: conditional \"DCE\" was never defined.
52755 Usually this means the macro was only invoked conditionally." >&2;}
52756 { (exit 1); exit 1; }; }
52758 if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
52759 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
52760 Usually this means the macro was only invoked conditionally." >&5
52761 echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
52762 Usually this means the macro was only invoked conditionally." >&2;}
52763 { (exit 1); exit 1; }; }
52765 if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
52766 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
52767 Usually this means the macro was only invoked conditionally." >&5
52768 echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
52769 Usually this means the macro was only invoked conditionally." >&2;}
52770 { (exit 1); exit 1; }; }
52772 if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
52773 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
52774 Usually this means the macro was only invoked conditionally." >&5
52775 echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
52776 Usually this means the macro was only invoked conditionally." >&2;}
52777 { (exit 1); exit 1; }; }
52779 if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
52780 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
52781 Usually this means the macro was only invoked conditionally." >&5
52782 echo "$as_me: error: conditional \"have_err_h\" was never defined.
52783 Usually this means the macro was only invoked conditionally." >&2;}
52784 { (exit 1); exit 1; }; }
52786 if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
52787 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
52788 Usually this means the macro was only invoked conditionally." >&5
52789 echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
52790 Usually this means the macro was only invoked conditionally." >&2;}
52791 { (exit 1); exit 1; }; }
52793 if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
52794 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
52795 Usually this means the macro was only invoked conditionally." >&5
52796 echo "$as_me: error: conditional \"have_vis_h\" was never defined.
52797 Usually this means the macro was only invoked conditionally." >&2;}
52798 { (exit 1); exit 1; }; }
52800 if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
52801 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
52802 Usually this means the macro was only invoked conditionally." >&5
52803 echo "$as_me: error: conditional \"have_glob_h\" was never defined.
52804 Usually this means the macro was only invoked conditionally." >&2;}
52805 { (exit 1); exit 1; }; }
52807 if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then
52808 { { echo "$as_me:$LINENO: error: conditional \"have_cgetent\" was never defined.
52809 Usually this means the macro was only invoked conditionally." >&5
52810 echo "$as_me: error: conditional \"have_cgetent\" was never defined.
52811 Usually this means the macro was only invoked conditionally." >&2;}
52812 { (exit 1); exit 1; }; }
52814 if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
52815 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
52816 Usually this means the macro was only invoked conditionally." >&5
52817 echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
52818 Usually this means the macro was only invoked conditionally." >&2;}
52819 { (exit 1); exit 1; }; }
52821 if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then
52822 { { echo "$as_me:$LINENO: error: conditional \"have_socket_wrapper\" was never defined.
52823 Usually this means the macro was only invoked conditionally." >&5
52824 echo "$as_me: error: conditional \"have_socket_wrapper\" was never defined.
52825 Usually this means the macro was only invoked conditionally." >&2;}
52826 { (exit 1); exit 1; }; }
52828 if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
52829 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
52830 Usually this means the macro was only invoked conditionally." >&5
52831 echo "$as_me: error: conditional \"OTP\" was never defined.
52832 Usually this means the macro was only invoked conditionally." >&2;}
52833 { (exit 1); exit 1; }; }
52835 if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
52836 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
52837 Usually this means the macro was only invoked conditionally." >&5
52838 echo "$as_me: error: conditional \"CATMAN\" was never defined.
52839 Usually this means the macro was only invoked conditionally." >&2;}
52840 { (exit 1); exit 1; }; }
52842 if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
52843 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
52844 Usually this means the macro was only invoked conditionally." >&5
52845 echo "$as_me: error: conditional \"AIX\" was never defined.
52846 Usually this means the macro was only invoked conditionally." >&2;}
52847 { (exit 1); exit 1; }; }
52849 if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
52850 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
52851 Usually this means the macro was only invoked conditionally." >&5
52852 echo "$as_me: error: conditional \"AIX4\" was never defined.
52853 Usually this means the macro was only invoked conditionally." >&2;}
52854 { (exit 1); exit 1; }; }
52856 if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
52857 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
52858 Usually this means the macro was only invoked conditionally." >&5
52859 echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
52860 Usually this means the macro was only invoked conditionally." >&2;}
52861 { (exit 1); exit 1; }; }
52863 if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
52864 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
52865 Usually this means the macro was only invoked conditionally." >&5
52866 echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
52867 Usually this means the macro was only invoked conditionally." >&2;}
52868 { (exit 1); exit 1; }; }
52870 if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
52871 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
52872 Usually this means the macro was only invoked conditionally." >&5
52873 echo "$as_me: error: conditional \"IRIX\" was never defined.
52874 Usually this means the macro was only invoked conditionally." >&2;}
52875 { (exit 1); exit 1; }; }
52877 if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
52878 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
52879 Usually this means the macro was only invoked conditionally." >&5
52880 echo "$as_me: error: conditional \"HAVE_X\" was never defined.
52881 Usually this means the macro was only invoked conditionally." >&2;}
52882 { (exit 1); exit 1; }; }
52884 if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
52885 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
52886 Usually this means the macro was only invoked conditionally." >&5
52887 echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
52888 Usually this means the macro was only invoked conditionally." >&2;}
52889 { (exit 1); exit 1; }; }
52891 if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then
52892 { { echo "$as_me:$LINENO: error: conditional \"KCM\" was never defined.
52893 Usually this means the macro was only invoked conditionally." >&5
52894 echo "$as_me: error: conditional \"KCM\" was never defined.
52895 Usually this means the macro was only invoked conditionally." >&2;}
52896 { (exit 1); exit 1; }; }
52898 if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then
52899 { { echo "$as_me:$LINENO: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
52900 Usually this means the macro was only invoked conditionally." >&5
52901 echo "$as_me: error: conditional \"FRAMEWORK_SECURITY\" was never defined.
52902 Usually this means the macro was only invoked conditionally." >&2;}
52903 { (exit 1); exit 1; }; }
52905 if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
52906 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
52907 Usually this means the macro was only invoked conditionally." >&5
52908 echo "$as_me: error: conditional \"el_compat\" was never defined.
52909 Usually this means the macro was only invoked conditionally." >&2;}
52910 { (exit 1); exit 1; }; }
52912 if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then
52913 { { echo "$as_me:$LINENO: error: conditional \"COM_ERR\" was never defined.
52914 Usually this means the macro was only invoked conditionally." >&5
52915 echo "$as_me: error: conditional \"COM_ERR\" was never defined.
52916 Usually this means the macro was only invoked conditionally." >&2;}
52917 { (exit 1); exit 1; }; }
52920 : ${CONFIG_STATUS=./config.status}
52921 ac_clean_files_save=$ac_clean_files
52922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52924 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52925 cat >$CONFIG_STATUS <<_ACEOF
52927 # Generated by $as_me.
52928 # Run this file to recreate the current configuration.
52929 # Compiler output produced by configure, useful for debugging
52930 # configure, is in config.log if it exists.
52933 ac_cs_recheck=false
52935 SHELL=\${CONFIG_SHELL-$SHELL}
52938 cat >>$CONFIG_STATUS <<\_ACEOF
52939 ## --------------------- ##
52940 ## M4sh Initialization. ##
52941 ## --------------------- ##
52943 # Be more Bourne compatible
52944 DUALCASE=1; export DUALCASE # for MKS sh
52945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52949 # is contrary to our usage. Disable this feature.
52950 alias -g '${1+"$@"}'='"$@"'
52951 setopt NO_GLOB_SUBST
52953 case `(set -o) 2>/dev/null` in
52954 *posix*) set -o posix ;;
52963 # Avoid depending upon Character Ranges.
52964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52967 as_cr_digits='0123456789'
52968 as_cr_alnum=$as_cr_Letters$as_cr_digits
52970 # The user is always right.
52971 if test "${PATH_SEPARATOR+set}" != set; then
52972 echo "#! /bin/sh" >conf$$.sh
52973 echo "exit 0" >>conf$$.sh
52975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52983 # Support unset when possible.
52984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52992 # We need space, tab and new line, in precisely that order. Quoting is
52993 # there to prevent editors from complaining about space-tab.
52994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52995 # splitting by setting IFS to empty value.)
53000 # Find who we are. Look in the path if we contain no directory separator.
53002 *[\\/]* ) as_myself=$0 ;;
53003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53004 for as_dir in $PATH
53007 test -z "$as_dir" && as_dir=.
53008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53014 # We did not find ourselves, most probably we were run as `sh COMMAND'
53015 # in which case we are not to be found in the path.
53016 if test "x$as_myself" = x; then
53019 if test ! -f "$as_myself"; then
53020 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53021 { (exit 1); exit 1; }
53024 # Work around bugs in pre-3.0 UWIN ksh.
53025 for as_var in ENV MAIL MAILPATH
53026 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53036 LC_TELEPHONE LC_TIME
53038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53039 eval $as_var=C; export $as_var
53041 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53045 # Required to use basename.
53046 if expr a : '\(a\)' >/dev/null 2>&1 &&
53047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
53053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53054 as_basename=basename
53060 # Name of the executable.
53061 as_me=`$as_basename -- "$0" ||
53062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53063 X"$0" : 'X\(//\)$' \| \
53064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53066 sed '/^.*\/\([^/][^/]*\)\/*$/{
53085 as_lineno_1=$LINENO
53086 as_lineno_2=$LINENO
53087 test "x$as_lineno_1" != "x$as_lineno_2" &&
53088 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53090 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53091 # uniformly replaced by the line number. The first 'sed' inserts a
53092 # line-number line after each line using $LINENO; the second 'sed'
53093 # does the real work. The second script uses 'N' to pair each
53094 # line-number line with the line containing $LINENO, and appends
53095 # trailing '-' during substitution so that $LINENO is not a special
53096 # case at line end.
53097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53098 # scripts with optimization help from Paolo Bonzini. Blame Lee
53099 # E. McMahon (1931-1989) for sed's syntax. :-)
53111 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53114 ' >$as_me.lineno &&
53115 chmod +x "$as_me.lineno" ||
53116 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53117 { (exit 1); exit 1; }; }
53119 # Don't try to exec as it changes $[0], causing all sort of problems
53120 # (the dirname of $[0] is not the place where we might find the
53121 # original and so on. Autoconf is especially sensitive to this).
53122 . "./$as_me.lineno"
53123 # Exit status is that of the last command.
53128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53134 ECHO_C= ECHO_N= ECHO_T=
53135 case `echo -n x` in
53137 case `echo 'x\c'` in
53138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
53145 if expr a : '\(a\)' >/dev/null 2>&1 &&
53146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
53152 rm -f conf$$ conf$$.exe conf$$.file
53153 if test -d conf$$.dir; then
53154 rm -f conf$$.dir/conf$$.file
53160 if ln -s conf$$.file conf$$ 2>/dev/null; then
53162 # ... but there are two gotchas:
53163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53165 # In both cases, we have to default to `cp -p'.
53166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53168 elif ln conf$$.file conf$$ 2>/dev/null; then
53173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53174 rmdir conf$$.dir 2>/dev/null
53176 if mkdir -p . 2>/dev/null; then
53179 test -d ./-p && rmdir ./-p
53183 if test -x / >/dev/null 2>&1; then
53184 as_test_x='test -x'
53186 if ls -dL / >/dev/null 2>&1; then
53193 if test -d "$1"; then
53199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53200 ???[sx]*):;;*)false;;esac;fi
53204 as_executable_p=$as_test_x
53206 # Sed expression to map a string onto a valid CPP name.
53207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53209 # Sed expression to map a string onto a valid variable name.
53210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53215 # Save the log message, to keep $[0] and so on meaningful, and to
53216 # report actual input values of CONFIG_FILES etc. instead of their
53217 # values after options handling.
53219 This file was extended by Heimdal $as_me 1.1, which was
53220 generated by GNU Autoconf 2.61. Invocation command line was
53222 CONFIG_FILES = $CONFIG_FILES
53223 CONFIG_HEADERS = $CONFIG_HEADERS
53224 CONFIG_LINKS = $CONFIG_LINKS
53225 CONFIG_COMMANDS = $CONFIG_COMMANDS
53228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53233 cat >>$CONFIG_STATUS <<_ACEOF
53234 # Files that config.status was made for.
53235 config_files="$ac_config_files"
53236 config_headers="$ac_config_headers"
53240 cat >>$CONFIG_STATUS <<\_ACEOF
53242 \`$as_me' instantiates files from templates according to the
53243 current configuration.
53245 Usage: $0 [OPTIONS] [FILE]...
53247 -h, --help print this help, then exit
53248 -V, --version print version number and configuration settings, then exit
53249 -q, --quiet do not print progress messages
53250 -d, --debug don't remove temporary files
53251 --recheck update $as_me by reconfiguring in the same conditions
53252 --file=FILE[:TEMPLATE]
53253 instantiate the configuration file FILE
53254 --header=FILE[:TEMPLATE]
53255 instantiate the configuration header FILE
53257 Configuration files:
53260 Configuration headers:
53263 Report bugs to <bug-autoconf@gnu.org>."
53266 cat >>$CONFIG_STATUS <<_ACEOF
53268 Heimdal config.status 1.1
53269 configured by $0, generated by GNU Autoconf 2.61,
53270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53272 Copyright (C) 2006 Free Software Foundation, Inc.
53273 This config.status script is free software; the Free Software Foundation
53274 gives unlimited permission to copy, distribute and modify it."
53282 cat >>$CONFIG_STATUS <<\_ACEOF
53283 # If no file are specified by the user, then we need to provide default
53284 # value. By we need to know if files were specified by the user.
53290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
53291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53302 # Handling of the options.
53303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53305 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53306 echo "$ac_cs_version"; exit ;;
53307 --debug | --debu | --deb | --de | --d | -d )
53309 --file | --fil | --fi | --f )
53311 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53312 ac_need_defaults=false;;
53313 --header | --heade | --head | --hea )
53315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53316 ac_need_defaults=false;;
53318 # Conflict between --help and --header
53319 { echo "$as_me: error: ambiguous option: $1
53320 Try \`$0 --help' for more information." >&2
53321 { (exit 1); exit 1; }; };;
53322 --help | --hel | -h )
53323 echo "$ac_cs_usage"; exit ;;
53324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53325 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53328 # This is an error.
53329 -*) { echo "$as_me: error: unrecognized option: $1
53330 Try \`$0 --help' for more information." >&2
53331 { (exit 1); exit 1; }; } ;;
53333 *) ac_config_targets="$ac_config_targets $1"
53334 ac_need_defaults=false ;;
53340 ac_configure_extra_args=
53342 if $ac_cs_silent; then
53344 ac_configure_extra_args="$ac_configure_extra_args --silent"
53348 cat >>$CONFIG_STATUS <<_ACEOF
53349 if \$ac_cs_recheck; then
53350 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53351 CONFIG_SHELL=$SHELL
53352 export CONFIG_SHELL
53353 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53357 cat >>$CONFIG_STATUS <<\_ACEOF
53361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53362 ## Running $as_me. ##
53368 cat >>$CONFIG_STATUS <<_ACEOF
53371 cat >>$CONFIG_STATUS <<\_ACEOF
53373 # Handling of arguments.
53374 for ac_config_target in $ac_config_targets
53376 case $ac_config_target in
53377 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
53378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53379 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
53380 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53381 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;;
53382 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;;
53383 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53384 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53385 "lib/45/Makefile") CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53386 "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53387 "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53388 "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53389 "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53390 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53391 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53392 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;;
53393 "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53394 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;;
53395 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53396 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;;
53397 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53398 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53399 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53400 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53401 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53402 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53403 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53404 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53405 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53406 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53407 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
53408 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
53409 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
53410 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;;
53411 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
53412 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
53413 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
53414 "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
53415 "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
53416 "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
53417 "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
53418 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;;
53419 "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
53420 "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
53421 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
53422 "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
53423 "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
53424 "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
53425 "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
53426 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
53427 "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
53428 "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
53429 "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
53430 "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
53431 "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
53432 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
53433 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
53434 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
53435 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
53436 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;;
53437 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;;
53438 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;;
53439 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;;
53440 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;;
53441 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;;
53442 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;;
53443 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
53444 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;;
53445 "packages/debian/Makefile") CONFIG_FILES="$CONFIG_FILES packages/debian/Makefile" ;;
53446 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53447 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
53449 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53450 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53451 { (exit 1); exit 1; }; };;
53456 # If the user did not use the arguments to specify the items to instantiate,
53457 # then the envvar interface is used. Set only those that are not.
53458 # We use the long form for the default assignment because of an extremely
53459 # bizarre bug on SunOS 4.1.3.
53460 if $ac_need_defaults; then
53461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53465 # Have a temporary directory for convenience. Make it in the build tree
53466 # simply because there is no reason against having it here, and in addition,
53467 # creating and moving files from /tmp can sometimes cause problems.
53468 # Hook for its removal unless debugging.
53469 # Note that there is a small window in which the directory will not be cleaned:
53470 # after its creation but before its name has been assigned to `$tmp'.
53474 trap 'exit_status=$?
53475 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53477 trap '{ (exit 1); exit 1; }' 1 2 13 15
53479 # Create a (secure) tmp directory for tmp files.
53482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53483 test -n "$tmp" && test -d "$tmp"
53486 tmp=./conf$$-$RANDOM
53487 (umask 077 && mkdir "$tmp")
53490 echo "$me: cannot create a temporary directory in ." >&2
53491 { (exit 1); exit 1; }
53495 # Set up the sed scripts for CONFIG_FILES section.
53498 # No need to generate the scripts if there are no CONFIG_FILES.
53499 # This happens for instance when ./config.status config.h
53500 if test -n "$CONFIG_FILES"; then
53507 for ac_last_try in false false false false false :; do
53508 cat >conf$$subs.sed <<_ACEOF
53509 SHELL!$SHELL$ac_delim
53510 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53511 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53512 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53513 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53514 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53515 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53516 exec_prefix!$exec_prefix$ac_delim
53517 prefix!$prefix$ac_delim
53518 program_transform_name!$program_transform_name$ac_delim
53519 bindir!$bindir$ac_delim
53520 sbindir!$sbindir$ac_delim
53521 libexecdir!$libexecdir$ac_delim
53522 datarootdir!$datarootdir$ac_delim
53523 datadir!$datadir$ac_delim
53524 sysconfdir!$sysconfdir$ac_delim
53525 sharedstatedir!$sharedstatedir$ac_delim
53526 localstatedir!$localstatedir$ac_delim
53527 includedir!$includedir$ac_delim
53528 oldincludedir!$oldincludedir$ac_delim
53529 docdir!$docdir$ac_delim
53530 infodir!$infodir$ac_delim
53531 htmldir!$htmldir$ac_delim
53532 dvidir!$dvidir$ac_delim
53533 pdfdir!$pdfdir$ac_delim
53534 psdir!$psdir$ac_delim
53535 libdir!$libdir$ac_delim
53536 localedir!$localedir$ac_delim
53537 mandir!$mandir$ac_delim
53538 DEFS!$DEFS$ac_delim
53539 ECHO_C!$ECHO_C$ac_delim
53540 ECHO_N!$ECHO_N$ac_delim
53541 ECHO_T!$ECHO_T$ac_delim
53542 LIBS!$LIBS$ac_delim
53543 build_alias!$build_alias$ac_delim
53544 host_alias!$host_alias$ac_delim
53545 target_alias!$target_alias$ac_delim
53546 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53547 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53548 INSTALL_DATA!$INSTALL_DATA$ac_delim
53549 am__isrc!$am__isrc$ac_delim
53550 CYGPATH_W!$CYGPATH_W$ac_delim
53551 PACKAGE!$PACKAGE$ac_delim
53552 VERSION!$VERSION$ac_delim
53553 ACLOCAL!$ACLOCAL$ac_delim
53554 AUTOCONF!$AUTOCONF$ac_delim
53555 AUTOMAKE!$AUTOMAKE$ac_delim
53556 AUTOHEADER!$AUTOHEADER$ac_delim
53557 MAKEINFO!$MAKEINFO$ac_delim
53558 install_sh!$install_sh$ac_delim
53559 STRIP!$STRIP$ac_delim
53560 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
53561 mkdir_p!$mkdir_p$ac_delim
53563 SET_MAKE!$SET_MAKE$ac_delim
53564 am__leading_dot!$am__leading_dot$ac_delim
53565 AMTAR!$AMTAR$ac_delim
53566 am__tar!$am__tar$ac_delim
53567 am__untar!$am__untar$ac_delim
53568 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
53569 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
53570 MAINT!$MAINT$ac_delim
53572 CFLAGS!$CFLAGS$ac_delim
53573 LDFLAGS!$LDFLAGS$ac_delim
53574 CPPFLAGS!$CPPFLAGS$ac_delim
53575 ac_ct_CC!$ac_ct_CC$ac_delim
53576 EXEEXT!$EXEEXT$ac_delim
53577 OBJEXT!$OBJEXT$ac_delim
53579 build!$build$ac_delim
53580 build_cpu!$build_cpu$ac_delim
53581 build_vendor!$build_vendor$ac_delim
53582 build_os!$build_os$ac_delim
53583 host!$host$ac_delim
53584 host_cpu!$host_cpu$ac_delim
53585 host_vendor!$host_vendor$ac_delim
53586 host_os!$host_os$ac_delim
53587 CANONICAL_HOST!$CANONICAL_HOST$ac_delim
53588 YACC!$YACC$ac_delim
53589 YFLAGS!$YFLAGS$ac_delim
53591 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
53592 LEXLIB!$LEXLIB$ac_delim
53593 LN_S!$LN_S$ac_delim
53594 GREP!$GREP$ac_delim
53595 EGREP!$EGREP$ac_delim
53596 ECHO!$ECHO$ac_delim
53598 RANLIB!$RANLIB$ac_delim
53600 CXXFLAGS!$CXXFLAGS$ac_delim
53601 ac_ct_CXX!$ac_ct_CXX$ac_delim
53602 CXXCPP!$CXXCPP$ac_delim
53604 FFLAGS!$FFLAGS$ac_delim
53605 ac_ct_F77!$ac_ct_F77$ac_delim
53608 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53610 elif $ac_last_try; then
53611 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53612 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53613 { (exit 1); exit 1; }; }
53615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53619 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53620 if test -n "$ac_eof"; then
53621 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53622 ac_eof=`expr $ac_eof + 1`
53625 cat >>$CONFIG_STATUS <<_ACEOF
53626 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53630 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53631 s/^/s,@/; s/!/@,|#_!!_#|/
53634 s/'"$ac_delim"'$/,g/; t
53636 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53637 ' >>$CONFIG_STATUS <conf$$subs.sed
53638 rm -f conf$$subs.sed
53639 cat >>$CONFIG_STATUS <<_ACEOF
53645 for ac_last_try in false false false false false :; do
53646 cat >conf$$subs.sed <<_ACEOF
53647 LIBTOOL!$LIBTOOL$ac_delim
53648 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
53649 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
53650 VERSIONING!$VERSIONING$ac_delim
53651 versionscript_TRUE!$versionscript_TRUE$ac_delim
53652 versionscript_FALSE!$versionscript_FALSE$ac_delim
53653 LDFLAGS_VERSION_SCRIPT!$LDFLAGS_VERSION_SCRIPT$ac_delim
53654 INCLUDE_openldap!$INCLUDE_openldap$ac_delim
53655 LIB_openldap!$LIB_openldap$ac_delim
53656 OPENLDAP_MODULE_TRUE!$OPENLDAP_MODULE_TRUE$ac_delim
53657 OPENLDAP_MODULE_FALSE!$OPENLDAP_MODULE_FALSE$ac_delim
53658 PKINIT_TRUE!$PKINIT_TRUE$ac_delim
53659 PKINIT_FALSE!$PKINIT_FALSE$ac_delim
53660 DIR_hdbdir!$DIR_hdbdir$ac_delim
53661 INCLUDE_krb4!$INCLUDE_krb4$ac_delim
53662 LIB_krb4!$LIB_krb4$ac_delim
53663 KRB4_TRUE!$KRB4_TRUE$ac_delim
53664 KRB4_FALSE!$KRB4_FALSE$ac_delim
53665 KRB5_TRUE!$KRB5_TRUE$ac_delim
53666 KRB5_FALSE!$KRB5_FALSE$ac_delim
53667 do_roken_rename_TRUE!$do_roken_rename_TRUE$ac_delim
53668 do_roken_rename_FALSE!$do_roken_rename_FALSE$ac_delim
53669 LIB_kdb!$LIB_kdb$ac_delim
53670 HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim
53671 HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim
53672 DIR_hcrypto!$DIR_hcrypto$ac_delim
53673 INCLUDE_hcrypto!$INCLUDE_hcrypto$ac_delim
53674 LIB_hcrypto!$LIB_hcrypto$ac_delim
53675 LIB_hcrypto_a!$LIB_hcrypto_a$ac_delim
53676 LIB_hcrypto_so!$LIB_hcrypto_so$ac_delim
53677 LIB_hcrypto_appl!$LIB_hcrypto_appl$ac_delim
53678 PTHREADS_CFLAGS!$PTHREADS_CFLAGS$ac_delim
53679 PTHREADS_LIBS!$PTHREADS_LIBS$ac_delim
53680 DCE_TRUE!$DCE_TRUE$ac_delim
53681 DCE_FALSE!$DCE_FALSE$ac_delim
53682 dpagaix_cflags!$dpagaix_cflags$ac_delim
53683 dpagaix_ldadd!$dpagaix_ldadd$ac_delim
53684 dpagaix_ldflags!$dpagaix_ldflags$ac_delim
53685 LIB_db_create!$LIB_db_create$ac_delim
53686 LIB_dbopen!$LIB_dbopen$ac_delim
53687 LIB_dbm_firstkey!$LIB_dbm_firstkey$ac_delim
53688 HAVE_DB1_TRUE!$HAVE_DB1_TRUE$ac_delim
53689 HAVE_DB1_FALSE!$HAVE_DB1_FALSE$ac_delim
53690 HAVE_DB3_TRUE!$HAVE_DB3_TRUE$ac_delim
53691 HAVE_DB3_FALSE!$HAVE_DB3_FALSE$ac_delim
53692 HAVE_NDBM_TRUE!$HAVE_NDBM_TRUE$ac_delim
53693 HAVE_NDBM_FALSE!$HAVE_NDBM_FALSE$ac_delim
53694 DBLIB!$DBLIB$ac_delim
53695 LIB_NDBM!$LIB_NDBM$ac_delim
53696 WFLAGS!$WFLAGS$ac_delim
53697 WFLAGS_NOUNUSED!$WFLAGS_NOUNUSED$ac_delim
53698 WFLAGS_NOIMPLICITINT!$WFLAGS_NOIMPLICITINT$ac_delim
53699 VOID_RETSIGTYPE!$VOID_RETSIGTYPE$ac_delim
53700 have_err_h_TRUE!$have_err_h_TRUE$ac_delim
53701 have_err_h_FALSE!$have_err_h_FALSE$ac_delim
53702 have_ifaddrs_h_TRUE!$have_ifaddrs_h_TRUE$ac_delim
53703 have_ifaddrs_h_FALSE!$have_ifaddrs_h_FALSE$ac_delim
53704 have_vis_h_TRUE!$have_vis_h_TRUE$ac_delim
53705 have_vis_h_FALSE!$have_vis_h_FALSE$ac_delim
53706 LIB_socket!$LIB_socket$ac_delim
53707 LIB_gethostbyname!$LIB_gethostbyname$ac_delim
53708 LIB_syslog!$LIB_syslog$ac_delim
53709 LIB_gethostbyname2!$LIB_gethostbyname2$ac_delim
53710 LIB_res_search!$LIB_res_search$ac_delim
53711 LIB_res_nsearch!$LIB_res_nsearch$ac_delim
53712 LIB_res_ndestroy!$LIB_res_ndestroy$ac_delim
53713 LIB_dn_expand!$LIB_dn_expand$ac_delim
53714 LIBOBJS!$LIBOBJS$ac_delim
53715 have_glob_h_TRUE!$have_glob_h_TRUE$ac_delim
53716 have_glob_h_FALSE!$have_glob_h_FALSE$ac_delim
53717 have_cgetent_TRUE!$have_cgetent_TRUE$ac_delim
53718 have_cgetent_FALSE!$have_cgetent_FALSE$ac_delim
53719 LIB_getsockopt!$LIB_getsockopt$ac_delim
53720 LIB_setsockopt!$LIB_setsockopt$ac_delim
53721 LIB_hstrerror!$LIB_hstrerror$ac_delim
53722 LIB_bswap16!$LIB_bswap16$ac_delim
53723 LIB_bswap32!$LIB_bswap32$ac_delim
53724 LIB_pidfile!$LIB_pidfile$ac_delim
53725 LIB_getaddrinfo!$LIB_getaddrinfo$ac_delim
53726 LIB_getnameinfo!$LIB_getnameinfo$ac_delim
53727 LIB_freeaddrinfo!$LIB_freeaddrinfo$ac_delim
53728 LIB_gai_strerror!$LIB_gai_strerror$ac_delim
53729 have_fnmatch_h_TRUE!$have_fnmatch_h_TRUE$ac_delim
53730 have_fnmatch_h_FALSE!$have_fnmatch_h_FALSE$ac_delim
53731 LIB_crypt!$LIB_crypt$ac_delim
53732 have_socket_wrapper_TRUE!$have_socket_wrapper_TRUE$ac_delim
53733 have_socket_wrapper_FALSE!$have_socket_wrapper_FALSE$ac_delim
53734 DIR_roken!$DIR_roken$ac_delim
53735 LIB_roken!$LIB_roken$ac_delim
53736 INCLUDES_roken!$INCLUDES_roken$ac_delim
53737 LIBADD_roken!$LIBADD_roken$ac_delim
53738 LIB_otp!$LIB_otp$ac_delim
53739 OTP_TRUE!$OTP_TRUE$ac_delim
53740 OTP_FALSE!$OTP_FALSE$ac_delim
53741 LIB_security!$LIB_security$ac_delim
53742 NROFF!$NROFF$ac_delim
53743 GROFF!$GROFF$ac_delim
53746 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53748 elif $ac_last_try; then
53749 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53750 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53751 { (exit 1); exit 1; }; }
53753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53757 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53758 if test -n "$ac_eof"; then
53759 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53760 ac_eof=`expr $ac_eof + 1`
53763 cat >>$CONFIG_STATUS <<_ACEOF
53764 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53768 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53769 s/^/s,@/; s/!/@,|#_!!_#|/
53772 s/'"$ac_delim"'$/,g/; t
53774 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53775 ' >>$CONFIG_STATUS <conf$$subs.sed
53776 rm -f conf$$subs.sed
53777 cat >>$CONFIG_STATUS <<_ACEOF
53783 for ac_last_try in false false false false false :; do
53784 cat >conf$$subs.sed <<_ACEOF
53785 CATMAN!$CATMAN$ac_delim
53786 CATMAN_TRUE!$CATMAN_TRUE$ac_delim
53787 CATMAN_FALSE!$CATMAN_FALSE$ac_delim
53788 CATMANEXT!$CATMANEXT$ac_delim
53789 INCLUDE_readline!$INCLUDE_readline$ac_delim
53790 LIB_readline!$LIB_readline$ac_delim
53791 INCLUDE_hesiod!$INCLUDE_hesiod$ac_delim
53792 LIB_hesiod!$LIB_hesiod$ac_delim
53793 AIX_TRUE!$AIX_TRUE$ac_delim
53794 AIX_FALSE!$AIX_FALSE$ac_delim
53795 AIX4_TRUE!$AIX4_TRUE$ac_delim
53796 AIX4_FALSE!$AIX4_FALSE$ac_delim
53797 LIB_dlopen!$LIB_dlopen$ac_delim
53798 HAVE_DLOPEN_TRUE!$HAVE_DLOPEN_TRUE$ac_delim
53799 HAVE_DLOPEN_FALSE!$HAVE_DLOPEN_FALSE$ac_delim
53800 LIB_loadquery!$LIB_loadquery$ac_delim
53801 AIX_DYNAMIC_AFS_TRUE!$AIX_DYNAMIC_AFS_TRUE$ac_delim
53802 AIX_DYNAMIC_AFS_FALSE!$AIX_DYNAMIC_AFS_FALSE$ac_delim
53803 AIX_EXTRA_KAFS!$AIX_EXTRA_KAFS$ac_delim
53804 IRIX_TRUE!$IRIX_TRUE$ac_delim
53805 IRIX_FALSE!$IRIX_FALSE$ac_delim
53806 XMKMF!$XMKMF$ac_delim
53807 X_CFLAGS!$X_CFLAGS$ac_delim
53808 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53809 X_LIBS!$X_LIBS$ac_delim
53810 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53811 HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim
53812 HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim
53813 LIB_XauWriteAuth!$LIB_XauWriteAuth$ac_delim
53814 LIB_XauReadAuth!$LIB_XauReadAuth$ac_delim
53815 LIB_XauFileName!$LIB_XauFileName$ac_delim
53816 NEED_WRITEAUTH_TRUE!$NEED_WRITEAUTH_TRUE$ac_delim
53817 NEED_WRITEAUTH_FALSE!$NEED_WRITEAUTH_FALSE$ac_delim
53818 LIB_logwtmp!$LIB_logwtmp$ac_delim
53819 LIB_logout!$LIB_logout$ac_delim
53820 LIB_openpty!$LIB_openpty$ac_delim
53821 LIB_tgetent!$LIB_tgetent$ac_delim
53822 LIB_getpwnam_r!$LIB_getpwnam_r$ac_delim
53823 LIB_door_create!$LIB_door_create$ac_delim
53824 KCM_TRUE!$KCM_TRUE$ac_delim
53825 KCM_FALSE!$KCM_FALSE$ac_delim
53826 FRAMEWORK_SECURITY_TRUE!$FRAMEWORK_SECURITY_TRUE$ac_delim
53827 FRAMEWORK_SECURITY_FALSE!$FRAMEWORK_SECURITY_FALSE$ac_delim
53828 LIB_el_init!$LIB_el_init$ac_delim
53829 el_compat_TRUE!$el_compat_TRUE$ac_delim
53830 el_compat_FALSE!$el_compat_FALSE$ac_delim
53831 COMPILE_ET!$COMPILE_ET$ac_delim
53832 COM_ERR_TRUE!$COM_ERR_TRUE$ac_delim
53833 COM_ERR_FALSE!$COM_ERR_FALSE$ac_delim
53834 DIR_com_err!$DIR_com_err$ac_delim
53835 LIB_com_err!$LIB_com_err$ac_delim
53836 LIB_com_err_a!$LIB_com_err_a$ac_delim
53837 LIB_com_err_so!$LIB_com_err_so$ac_delim
53838 LIB_AUTH_SUBDIRS!$LIB_AUTH_SUBDIRS$ac_delim
53839 LTLIBOBJS!$LTLIBOBJS$ac_delim
53842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
53844 elif $ac_last_try; then
53845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53847 { (exit 1); exit 1; }; }
53849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53854 if test -n "$ac_eof"; then
53855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53856 ac_eof=`expr $ac_eof + 1`
53859 cat >>$CONFIG_STATUS <<_ACEOF
53860 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53865 s/^/s,@/; s/!/@,|#_!!_#|/
53868 s/'"$ac_delim"'$/,g/; t
53870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53871 ' >>$CONFIG_STATUS <conf$$subs.sed
53872 rm -f conf$$subs.sed
53873 cat >>$CONFIG_STATUS <<_ACEOF
53880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53882 # trailing colons and then remove the whole line if VPATH becomes empty
53883 # (actually we leave an empty line to preserve line numbers).
53884 if test "x$srcdir" = x.; then
53885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
53886 s/:*\$(srcdir):*/:/
53887 s/:*\${srcdir}:*/:/
53889 s/^\([^=]*=[ ]*\):*/\1/
53895 cat >>$CONFIG_STATUS <<\_ACEOF
53896 fi # test -n "$CONFIG_FILES"
53899 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
53902 :[FHLC]) ac_mode=$ac_tag; continue;;
53904 case $ac_mode$ac_tag in
53906 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
53907 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
53908 { (exit 1); exit 1; }; };;
53909 :[FH]-) ac_tag=-:-;;
53910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
53927 -) ac_f="$tmp/stdin";;
53928 *) # Look for the file first in the build tree, then in the source tree
53929 # (if the path is not absolute). The absolute path cannot be DOS-style,
53930 # because $ac_f cannot contain `:'.
53934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
53936 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
53937 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
53938 { (exit 1); exit 1; }; };;
53940 ac_file_inputs="$ac_file_inputs $ac_f"
53943 # Let's still pretend it is `configure' which instantiates (i.e., don't
53944 # use $as_me), people would be surprised to read:
53945 # /* config.h. Generated by config.status. */
53946 configure_input="Generated from "`IFS=:
53947 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
53948 if test x"$ac_file" != x-; then
53949 configure_input="$ac_file. $configure_input"
53950 { echo "$as_me:$LINENO: creating $ac_file" >&5
53951 echo "$as_me: creating $ac_file" >&6;}
53955 *:-:* | *:-) cat >"$tmp/stdin";;
53960 ac_dir=`$as_dirname -- "$ac_file" ||
53961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53962 X"$ac_file" : 'X\(//\)[^/]' \| \
53963 X"$ac_file" : 'X\(//\)$' \| \
53964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53970 /^X\(\/\/\)[^/].*/{
53985 -*) as_dir=./$as_dir;;
53987 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
53991 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
53992 *) as_qdir=$as_dir;;
53994 as_dirs="'$as_qdir' $as_dirs"
53995 as_dir=`$as_dirname -- "$as_dir" ||
53996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53997 X"$as_dir" : 'X\(//\)[^/]' \| \
53998 X"$as_dir" : 'X\(//\)$' \| \
53999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54005 /^X\(\/\/\)[^/].*/{
54018 test -d "$as_dir" && break
54020 test -z "$as_dirs" || eval "mkdir $as_dirs"
54021 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54022 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54023 { (exit 1); exit 1; }; }; }
54027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54030 # A ".." for each directory in $ac_dir_suffix.
54031 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54032 case $ac_top_builddir_sub in
54033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54037 ac_abs_top_builddir=$ac_pwd
54038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54039 # for backward compatibility:
54040 ac_top_builddir=$ac_top_build_prefix
54043 .) # We are building in place.
54045 ac_top_srcdir=$ac_top_builddir_sub
54046 ac_abs_top_srcdir=$ac_pwd ;;
54047 [\\/]* | ?:[\\/]* ) # Absolute name.
54048 ac_srcdir=$srcdir$ac_dir_suffix;
54049 ac_top_srcdir=$srcdir
54050 ac_abs_top_srcdir=$srcdir ;;
54051 *) # Relative name.
54052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54053 ac_top_srcdir=$ac_top_build_prefix$srcdir
54054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54069 ac_MKDIR_P=$MKDIR_P
54071 [\\/$]* | ?:[\\/]* ) ;;
54072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
54076 cat >>$CONFIG_STATUS <<\_ACEOF
54077 # If the template does not know about datarootdir, expand it.
54078 # FIXME: This hack should be removed a few years after 2.60.
54079 ac_datarootdir_hack=; ac_datarootdir_seen=
54081 case `sed -n '/datarootdir/ {
54090 ' $ac_file_inputs` in
54091 *datarootdir*) ac_datarootdir_seen=yes;;
54092 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54093 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54094 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54096 cat >>$CONFIG_STATUS <<_ACEOF
54097 ac_datarootdir_hack='
54098 s&@datadir@&$datadir&g
54099 s&@docdir@&$docdir&g
54100 s&@infodir@&$infodir&g
54101 s&@localedir@&$localedir&g
54102 s&@mandir@&$mandir&g
54103 s&\\\${datarootdir}&$datarootdir&g' ;;
54107 # Neutralize VPATH when `$srcdir' = `.'.
54108 # Shell code in configure.ac might set extrasub.
54109 # FIXME: do we really want to maintain this feature?
54110 cat >>$CONFIG_STATUS <<_ACEOF
54114 cat >>$CONFIG_STATUS <<\_ACEOF
54116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54117 s&@configure_input@&$configure_input&;t t
54118 s&@top_builddir@&$ac_top_builddir_sub&;t t
54119 s&@srcdir@&$ac_srcdir&;t t
54120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54121 s&@top_srcdir@&$ac_top_srcdir&;t t
54122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54123 s&@builddir@&$ac_builddir&;t t
54124 s&@abs_builddir@&$ac_abs_builddir&;t t
54125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54126 s&@INSTALL@&$ac_INSTALL&;t t
54127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
54128 $ac_datarootdir_hack
54129 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
54131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54134 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54135 which seems to be undefined. Please make sure it is defined." >&5
54136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54137 which seems to be undefined. Please make sure it is defined." >&2;}
54141 -) cat "$tmp/out"; rm -f "$tmp/out";;
54142 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54151 # Transform confdefs.h into a sed script `conftest.defines', that
54152 # substitutes the proper values into config.h.in to produce config.h.
54153 rm -f conftest.defines conftest.tail
54154 # First, append a space to every undef/define line, to ease matching.
54155 echo 's/$/ /' >conftest.defines
54156 # Then, protect against being on the right side of a sed subst, or in
54157 # an unquoted here document, in config.status. If some macros were
54158 # called several times there might be several #defines for the same
54159 # symbol, which is useless. But do not sort them, since the last
54160 # AC_DEFINE must be honored.
54161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54164 # PARAMS is the parameter list in the macro definition--in most cases, it's
54165 # just an empty string.
54166 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
54167 ac_dB='\\)[ (].*,\\1define\\2'
54175 s/^[ ]*#[ ]*define[ ][ ]*//
54180 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54181 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54182 ' >>conftest.defines
54184 # Remove the space that was appended to ease matching.
54185 # Then replace #undef with comments. This is necessary, for
54186 # example, in the case of _POSIX_SOURCE, which is predefined and required
54187 # on some systems where configure will not decide to define it.
54188 # (The regexp can be short, since the line contains either #define or #undef.)
54190 s,^[ #]*u.*,/* & */,' >>conftest.defines
54192 # Break up conftest.defines:
54193 ac_max_sed_lines=50
54195 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54196 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54197 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54199 ac_in='$ac_file_inputs'
54200 ac_out='"$tmp/out1"'
54201 ac_nxt='"$tmp/out2"'
54205 # Write a here document:
54206 cat >>$CONFIG_STATUS <<_ACEOF
54207 # First, check the format of the line:
54208 cat >"\$tmp/defines.sed" <<\\CEOF
54209 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
54210 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
54214 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54216 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54217 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54218 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54219 grep . conftest.tail >/dev/null || break
54220 rm -f conftest.defines
54221 mv conftest.tail conftest.defines
54223 rm -f conftest.defines conftest.tail
54225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54226 cat >>$CONFIG_STATUS <<\_ACEOF
54227 if test x"$ac_file" != x-; then
54228 echo "/* $configure_input */" >"$tmp/config.h"
54229 cat "$ac_result" >>"$tmp/config.h"
54230 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54232 echo "$as_me: $ac_file is unchanged" >&6;}
54235 mv "$tmp/config.h" $ac_file
54238 echo "/* $configure_input */"
54242 # Compute $ac_file's index in $config_headers.
54244 for _am_header in $config_headers :; do
54245 case $_am_header in
54246 $ac_file | $ac_file:* )
54249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54252 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
54253 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54254 X$ac_file : 'X\(//\)[^/]' \| \
54255 X$ac_file : 'X\(//\)$' \| \
54256 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
54258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54262 /^X\(\/\/\)[^/].*/{
54274 s/.*/./; q'`/stamp-h$_am_stamp_count
54283 { (exit 0); exit 0; }
54285 chmod +x $CONFIG_STATUS
54286 ac_clean_files=$ac_clean_files_save
54289 # configure is writing to config.log, and then calls config.status.
54290 # config.status does its own redirection, appending to config.log.
54291 # Unfortunately, on DOS this fails, as config.log is still kept open
54292 # by configure, so config.status won't be able to write to it; its
54293 # output is simply discarded. So we exec the FD to /dev/null,
54294 # effectively closing config.log, so it can be properly (re)opened and
54295 # appended to by config.status. When coming back to configure, we
54296 # need to make the FD available again.
54297 if test "$no_create" != yes; then
54299 ac_config_status_args=
54300 test "$silent" = yes &&
54301 ac_config_status_args="$ac_config_status_args --quiet"
54303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54306 # would make configure fail if this is the last instruction.
54307 $ac_cs_success || { (exit 1); exit 1; }
54312 cat > include/newversion.h.in <<EOF
54313 const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54314 const char *heimdal_version = "Heimdal 1.1";
54317 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54318 echo "include/version.h is unchanged"
54319 rm -f include/newversion.h.in
54321 echo "creating include/version.h"
54322 User=${USER-${LOGNAME}}
54323 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54325 mv -f include/newversion.h.in include/version.h.in
54326 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h