2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $echo works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619 echo_test_string=`eval $cmd` &&
620 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
636 # So, first we look for a working echo in the user's PATH.
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
651 if test "X$echo" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
658 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
682 echo="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 echo="$CONFIG_SHELL $0 --fallback-echo"
689 # maybe with a smaller string...
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 # Oops. We lost completely, so just stick with echo.
714 # Copy echo and quote the copy suitably for passing to libtool from
715 # the Makefile, instead of quoting the original, which is used later.
717 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724 tagnames=${tagnames+${tagnames},}CXX
726 tagnames=${tagnames+${tagnames},}F77
728 exec 7<&0 </dev/null 6>&1
731 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732 # so uname gets run too.
733 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738 ac_default_prefix=/usr/local
740 ac_config_libobj_dir=.
746 SHELL=${CONFIG_SHELL-/bin/sh}
748 # Identity of this package.
755 ac_unique_file="common-src/amanda.h"
756 # Factoring default headers for most tests.
757 ac_includes_default="\
759 #ifdef HAVE_SYS_TYPES_H
760 # include <sys/types.h>
762 #ifdef HAVE_SYS_STAT_H
763 # include <sys/stat.h>
769 # ifdef HAVE_STDLIB_H
774 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779 #ifdef HAVE_STRINGS_H
780 # include <strings.h>
782 #ifdef HAVE_INTTYPES_H
783 # include <inttypes.h>
810 AMANDA_STATIC_LDFLAGS
861 WANT_KRB5_SECURITY_FALSE
862 WANT_KRB5_SECURITY_TRUE
866 CLIENT_HOST_PRINCIPAL
869 SERVER_HOST_PRINCIPAL
871 WANT_KRB4_SECURITY_FALSE
872 WANT_KRB4_SECURITY_TRUE
874 WANT_SSH_SECURITY_FALSE
875 WANT_SSH_SECURITY_TRUE
878 WANT_RSH_SECURITY_FALSE
879 WANT_RSH_SECURITY_TRUE
881 WANT_BSDUDP_SECURITY_FALSE
882 WANT_BSDUDP_SECURITY_TRUE
884 WANT_BSDTCP_SECURITY_FALSE
885 WANT_BSDTCP_SECURITY_TRUE
888 WANT_BSD_SECURITY_FALSE
889 WANT_BSD_SECURITY_TRUE
890 WANT_TAPE_DEVICE_FALSE
891 WANT_TAPE_DEVICE_TRUE
892 WANT_TAPE_POSIX_FALSE
894 WANT_TAPE_UWARE_FALSE
898 WANT_TAPE_XENIX_FALSE
936 WANT_CYGWIN_COPY_PERL_DLL_FALSE
937 WANT_CYGWIN_COPY_PERL_DLL_TRUE
943 WANT_AMFLOCK_LNLOCK_FALSE
944 WANT_AMFLOCK_LNLOCK_TRUE
945 WANT_AMFLOCK_LOCKF_FALSE
946 WANT_AMFLOCK_LOCKF_TRUE
947 WANT_AMFLOCK_FLOCK_FALSE
948 WANT_AMFLOCK_FLOCK_TRUE
949 WANT_AMFLOCK_POSIX_FALSE
950 WANT_AMFLOCK_POSIX_TRUE
955 WANT_CHG_SCSI_CHIO_FALSE
956 WANT_CHG_SCSI_CHIO_TRUE
963 WANT_SCSI_SOLARIS_FALSE
964 WANT_SCSI_SOLARIS_TRUE
967 WANT_SCSI_HPUX_NEW_FALSE
968 WANT_SCSI_HPUX_NEW_TRUE
969 WANT_SCSI_LINUX_FALSE
978 DEFAULT_AMANDATES_FILE
979 DEFAULT_CHANGER_DEVICE
985 CONFIG_CLOBBER_MY_CONFIG
988 ENABLE_MANPAGE_BUILD_FALSE
989 ENABLE_MANPAGE_BUILD_TRUE
1012 WANT_INSTALLPERMS_FALSE
1013 WANT_INSTALLPERMS_TRUE
1014 WANT_SETUID_CLIENT_FALSE
1015 WANT_SETUID_CLIENT_TRUE
1026 GNUTAR_LISTED_INCREMENTAL_DIR
1027 USE_VERSION_SUFFIXES
1031 AMANDA_WARNING_CFLAGS
1051 HAVE_DECL_GETLOGIN_R
1137 HAVE_SIGNED_SIG_ATOMIC_T
1141 BITSIZEOF_SIG_ATOMIC_T
1149 HAVE_UNSIGNED_LONG_LONG_INT
1187 GNULIB_VSPRINTF_POSIX
1189 GNULIB_VPRINTF_POSIX
1190 GNULIB_VFPRINTF_POSIX
1191 GNULIB_SPRINTF_POSIX
1194 GNULIB_FPRINTF_POSIX
1214 GNULIB_REALLOC_POSIX
1224 REPLACE_GETTIMEOFDAY
1242 GL_COND_LIBTOOL_FALSE
1243 GL_COND_LIBTOOL_TRUE
1278 INSTALL_STRIP_PROGRAM
1332 program_transform_name
1344 enable_option_checking
1345 enable_dependency_tracking
1363 with_gnutar_listed_incremental
1369 with_low_tcpportrange
1373 with_maxtapeblocksize
1387 enable_manpage_build
1404 with_libiconv_prefix
1410 with_bsdtcp_security
1411 with_bsdudp_security
1416 with_server_principal
1417 with_server_instance
1419 with_client_principal
1420 with_client_instance
1422 with_ticket_lifetime
1424 with_dump_honor_nodump
1435 enable_static_binary
1439 ac_precious_vars='build_alias
1463 # Initialize some variables set by options.
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1477 program_transform_name=s,x,x,
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE}'
1502 infodir='${datarootdir}/info'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1553 -datadir | --datadir | --datadi | --datad)
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1570 { (exit 1); exit 1; }; }
1571 ac_useropt_orig=$ac_useropt
1572 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573 case $ac_user_opts in
1575 "enable_$ac_useropt"
1577 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1578 ac_unrecognized_sep=', ';;
1580 eval enable_$ac_useropt=no ;;
1582 -docdir | --docdir | --docdi | --doc | --do)
1584 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1585 docdir=$ac_optarg ;;
1587 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1589 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1590 dvidir=$ac_optarg ;;
1592 -enable-* | --enable-*)
1593 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1594 # Reject names that are not valid shell variable names.
1595 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1596 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1597 { (exit 1); exit 1; }; }
1598 ac_useropt_orig=$ac_useropt
1599 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1600 case $ac_user_opts in
1602 "enable_$ac_useropt"
1604 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1605 ac_unrecognized_sep=', ';;
1607 eval enable_$ac_useropt=\$ac_optarg ;;
1609 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1610 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1611 | --exec | --exe | --ex)
1612 ac_prev=exec_prefix ;;
1613 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1614 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1615 | --exec=* | --exe=* | --ex=*)
1616 exec_prefix=$ac_optarg ;;
1618 -gas | --gas | --ga | --g)
1619 # Obsolete; use --with-gas.
1622 -help | --help | --hel | --he | -h)
1623 ac_init_help=long ;;
1624 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1625 ac_init_help=recursive ;;
1626 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1627 ac_init_help=short ;;
1629 -host | --host | --hos | --ho)
1630 ac_prev=host_alias ;;
1631 -host=* | --host=* | --hos=* | --ho=*)
1632 host_alias=$ac_optarg ;;
1634 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1636 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1638 htmldir=$ac_optarg ;;
1640 -includedir | --includedir | --includedi | --included | --include \
1641 | --includ | --inclu | --incl | --inc)
1642 ac_prev=includedir ;;
1643 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1644 | --includ=* | --inclu=* | --incl=* | --inc=*)
1645 includedir=$ac_optarg ;;
1647 -infodir | --infodir | --infodi | --infod | --info | --inf)
1649 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1650 infodir=$ac_optarg ;;
1652 -libdir | --libdir | --libdi | --libd)
1654 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1655 libdir=$ac_optarg ;;
1657 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1658 | --libexe | --libex | --libe)
1659 ac_prev=libexecdir ;;
1660 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1661 | --libexe=* | --libex=* | --libe=*)
1662 libexecdir=$ac_optarg ;;
1664 -localedir | --localedir | --localedi | --localed | --locale)
1665 ac_prev=localedir ;;
1666 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1667 localedir=$ac_optarg ;;
1669 -localstatedir | --localstatedir | --localstatedi | --localstated \
1670 | --localstate | --localstat | --localsta | --localst | --locals)
1671 ac_prev=localstatedir ;;
1672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1673 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1674 localstatedir=$ac_optarg ;;
1676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1679 mandir=$ac_optarg ;;
1681 -nfp | --nfp | --nf)
1682 # Obsolete; use --without-fp.
1685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1686 | --no-cr | --no-c | -n)
1689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1695 | --oldin | --oldi | --old | --ol | --o)
1696 ac_prev=oldincludedir ;;
1697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1700 oldincludedir=$ac_optarg ;;
1702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1705 prefix=$ac_optarg ;;
1707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1708 | --program-pre | --program-pr | --program-p)
1709 ac_prev=program_prefix ;;
1710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1712 program_prefix=$ac_optarg ;;
1714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1715 | --program-suf | --program-su | --program-s)
1716 ac_prev=program_suffix ;;
1717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1719 program_suffix=$ac_optarg ;;
1721 -program-transform-name | --program-transform-name \
1722 | --program-transform-nam | --program-transform-na \
1723 | --program-transform-n | --program-transform- \
1724 | --program-transform | --program-transfor \
1725 | --program-transfo | --program-transf \
1726 | --program-trans | --program-tran \
1727 | --progr-tra | --program-tr | --program-t)
1728 ac_prev=program_transform_name ;;
1729 -program-transform-name=* | --program-transform-name=* \
1730 | --program-transform-nam=* | --program-transform-na=* \
1731 | --program-transform-n=* | --program-transform-=* \
1732 | --program-transform=* | --program-transfor=* \
1733 | --program-transfo=* | --program-transf=* \
1734 | --program-trans=* | --program-tran=* \
1735 | --progr-tra=* | --program-tr=* | --program-t=*)
1736 program_transform_name=$ac_optarg ;;
1738 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1740 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1741 pdfdir=$ac_optarg ;;
1743 -psdir | --psdir | --psdi | --psd | --ps)
1745 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1752 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1754 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1756 sbindir=$ac_optarg ;;
1758 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1759 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1760 | --sharedst | --shareds | --shared | --share | --shar \
1762 ac_prev=sharedstatedir ;;
1763 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1764 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1765 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1767 sharedstatedir=$ac_optarg ;;
1769 -site | --site | --sit)
1771 -site=* | --site=* | --sit=*)
1774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1777 srcdir=$ac_optarg ;;
1779 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1780 | --syscon | --sysco | --sysc | --sys | --sy)
1781 ac_prev=sysconfdir ;;
1782 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1783 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1784 sysconfdir=$ac_optarg ;;
1786 -target | --target | --targe | --targ | --tar | --ta | --t)
1787 ac_prev=target_alias ;;
1788 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1789 target_alias=$ac_optarg ;;
1791 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1794 -version | --version | --versio | --versi | --vers | -V)
1795 ac_init_version=: ;;
1798 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1799 # Reject names that are not valid shell variable names.
1800 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1801 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1802 { (exit 1); exit 1; }; }
1803 ac_useropt_orig=$ac_useropt
1804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1805 case $ac_user_opts in
1809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1810 ac_unrecognized_sep=', ';;
1812 eval with_$ac_useropt=\$ac_optarg ;;
1814 -without-* | --without-*)
1815 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1816 # Reject names that are not valid shell variable names.
1817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1818 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1819 { (exit 1); exit 1; }; }
1820 ac_useropt_orig=$ac_useropt
1821 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1822 case $ac_user_opts in
1826 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1827 ac_unrecognized_sep=', ';;
1829 eval with_$ac_useropt=no ;;
1832 # Obsolete; use --with-x.
1835 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1836 | --x-incl | --x-inc | --x-in | --x-i)
1837 ac_prev=x_includes ;;
1838 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1839 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1840 x_includes=$ac_optarg ;;
1842 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1843 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1844 ac_prev=x_libraries ;;
1845 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1846 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1847 x_libraries=$ac_optarg ;;
1849 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1850 Try \`$0 --help' for more information." >&2
1851 { (exit 1); exit 1; }; }
1855 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1856 # Reject names that are not valid shell variable names.
1857 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1858 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1859 { (exit 1); exit 1; }; }
1860 eval $ac_envvar=\$ac_optarg
1861 export $ac_envvar ;;
1864 # FIXME: should be removed in autoconf 3.0.
1865 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1866 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1867 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1868 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1874 if test -n "$ac_prev"; then
1875 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1876 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1877 { (exit 1); exit 1; }; }
1880 if test -n "$ac_unrecognized_opts"; then
1881 case $enable_option_checking in
1883 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1884 { (exit 1); exit 1; }; } ;;
1885 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1889 # Check all directory arguments for consistency.
1890 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1891 datadir sysconfdir sharedstatedir localstatedir includedir \
1892 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1893 libdir localedir mandir
1895 eval ac_val=\$$ac_var
1896 # Remove trailing slashes.
1899 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1900 eval $ac_var=\$ac_val;;
1902 # Be sure to have absolute directory names.
1904 [\\/$]* | ?:[\\/]* ) continue;;
1905 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1907 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1908 { (exit 1); exit 1; }; }
1911 # There might be people who depend on the old broken behavior: `$host'
1912 # used to hold the argument of --host etc.
1913 # FIXME: To remove some day.
1916 target=$target_alias
1918 # FIXME: To remove some day.
1919 if test "x$host_alias" != x; then
1920 if test "x$build_alias" = x; then
1921 cross_compiling=maybe
1922 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1923 If a cross compiler is detected then cross compile mode will be used." >&2
1924 elif test "x$build_alias" != "x$host_alias"; then
1930 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1932 test "$silent" = yes && exec 6>/dev/null
1935 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1936 ac_ls_di=`ls -di .` &&
1937 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1938 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1939 { (exit 1); exit 1; }; }
1940 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1941 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1942 { (exit 1); exit 1; }; }
1945 # Find the source files, if location was not specified.
1946 if test -z "$srcdir"; then
1947 ac_srcdir_defaulted=yes
1948 # Try the directory containing this script, then the parent directory.
1949 ac_confdir=`$as_dirname -- "$as_myself" ||
1950 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1951 X"$as_myself" : 'X\(//\)[^/]' \| \
1952 X"$as_myself" : 'X\(//\)$' \| \
1953 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1954 $as_echo X"$as_myself" |
1955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1973 if test ! -r "$srcdir/$ac_unique_file"; then
1977 ac_srcdir_defaulted=no
1979 if test ! -r "$srcdir/$ac_unique_file"; then
1980 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1981 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1982 { (exit 1); exit 1; }; }
1984 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1986 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1987 { (exit 1); exit 1; }; }
1989 # When building in place, set srcdir=.
1990 if test "$ac_abs_confdir" = "$ac_pwd"; then
1993 # Remove unnecessary trailing slashes from srcdir.
1994 # Double slashes in file names in object file debugging info
1995 # mess up M-x gdb in Emacs.
1997 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1999 for ac_var in $ac_precious_vars; do
2000 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2001 eval ac_env_${ac_var}_value=\$${ac_var}
2002 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2003 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2007 # Report the --help message.
2009 if test "$ac_init_help" = "long"; then
2010 # Omit some internal or obsolete options to make the list less imposing.
2011 # This message is too long to be a string in the A/UX 3.1 sh.
2013 \`configure' configures this package to adapt to many kinds of systems.
2015 Usage: $0 [OPTION]... [VAR=VALUE]...
2017 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2018 VAR=VALUE. See below for descriptions of some of the useful variables.
2020 Defaults for the options are specified in brackets.
2023 -h, --help display this help and exit
2024 --help=short display options specific to this package
2025 --help=recursive display the short help of all the included packages
2026 -V, --version display version information and exit
2027 -q, --quiet, --silent do not print \`checking...' messages
2028 --cache-file=FILE cache test results in FILE [disabled]
2029 -C, --config-cache alias for \`--cache-file=config.cache'
2030 -n, --no-create do not create output files
2031 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2033 Installation directories:
2034 --prefix=PREFIX install architecture-independent files in PREFIX
2035 [$ac_default_prefix]
2036 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2039 By default, \`make install' will install all the files in
2040 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2041 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2042 for instance \`--prefix=\$HOME'.
2044 For better control, use the options below.
2046 Fine tuning of the installation directories:
2047 --bindir=DIR user executables [EPREFIX/bin]
2048 --sbindir=DIR system admin executables [EPREFIX/sbin]
2049 --libexecdir=DIR program executables [EPREFIX/libexec]
2050 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2051 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2052 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2053 --libdir=DIR object code libraries [EPREFIX/lib]
2054 --includedir=DIR C header files [PREFIX/include]
2055 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2056 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2057 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2058 --infodir=DIR info documentation [DATAROOTDIR/info]
2059 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2060 --mandir=DIR man documentation [DATAROOTDIR/man]
2061 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2062 --htmldir=DIR html documentation [DOCDIR]
2063 --dvidir=DIR dvi documentation [DOCDIR]
2064 --pdfdir=DIR pdf documentation [DOCDIR]
2065 --psdir=DIR ps documentation [DOCDIR]
2071 --program-prefix=PREFIX prepend PREFIX to installed program names
2072 --program-suffix=SUFFIX append SUFFIX to installed program names
2073 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2076 --build=BUILD configure for building on BUILD [guessed]
2077 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2078 --target=TARGET configure for building compilers for TARGET [HOST]
2082 if test -n "$ac_init_help"; then
2087 --disable-option-checking ignore unrecognized --enable/--with options
2088 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2089 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2090 --disable-dependency-tracking speeds up one-time build
2091 --enable-dependency-tracking do not reject slow dependency extractors
2092 --enable-threads={posix|solaris|pth|win32}
2093 specify multithreading API
2094 --disable-threads build without multithread safety
2095 --disable-rpath do not hardcode runtime library paths
2096 --disable-largefile omit support for large files
2097 --disable-installperms do not modify ownership and permissions on installed
2099 --enable-manpage-build Build the manpages from their XML source (shipped
2100 manpages are usually sufficient)
2101 --disable-nls do not use Native Language Support
2102 --disable-s3-device disable the S3 device
2103 --enable-shared[=PKGS] build shared libraries [default=yes]
2104 --enable-static[=PKGS] build static libraries [default=yes]
2105 --enable-fast-install[=PKGS]
2106 optimize for fast installation [default=yes]
2107 --disable-libtool-lock avoid locking (might break parallel builds)
2108 --enable-static-binary To build statically linked binaries
2109 --disable-glibtest do not try to compile and run a test GLIB program
2112 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2113 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2114 --with-gnu-ld assume the C compiler uses GNU ld default=no
2115 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2116 --without-libpth-prefix don't search for libpth in includedir and libdir
2117 --with-cflags=FLAGS deprecated; use ./configure CFLAGS=...
2118 --with-includes=INCLUDE-DIRS
2119 deprecated; use ./configure CPPFLAGS='-I.. -I..'
2120 --with-libraries=LIBRARY-DIRS
2121 deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2122 -R on Solaris, NetBSD)
2123 --with-user=USER force execution to USER on client systems (REQUIRED)
2124 --with-group=GROUP group allowed to execute setuid-root programs
2126 --with-dumperdir=DIR where we install the dumpers (deprecated)
2127 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
2128 --with-indexdir deprecated: use indexdir in amanda.conf
2129 --with-dbdir deprecated: use infofile in amanda.conf
2130 --with-logdir deprecated: use logfile in amanda.conf
2131 --with-suffixes install binaries with version string appended to name
2132 --with-gnutar-listdir=DIR
2133 put gnutar directory lists in DIR (default:
2134 localstatedir/amanda/gnutar-lists)
2135 --with-gnutar-listed-incremental
2136 deprecated; use --with-gnutar-listdir
2137 --with-tmpdir directory for temporary and debugging files
2138 (default: /tmp/amanda)
2139 --without-force-uid do not check userids when running programs
2141 force ownership of installed files to USER (default same as --with-user)
2143 --with-fqdn use FQDN's to backup multiple networks
2144 --without-reuseaddr Don't reuse network connections until full timeout
2146 --with-low-tcpportrange=low/high
2147 bind reserved TCP server sockets to ports within
2148 this range (default: unlimited)
2149 --with-tcpportrange=low/high
2150 bind unreserved TCP server sockets to ports within
2151 this range (default: unlimited)
2152 --with-udpportrange=low/high
2153 bind reserved UDP server sockets to ports within
2154 this range (default: unlimited)
2155 --with-buffered-dump buffer the dumping sockets on the server for speed
2157 --with-assertions compile assertions into code
2158 --with-debugging=DIR
2159 put debug logs in DIR (default same as --with-tmpdir)
2161 --with-debug-days=NN number of days to keep debugging files (default: 4)
2162 --with-testing[=SUFFIX] use alternate service names with suffix (default
2164 --with-single-userid
2165 force amanda to run as a single userid (for testing)
2167 --without-server do not build server stuff (set --without-restore)
2168 --without-client do not build client stuff
2169 --without-restore do not build amrestore nor amidxtaped
2170 --without-amrecover do not build amrecover
2171 --with-client-only deprecated: use --without-server
2172 --with-server-only deprecated: use --without-client
2173 --with-gnuplot=PATH use gnuplot executable at PATH in amplot
2174 --with-xsltproc[[[=PATH]]]
2175 Use the xsltproc binary in in PATH.
2176 --with-xsltproc-flags=FLAGS
2177 Flags to pass to xsltproc (default --nonet)
2178 --with-index-server=HOST
2179 default amanda index server (default: `uname -n`)
2180 --with-config=CONFIG default amanda configuration (default: DailySet1)
2181 --with-tape-server=HOST default tape server for restore (default: same as
2183 --with-tape-device=DEVICE
2184 default device on restore tape server
2185 --with-changer-device=DEV
2186 default tape changer device (default: /dev/ch0)
2187 --with-amandates default location for 'amandates' (default:
2188 $localstatedir/amanda/amandates)
2189 --with-perlextlibs=libs extra LIBS for Perl extensions
2190 --with-ipv6 enable IPv6 support (default if IPv6 is found)
2191 --without-ipv6 disable IPv6
2192 --with-mmap force use of mmap instead of shared memory support
2193 --with-amlibdir[[[=PATH]]]
2194 Where library are installed, default: $libdir/amanda
2195 --without-amlibdir Library are installed in $libdir
2196 --with-amlibexecdir[[[=PATH]]]
2197 Where amanda own programs are installed, default:
2199 --without-amlibexecdir Amanda own programs are installed in $libexecdir
2200 --with-amperldir[[[=PATH]]]
2201 Where amanda's perl modules are installed; default:
2203 --without-amperldir Install amanda's perl modules in $amlibdir/perl
2204 --with-amdatadir[[[=PATH]]]
2205 Where amanda's templates and examples are installed;
2206 default: $datadir/amanda
2207 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2208 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2209 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2210 --without-libintl-prefix don't search for libintl in includedir and libdir
2211 --with-libcurl=DIR look for the curl library in DIR
2212 --without-bsd-security do not include BSD authentication
2213 --without-amandahosts use ".rhosts" instead of ".amandahosts"
2214 --with-bsdtcp-security include BSDTCP authentication
2215 --with-bsdudp-security include BSDUDP authentication
2216 --with-rsh-security include RSH authentication
2217 --with-ssh-security include SSH authentication
2218 --with-ssh-options=[OPTIONS]
2219 Use these ssh options for ssh security; the default
2221 --with-krb4-security=DIR
2222 Location of Kerberos software [/usr/kerberos
2223 /usr/cygnus /usr /opt/kerberos]
2224 --with-server-principal=ARG
2225 server host principal ("amanda")
2226 --with-server-instance=ARG
2227 server host instance ("amanda")
2228 --with-server-keyfile=ARG
2229 server host key file ("/.amanda")
2230 --with-client-principal=ARG
2231 client host principle ("rcmd")
2232 --with-client-instance=ARG
2233 client host instance (HOSTNAME_INSTANCE)
2234 --with-client-keyfile=ARG
2235 client host key file (KEYFILE)
2236 --ticket-lifetime ticket lifetime (128)
2237 --with-krb5-security=DIR
2238 Location of Kerberos V software [/usr/kerberos
2239 /usr/cygnus /usr /opt/kerberos]
2240 --with-dump-honor-nodump
2241 if dump supports -h, use it for level0s too
2242 --with-gnutar=PROG use PROG as GNU 'tar'
2243 --with-smbclient=PROG use PROG as 'smbclient'
2244 --with-samba-user deprecated; place username in 'amandapass'
2245 --with-rundump use rundump, a setuid-root wrapper, to invoke dump
2246 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2247 --with-pic try to use only PIC/non-PIC objects [default=use
2249 --with-tags[=TAGS] include additional configurations [automatic]
2250 --with-readline require readline support (for amrecover)
2251 --without-readline don't search for readline
2253 Some influential environment variables:
2254 CC C compiler command
2255 CFLAGS C compiler flags
2256 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2257 nonstandard directory <lib dir>
2258 LIBS libraries to pass to the linker, e.g. -l<library>
2259 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2260 you have headers in a nonstandard directory <include dir>
2262 GNUPLOT Location of the 'gnuplot' binary
2263 SWIG Path to the 'swig' binary (developers only)
2264 PERL Path to the 'perl' binary
2265 GNUTAR Location of the GNU 'tar' binary
2266 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2267 the first program found out of: `bison -y', `byacc', `yacc'.
2268 YFLAGS The list of arguments that will be passed by default to $YACC.
2269 This script will default YFLAGS to the empty string to avoid a
2270 default value of `-d' given by some make applications.
2271 CXX C++ compiler command
2272 CXXFLAGS C++ compiler flags
2273 CXXCPP C++ preprocessor
2274 F77 Fortran 77 compiler command
2275 FFLAGS Fortran 77 compiler flags
2276 PKG_CONFIG path to pkg-config utility
2278 Use these variables to override the choices made by `configure' or to help
2279 it to find libraries and programs with nonstandard names/locations.
2285 if test "$ac_init_help" = "recursive"; then
2286 # If there are subdirs, report their specific --help.
2287 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2288 test -d "$ac_dir" ||
2289 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2297 # A ".." for each directory in $ac_dir_suffix.
2298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2299 case $ac_top_builddir_sub in
2300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2304 ac_abs_top_builddir=$ac_pwd
2305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2306 # for backward compatibility:
2307 ac_top_builddir=$ac_top_build_prefix
2310 .) # We are building in place.
2312 ac_top_srcdir=$ac_top_builddir_sub
2313 ac_abs_top_srcdir=$ac_pwd ;;
2314 [\\/]* | ?:[\\/]* ) # Absolute name.
2315 ac_srcdir=$srcdir$ac_dir_suffix;
2316 ac_top_srcdir=$srcdir
2317 ac_abs_top_srcdir=$srcdir ;;
2319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2320 ac_top_srcdir=$ac_top_build_prefix$srcdir
2321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2325 cd "$ac_dir" || { ac_status=$?; continue; }
2326 # Check for guested configure.
2327 if test -f "$ac_srcdir/configure.gnu"; then
2329 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2330 elif test -f "$ac_srcdir/configure"; then
2332 $SHELL "$ac_srcdir/configure" --help=recursive
2334 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2336 cd "$ac_pwd" || { ac_status=$?; break; }
2340 test -n "$ac_init_help" && exit $ac_status
2341 if $ac_init_version; then
2344 generated by GNU Autoconf 2.63
2346 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2347 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2348 This configure script is free software; the Free Software Foundation
2349 gives unlimited permission to copy, distribute and modify it.
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by $as_me, which was
2358 generated by GNU Autoconf 2.63. Invocation command line was
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_must_keep_next=false
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2434 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 -* ) ac_must_keep_next=true ;;
2450 ac_configure_args="$ac_configure_args '$ac_arg'"
2455 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2456 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2469 ## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2481 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) $as_unset $ac_var ;;
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2507 ## ----------------- ##
2508 ## Output variables. ##
2509 ## ----------------- ##
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2518 $as_echo "$ac_var='\''$ac_val'\''"
2522 if test -n "$ac_subst_files"; then
2524 ## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535 $as_echo "$ac_var='\''$ac_val'\''"
2540 if test -s confdefs.h; then
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 for ac_signal in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2566 # Predefined preprocessor variables.
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_NAME "$PACKAGE_NAME"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_STRING "$PACKAGE_STRING"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593 # Let the site file select an alternate cache file if it wants to.
2594 # Prefer an explicitly selected file to automatically selected ones.
2597 if test -n "$CONFIG_SITE"; then
2598 ac_site_file1=$CONFIG_SITE
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2617 if test -r "$cache_file"; then
2618 # Some versions of bash will fail to source /dev/null (special
2619 # files actually), so we avoid doing that.
2620 if test -f "$cache_file"; then
2621 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2624 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625 *) . "./$cache_file";;
2629 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2634 gl_header_list="$gl_header_list arpa/inet.h"
2635 gl_header_list="$gl_header_list float.h"
2636 gl_header_list="$gl_header_list sys/param.h"
2637 gl_header_list="$gl_header_list sys/vfs.h"
2638 gl_header_list="$gl_header_list sys/fs_types.h"
2639 gl_header_list="$gl_header_list sys/socket.h"
2640 gl_header_list="$gl_header_list netdb.h"
2641 gl_header_list="$gl_header_list netinet/in.h"
2642 gl_header_list="$gl_header_list sys/time.h"
2643 gl_func_list="$gl_func_list gettimeofday"
2644 gl_header_list="$gl_header_list stdint.h"
2645 gl_header_list="$gl_header_list wchar.h"
2646 gl_header_list="$gl_header_list stdio.h"
2647 gl_header_list="$gl_header_list stdlib.h"
2648 gl_header_list="$gl_header_list string.h"
2649 gl_func_list="$gl_func_list lstat"
2650 gl_header_list="$gl_header_list sys/stat.h"
2651 gl_header_list="$gl_header_list unistd.h"
2652 gl_func_list="$gl_func_list vasnprintf"
2653 # Check that the precious variables saved in the cache have kept the same
2655 ac_cache_corrupted=false
2656 for ac_var in $ac_precious_vars; do
2657 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658 eval ac_new_set=\$ac_env_${ac_var}_set
2659 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660 eval ac_new_val=\$ac_env_${ac_var}_value
2661 case $ac_old_set,$ac_new_set in
2663 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2664 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2665 ac_cache_corrupted=: ;;
2667 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2668 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2672 if test "x$ac_old_val" != "x$ac_new_val"; then
2673 # differences in whitespace do not lead to failure.
2674 ac_old_val_w=`echo x $ac_old_val`
2675 ac_new_val_w=`echo x $ac_new_val`
2676 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2678 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2679 ac_cache_corrupted=:
2681 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2682 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2683 eval $ac_var=\$ac_old_val
2685 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2686 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2687 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2688 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2691 # Pass precious variables to config.status.
2692 if test "$ac_new_set" = set; then
2694 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 *) ac_arg=$ac_var=$ac_new_val ;;
2697 case " $ac_configure_args " in
2698 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2699 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2703 if $ac_cache_corrupted; then
2704 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2707 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2708 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2709 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2710 { (exit 1); exit 1; }; }
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 for ac_dir in config "$srcdir"/config; do
2739 if test -f "$ac_dir/install-sh"; then
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 elif test -f "$ac_dir/install.sh"; then
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 elif test -f "$ac_dir/shtool"; then
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 if test -z "$ac_aux_dir"; then
2754 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2755 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2756 { (exit 1); exit 1; }; }
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2768 # Make sure we can run config.sub.
2769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772 { (exit 1); exit 1; }; }
2774 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if test "${ac_cv_build+set}" = set; then
2777 $as_echo_n "(cached) " >&6
2779 ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785 { (exit 1); exit 1; }; }
2786 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793 $as_echo "$ac_cv_build" >&6; }
2794 case $ac_cv_build in
2796 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2798 { (exit 1); exit 1; }; };;
2801 ac_save_IFS=$IFS; IFS='-'
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2814 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2815 $as_echo_n "checking host system type... " >&6; }
2816 if test "${ac_cv_host+set}" = set; then
2817 $as_echo_n "(cached) " >&6
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825 { (exit 1); exit 1; }; }
2829 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830 $as_echo "$ac_cv_host" >&6; }
2833 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2835 { (exit 1); exit 1; }; };;
2838 ac_save_IFS=$IFS; IFS='-'
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2848 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2851 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2852 $as_echo_n "checking target system type... " >&6; }
2853 if test "${ac_cv_target+set}" = set; then
2854 $as_echo_n "(cached) " >&6
2856 if test "x$target_alias" = x; then
2857 ac_cv_target=$ac_cv_host
2859 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2860 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2861 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2862 { (exit 1); exit 1; }; }
2866 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2867 $as_echo "$ac_cv_target" >&6; }
2868 case $ac_cv_target in
2870 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2871 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2872 { (exit 1); exit 1; }; };;
2874 target=$ac_cv_target
2875 ac_save_IFS=$IFS; IFS='-'
2881 # Remember, the first character of IFS is used to create $*,
2882 # except with old shells:
2885 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2888 # The aliases save the names the user supplied, while $host etc.
2889 # will get canonicalized.
2890 test -n "$target_alias" &&
2891 test "$program_prefix$program_suffix$program_transform_name" = \
2893 program_prefix=${target_alias}-
2898 am__api_version='1.11'
2900 # Find a good install program. We prefer a C program (faster),
2901 # so one script is as good as another. But avoid the broken or
2902 # incompatible versions:
2903 # SysV /etc/install, /usr/sbin/install
2904 # SunOS /usr/etc/install
2905 # IRIX /sbin/install
2907 # AmigaOS /C/install, which installs bootblocks on floppy discs
2908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2911 # OS/2's system install, which has a completely different semantic
2912 # ./install, which can be erroneously created by make from ./install.sh.
2913 # Reject install programs that cannot install multiple files.
2914 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2915 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2916 if test -z "$INSTALL"; then
2917 if test "${ac_cv_path_install+set}" = set; then
2918 $as_echo_n "(cached) " >&6
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 # Account for people who put trailing slashes in PATH elements.
2927 ./ | .// | /cC/* | \
2928 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2929 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2932 # OSF1 and SCO ODT 3.0 have their own names for install.
2933 # Don't use installbsd from OSF since it installs stuff as root
2935 for ac_prog in ginstall scoinst install; do
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2938 if test $ac_prog = install &&
2939 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940 # AIX install. It has an incompatible calling convention.
2942 elif test $ac_prog = install &&
2943 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2944 # program-specific install script used by HP pwplus--don't use.
2947 rm -rf conftest.one conftest.two conftest.dir
2948 echo one > conftest.one
2949 echo two > conftest.two
2951 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2952 test -s conftest.one && test -s conftest.two &&
2953 test -s conftest.dir/conftest.one &&
2954 test -s conftest.dir/conftest.two
2956 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2969 rm -rf conftest.one conftest.two conftest.dir
2972 if test "${ac_cv_path_install+set}" = set; then
2973 INSTALL=$ac_cv_path_install
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for INSTALL within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 INSTALL=$ac_install_sh
2982 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2983 $as_echo "$INSTALL" >&6; }
2985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2986 # It thinks the first close brace ends the variable substitution.
2987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2993 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2994 $as_echo_n "checking whether build environment is sane... " >&6; }
2997 echo timestamp > conftest.file
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name. Accept space and tab only in the latter.
3003 *[\\\"\#\$\&\'\`$am_lf]*)
3004 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3005 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3006 { (exit 1); exit 1; }; };;
3009 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3010 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3011 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3012 { (exit 1); exit 1; }; };;
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments. Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3021 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3022 if test "$*" = "X"; then
3024 set X `ls -t "$srcdir/configure" conftest.file`
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" >&5
3036 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3037 alias in your environment" >&2;}
3038 { (exit 1); exit 1; }; }
3041 test "$2" = conftest.file
3047 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 $as_echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051 { (exit 1); exit 1; }; }
3053 { $as_echo "$as_me:$LINENO: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055 test "$program_prefix" != NONE &&
3056 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE &&
3059 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3060 # Double any \ or $.
3061 # By default was `s,x,x', remove it if useless.
3062 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3063 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3065 # expand $ac_aux_dir to an absolute path
3066 am_aux_dir=`cd $ac_aux_dir && pwd`
3068 if test x"${MISSING+set}" != xset; then
3071 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3073 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3076 # Use eval to expand $SHELL
3077 if eval "$MISSING --run true"; then
3078 am_missing_run="$MISSING --run "
3081 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3082 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3085 if test x"${install_sh}" != xset; then
3088 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3090 install_sh="\${SHELL} $am_aux_dir/install-sh"
3094 # Installed binaries are usually stripped using `strip' when the user
3095 # run `make install-strip'. However `strip' might not be the right
3096 # tool to use in cross-compilation environments, therefore Automake
3097 # will honor the `STRIP' environment variable to overrule this program.
3098 if test "$cross_compiling" != no; then
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}strip; ac_word=$2
3102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_STRIP+set}" = set; then
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$STRIP"; then
3108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 STRIP=$ac_cv_prog_STRIP
3128 if test -n "$STRIP"; then
3129 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3130 $as_echo "$STRIP" >&6; }
3132 { $as_echo "$as_me:$LINENO: result: no" >&5
3133 $as_echo "no" >&6; }
3138 if test -z "$ac_cv_prog_STRIP"; then
3140 # Extract the first word of "strip", so it can be a program name with args.
3141 set dummy strip; ac_word=$2
3142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$ac_ct_STRIP"; then
3148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_STRIP="strip"
3158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3168 if test -n "$ac_ct_STRIP"; then
3169 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3170 $as_echo "$ac_ct_STRIP" >&6; }
3172 { $as_echo "$as_me:$LINENO: result: no" >&5
3173 $as_echo "no" >&6; }
3176 if test "x$ac_ct_STRIP" = x; then
3179 case $cross_compiling:$ac_tool_warned in
3181 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3188 STRIP="$ac_cv_prog_STRIP"
3192 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3194 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3195 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3196 if test -z "$MKDIR_P"; then
3197 if test "${ac_cv_path_mkdir+set}" = set; then
3198 $as_echo_n "(cached) " >&6
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3204 test -z "$as_dir" && as_dir=.
3205 for ac_prog in mkdir gmkdir; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3208 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3209 'mkdir (GNU coreutils) '* | \
3210 'mkdir (coreutils) '* | \
3211 'mkdir (fileutils) '4.1*)
3212 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3222 if test "${ac_cv_path_mkdir+set}" = set; then
3223 MKDIR_P="$ac_cv_path_mkdir -p"
3225 # As a last resort, use the slow shell script. Don't cache a
3226 # value for MKDIR_P within a source directory, because that will
3227 # break other packages using the cache if that directory is
3228 # removed, or if the value is a relative name.
3229 test -d ./--version && rmdir ./--version
3230 MKDIR_P="$ac_install_sh -d"
3233 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3234 $as_echo "$MKDIR_P" >&6; }
3238 [\\/$]* | ?:[\\/]*) ;;
3239 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3242 for ac_prog in gawk mawk nawk awk
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_AWK+set}" = set; then
3249 $as_echo_n "(cached) " >&6
3251 if test -n "$AWK"; then
3252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_AWK="$ac_prog"
3262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test -n "$AWK"; then
3273 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3274 $as_echo "$AWK" >&6; }
3276 { $as_echo "$as_me:$LINENO: result: no" >&5
3277 $as_echo "no" >&6; }
3281 test -n "$AWK" && break
3284 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3285 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3287 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3288 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3289 $as_echo_n "(cached) " >&6
3291 cat >conftest.make <<\_ACEOF
3294 @echo '@@@%%%=$(MAKE)=@@@%%%'
3296 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3297 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3299 eval ac_cv_prog_make_${ac_make}_set=yes;;
3301 eval ac_cv_prog_make_${ac_make}_set=no;;
3305 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3306 { $as_echo "$as_me:$LINENO: result: yes" >&5
3307 $as_echo "yes" >&6; }
3310 { $as_echo "$as_me:$LINENO: result: no" >&5
3311 $as_echo "no" >&6; }
3312 SET_MAKE="MAKE=${MAKE-make}"
3315 rm -rf .tst 2>/dev/null
3316 mkdir .tst 2>/dev/null
3317 if test -d .tst; then
3322 rmdir .tst 2>/dev/null
3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326 # is not polluted with repeated "-I."
3327 am__isrc=' -I$(srcdir)'
3328 # test to see if srcdir already configured
3329 if test -f $srcdir/config.status; then
3330 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3331 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3332 { (exit 1); exit 1; }; }
3336 # test whether we have cygpath
3337 if test -z "$CYGPATH_W"; then
3338 if (cygpath --version) >/dev/null 2>/dev/null; then
3339 CYGPATH_W='cygpath -w'
3346 # Define the identity of the package.
3351 cat >>confdefs.h <<_ACEOF
3352 #define PACKAGE "$PACKAGE"
3356 cat >>confdefs.h <<_ACEOF
3357 #define VERSION "$VERSION"
3360 # Some tools Automake needs.
3362 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3365 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3368 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3371 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3374 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3376 # We need awk for the "check" target. The system "awk" is bad on
3378 # Always define AMTAR for backward compatibility.
3380 AMTAR=${AMTAR-"${am_missing_run}tar"}
3382 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3388 ac_config_headers="$ac_config_headers config/config.h"
3394 # Take care of some early Amanda-specific setup
3397 # initialize warnings file
3398 rm -f config.warnings
3401 if test -f "$srcdir/SNAPSHOT"; then
3402 cat < "$srcdir/SNAPSHOT"
3404 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3406 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3407 SNAPSHOT_STAMP=SNAPSHOT
3415 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3416 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3417 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3418 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3421 VERSION_SUFFIX="$VERSION"
3429 if test -f config.local; then
3430 echo "running local script ./config.local"
3436 # Set up compiler location, basic flags, and include locations
3437 # and library locations before we start checking the system
3438 # configuration in more detail...
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3478 { $as_echo "$as_me:$LINENO: result: no" >&5
3479 $as_echo "no" >&6; }
3484 if test -z "$ac_cv_prog_CC"; then
3486 # Extract the first word of "gcc", so it can be a program name with args.
3487 set dummy gcc; ac_word=$2
3488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3491 $as_echo_n "(cached) " >&6
3493 if test -n "$ac_ct_CC"; then
3494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 ac_cv_prog_ac_ct_CC="gcc"
3504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3514 if test -n "$ac_ct_CC"; then
3515 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3516 $as_echo "$ac_ct_CC" >&6; }
3518 { $as_echo "$as_me:$LINENO: result: no" >&5
3519 $as_echo "no" >&6; }
3522 if test "x$ac_ct_CC" = x; then
3525 case $cross_compiling:$ac_tool_warned in
3527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529 ac_tool_warned=yes ;;
3537 if test -z "$CC"; then
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}cc; ac_word=$2
3541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if test "${ac_cv_prog_CC+set}" = set; then
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556 ac_cv_prog_CC="${ac_tool_prefix}cc"
3557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 if test -n "$CC"; then
3568 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3569 $as_echo "$CC" >&6; }
3571 { $as_echo "$as_me:$LINENO: result: no" >&5
3572 $as_echo "no" >&6; }
3578 if test -z "$CC"; then
3579 # Extract the first word of "cc", so it can be a program name with args.
3580 set dummy cc; ac_word=$2
3581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then
3584 $as_echo_n "(cached) " >&6
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3598 ac_prog_rejected=yes
3602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 if test $ac_prog_rejected = yes; then
3610 # We found a bogon in the path, so make sure we never use it.
3611 set dummy $ac_cv_prog_CC
3613 if test $# != 0; then
3614 # We chose a different compiler from the bogus one.
3615 # However, it has the same basename, so the bogon will be chosen
3616 # first if we set CC to just the basename; use the full file name.
3618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3628 { $as_echo "$as_me:$LINENO: result: no" >&5
3629 $as_echo "no" >&6; }
3634 if test -z "$CC"; then
3635 if test -n "$ac_tool_prefix"; then
3636 for ac_prog in cl.exe
3638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_CC+set}" = set; then
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test -n "$CC"; then
3667 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3668 $as_echo "$CC" >&6; }
3670 { $as_echo "$as_me:$LINENO: result: no" >&5
3671 $as_echo "no" >&6; }
3675 test -n "$CC" && break
3678 if test -z "$CC"; then
3680 for ac_prog in cl.exe
3682 # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$ac_ct_CC"; then
3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699 ac_cv_prog_ac_ct_CC="$ac_prog"
3700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3714 { $as_echo "$as_me:$LINENO: result: no" >&5
3715 $as_echo "no" >&6; }
3719 test -n "$ac_ct_CC" && break
3722 if test "x$ac_ct_CC" = x; then
3725 case $cross_compiling:$ac_tool_warned in
3727 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729 ac_tool_warned=yes ;;
3738 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3741 See \`config.log' for more details." >&5
3742 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }; }
3746 # Provide some information about the compiler.
3747 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3750 { (ac_try="$ac_compiler --version >&5"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3756 $as_echo "$ac_try_echo") >&5
3757 (eval "$ac_compiler --version >&5") 2>&5
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }
3761 { (ac_try="$ac_compiler -v >&5"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767 $as_echo "$ac_try_echo") >&5
3768 (eval "$ac_compiler -v >&5") 2>&5
3770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }
3772 { (ac_try="$ac_compiler -V >&5"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778 $as_echo "$ac_try_echo") >&5
3779 (eval "$ac_compiler -V >&5") 2>&5
3781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }
3784 cat >conftest.$ac_ext <<_ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3799 ac_clean_files_save=$ac_clean_files
3800 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3801 # Try to create an executable without -o first, disregard a.out.
3802 # It will help us diagnose broken compilers, and finding out an intuition
3804 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3805 $as_echo_n "checking for C compiler default output file name... " >&6; }
3806 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808 # The possible output files:
3809 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3812 for ac_file in $ac_files
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3821 if { (ac_try="$ac_link_default"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_link_default") 2>&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; then
3832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3833 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3834 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3835 # so that the user can short-circuit this test for compilers unknown to
3837 for ac_file in $ac_files ''
3839 test -f "$ac_file" || continue
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3844 # We found the default executable, but exeext='' is most
3848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3852 # We set ac_cv_exeext here because the later test for it is not
3853 # safe: cross compilers may not add the suffix if given an `-o'
3854 # argument, so we may need to know it at that point already.
3855 # Even if this section looks crufty: it has the advantage of
3862 test "$ac_cv_exeext" = no && ac_cv_exeext=
3868 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3869 $as_echo "$ac_file" >&6; }
3870 if test -z "$ac_file"; then
3871 $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3877 See \`config.log' for more details." >&5
3878 $as_echo "$as_me: error: C compiler cannot create executables
3879 See \`config.log' for more details." >&2;}
3880 { (exit 77); exit 77; }; }; }
3883 ac_exeext=$ac_cv_exeext
3885 # Check that the compiler produces executables we can run. If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3888 $as_echo_n "checking whether the C compiler works... " >&6; }
3889 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3890 # If not cross compiling, check that we can run a simple program.
3891 if test "$cross_compiling" != yes; then
3892 if { ac_try='./$ac_file'
3893 { (case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3898 $as_echo "$ac_try_echo") >&5
3899 (eval "$ac_try") 2>&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3905 if test "$cross_compiling" = maybe; then
3908 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details." >&5
3913 $as_echo "$as_me: error: cannot run C compiled programs.
3914 If you meant to cross compile, use \`--host'.
3915 See \`config.log' for more details." >&2;}
3916 { (exit 1); exit 1; }; }; }
3920 { $as_echo "$as_me:$LINENO: result: yes" >&5
3921 $as_echo "yes" >&6; }
3923 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3924 ac_clean_files=$ac_clean_files_save
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3928 $as_echo_n "checking whether we are cross compiling... " >&6; }
3929 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3930 $as_echo "$cross_compiling" >&6; }
3932 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3933 $as_echo_n "checking for suffix of executables... " >&6; }
3934 if { (ac_try="$ac_link"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_link") 2>&5
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; then
3945 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3946 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3947 # work properly (i.e., refer to `conftest.exe'), while it won't with
3949 for ac_file in conftest.exe conftest conftest.*; do
3950 test -f "$ac_file" || continue
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3962 See \`config.log' for more details." >&5
3963 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3964 See \`config.log' for more details." >&2;}
3965 { (exit 1); exit 1; }; }; }
3968 rm -f conftest$ac_cv_exeext
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3975 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3976 $as_echo_n "checking for suffix of object files... " >&6; }
3977 if test "${ac_cv_objext+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3995 rm -f conftest.o conftest.obj
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compile") 2>&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; then
4007 for ac_file in conftest.o conftest.obj conftest.*; do
4008 test -f "$ac_file" || continue;
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016 $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4022 See \`config.log' for more details." >&5
4023 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details." >&2;}
4025 { (exit 1); exit 1; }; }; }
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4034 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4036 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4037 $as_echo_n "(cached) " >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4064 $as_echo "$ac_try_echo") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } && {
4072 test -z "$ac_c_werror_flag" ||
4073 test ! -s conftest.err
4074 } && test -s conftest.$ac_objext; then
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4087 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4088 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4089 if test $ac_compiler_gnu = yes; then
4094 ac_test_CFLAGS=${CFLAGS+set}
4095 ac_save_CFLAGS=$CFLAGS
4096 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4097 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4098 if test "${ac_cv_prog_cc_g+set}" = set; then
4099 $as_echo_n "(cached) " >&6
4101 ac_save_c_werror_flag=$ac_c_werror_flag
4102 ac_c_werror_flag=yes
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.$ac_objext; then
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4144 cat >conftest.$ac_ext <<_ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h. */
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4166 $as_echo "$ac_try_echo") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4199 rm -f conftest.$ac_objext
4200 if { (ac_try="$ac_compile"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.$ac_objext; then
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 ac_c_werror_flag=$ac_save_c_werror_flag
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4235 $as_echo "$ac_cv_prog_cc_g" >&6; }
4236 if test "$ac_test_CFLAGS" = set; then
4237 CFLAGS=$ac_save_CFLAGS
4238 elif test $ac_cv_prog_cc_g = yes; then
4239 if test "$GCC" = yes; then
4245 if test "$GCC" = yes; then
4251 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4253 if test "${ac_cv_prog_cc_c89+set}" = set; then
4254 $as_echo_n "(cached) " >&6
4256 ac_cv_prog_cc_c89=no
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4266 #include <sys/types.h>
4267 #include <sys/stat.h>
4268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4269 struct buf { int x; };
4270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4271 static char *e (p, i)
4277 static char *f (char * (*g) (char **, int), char **p, ...)
4282 s = g (p, va_arg (v,int));
4287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4288 function prototypes and stuff, but not '\xHH' hex character constants.
4289 These don't provoke an error unfortunately, instead are silently treated
4290 as 'x'. The following induces an error, until -std is added to get
4291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4292 array size at least. It's necessary to write '\x00'==0 to get something
4293 that's true only with -std. */
4294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4297 inside strings and character constants. */
4299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4301 int test (int i, double x);
4302 struct s1 {int (*f) (int a);};
4303 struct s2 {int (*f) (double a);};
4304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4318 CC="$ac_save_CC $ac_arg"
4319 rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4326 $as_echo "$ac_try_echo") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_prog_cc_c89=$ac_arg
4339 $as_echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4345 rm -f core conftest.err conftest.$ac_objext
4346 test "x$ac_cv_prog_cc_c89" != "xno" && break
4348 rm -f conftest.$ac_ext
4353 case "x$ac_cv_prog_cc_c89" in
4355 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4356 $as_echo "none needed" >&6; } ;;
4358 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4359 $as_echo "unsupported" >&6; } ;;
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372 DEPDIR="${am__leading_dot}deps"
4374 ac_config_commands="$ac_config_commands depfiles"
4377 am_make=${MAKE-make}
4378 cat > confinc << 'END'
4380 @echo this is the am__doit target
4383 # If we don't find an include directive, just comment out the code.
4384 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4385 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4389 # First try GNU make style include.
4390 echo "include confinc" > confmf
4391 # Ignore all kinds of additional output from `make'.
4392 case `$am_make -s -f confmf 2> /dev/null` in #(
4393 *the\ am__doit\ target*)
4399 # Now try BSD make style include.
4400 if test "$am__include" = "#"; then
4401 echo '.include "confinc"' > confmf
4402 case `$am_make -s -f confmf 2> /dev/null` in #(
4403 *the\ am__doit\ target*)
4404 am__include=.include
4412 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4413 $as_echo "$_am_result" >&6; }
4414 rm -f confinc confmf
4416 # Check whether --enable-dependency-tracking was given.
4417 if test "${enable_dependency_tracking+set}" = set; then
4418 enableval=$enable_dependency_tracking;
4421 if test "x$enable_dependency_tracking" != xno; then
4422 am_depcomp="$ac_aux_dir/depcomp"
4425 if test "x$enable_dependency_tracking" != xno; then
4435 depcc="$CC" am_compiler_list=
4437 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4438 $as_echo_n "checking dependency style of $depcc... " >&6; }
4439 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4443 # We make a subdir and do the tests there. Otherwise we can end up
4444 # making bogus files that we don't know about and never remove. For
4445 # instance it was reported that on HP-UX the gcc test will end up
4446 # making a dummy file named `D' -- because `-MD' means `put the output
4449 # Copy depcomp to subdir because otherwise we won't find it if we're
4450 # using a relative directory.
4451 cp "$am_depcomp" conftest.dir
4453 # We will build objects and dependencies in a subdirectory because
4454 # it helps to detect inapplicable dependency modes. For instance
4455 # both Tru64's cc and ICC support -MD to output dependencies as a
4456 # side effect of compilation, but ICC will put the dependencies in
4457 # the current directory while Tru64 will put them in the object
4461 am_cv_CC_dependencies_compiler_type=none
4462 if test "$am_compiler_list" = ""; then
4463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4466 case " $depcc " in #(
4467 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4470 for depmode in $am_compiler_list; do
4471 # Setup a source with many dependencies, because some compilers
4472 # like to wrap large dependency lists on column 80 (with \), and
4473 # we should not choose a depcomp mode which is confused by this.
4475 # We need to recreate these files for each test, as the compiler may
4476 # overwrite some of them when testing with obscure command lines.
4477 # This happens at least with the AIX C compiler.
4479 for i in 1 2 3 4 5 6; do
4480 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4481 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4482 # Solaris 8's {/usr,}/bin/sh.
4483 touch sub/conftst$i.h
4485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4488 # mode. It turns out that the SunPro C++ compiler does not properly
4489 # handle `-M -o', and we need to detect this. Also, some Intel
4490 # versions had trouble with output in subdirs
4491 am__obj=sub/conftest.${OBJEXT-o}
4492 am__minus_obj="-o $am__obj"
4495 # This depmode causes a compiler race in universal mode.
4496 test "$am__universal" = false || continue
4499 # after this tag, mechanisms are not by side-effect, so they'll
4500 # only be used when explicitly requested
4501 if test "x$enable_dependency_tracking" = xyes; then
4507 msvisualcpp | msvcmsys)
4508 # This compiler won't grok `-c -o', but also, the minuso test has
4509 # not run yet. These depmodes are late enough in the game, and
4510 # so weak that their functioning should not be impacted.
4511 am__obj=conftest.${OBJEXT-o}
4516 if depmode=$depmode \
4517 source=sub/conftest.c object=$am__obj \
4518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4519 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4520 >/dev/null 2>conftest.err &&
4521 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4523 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4524 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4525 # icc doesn't choke on unknown options, it will just issue warnings
4526 # or remarks (even with -Werror). So we grep stderr for any message
4527 # that says an option was ignored or not supported.
4528 # When given -MP, icc 7.0 and 7.1 complain thusly:
4529 # icc: Command line warning: ignoring option '-M'; no argument required
4530 # The diagnosis changed in icc 8.0:
4531 # icc: Command line remark: option '-MP' not supported
4532 if (grep 'ignoring option' conftest.err ||
4533 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4534 am_cv_CC_dependencies_compiler_type=$depmode
4543 am_cv_CC_dependencies_compiler_type=none
4547 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4548 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4549 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4552 test "x$enable_dependency_tracking" != xno \
4553 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4555 am__fastdepCC_FALSE='#'
4557 am__fastdepCC_TRUE='#'
4558 am__fastdepCC_FALSE=
4562 if test -n "$ac_tool_prefix"; then
4563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4564 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_RANLIB+set}" = set; then
4568 $as_echo_n "(cached) " >&6
4570 if test -n "$RANLIB"; then
4571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 RANLIB=$ac_cv_prog_RANLIB
4591 if test -n "$RANLIB"; then
4592 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4593 $as_echo "$RANLIB" >&6; }
4595 { $as_echo "$as_me:$LINENO: result: no" >&5
4596 $as_echo "no" >&6; }
4601 if test -z "$ac_cv_prog_RANLIB"; then
4602 ac_ct_RANLIB=$RANLIB
4603 # Extract the first word of "ranlib", so it can be a program name with args.
4604 set dummy ranlib; ac_word=$2
4605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$ac_ct_RANLIB"; then
4611 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_ac_ct_RANLIB="ranlib"
4621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4631 if test -n "$ac_ct_RANLIB"; then
4632 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4633 $as_echo "$ac_ct_RANLIB" >&6; }
4635 { $as_echo "$as_me:$LINENO: result: no" >&5
4636 $as_echo "no" >&6; }
4639 if test "x$ac_ct_RANLIB" = x; then
4642 case $cross_compiling:$ac_tool_warned in
4644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646 ac_tool_warned=yes ;;
4648 RANLIB=$ac_ct_RANLIB
4651 RANLIB="$ac_cv_prog_RANLIB"
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4662 # On Suns, sometimes $CPP names a directory.
4663 if test -n "$CPP" && test -d "$CPP"; then
4666 if test -z "$CPP"; then
4667 if test "${ac_cv_prog_CPP+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4670 # Double quotes because CPP needs to be expanded
4671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4674 for ac_c_preproc_warn_flag in '' yes
4676 # Use a header file that comes with gcc, so configuring glibc
4677 # with a fresh cross-compiler works.
4678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 # <limits.h> exists even on freestanding compilers.
4680 # On the NeXT, cc -E runs the code through the compiler's parser,
4681 # not just through cpp. "Syntax error" is here to catch this case.
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 # include <limits.h>
4691 # include <assert.h>
4695 if { (ac_try="$ac_cpp conftest.$ac_ext"
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null && {
4709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 # Broken: fails on valid input.
4721 rm -f conftest.err conftest.$ac_ext
4723 # OK, works on sane cases. Now check whether nonexistent headers
4724 # can be detected and how.
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <ac_nonexistent.h>
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4750 # Broken: success on invalid input.
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 # Passes both tests.
4761 rm -f conftest.err conftest.$ac_ext
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.$ac_ext
4766 if $ac_preproc_ok; then
4778 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4779 $as_echo "$CPP" >&6; }
4781 for ac_c_preproc_warn_flag in '' yes
4783 # Use a header file that comes with gcc, so configuring glibc
4784 # with a fresh cross-compiler works.
4785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786 # <limits.h> exists even on freestanding compilers.
4787 # On the NeXT, cc -E runs the code through the compiler's parser,
4788 # not just through cpp. "Syntax error" is here to catch this case.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 # include <limits.h>
4798 # include <assert.h>
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4808 $as_echo "$ac_try_echo") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null && {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4821 $as_echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 # Broken: fails on valid input.
4828 rm -f conftest.err conftest.$ac_ext
4830 # OK, works on sane cases. Now check whether nonexistent headers
4831 # can be detected and how.
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 #include <ac_nonexistent.h>
4840 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev/null && {
4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4857 # Broken: success on invalid input.
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Passes both tests.
4868 rm -f conftest.err conftest.$ac_ext
4871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4872 rm -f conftest.err conftest.$ac_ext
4873 if $ac_preproc_ok; then
4876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4878 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4879 See \`config.log' for more details." >&5
4880 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4881 See \`config.log' for more details." >&2;}
4882 { (exit 1); exit 1; }; }; }
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4893 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4894 if test "${ac_cv_path_GREP+set}" = set; then
4895 $as_echo_n "(cached) " >&6
4897 if test -z "$GREP"; then
4898 ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in grep ggrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910 # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4916 $as_echo_n 0123456789 >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'GREP' >> "conftest.nl"
4923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 ac_count=`expr $ac_count + 1`
4926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_GREP="$ac_path_GREP"
4929 ac_path_GREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 $ac_path_GREP_found && break 3
4942 if test -z "$ac_cv_path_GREP"; then
4943 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4944 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4945 { (exit 1); exit 1; }; }
4948 ac_cv_path_GREP=$GREP
4952 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4953 $as_echo "$ac_cv_path_GREP" >&6; }
4954 GREP="$ac_cv_path_GREP"
4957 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4958 $as_echo_n "checking for egrep... " >&6; }
4959 if test "${ac_cv_path_EGREP+set}" = set; then
4960 $as_echo_n "(cached) " >&6
4962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4963 then ac_cv_path_EGREP="$GREP -E"
4965 if test -z "$EGREP"; then
4966 ac_path_EGREP_found=false
4967 # Loop through the user's path and test for each of PROGNAME-LIST
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4972 test -z "$as_dir" && as_dir=.
4973 for ac_prog in egrep; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4976 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4977 # Check for GNU ac_path_EGREP and select it if it is found.
4978 # Check for GNU $ac_path_EGREP
4979 case `"$ac_path_EGREP" --version 2>&1` in
4981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4984 $as_echo_n 0123456789 >"conftest.in"
4987 cat "conftest.in" "conftest.in" >"conftest.tmp"
4988 mv "conftest.tmp" "conftest.in"
4989 cp "conftest.in" "conftest.nl"
4990 $as_echo 'EGREP' >> "conftest.nl"
4991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4993 ac_count=`expr $ac_count + 1`
4994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4995 # Best one so far, save it but keep looking for a better one
4996 ac_cv_path_EGREP="$ac_path_EGREP"
4997 ac_path_EGREP_max=$ac_count
4999 # 10*(2^10) chars as input seems more than enough
5000 test $ac_count -gt 10 && break
5002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5005 $ac_path_EGREP_found && break 3
5010 if test -z "$ac_cv_path_EGREP"; then
5011 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5012 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5013 { (exit 1); exit 1; }; }
5016 ac_cv_path_EGREP=$EGREP
5021 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5022 $as_echo "$ac_cv_path_EGREP" >&6; }
5023 EGREP="$ac_cv_path_EGREP"
5026 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5027 $as_echo_n "checking for ANSI C header files... " >&6; }
5028 if test "${ac_cv_header_stdc+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058 (eval "$ac_compile") 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest.$ac_objext; then
5068 ac_cv_header_stdc=yes
5070 $as_echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_header_stdc=no
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 if test $ac_cv_header_stdc = yes; then
5079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090 $EGREP "memchr" >/dev/null 2>&1; then
5093 ac_cv_header_stdc=no
5099 if test $ac_cv_header_stdc = yes; then
5100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111 $EGREP "free" >/dev/null 2>&1; then
5114 ac_cv_header_stdc=no
5120 if test $ac_cv_header_stdc = yes; then
5121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5122 if test "$cross_compiling" = yes; then
5125 cat >conftest.$ac_ext <<_ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5133 #if ((' ' & 0x0FF) == 0x020)
5134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5137 # define ISLOWER(c) \
5138 (('a' <= (c) && (c) <= 'i') \
5139 || ('j' <= (c) && (c) <= 'r') \
5140 || ('s' <= (c) && (c) <= 'z'))
5141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5149 for (i = 0; i < 256; i++)
5150 if (XOR (islower (i), ISLOWER (i))
5151 || toupper (i) != TOUPPER (i))
5156 rm -f conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_link") 2>&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5168 { (case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174 (eval "$ac_try") 2>&5
5176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; }; then
5180 $as_echo "$as_me: program exited with status $ac_status" >&5
5181 $as_echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5185 ac_cv_header_stdc=no
5187 rm -rf conftest.dSYM
5188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5195 $as_echo "$ac_cv_header_stdc" >&6; }
5196 if test $ac_cv_header_stdc = yes; then
5198 cat >>confdefs.h <<\_ACEOF
5199 #define STDC_HEADERS 1
5204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5215 inttypes.h stdint.h unistd.h
5217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5219 $as_echo_n "checking for $ac_header... " >&6; }
5220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5221 $as_echo_n "(cached) " >&6
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5231 #include <$ac_header>
5233 rm -f conftest.$ac_objext
5234 if { (ac_try="$ac_compile"
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240 $as_echo "$ac_try_echo") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5243 grep -v '^ *+' conftest.er1 >conftest.err
5245 cat conftest.err >&5
5246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5251 eval "$as_ac_Header=yes"
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5256 eval "$as_ac_Header=no"
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_res=`eval 'as_val=${'$as_ac_Header'}
5262 $as_echo "$as_val"'`
5263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5264 $as_echo "$ac_res" >&6; }
5265 as_val=`eval 'as_val=${'$as_ac_Header'}
5266 $as_echo "$as_val"'`
5267 if test "x$as_val" = x""yes; then
5268 cat >>confdefs.h <<_ACEOF
5269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5278 if test "${ac_cv_header_minix_config_h+set}" = set; then
5279 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5280 $as_echo_n "checking for minix/config.h... " >&6; }
5281 if test "${ac_cv_header_minix_config_h+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5285 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5287 # Is the header compilable?
5288 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5289 $as_echo_n "checking minix/config.h usability... " >&6; }
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 $ac_includes_default
5297 #include <minix/config.h>
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1 >conftest.err
5311 cat conftest.err >&5
5312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 ac_header_compiler=yes
5319 $as_echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 ac_header_compiler=no
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327 $as_echo "$ac_header_compiler" >&6; }
5329 # Is the header present?
5330 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5331 $as_echo_n "checking minix/config.h presence... " >&6; }
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <minix/config.h>
5340 if { (ac_try="$ac_cpp conftest.$ac_ext"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5346 $as_echo "$ac_try_echo") >&5
5347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } >/dev/null && {
5354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5357 ac_header_preproc=yes
5359 $as_echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_header_preproc=no
5365 rm -f conftest.err conftest.$ac_ext
5366 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5367 $as_echo "$ac_header_preproc" >&6; }
5369 # So? What about this header?
5370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5372 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5373 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5374 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5375 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5376 ac_header_preproc=yes
5379 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5380 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5382 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5383 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5384 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5385 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5386 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5387 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5388 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5389 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5390 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5394 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5395 $as_echo_n "checking for minix/config.h... " >&6; }
5396 if test "${ac_cv_header_minix_config_h+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5399 ac_cv_header_minix_config_h=$ac_header_preproc
5401 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5402 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5405 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5412 if test "$MINIX" = yes; then
5414 cat >>confdefs.h <<\_ACEOF
5415 #define _POSIX_SOURCE 1
5419 cat >>confdefs.h <<\_ACEOF
5420 #define _POSIX_1_SOURCE 2
5424 cat >>confdefs.h <<\_ACEOF
5432 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5433 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5434 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5444 # define __EXTENSIONS__ 1
5445 $ac_includes_default
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461 $as_echo "$ac_try_echo") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 ac_cv_safe_to_define___extensions__=yes
5474 $as_echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_cv_safe_to_define___extensions__=no
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5483 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5484 test $ac_cv_safe_to_define___extensions__ = yes &&
5485 cat >>confdefs.h <<\_ACEOF
5486 #define __EXTENSIONS__ 1
5489 cat >>confdefs.h <<\_ACEOF
5490 #define _ALL_SOURCE 1
5493 cat >>confdefs.h <<\_ACEOF
5494 #define _GNU_SOURCE 1
5497 cat >>confdefs.h <<\_ACEOF
5498 #define _POSIX_PTHREAD_SEMANTICS 1
5501 cat >>confdefs.h <<\_ACEOF
5502 #define _TANDEM_SOURCE 1
5511 # Check whether --enable-threads was given.
5512 if test "${enable_threads+set}" = set; then
5513 enableval=$enable_threads; gl_use_threads=$enableval
5516 osf*) gl_use_threads=no ;;
5517 *) gl_use_threads=yes ;;
5522 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5523 # For using <pthread.h>:
5526 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5527 # groks <pthread.h>. cc also understands the flag -pthread, but
5528 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5529 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5530 # causes the AC_TRY_LINK test below to succeed unexpectedly,
5531 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5532 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5535 # Some systems optimize for single-threaded programs by default, and
5536 # need special flags to disable these optimizations. For example, the
5537 # definition of 'errno' in <errno.h>.
5539 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5540 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5554 # for constant arguments. Useless!
5555 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5556 $as_echo_n "checking for working alloca.h... " >&6; }
5557 if test "${ac_cv_working_alloca_h+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5570 char *p = (char *) alloca (2 * sizeof (int));
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (ac_try="$ac_link"
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5583 $as_echo "$ac_try_echo") >&5
5584 (eval "$ac_link") 2>conftest.er1
5586 grep -v '^ *+' conftest.er1 >conftest.err
5588 cat conftest.err >&5
5589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest$ac_exeext && {
5594 test "$cross_compiling" = yes ||
5595 $as_test_x conftest$ac_exeext
5597 ac_cv_working_alloca_h=yes
5599 $as_echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cv_working_alloca_h=no
5605 rm -rf conftest.dSYM
5606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5607 conftest$ac_exeext conftest.$ac_ext
5609 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5610 $as_echo "$ac_cv_working_alloca_h" >&6; }
5611 if test $ac_cv_working_alloca_h = yes; then
5613 cat >>confdefs.h <<\_ACEOF
5614 #define HAVE_ALLOCA_H 1
5619 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
5620 $as_echo_n "checking for alloca... " >&6; }
5621 if test "${ac_cv_func_alloca_works+set}" = set; then
5622 $as_echo_n "(cached) " >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5631 # define alloca __builtin_alloca
5634 # include <malloc.h>
5635 # define alloca _alloca
5637 # ifdef HAVE_ALLOCA_H
5638 # include <alloca.h>
5643 # ifndef alloca /* predefined by HP cc +Olibcalls */
5654 char *p = (char *) alloca (1);
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (ac_try="$ac_link"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5667 $as_echo "$ac_try_echo") >&5
5668 (eval "$ac_link") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_c_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest$ac_exeext && {
5678 test "$cross_compiling" = yes ||
5679 $as_test_x conftest$ac_exeext
5681 ac_cv_func_alloca_works=yes
5683 $as_echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 ac_cv_func_alloca_works=no
5689 rm -rf conftest.dSYM
5690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5691 conftest$ac_exeext conftest.$ac_ext
5693 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5694 $as_echo "$ac_cv_func_alloca_works" >&6; }
5696 if test $ac_cv_func_alloca_works = yes; then
5698 cat >>confdefs.h <<\_ACEOF
5699 #define HAVE_ALLOCA 1
5703 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5704 # that cause trouble. Some versions do not even contain alloca or
5705 # contain a buggy version. If you still want to use their alloca,
5706 # use ar to extract alloca.o from them instead of compiling alloca.c.
5712 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5714 cat >>confdefs.h <<\_ACEOF
5719 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5720 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5721 if test "${ac_cv_os_cray+set}" = set; then
5722 $as_echo_n "(cached) " >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #if defined CRAY && ! defined CRAY2
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 $EGREP "webecray" >/dev/null 2>&1; then
5746 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5747 $as_echo "$ac_cv_os_cray" >&6; }
5748 if test $ac_cv_os_cray = yes; then
5749 for ac_func in _getb67 GETB67 getb67; do
5750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5752 $as_echo_n "checking for $ac_func... " >&6; }
5753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5754 $as_echo_n "(cached) " >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5764 #define $ac_func innocuous_$ac_func
5766 /* System header to define __stub macros and hopefully few prototypes,
5767 which can conflict with char $ac_func (); below.
5768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 <limits.h> exists even on freestanding compilers. */
5772 # include <limits.h>
5774 # include <assert.h>
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined __stub_$ac_func || defined __stub___$ac_func
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808 $as_echo "$ac_try_echo") >&5
5809 (eval "$ac_link") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest$ac_exeext && {
5819 test "$cross_compiling" = yes ||
5820 $as_test_x conftest$ac_exeext
5822 eval "$as_ac_var=yes"
5824 $as_echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 eval "$as_ac_var=no"
5830 rm -rf conftest.dSYM
5831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5832 conftest$ac_exeext conftest.$ac_ext
5834 ac_res=`eval 'as_val=${'$as_ac_var'}
5835 $as_echo "$as_val"'`
5836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 as_val=`eval 'as_val=${'$as_ac_var'}
5839 $as_echo "$as_val"'`
5840 if test "x$as_val" = x""yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define CRAY_STACKSEG_END $ac_func
5852 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5853 $as_echo_n "checking stack direction for C alloca... " >&6; }
5854 if test "${ac_cv_c_stack_direction+set}" = set; then
5855 $as_echo_n "(cached) " >&6
5857 if test "$cross_compiling" = yes; then
5858 ac_cv_c_stack_direction=0
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 $ac_includes_default
5868 find_stack_direction ()
5870 static char *addr = 0;
5875 return find_stack_direction ();
5878 return (&dummy > addr) ? 1 : -1;
5884 return find_stack_direction () < 0;
5887 rm -f conftest$ac_exeext
5888 if { (ac_try="$ac_link"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894 $as_echo "$ac_try_echo") >&5
5895 (eval "$ac_link") 2>&5
5897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5904 $as_echo "$ac_try_echo") >&5
5905 (eval "$ac_try") 2>&5
5907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_c_stack_direction=1
5911 $as_echo "$as_me: program exited with status $ac_status" >&5
5912 $as_echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_cv_c_stack_direction=-1
5918 rm -rf conftest.dSYM
5919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5925 $as_echo "$ac_cv_c_stack_direction" >&6; }
5927 cat >>confdefs.h <<_ACEOF
5928 #define STACK_DIRECTION $ac_cv_c_stack_direction
5939 for ac_header in $gl_header_list
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5944 $as_echo_n "checking for $ac_header... " >&6; }
5945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5946 $as_echo_n "(cached) " >&6
5948 ac_res=`eval 'as_val=${'$as_ac_Header'}
5949 $as_echo "$as_val"'`
5950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5951 $as_echo "$ac_res" >&6; }
5953 # Is the header compilable?
5954 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5955 $as_echo_n "checking $ac_header usability... " >&6; }
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 #include <$ac_header>
5965 rm -f conftest.$ac_objext
5966 if { (ac_try="$ac_compile"
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973 (eval "$ac_compile") 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest.$ac_objext; then
5983 ac_header_compiler=yes
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_header_compiler=no
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5993 $as_echo "$ac_header_compiler" >&6; }
5995 # Is the header present?
5996 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5997 $as_echo_n "checking $ac_header presence... " >&6; }
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <$ac_header>
6006 if { (ac_try="$ac_cpp conftest.$ac_ext"
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6012 $as_echo "$ac_try_echo") >&5
6013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null && {
6020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6023 ac_header_preproc=yes
6025 $as_echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_header_preproc=no
6031 rm -f conftest.err conftest.$ac_ext
6032 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6033 $as_echo "$ac_header_preproc" >&6; }
6035 # So? What about this header?
6036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6039 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6042 ac_header_preproc=yes
6045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6046 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6048 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6050 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6052 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6054 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6056 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6061 $as_echo_n "checking for $ac_header... " >&6; }
6062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6063 $as_echo_n "(cached) " >&6
6065 eval "$as_ac_Header=\$ac_header_preproc"
6067 ac_res=`eval 'as_val=${'$as_ac_Header'}
6068 $as_echo "$as_val"'`
6069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6070 $as_echo "$ac_res" >&6; }
6073 as_val=`eval 'as_val=${'$as_ac_Header'}
6074 $as_echo "$as_val"'`
6075 if test "x$as_val" = x""yes; then
6076 cat >>confdefs.h <<_ACEOF
6077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6090 $as_echo_n "checking for inline... " >&6; }
6091 if test "${ac_cv_c_inline+set}" = set; then
6092 $as_echo_n "(cached) " >&6
6095 for ac_kw in inline __inline__ __inline; do
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6104 static $ac_kw foo_t static_foo () {return 0; }
6105 $ac_kw foo_t foo () {return 0; }
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116 $as_echo "$ac_try_echo") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 ac_cv_c_inline=$ac_kw
6129 $as_echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 test "$ac_cv_c_inline" != no && break
6140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6141 $as_echo "$ac_cv_c_inline" >&6; }
6144 case $ac_cv_c_inline in
6147 case $ac_cv_c_inline in
6149 *) ac_val=$ac_cv_c_inline;;
6151 cat >>confdefs.h <<_ACEOF
6153 #define inline $ac_val
6159 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
6160 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6161 if test "${ac_cv_c_restrict+set}" = set; then
6162 $as_echo_n "(cached) " >&6
6165 # The order here caters to the fact that C++ does not require restrict.
6166 for ac_kw in __restrict __restrict__ _Restrict restrict; do
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 typedef int * int_ptr;
6174 int foo (int_ptr $ac_kw ip) {
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6195 $as_echo "$ac_try_echo") >&5
6196 (eval "$ac_compile") 2>conftest.er1
6198 grep -v '^ *+' conftest.er1 >conftest.err
6200 cat conftest.err >&5
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_c_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest.$ac_objext; then
6206 ac_cv_c_restrict=$ac_kw
6208 $as_echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 test "$ac_cv_c_restrict" != no && break
6219 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
6220 $as_echo "$ac_cv_c_restrict" >&6; }
6223 case $ac_cv_c_restrict in
6225 no) cat >>confdefs.h <<\_ACEOF
6226 #define restrict /**/
6229 *) cat >>confdefs.h <<_ACEOF
6230 #define restrict $ac_cv_c_restrict
6237 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6238 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6239 if test "${gl_cv_have_include_next+set}" = set; then
6240 $as_echo_n "(cached) " >&6
6242 rm -rf conftestd1 conftestd2
6243 mkdir conftestd1 conftestd2
6244 cat <<EOF > conftestd1/conftest.h
6245 #define DEFINED_IN_CONFTESTD1
6246 #include_next <conftest.h>
6247 #ifdef DEFINED_IN_CONFTESTD2
6250 #error "include_next doesn't work"
6253 cat <<EOF > conftestd2/conftest.h
6254 #ifndef DEFINED_IN_CONFTESTD1
6255 #error "include_next test doesn't work"
6257 #define DEFINED_IN_CONFTESTD2
6259 save_CPPFLAGS="$CPPFLAGS"
6260 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
6261 cat >conftest.$ac_ext <<_ACEOF
6262 #include <conftest.h>
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6271 $as_echo "$ac_try_echo") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6274 grep -v '^ *+' conftest.er1 >conftest.err
6276 cat conftest.err >&5
6277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest.$ac_objext; then
6282 gl_cv_have_include_next=yes
6284 $as_echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 gl_cv_have_include_next=no
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 CPPFLAGS="$save_CPPFLAGS"
6292 rm -rf conftestd1 conftestd2
6295 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
6296 $as_echo "$gl_cv_have_include_next" >&6; }
6297 if test $gl_cv_have_include_next = yes; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_INCLUDE_NEXT 1
6305 INCLUDE_NEXT=include_next
6307 INCLUDE_NEXT=include
6342 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
6343 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
6344 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <sys/socket.h>
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6370 $as_echo "$ac_try_echo") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 gl_cv_header_sys_socket_h_selfcontained=yes
6383 $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 gl_cv_header_sys_socket_h_selfcontained=no
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
6393 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
6394 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
6397 SYS_SOCKET_H='sys/socket.h'
6410 if test $gl_cv_have_include_next = yes; then
6411 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6413 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
6414 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
6415 if test "${gl_cv_next_sys_socket_h+set}" = set; then
6416 $as_echo_n "(cached) " >&6
6419 if test $ac_cv_header_sys_socket_h = yes; then
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <sys/socket.h>
6429 gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 sed -n '\#/sys/socket.h#{
6431 s#.*"\(.*/sys/socket.h\)".*#\1#
6437 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6441 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6442 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
6444 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6448 if test $ac_cv_header_sys_socket_h = yes; then
6456 for ac_header in winsock2.h ws2tcpip.h
6458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6461 $as_echo_n "checking for $ac_header... " >&6; }
6462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6463 $as_echo_n "(cached) " >&6
6465 ac_res=`eval 'as_val=${'$as_ac_Header'}
6466 $as_echo "$as_val"'`
6467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6470 # Is the header compilable?
6471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6472 $as_echo_n "checking $ac_header usability... " >&6; }
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6480 #include <$ac_header>
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490 (eval "$ac_compile") 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest.$ac_objext; then
6500 ac_header_compiler=yes
6502 $as_echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_header_compiler=no
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 $as_echo "$ac_header_compiler" >&6; }
6512 # Is the header present?
6513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6514 $as_echo_n "checking $ac_header presence... " >&6; }
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <$ac_header>
6523 if { (ac_try="$ac_cpp conftest.$ac_ext"
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } >/dev/null && {
6537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6540 ac_header_preproc=yes
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_preproc=no
6548 rm -f conftest.err conftest.$ac_ext
6549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 $as_echo "$ac_header_preproc" >&6; }
6552 # So? What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6559 ac_header_preproc=yes
6562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6565 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6569 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 $as_echo_n "checking for $ac_header... " >&6; }
6579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6580 $as_echo_n "(cached) " >&6
6582 eval "$as_ac_Header=\$ac_header_preproc"
6584 ac_res=`eval 'as_val=${'$as_ac_Header'}
6585 $as_echo "$as_val"'`
6586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6587 $as_echo "$ac_res" >&6; }
6590 as_val=`eval 'as_val=${'$as_ac_Header'}
6591 $as_echo "$as_val"'`
6592 if test "x$as_val" = x""yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 if test $ac_cv_header_winsock2_h = yes; then
6606 if test $ac_cv_header_ws2tcpip_h = yes; then
6640 { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
6641 $as_echo_n "checking for IPv4 sockets... " >&6; }
6642 if test "${gl_cv_socket_ipv4+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6645 cat >conftest.$ac_ext <<_ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6651 #include <sys/types.h>
6652 #ifdef HAVE_SYS_SOCKET_H
6653 #include <sys/socket.h>
6655 #ifdef HAVE_NETINET_IN_H
6656 #include <netinet/in.h>
6658 #ifdef HAVE_WINSOCK2_H
6659 #include <winsock2.h>
6664 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
6665 if (&x && &y && &z) return 0;
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6680 grep -v '^ *+' conftest.er1 >conftest.err
6682 cat conftest.err >&5
6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688 gl_cv_socket_ipv4=yes
6690 $as_echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 gl_cv_socket_ipv4=no
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
6700 $as_echo "$gl_cv_socket_ipv4" >&6; }
6701 if test $gl_cv_socket_ipv4 = yes; then
6703 cat >>confdefs.h <<\_ACEOF
6709 { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
6710 $as_echo_n "checking for IPv6 sockets... " >&6; }
6711 if test "${gl_cv_socket_ipv6+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 #include <sys/types.h>
6721 #ifdef HAVE_SYS_SOCKET_H
6722 #include <sys/socket.h>
6724 #ifdef HAVE_NETINET_IN_H
6725 #include <netinet/in.h>
6727 #ifdef HAVE_WINSOCK2_H
6728 #include <winsock2.h>
6733 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
6734 if (&x && &y && &z) return 0;
6739 rm -f conftest.$ac_objext
6740 if { (ac_try="$ac_compile"
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6746 $as_echo "$ac_try_echo") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 gl_cv_socket_ipv6=yes
6759 $as_echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 gl_cv_socket_ipv6=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
6769 $as_echo "$gl_cv_socket_ipv6" >&6; }
6770 if test $gl_cv_socket_ipv6 = yes; then
6772 cat >>confdefs.h <<\_ACEOF
6779 if test -z "$GETOPT_H"; then
6781 for ac_header in getopt.h
6783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6786 $as_echo_n "checking for $ac_header... " >&6; }
6787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6788 $as_echo_n "(cached) " >&6
6790 ac_res=`eval 'as_val=${'$as_ac_Header'}
6791 $as_echo "$as_val"'`
6792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6795 # Is the header compilable?
6796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6797 $as_echo_n "checking $ac_header usability... " >&6; }
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 $ac_includes_default
6805 #include <$ac_header>
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815 (eval "$ac_compile") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest.$ac_objext; then
6825 ac_header_compiler=yes
6827 $as_echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 ac_header_compiler=no
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6835 $as_echo "$ac_header_compiler" >&6; }
6837 # Is the header present?
6838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6839 $as_echo_n "checking $ac_header presence... " >&6; }
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <$ac_header>
6848 if { (ac_try="$ac_cpp conftest.$ac_ext"
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } >/dev/null && {
6862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6865 ac_header_preproc=yes
6867 $as_echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6870 ac_header_preproc=no
6873 rm -f conftest.err conftest.$ac_ext
6874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6875 $as_echo "$ac_header_preproc" >&6; }
6877 # So? What about this header?
6878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6884 ac_header_preproc=yes
6887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6890 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6894 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6903 $as_echo_n "checking for $ac_header... " >&6; }
6904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6905 $as_echo_n "(cached) " >&6
6907 eval "$as_ac_Header=\$ac_header_preproc"
6909 ac_res=`eval 'as_val=${'$as_ac_Header'}
6910 $as_echo "$as_val"'`
6911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6912 $as_echo "$ac_res" >&6; }
6915 as_val=`eval 'as_val=${'$as_ac_Header'}
6916 $as_echo "$as_val"'`
6917 if test "x$as_val" = x""yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 if test -z "$GETOPT_H"; then
6932 for ac_func in getopt_long_only
6934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6936 $as_echo_n "checking for $ac_func... " >&6; }
6937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6938 $as_echo_n "(cached) " >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6948 #define $ac_func innocuous_$ac_func
6950 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func (); below.
6952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953 <limits.h> exists even on freestanding compilers. */
6956 # include <limits.h>
6958 # include <assert.h>
6963 /* Override any GCC internal prototype to avoid an error.
6964 Use char because int might match the return type of a GCC
6965 builtin and then its argument prototype would still apply. */
6970 /* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973 #if defined __stub_$ac_func || defined __stub___$ac_func
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (ac_try="$ac_link"
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_link") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest$ac_exeext && {
7003 test "$cross_compiling" = yes ||
7004 $as_test_x conftest$ac_exeext
7006 eval "$as_ac_var=yes"
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 eval "$as_ac_var=no"
7014 rm -rf conftest.dSYM
7015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7016 conftest$ac_exeext conftest.$ac_ext
7018 ac_res=`eval 'as_val=${'$as_ac_var'}
7019 $as_echo "$as_val"'`
7020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7021 $as_echo "$ac_res" >&6; }
7022 as_val=`eval 'as_val=${'$as_ac_var'}
7023 $as_echo "$as_val"'`
7024 if test "x$as_val" = x""yes; then
7025 cat >>confdefs.h <<_ACEOF
7026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7036 if test -z "$GETOPT_H"; then
7037 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
7038 $as_echo_n "checking whether optreset is declared... " >&6; }
7039 if test "${ac_cv_have_decl_optreset+set}" = set; then
7040 $as_echo_n "(cached) " >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7061 rm -f conftest.$ac_objext
7062 if { (ac_try="$ac_compile"
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069 (eval "$ac_compile") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest.$ac_objext; then
7079 ac_cv_have_decl_optreset=yes
7081 $as_echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_cv_have_decl_optreset=no
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
7090 $as_echo "$ac_cv_have_decl_optreset" >&6; }
7091 if test "x$ac_cv_have_decl_optreset" = x""yes; then
7097 if test -z "$GETOPT_H"; then
7098 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
7099 $as_echo_n "checking for working GNU getopt function... " >&6; }
7100 if test "${gl_cv_func_gnu_getopt+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7103 if test "$cross_compiling" = yes; then
7104 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
7105 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
7106 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
7107 $as_echo_n "(cached) " >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 ac_cv_have_decl_getopt_clip=yes
7148 $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 ac_cv_have_decl_getopt_clip=no
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
7157 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
7158 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
7159 gl_cv_func_gnu_getopt=no
7161 gl_cv_func_gnu_getopt=yes
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7177 myargv[0] = "conftest";
7180 return getopt (2, myargv, "+a") != '?';
7186 rm -f conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194 (eval "$ac_link") 2>&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7198 { (case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_try") 2>&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 gl_cv_func_gnu_getopt=yes
7210 $as_echo "$as_me: program exited with status $ac_status" >&5
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7215 gl_cv_func_gnu_getopt=no
7217 rm -rf conftest.dSYM
7218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7223 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
7224 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
7225 if test "$gl_cv_func_gnu_getopt" = "no"; then
7231 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7232 $as_echo_n "checking whether getenv is declared... " >&6; }
7233 if test "${ac_cv_have_decl_getenv+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261 $as_echo "$ac_try_echo") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 ac_cv_have_decl_getenv=yes
7274 $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_cv_have_decl_getenv=no
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7283 $as_echo "$ac_cv_have_decl_getenv" >&6; }
7284 if test "x$ac_cv_have_decl_getenv" = x""yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_DECL_GETENV 1
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DECL_GETENV 0
7320 if test $gl_cv_have_include_next = yes; then
7321 gl_cv_next_sys_time_h='<'sys/time.h'>'
7323 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
7324 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7325 if test "${gl_cv_next_sys_time_h+set}" = set; then
7326 $as_echo_n "(cached) " >&6
7329 if test $ac_cv_header_sys_time_h = yes; then
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 #include <sys/time.h>
7339 gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7340 sed -n '\#/sys/time.h#{
7341 s#.*"\(.*/sys/time.h\)".*#\1#
7347 gl_cv_next_sys_time_h='<'sys/time.h'>'
7351 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
7352 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7354 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7359 if test $ac_cv_header_sys_time_h = yes; then
7366 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7367 $as_echo_n "checking for struct timeval... " >&6; }
7368 if test "${gl_cv_sys_struct_timeval+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7378 #include <sys/time.h>
7385 static struct timeval x; x.tv_sec = x.tv_usec;
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 gl_cv_sys_struct_timeval=yes
7410 $as_echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 gl_cv_sys_struct_timeval=no
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
7419 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7420 if test $gl_cv_sys_struct_timeval = yes; then
7421 HAVE_STRUCT_TIMEVAL=1
7423 HAVE_STRUCT_TIMEVAL=0
7427 REPLACE_GETTIMEOFDAY=0
7429 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
7430 SYS_TIME_H=sys/time.h
7444 for ac_func in $gl_func_list
7446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7448 $as_echo_n "checking for $ac_func... " >&6; }
7449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7450 $as_echo_n "(cached) " >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7460 #define $ac_func innocuous_$ac_func
7462 /* System header to define __stub macros and hopefully few prototypes,
7463 which can conflict with char $ac_func (); below.
7464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7465 <limits.h> exists even on freestanding compilers. */
7468 # include <limits.h>
7470 # include <assert.h>
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined __stub_$ac_func || defined __stub___$ac_func
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_link") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest$ac_exeext && {
7515 test "$cross_compiling" = yes ||
7516 $as_test_x conftest$ac_exeext
7518 eval "$as_ac_var=yes"
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 eval "$as_ac_var=no"
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7528 conftest$ac_exeext conftest.$ac_ext
7530 ac_res=`eval 'as_val=${'$as_ac_var'}
7531 $as_echo "$as_val"'`
7532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7533 $as_echo "$ac_res" >&6; }
7534 as_val=`eval 'as_val=${'$as_ac_var'}
7535 $as_echo "$as_val"'`
7536 if test "x$as_val" = x""yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7550 if test "X$prefix" = "XNONE"; then
7551 acl_final_prefix="$ac_default_prefix"
7553 acl_final_prefix="$prefix"
7555 if test "X$exec_prefix" = "XNONE"; then
7556 acl_final_exec_prefix='${prefix}'
7558 acl_final_exec_prefix="$exec_prefix"
7560 acl_save_prefix="$prefix"
7561 prefix="$acl_final_prefix"
7562 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7563 prefix="$acl_save_prefix"
7566 # Check whether --with-gnu-ld was given.
7567 if test "${with_gnu_ld+set}" = set; then
7568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7573 # Prepare PATH_SEPARATOR.
7574 # The user is always right.
7575 if test "${PATH_SEPARATOR+set}" != set; then
7576 echo "#! /bin/sh" >conf$$.sh
7577 echo "exit 0" >>conf$$.sh
7579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7587 if test "$GCC" = yes; then
7588 # Check if gcc -print-prog-name=ld gives a path.
7589 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7590 $as_echo_n "checking for ld used by GCC... " >&6; }
7593 # gcc leaves a trailing carriage return which upsets mingw
7594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7599 # Accept absolute paths.
7600 [\\/]* | [A-Za-z]:[\\/]*)
7601 re_direlt='/[^/][^/]*/\.\./'
7602 # Canonicalize the path of ld
7603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7607 test -z "$LD" && LD="$ac_prog"
7610 # If it fails, then pretend we aren't using GCC.
7614 # If it is relative, then search for the first ld in PATH.
7618 elif test "$with_gnu_ld" = yes; then
7619 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7620 $as_echo_n "checking for GNU ld... " >&6; }
7622 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7623 $as_echo_n "checking for non-GNU ld... " >&6; }
7625 if test "${acl_cv_path_LD+set}" = set; then
7626 $as_echo_n "(cached) " >&6
7628 if test -z "$LD"; then
7629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7630 for ac_dir in $PATH; do
7631 test -z "$ac_dir" && ac_dir=.
7632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7633 acl_cv_path_LD="$ac_dir/$ac_prog"
7634 # Check to see if the program is GNU ld. I'd rather use --version,
7635 # but apparently some GNU ld's only accept -v.
7636 # Break only if it was the GNU/non-GNU ld that we prefer.
7637 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7638 *GNU* | *'with BFD'*)
7639 test "$with_gnu_ld" != no && break ;;
7641 test "$with_gnu_ld" != yes && break ;;
7647 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7651 LD="$acl_cv_path_LD"
7652 if test -n "$LD"; then
7653 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7654 $as_echo "$LD" >&6; }
7656 { $as_echo "$as_me:$LINENO: result: no" >&5
7657 $as_echo "no" >&6; }
7659 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7660 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7661 { (exit 1); exit 1; }; }
7662 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7664 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7665 $as_echo_n "(cached) " >&6
7667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7668 case `$LD -v 2>&1 </dev/null` in
7669 *GNU* | *'with BFD'*)
7670 acl_cv_prog_gnu_ld=yes ;;
7672 acl_cv_prog_gnu_ld=no ;;
7675 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7677 with_gnu_ld=$acl_cv_prog_gnu_ld
7682 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7683 $as_echo_n "checking for shared library run path origin... " >&6; }
7684 if test "${acl_cv_rpath+set}" = set; then
7685 $as_echo_n "(cached) " >&6
7688 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7689 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7695 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7696 $as_echo "$acl_cv_rpath" >&6; }
7698 libext="$acl_cv_libext"
7699 shlibext="$acl_cv_shlibext"
7700 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7701 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7702 hardcode_direct="$acl_cv_hardcode_direct"
7703 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7704 # Check whether --enable-rpath was given.
7705 if test "${enable_rpath+set}" = set; then
7706 enableval=$enable_rpath; :
7714 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7715 if test -n "$searchpath"; then
7716 acl_save_IFS="${IFS= }"; IFS=":"
7717 for searchdir in $searchpath; do
7718 if test -d "$searchdir"; then
7719 case "$searchdir" in
7720 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7721 *) searchdir=`cd "$searchdir" && pwd`
7722 case "$searchdir" in
7723 */lib64 ) acl_libdirstem=lib64 ;;
7738 if test "$gl_use_threads" != no; then
7739 { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
7740 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 extern void xyzzy ();
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766 (eval "$ac_link") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext && {
7776 test "$cross_compiling" = yes ||
7777 $as_test_x conftest$ac_exeext
7781 $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7787 rm -rf conftest.dSYM
7788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7789 conftest$ac_exeext conftest.$ac_ext
7790 { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
7791 $as_echo "$gl_have_weak" >&6; }
7792 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7793 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7794 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
7795 if test "${ac_cv_header_pthread_h+set}" = set; then
7796 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7797 $as_echo_n "checking for pthread.h... " >&6; }
7798 if test "${ac_cv_header_pthread_h+set}" = set; then
7799 $as_echo_n "(cached) " >&6
7801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7802 $as_echo "$ac_cv_header_pthread_h" >&6; }
7804 # Is the header compilable?
7805 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
7806 $as_echo_n "checking pthread.h usability... " >&6; }
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 $ac_includes_default
7814 #include <pthread.h>
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_header_compiler=yes
7836 $as_echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7839 ac_header_compiler=no
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 $as_echo "$ac_header_compiler" >&6; }
7846 # Is the header present?
7847 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
7848 $as_echo_n "checking pthread.h presence... " >&6; }
7849 cat >conftest.$ac_ext <<_ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 #include <pthread.h>
7857 if { (ac_try="$ac_cpp conftest.$ac_ext"
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7863 $as_echo "$ac_try_echo") >&5
7864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } >/dev/null && {
7871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7874 ac_header_preproc=yes
7876 $as_echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 ac_header_preproc=no
7882 rm -f conftest.err conftest.$ac_ext
7883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 $as_echo "$ac_header_preproc" >&6; }
7886 # So? What about this header?
7887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7889 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
7890 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
7892 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
7893 ac_header_preproc=yes
7896 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
7897 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
7898 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
7899 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
7900 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
7901 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
7903 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
7904 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
7905 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
7906 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
7907 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
7911 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
7912 $as_echo_n "checking for pthread.h... " >&6; }
7913 if test "${ac_cv_header_pthread_h+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7916 ac_cv_header_pthread_h=$ac_header_preproc
7918 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
7919 $as_echo "$ac_cv_header_pthread_h" >&6; }
7922 if test "x$ac_cv_header_pthread_h" = x""yes; then
7923 gl_have_pthread_h=yes
7925 gl_have_pthread_h=no
7929 if test "$gl_have_pthread_h" = yes; then
7930 # Other possible tests:
7931 # -lpthreads (FSU threads, PCthreads)
7934 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7935 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7936 # the second one only in libpthread, and lock.c needs it.
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 #include <pthread.h>
7947 pthread_mutex_lock((pthread_mutex_t*)0);
7948 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (ac_try="$ac_link"
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest$ac_exeext && {
7971 test "$cross_compiling" = yes ||
7972 $as_test_x conftest$ac_exeext
7976 $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7982 rm -rf conftest.dSYM
7983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7984 conftest$ac_exeext conftest.$ac_ext
7985 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7986 # since it is defined as a macro on OSF/1.)
7987 if test -n "$gl_have_pthread"; then
7988 # The program links fine without libpthread. But it may actually
7989 # need to link with libpthread in order to create multiple threads.
7990 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
7991 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7992 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
7993 $as_echo_n "(cached) " >&6
7995 ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-lpthread $LIBS"
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8004 /* Override any GCC internal prototype to avoid an error.
8005 Use char because int might match the return type of a GCC
8006 builtin and then its argument prototype would still apply. */
8010 char pthread_kill ();
8014 return pthread_kill ();
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_link") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest$ac_exeext && {
8037 test "$cross_compiling" = yes ||
8038 $as_test_x conftest$ac_exeext
8040 ac_cv_lib_pthread_pthread_kill=yes
8042 $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_cv_lib_pthread_pthread_kill=no
8048 rm -rf conftest.dSYM
8049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8054 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8055 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8056 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8057 # On Solaris and HP-UX, most pthread functions exist also in libc.
8058 # Therefore pthread_in_use() needs to actually try to create a
8059 # thread: pthread_create from libc will fail, whereas
8060 # pthread_create will actually create a thread.
8064 cat >>confdefs.h <<\_ACEOF
8065 #define PTHREAD_IN_USE_DETECTION_HARD 1
8073 # Some library is needed. Try libpthread and libc_r.
8074 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
8075 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8076 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
8077 $as_echo_n "(cached) " >&6
8079 ac_check_lib_save_LIBS=$LIBS
8080 LIBS="-lpthread $LIBS"
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8088 /* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
8094 char pthread_kill ();
8098 return pthread_kill ();
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (ac_try="$ac_link"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8110 $as_echo "$ac_try_echo") >&5
8111 (eval "$ac_link") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest$ac_exeext && {
8121 test "$cross_compiling" = yes ||
8122 $as_test_x conftest$ac_exeext
8124 ac_cv_lib_pthread_pthread_kill=yes
8126 $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_lib_pthread_pthread_kill=no
8132 rm -rf conftest.dSYM
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 conftest$ac_exeext conftest.$ac_ext
8135 LIBS=$ac_check_lib_save_LIBS
8137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
8138 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8139 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
8141 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8142 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8145 if test -z "$gl_have_pthread"; then
8147 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
8148 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8149 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
8150 $as_echo_n "(cached) " >&6
8152 ac_check_lib_save_LIBS=$LIBS
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8167 char pthread_kill ();
8171 return pthread_kill ();
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (ac_try="$ac_link"
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183 $as_echo "$ac_try_echo") >&5
8184 (eval "$ac_link") 2>conftest.er1
8186 grep -v '^ *+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest$ac_exeext && {
8194 test "$cross_compiling" = yes ||
8195 $as_test_x conftest$ac_exeext
8197 ac_cv_lib_c_r_pthread_kill=yes
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_lib_c_r_pthread_kill=no
8205 rm -rf conftest.dSYM
8206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS
8210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
8211 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8212 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
8214 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8215 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8220 if test -n "$gl_have_pthread"; then
8221 gl_threads_api=posix
8223 cat >>confdefs.h <<\_ACEOF
8224 #define USE_POSIX_THREADS 1
8227 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8228 if test $gl_have_weak = yes; then
8230 cat >>confdefs.h <<\_ACEOF
8231 #define USE_POSIX_THREADS_WEAK 1
8238 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
8239 # pthread_rwlock_* functions.
8240 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
8241 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
8242 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
8243 $as_echo_n "(cached) " >&6
8245 ac_cv_type_pthread_rwlock_t=no
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #include <pthread.h>
8257 if (sizeof (pthread_rwlock_t))
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8270 $as_echo "$ac_try_echo") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 #include <pthread.h>
8292 if (sizeof ((pthread_rwlock_t)))
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8305 $as_echo "$ac_try_echo") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.$ac_objext; then
8318 $as_echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ac_cv_type_pthread_rwlock_t=yes
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
8335 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
8336 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_PTHREAD_RWLOCK 1
8344 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 #include <pthread.h>
8355 #if __FreeBSD__ == 4
8356 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8358 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && {
8380 test -z "$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 } && test -s conftest.$ac_objext; then
8384 cat >>confdefs.h <<\_ACEOF
8385 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
8389 $as_echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 if test -z "$gl_have_pthread"; then
8400 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8401 gl_have_solaristhread=
8402 gl_save_LIBS="$LIBS"
8403 LIBS="$LIBS -lthread"
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (ac_try="$ac_link"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_link") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest$ac_exeext && {
8438 test "$cross_compiling" = yes ||
8439 $as_test_x conftest$ac_exeext
8441 gl_have_solaristhread=yes
8443 $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8449 rm -rf conftest.dSYM
8450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS="$gl_save_LIBS"
8453 if test -n "$gl_have_solaristhread"; then
8454 gl_threads_api=solaris
8456 LTLIBTHREAD=-lthread
8457 LIBMULTITHREAD="$LIBTHREAD"
8458 LTLIBMULTITHREAD="$LTLIBTHREAD"
8460 cat >>confdefs.h <<\_ACEOF
8461 #define USE_SOLARIS_THREADS 1
8464 if test $gl_have_weak = yes; then
8466 cat >>confdefs.h <<\_ACEOF
8467 #define USE_SOLARIS_THREADS_WEAK 1
8476 if test "$gl_use_threads" = pth; then
8477 gl_save_CPPFLAGS="$CPPFLAGS"
8483 { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
8484 $as_echo_n "checking how to link with libpth... " >&6; }
8485 if test "${ac_cv_libpth_libs+set}" = set; then
8486 $as_echo_n "(cached) " >&6
8494 acl_save_prefix="$prefix"
8495 prefix="$acl_final_prefix"
8496 acl_save_exec_prefix="$exec_prefix"
8497 exec_prefix="$acl_final_exec_prefix"
8499 eval additional_includedir=\"$includedir\"
8500 eval additional_libdir=\"$libdir\"
8502 exec_prefix="$acl_save_exec_prefix"
8503 prefix="$acl_save_prefix"
8506 # Check whether --with-libpth-prefix was given.
8507 if test "${with_libpth_prefix+set}" = set; then
8508 withval=$with_libpth_prefix;
8509 if test "X$withval" = "Xno"; then
8512 if test "X$withval" = "X"; then
8514 acl_save_prefix="$prefix"
8515 prefix="$acl_final_prefix"
8516 acl_save_exec_prefix="$exec_prefix"
8517 exec_prefix="$acl_final_exec_prefix"
8519 eval additional_includedir=\"$includedir\"
8520 eval additional_libdir=\"$libdir\"
8522 exec_prefix="$acl_save_exec_prefix"
8523 prefix="$acl_save_prefix"
8526 additional_includedir="$withval/include"
8527 additional_libdir="$withval/$acl_libdirstem"
8538 names_already_handled=
8539 names_next_round='pth '
8540 while test -n "$names_next_round"; do
8541 names_this_round="$names_next_round"
8543 for name in $names_this_round; do
8545 for n in $names_already_handled; do
8546 if test "$n" = "$name"; then
8551 if test -z "$already_handled"; then
8552 names_already_handled="$names_already_handled $name"
8553 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8554 eval value=\"\$HAVE_LIB$uppername\"
8555 if test -n "$value"; then
8556 if test "$value" = yes; then
8557 eval value=\"\$LIB$uppername\"
8558 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8559 eval value=\"\$LTLIB$uppername\"
8560 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8569 if test $use_additional = yes; then
8570 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8571 found_dir="$additional_libdir"
8572 found_so="$additional_libdir/lib$name.$shlibext"
8573 if test -f "$additional_libdir/lib$name.la"; then
8574 found_la="$additional_libdir/lib$name.la"
8577 if test -f "$additional_libdir/lib$name.$libext"; then
8578 found_dir="$additional_libdir"
8579 found_a="$additional_libdir/lib$name.$libext"
8580 if test -f "$additional_libdir/lib$name.la"; then
8581 found_la="$additional_libdir/lib$name.la"
8586 if test "X$found_dir" = "X"; then
8587 for x in $LDFLAGS $LTLIBPTH; do
8589 acl_save_prefix="$prefix"
8590 prefix="$acl_final_prefix"
8591 acl_save_exec_prefix="$exec_prefix"
8592 exec_prefix="$acl_final_exec_prefix"
8594 exec_prefix="$acl_save_exec_prefix"
8595 prefix="$acl_save_prefix"
8599 dir=`echo "X$x" | sed -e 's/^X-L//'`
8600 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8602 found_so="$dir/lib$name.$shlibext"
8603 if test -f "$dir/lib$name.la"; then
8604 found_la="$dir/lib$name.la"
8607 if test -f "$dir/lib$name.$libext"; then
8609 found_a="$dir/lib$name.$libext"
8610 if test -f "$dir/lib$name.la"; then
8611 found_la="$dir/lib$name.la"
8617 if test "X$found_dir" != "X"; then
8622 if test "X$found_dir" != "X"; then
8623 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8624 if test "X$found_so" != "X"; then
8625 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8626 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8629 for x in $ltrpathdirs; do
8630 if test "X$x" = "X$found_dir"; then
8635 if test -z "$haveit"; then
8636 ltrpathdirs="$ltrpathdirs $found_dir"
8638 if test "$hardcode_direct" = yes; then
8639 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8641 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8642 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8644 for x in $rpathdirs; do
8645 if test "X$x" = "X$found_dir"; then
8650 if test -z "$haveit"; then
8651 rpathdirs="$rpathdirs $found_dir"
8655 for x in $LDFLAGS $LIBPTH; do
8657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
8662 exec_prefix="$acl_save_exec_prefix"
8663 prefix="$acl_save_prefix"
8665 if test "X$x" = "X-L$found_dir"; then
8670 if test -z "$haveit"; then
8671 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8673 if test "$hardcode_minus_L" != no; then
8674 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8676 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8682 if test "X$found_a" != "X"; then
8683 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8685 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8688 additional_includedir=
8689 case "$found_dir" in
8690 */$acl_libdirstem | */$acl_libdirstem/)
8691 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8692 additional_includedir="$basedir/include"
8695 if test "X$additional_includedir" != "X"; then
8696 if test "X$additional_includedir" != "X/usr/include"; then
8698 if test "X$additional_includedir" = "X/usr/local/include"; then
8699 if test -n "$GCC"; then
8701 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8705 if test -z "$haveit"; then
8706 for x in $CPPFLAGS $INCPTH; do
8708 acl_save_prefix="$prefix"
8709 prefix="$acl_final_prefix"
8710 acl_save_exec_prefix="$exec_prefix"
8711 exec_prefix="$acl_final_exec_prefix"
8713 exec_prefix="$acl_save_exec_prefix"
8714 prefix="$acl_save_prefix"
8716 if test "X$x" = "X-I$additional_includedir"; then
8721 if test -z "$haveit"; then
8722 if test -d "$additional_includedir"; then
8723 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8729 if test -n "$found_la"; then
8730 save_libdir="$libdir"
8732 */* | *\\*) . "$found_la" ;;
8733 *) . "./$found_la" ;;
8735 libdir="$save_libdir"
8736 for dep in $dependency_libs; do
8739 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8740 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8742 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8743 if test -n "$GCC"; then
8745 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8749 if test -z "$haveit"; then
8751 for x in $LDFLAGS $LIBPTH; do
8753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
8758 exec_prefix="$acl_save_exec_prefix"
8759 prefix="$acl_save_prefix"
8761 if test "X$x" = "X-L$additional_libdir"; then
8766 if test -z "$haveit"; then
8767 if test -d "$additional_libdir"; then
8768 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8772 for x in $LDFLAGS $LTLIBPTH; do
8774 acl_save_prefix="$prefix"
8775 prefix="$acl_final_prefix"
8776 acl_save_exec_prefix="$exec_prefix"
8777 exec_prefix="$acl_final_exec_prefix"
8779 exec_prefix="$acl_save_exec_prefix"
8780 prefix="$acl_save_prefix"
8782 if test "X$x" = "X-L$additional_libdir"; then
8787 if test -z "$haveit"; then
8788 if test -d "$additional_libdir"; then
8789 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8796 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8797 if test "$enable_rpath" != no; then
8799 for x in $rpathdirs; do
8800 if test "X$x" = "X$dir"; then
8805 if test -z "$haveit"; then
8806 rpathdirs="$rpathdirs $dir"
8809 for x in $ltrpathdirs; do
8810 if test "X$x" = "X$dir"; then
8815 if test -z "$haveit"; then
8816 ltrpathdirs="$ltrpathdirs $dir"
8821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8827 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8828 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8834 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8835 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8841 if test "X$rpathdirs" != "X"; then
8842 if test -n "$hardcode_libdir_separator"; then
8844 for found_dir in $rpathdirs; do
8845 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8847 acl_save_libdir="$libdir"
8849 eval flag=\"$hardcode_libdir_flag_spec\"
8850 libdir="$acl_save_libdir"
8851 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8853 for found_dir in $rpathdirs; do
8854 acl_save_libdir="$libdir"
8856 eval flag=\"$hardcode_libdir_flag_spec\"
8857 libdir="$acl_save_libdir"
8858 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8862 if test "X$ltrpathdirs" != "X"; then
8863 for found_dir in $ltrpathdirs; do
8864 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8868 ac_cv_libpth_libs="$LIBPTH"
8869 ac_cv_libpth_ltlibs="$LTLIBPTH"
8870 ac_cv_libpth_cppflags="$INCPTH"
8873 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
8874 $as_echo "$ac_cv_libpth_libs" >&6; }
8875 LIBPTH="$ac_cv_libpth_libs"
8876 LTLIBPTH="$ac_cv_libpth_ltlibs"
8877 INCPTH="$ac_cv_libpth_cppflags"
8879 for element in $INCPTH; do
8881 for x in $CPPFLAGS; do
8883 acl_save_prefix="$prefix"
8884 prefix="$acl_final_prefix"
8885 acl_save_exec_prefix="$exec_prefix"
8886 exec_prefix="$acl_final_exec_prefix"
8888 exec_prefix="$acl_save_exec_prefix"
8889 prefix="$acl_save_prefix"
8891 if test "X$x" = "X$element"; then
8896 if test -z "$haveit"; then
8897 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8908 gl_save_LIBS="$LIBS"
8910 cat >conftest.$ac_ext <<_ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8948 $as_echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8954 rm -rf conftest.dSYM
8955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS="$gl_save_LIBS"
8958 if test -n "$gl_have_pth"; then
8961 LTLIBTHREAD="$LTLIBPTH"
8962 LIBMULTITHREAD="$LIBTHREAD"
8963 LTLIBMULTITHREAD="$LTLIBTHREAD"
8965 cat >>confdefs.h <<\_ACEOF
8966 #define USE_PTH_THREADS 1
8969 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8970 if test $gl_have_weak = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define USE_PTH_THREADS_WEAK 1
8981 CPPFLAGS="$gl_save_CPPFLAGS"
8984 if test -z "$gl_have_pthread"; then
8985 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
8986 if { case "$host_os" in
8991 gl_threads_api=win32
8993 cat >>confdefs.h <<\_ACEOF
8994 #define USE_WIN32_THREADS 1
9001 { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
9002 $as_echo_n "checking for multithread API to use... " >&6; }
9003 { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
9004 $as_echo "$gl_threads_api" >&6; }
9011 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9012 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9013 if test "${gl_cv_func_malloc_posix+set}" = set; then
9014 $as_echo_n "(cached) " >&6
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9027 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9042 $as_echo "$ac_try_echo") >&5
9043 (eval "$ac_compile") 2>conftest.er1
9045 grep -v '^ *+' conftest.er1 >conftest.err
9047 cat conftest.err >&5
9048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } && {
9050 test -z "$ac_c_werror_flag" ||
9051 test ! -s conftest.err
9052 } && test -s conftest.$ac_objext; then
9053 gl_cv_func_malloc_posix=yes
9055 $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9058 gl_cv_func_malloc_posix=no
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
9065 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9068 GNULIB_MALLOC_POSIX=0;
9069 GNULIB_REALLOC_POSIX=0;
9070 GNULIB_CALLOC_POSIX=0;
9077 HAVE_CALLOC_POSIX=1;
9079 HAVE_MALLOC_POSIX=1;
9081 HAVE_REALLOC_POSIX=1;
9088 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9089 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9090 if test "${gl_cv_var__system_configuration+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/systemcfg.h>
9104 double x = _system_configuration.physmem;
9105 if (x > 0.0) return 0;
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118 (eval "$ac_link") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest$ac_exeext && {
9128 test "$cross_compiling" = yes ||
9129 $as_test_x conftest$ac_exeext
9131 gl_cv_var__system_configuration=yes
9133 $as_echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 gl_cv_var__system_configuration=no
9139 rm -rf conftest.dSYM
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext conftest.$ac_ext
9143 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
9144 $as_echo "$gl_cv_var__system_configuration" >&6; }
9146 if test $gl_cv_var__system_configuration = yes; then
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE__SYSTEM_CONFIGURATION 1
9156 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9157 $as_echo_n "checking for ssize_t... " >&6; }
9158 if test "${gt_cv_ssize_t+set}" = set; then
9159 $as_echo_n "(cached) " >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9171 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9184 $as_echo "$ac_try_echo") >&5
9185 (eval "$ac_compile") 2>conftest.er1
9187 grep -v '^ *+' conftest.er1 >conftest.err
9189 cat conftest.err >&5
9190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } && {
9192 test -z "$ac_c_werror_flag" ||
9193 test ! -s conftest.err
9194 } && test -s conftest.$ac_objext; then
9197 $as_echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9206 $as_echo "$gt_cv_ssize_t" >&6; }
9207 if test $gt_cv_ssize_t = no; then
9209 cat >>confdefs.h <<\_ACEOF
9216 GNULIB_FPRINTF_POSIX=0;
9217 GNULIB_PRINTF_POSIX=0;
9219 GNULIB_SPRINTF_POSIX=0;
9220 GNULIB_VFPRINTF_POSIX=0;
9221 GNULIB_VPRINTF_POSIX=0;
9223 GNULIB_VSPRINTF_POSIX=0;
9239 HAVE_DECL_SNPRINTF=1;
9240 REPLACE_VSNPRINTF=0;
9241 HAVE_DECL_VSNPRINTF=1;
9245 REPLACE_VASPRINTF=0;
9255 HAVE_DECL_GETDELIM=1;
9256 HAVE_DECL_GETLINE=1;
9260 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9261 $as_echo_n "checking whether snprintf is declared... " >&6; }
9262 if test "${ac_cv_have_decl_snprintf+set}" = set; then
9263 $as_echo_n "(cached) " >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9271 $ac_includes_default
9283 rm -f conftest.$ac_objext
9284 if { (ac_try="$ac_compile"
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9290 $as_echo "$ac_try_echo") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
9301 ac_cv_have_decl_snprintf=yes
9303 $as_echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 ac_cv_have_decl_snprintf=no
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9312 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
9313 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define HAVE_DECL_SNPRINTF 1
9321 cat >>confdefs.h <<_ACEOF
9322 #define HAVE_DECL_SNPRINTF 0
9330 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9331 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9332 if test "${ac_cv_header_stdbool_h+set}" = set; then
9333 $as_echo_n "(cached) " >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 #include <stdbool.h>
9344 "error: bool is not defined"
9347 "error: false is not defined"
9350 "error: false is not 0"
9353 "error: true is not defined"
9356 "error: true is not 1"
9358 #ifndef __bool_true_false_are_defined
9359 "error: __bool_true_false_are_defined is not defined"
9362 struct s { _Bool s: 1; _Bool t; } s;
9364 char a[true == 1 ? 1 : -1];
9365 char b[false == 0 ? 1 : -1];
9366 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9367 char d[(bool) 0.5 == true ? 1 : -1];
9369 char f[(_Bool) 0.0 == false ? 1 : -1];
9371 char h[sizeof (_Bool)];
9373 enum { j = false, k = true, l = false * true, m = true * 256 };
9375 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9376 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9377 #if defined __xlc__ || defined __GNUC__
9378 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9379 reported by James Lemley on 2005-10-05; see
9380 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9381 This test is not quite right, since xlc is allowed to
9382 reject this program, as the initializer for xlcbug is
9383 not one of the forms that C requires support for.
9384 However, doing the test right would require a run-time
9385 test, and that would make cross-compilation harder.
9386 Let us hope that IBM fixes the xlc bug, and also adds
9387 support for this kind of constant expression. In the
9388 meantime, this test will reject xlc, which is OK, since
9389 our stdbool.h substitute should suffice. We also test
9390 this with GCC, where it should work, to detect more
9391 quickly whether someone messes up the test in the
9393 char digs[] = "0123456789";
9394 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9396 /* Catch a bug in an HP-UX C compiler. See
9397 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9398 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9409 /* Refer to every declared value, to avoid compiler optimizations. */
9410 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9411 + !m + !n + !o + !p + !q + !pq);
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9424 $as_echo "$ac_try_echo") >&5
9425 (eval "$ac_compile") 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && {
9432 test -z "$ac_c_werror_flag" ||
9433 test ! -s conftest.err
9434 } && test -s conftest.$ac_objext; then
9435 ac_cv_header_stdbool_h=yes
9437 $as_echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_header_stdbool_h=no
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9446 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9447 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9448 $as_echo_n "checking for _Bool... " >&6; }
9449 if test "${ac_cv_type__Bool+set}" = set; then
9450 $as_echo_n "(cached) " >&6
9453 cat >conftest.$ac_ext <<_ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9459 $ac_includes_default
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9476 $as_echo "$ac_try_echo") >&5
9477 (eval "$ac_compile") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest.$ac_objext; then
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9493 $ac_includes_default
9497 if (sizeof ((_Bool)))
9503 rm -f conftest.$ac_objext
9504 if { (ac_try="$ac_compile"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9510 $as_echo "$ac_try_echo") >&5
9511 (eval "$ac_compile") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest.$ac_objext; then
9523 $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_type__Bool=yes
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 $as_echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9539 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9540 $as_echo "$ac_cv_type__Bool" >&6; }
9541 if test "x$ac_cv_type__Bool" = x""yes; then
9543 cat >>confdefs.h <<_ACEOF
9544 #define HAVE__BOOL 1
9550 if test $ac_cv_header_stdbool_h = yes; then
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_STDBOOL_H 1
9558 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9559 $as_echo_n "checking for long long int... " >&6; }
9560 if test "${ac_cv_type_long_long_int+set}" = set; then
9561 $as_echo_n "(cached) " >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 /* For now, do not test the preprocessor; as of 2007 there are too many
9571 implementations with broken preprocessors. Perhaps this can
9572 be revisited in 2012. In the meantime, code should not expect
9573 #if to work with literals wider than 32 bits. */
9574 /* Test literals. */
9575 long long int ll = 9223372036854775807ll;
9576 long long int nll = -9223372036854775807LL;
9577 unsigned long long int ull = 18446744073709551615ULL;
9578 /* Test constant expressions. */
9579 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9581 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9587 /* Test availability of runtime routines for shift and division. */
9588 long long int llmax = 9223372036854775807ll;
9589 unsigned long long int ullmax = 18446744073709551615ull;
9590 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9591 | (llmax / ll) | (llmax % ll)
9592 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9593 | (ullmax / ull) | (ullmax % ull));
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (ac_try="$ac_link"
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1 >conftest.err
9611 cat conftest.err >&5
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext && {
9617 test "$cross_compiling" = yes ||
9618 $as_test_x conftest$ac_exeext
9620 if test "$cross_compiling" = yes; then
9621 ac_cv_type_long_long_int=yes
9623 cat >conftest.$ac_ext <<_ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9632 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9633 # define LLONG_MAX (HALF - 1 + HALF)
9638 long long int n = 1;
9642 long long int m = n << i;
9645 if (LLONG_MAX / 2 < m)
9653 rm -f conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661 (eval "$ac_link") 2>&5
9663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9670 $as_echo "$ac_try_echo") >&5
9671 (eval "$ac_try") 2>&5
9673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_type_long_long_int=yes
9677 $as_echo "$as_me: program exited with status $ac_status" >&5
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_cv_type_long_long_int=no
9684 rm -rf conftest.dSYM
9685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9690 $as_echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_cv_type_long_long_int=no
9696 rm -rf conftest.dSYM
9697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9698 conftest$ac_exeext conftest.$ac_ext
9700 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9701 $as_echo "$ac_cv_type_long_long_int" >&6; }
9702 if test $ac_cv_type_long_long_int = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_LONG_LONG_INT 1
9711 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9712 $as_echo_n "checking for unsigned long long int... " >&6; }
9713 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9714 $as_echo_n "(cached) " >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 /* For now, do not test the preprocessor; as of 2007 there are too many
9724 implementations with broken preprocessors. Perhaps this can
9725 be revisited in 2012. In the meantime, code should not expect
9726 #if to work with literals wider than 32 bits. */
9727 /* Test literals. */
9728 long long int ll = 9223372036854775807ll;
9729 long long int nll = -9223372036854775807LL;
9730 unsigned long long int ull = 18446744073709551615ULL;
9731 /* Test constant expressions. */
9732 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9734 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9740 /* Test availability of runtime routines for shift and division. */
9741 long long int llmax = 9223372036854775807ll;
9742 unsigned long long int ullmax = 18446744073709551615ull;
9743 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9744 | (llmax / ll) | (llmax % ll)
9745 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9746 | (ullmax / ull) | (ullmax % ull));
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext && {
9770 test "$cross_compiling" = yes ||
9771 $as_test_x conftest$ac_exeext
9773 ac_cv_type_unsigned_long_long_int=yes
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_type_unsigned_long_long_int=no
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9786 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9787 if test $ac_cv_type_unsigned_long_long_int = yes; then
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9832 GNULIB_STRCASESTR=0;
9839 GNULIB_MBSCASECMP=0;
9840 GNULIB_MBSNCASECMP=0;
9841 GNULIB_MBSPCASECMP=0;
9842 GNULIB_MBSCASESTR=0;
9852 HAVE_DECL_MEMRCHR=1;
9858 HAVE_DECL_STRNDUP=1;
9859 HAVE_DECL_STRNLEN=1;
9863 HAVE_DECL_STRTOK_R=1;
9864 HAVE_DECL_STRERROR=1;
9865 HAVE_DECL_STRSIGNAL=1;
9867 REPLACE_STRSIGNAL=0;
9869 REPLACE_STRCASESTR=0;
9873 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
9874 $as_echo_n "checking whether strdup is declared... " >&6; }
9875 if test "${ac_cv_have_decl_strdup+set}" = set; then
9876 $as_echo_n "(cached) " >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9884 $ac_includes_default
9896 rm -f conftest.$ac_objext
9897 if { (ac_try="$ac_compile"
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903 $as_echo "$ac_try_echo") >&5
9904 (eval "$ac_compile") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest.$ac_objext; then
9914 ac_cv_have_decl_strdup=yes
9916 $as_echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_have_decl_strdup=no
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
9925 $as_echo "$ac_cv_have_decl_strdup" >&6; }
9926 if test "x$ac_cv_have_decl_strdup" = x""yes; then
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_DECL_STRDUP 1
9934 cat >>confdefs.h <<_ACEOF
9935 #define HAVE_DECL_STRDUP 0
9963 if test $gl_cv_have_include_next = yes; then
9964 gl_cv_next_string_h='<'string.h'>'
9966 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
9967 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9968 if test "${gl_cv_next_string_h+set}" = set; then
9969 $as_echo_n "(cached) " >&6
9972 if test $ac_cv_header_string_h = yes; then
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9982 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9983 sed -n '\#/string.h#{
9984 s#.*"\(.*/string.h\)".*#\1#
9990 gl_cv_next_string_h='<'string.h'>'
9994 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
9995 $as_echo "$gl_cv_next_string_h" >&6; }
9997 NEXT_STRING_H=$gl_cv_next_string_h
10008 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10009 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10010 if test "${ac_cv_header_stat_broken+set}" = set; then
10011 $as_echo_n "(cached) " >&6
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <sys/types.h>
10020 #include <sys/stat.h>
10022 #if defined S_ISBLK && defined S_IFDIR
10023 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10026 #if defined S_ISBLK && defined S_IFCHR
10027 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10030 #if defined S_ISLNK && defined S_IFREG
10031 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10034 #if defined S_ISSOCK && defined S_IFREG
10035 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10039 rm -f conftest.$ac_objext
10040 if { (ac_try="$ac_compile"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10046 $as_echo "$ac_try_echo") >&5
10047 (eval "$ac_compile") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1 >conftest.err
10051 cat conftest.err >&5
10052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.$ac_objext; then
10057 ac_cv_header_stat_broken=no
10059 $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_cv_header_stat_broken=yes
10065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10068 $as_echo "$ac_cv_header_stat_broken" >&6; }
10069 if test $ac_cv_header_stat_broken = yes; then
10071 cat >>confdefs.h <<\_ACEOF
10072 #define STAT_MACROS_BROKEN 1
10083 # Check whether --enable-largefile was given.
10084 if test "${enable_largefile+set}" = set; then
10085 enableval=$enable_largefile;
10088 if test "$enable_largefile" != no; then
10090 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10091 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10092 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10093 $as_echo_n "(cached) " >&6
10095 ac_cv_sys_largefile_CC=no
10096 if test "$GCC" != yes; then
10099 # IRIX 6.2 and later do not support large files by default,
10100 # so use the C compiler's -n32 option if that helps.
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 #include <sys/types.h>
10108 /* Check that off_t can represent 2**63 - 1 correctly.
10109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10110 since some C++ compilers masquerading as C compilers
10111 incorrectly reject 9223372036854775807. */
10112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10114 && LARGE_OFF_T % 2147483647 == 1)
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10131 $as_echo "$ac_try_echo") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10144 $as_echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10150 rm -f core conftest.err conftest.$ac_objext
10152 rm -f conftest.$ac_objext
10153 if { (ac_try="$ac_compile"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10159 $as_echo "$ac_try_echo") >&5
10160 (eval "$ac_compile") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest.$ac_objext; then
10170 ac_cv_sys_largefile_CC=' -n32'; break
10172 $as_echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10178 rm -f core conftest.err conftest.$ac_objext
10182 rm -f conftest.$ac_ext
10185 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10187 if test "$ac_cv_sys_largefile_CC" != no; then
10188 CC=$CC$ac_cv_sys_largefile_CC
10191 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10193 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10194 $as_echo_n "(cached) " >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <sys/types.h>
10204 /* Check that off_t can represent 2**63 - 1 correctly.
10205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10206 since some C++ compilers masquerading as C compilers
10207 incorrectly reject 9223372036854775807. */
10208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10210 && LARGE_OFF_T % 2147483647 == 1)
10220 rm -f conftest.$ac_objext
10221 if { (ac_try="$ac_compile"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.$ac_objext; then
10238 ac_cv_sys_file_offset_bits=no; break
10240 $as_echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #define _FILE_OFFSET_BITS 64
10254 #include <sys/types.h>
10255 /* Check that off_t can represent 2**63 - 1 correctly.
10256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10257 since some C++ compilers masquerading as C compilers
10258 incorrectly reject 9223372036854775807. */
10259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10261 && LARGE_OFF_T % 2147483647 == 1)
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10278 $as_echo "$ac_try_echo") >&5
10279 (eval "$ac_compile") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest.$ac_objext; then
10289 ac_cv_sys_file_offset_bits=64; break
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 ac_cv_sys_file_offset_bits=unknown
10302 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10304 case $ac_cv_sys_file_offset_bits in #(
10307 cat >>confdefs.h <<_ACEOF
10308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10313 if test $ac_cv_sys_file_offset_bits = unknown; then
10314 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10315 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10316 if test "${ac_cv_sys_large_files+set}" = set; then
10317 $as_echo_n "(cached) " >&6
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <sys/types.h>
10327 /* Check that off_t can represent 2**63 - 1 correctly.
10328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10329 since some C++ compilers masquerading as C compilers
10330 incorrectly reject 9223372036854775807. */
10331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10333 && LARGE_OFF_T % 2147483647 == 1)
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351 (eval "$ac_compile") 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && {
10358 test -z "$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10360 } && test -s conftest.$ac_objext; then
10361 ac_cv_sys_large_files=no; break
10363 $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 #define _LARGE_FILES 1
10377 #include <sys/types.h>
10378 /* Check that off_t can represent 2**63 - 1 correctly.
10379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10380 since some C++ compilers masquerading as C compilers
10381 incorrectly reject 9223372036854775807. */
10382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10384 && LARGE_OFF_T % 2147483647 == 1)
10394 rm -f conftest.$ac_objext
10395 if { (ac_try="$ac_compile"
10396 case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10401 $as_echo "$ac_try_echo") >&5
10402 (eval "$ac_compile") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest.$ac_objext; then
10412 ac_cv_sys_large_files=1; break
10414 $as_echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 ac_cv_sys_large_files=unknown
10425 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10426 $as_echo "$ac_cv_sys_large_files" >&6; }
10427 case $ac_cv_sys_large_files in #(
10430 cat >>confdefs.h <<_ACEOF
10431 #define _LARGE_FILES $ac_cv_sys_large_files
10444 GNULIB_FTRUNCATE=0;
10446 GNULIB_GETLOGIN_R=0;
10447 GNULIB_GETPAGESIZE=0;
10454 HAVE_GETPAGESIZE=1;
10457 HAVE_DECL_ENVIRON=1;
10458 HAVE_DECL_GETLOGIN_R=1;
10460 HAVE_SYS_PARAM_H=0;
10464 REPLACE_GETPAGESIZE=0;
10476 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
10477 $as_echo_n "checking for EOVERFLOW... " >&6; }
10478 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
10479 $as_echo_n "(cached) " >&6
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10496 $EGREP "yes" >/dev/null 2>&1; then
10501 if test -n "$have_eoverflow"; then
10502 ac_cv_decl_EOVERFLOW=yes
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 #define _XOPEN_SOURCE_EXTENDED 1
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519 $EGREP "yes" >/dev/null 2>&1; then
10524 if test -n "$have_eoverflow"; then
10525 if test "$cross_compiling" = yes; then
10526 # Depending upon the size, compute the lo and hi bounds.
10527 cat >conftest.$ac_ext <<_ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10534 #define _XOPEN_SOURCE_EXTENDED 1
10536 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10538 #include <stdlib.h>
10543 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
10550 rm -f conftest.$ac_objext
10551 if { (ac_try="$ac_compile"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10557 $as_echo "$ac_try_echo") >&5
10558 (eval "$ac_compile") 2>conftest.er1
10560 grep -v '^ *+' conftest.er1 >conftest.err
10562 cat conftest.err >&5
10563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && {
10565 test -z "$ac_c_werror_flag" ||
10566 test ! -s conftest.err
10567 } && test -s conftest.$ac_objext; then
10570 cat >conftest.$ac_ext <<_ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 #define _XOPEN_SOURCE_EXTENDED 1
10579 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10581 #include <stdlib.h>
10586 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601 (eval "$ac_compile") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest.$ac_objext; then
10611 ac_hi=$ac_mid; break
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_lo=`expr $ac_mid + 1`
10617 if test $ac_lo -le $ac_mid; then
10621 ac_mid=`expr 2 '*' $ac_mid + 1`
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 $as_echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10637 #define _XOPEN_SOURCE_EXTENDED 1
10639 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10641 #include <stdlib.h>
10646 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661 (eval "$ac_compile") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10680 #define _XOPEN_SOURCE_EXTENDED 1
10682 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10684 #include <stdlib.h>
10689 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
10696 rm -f conftest.$ac_objext
10697 if { (ac_try="$ac_compile"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_compile") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1 >conftest.err
10708 cat conftest.err >&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest.$ac_objext; then
10714 ac_lo=$ac_mid; break
10716 $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_hi=`expr '(' $ac_mid ')' - 1`
10720 if test $ac_mid -le $ac_hi; then
10724 ac_mid=`expr 2 '*' $ac_mid`
10727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 # Binary search between lo and hi bounds.
10741 while test "x$ac_lo" != "x$ac_hi"; do
10742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10750 #define _XOPEN_SOURCE_EXTENDED 1
10752 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10754 #include <stdlib.h>
10759 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_compile") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest.$ac_objext; then
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_lo=`expr '(' $ac_mid ')' + 1`
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
10799 cat >conftest.$ac_ext <<_ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10806 #define _XOPEN_SOURCE_EXTENDED 1
10808 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10810 #include <stdlib.h>
10812 static long int longval () { return EOVERFLOW; }
10813 static unsigned long int ulongval () { return EOVERFLOW; }
10815 #include <stdlib.h>
10820 FILE *f = fopen ("conftest.val", "w");
10823 if ((EOVERFLOW) < 0)
10825 long int i = longval ();
10826 if (i != (EOVERFLOW))
10828 fprintf (f, "%ld", i);
10832 unsigned long int i = ulongval ();
10833 if (i != (EOVERFLOW))
10835 fprintf (f, "%lu", i);
10837 /* Do not output a trailing newline, as this causes \r\n confusion
10838 on some platforms. */
10839 return ferror (f) || fclose (f) != 0;
10845 rm -f conftest$ac_exeext
10846 if { (ac_try="$ac_link"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853 (eval "$ac_link") 2>&5
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10857 { (case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863 (eval "$ac_try") 2>&5
10865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_decl_EOVERFLOW=`cat conftest.val`
10869 $as_echo "$as_me: program exited with status $ac_status" >&5
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10874 rm -rf conftest.dSYM
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10879 ac_cv_decl_EOVERFLOW=E2BIG
10884 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
10885 $as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
10886 if test "$ac_cv_decl_EOVERFLOW" != yes; then
10888 cat >>confdefs.h <<_ACEOF
10889 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
10892 EOVERFLOW="$ac_cv_decl_EOVERFLOW"
10903 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
10904 $as_echo_n "checking for wchar_t... " >&6; }
10905 if test "${gt_cv_c_wchar_t+set}" = set; then
10906 $as_echo_n "(cached) " >&6
10908 cat >conftest.$ac_ext <<_ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <stddef.h>
10915 wchar_t foo = (wchar_t)'\0';
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10942 gt_cv_c_wchar_t=yes
10944 $as_echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
10953 $as_echo "$gt_cv_c_wchar_t" >&6; }
10954 if test $gt_cv_c_wchar_t = yes; then
10956 cat >>confdefs.h <<\_ACEOF
10957 #define HAVE_WCHAR_T 1
10963 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
10964 $as_echo_n "checking for wint_t... " >&6; }
10965 if test "${gt_cv_c_wint_t+set}" = set; then
10966 $as_echo_n "(cached) " >&6
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 wint_t foo = (wchar_t)'\0';
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest.$ac_objext; then
11004 $as_echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
11013 $as_echo "$gt_cv_c_wint_t" >&6; }
11014 if test $gt_cv_c_wint_t = yes; then
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_WINT_T 1
11022 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11023 $as_echo_n "checking for size_t... " >&6; }
11024 if test "${ac_cv_type_size_t+set}" = set; then
11025 $as_echo_n "(cached) " >&6
11027 ac_cv_type_size_t=no
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11038 if (sizeof (size_t))
11044 rm -f conftest.$ac_objext
11045 if { (ac_try="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052 (eval "$ac_compile") 2>conftest.er1
11054 grep -v '^ *+' conftest.er1 >conftest.err
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest.$ac_objext; then
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 $ac_includes_default
11072 if (sizeof ((size_t)))
11078 rm -f conftest.$ac_objext
11079 if { (ac_try="$ac_compile"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11085 $as_echo "$ac_try_echo") >&5
11086 (eval "$ac_compile") 2>conftest.er1
11088 grep -v '^ *+' conftest.er1 >conftest.err
11090 cat conftest.err >&5
11091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest.$ac_objext; then
11098 $as_echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101 ac_cv_type_size_t=yes
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11115 $as_echo "$ac_cv_type_size_t" >&6; }
11116 if test "x$ac_cv_type_size_t" = x""yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define size_t unsigned int
11127 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
11128 $as_echo_n "checking for inttypes.h... " >&6; }
11129 if test "${gl_cv_header_inttypes_h+set}" = set; then
11130 $as_echo_n "(cached) " >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <sys/types.h>
11139 #include <inttypes.h>
11143 uintmax_t i = (uintmax_t) -1;
11148 rm -f conftest.$ac_objext
11149 if { (ac_try="$ac_compile"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11155 $as_echo "$ac_try_echo") >&5
11156 (eval "$ac_compile") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest.$ac_objext; then
11166 gl_cv_header_inttypes_h=yes
11168 $as_echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 gl_cv_header_inttypes_h=no
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
11177 $as_echo "$gl_cv_header_inttypes_h" >&6; }
11178 if test $gl_cv_header_inttypes_h = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
11187 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
11188 $as_echo_n "checking for stdint.h... " >&6; }
11189 if test "${gl_cv_header_stdint_h+set}" = set; then
11190 $as_echo_n "(cached) " >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 #include <sys/types.h>
11199 #include <stdint.h>
11203 uintmax_t i = (uintmax_t) -1;
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 gl_cv_header_stdint_h=yes
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 gl_cv_header_stdint_h=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
11237 $as_echo "$gl_cv_header_stdint_h" >&6; }
11238 if test $gl_cv_header_stdint_h = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_STDINT_H_WITH_UINTMAX 1
11249 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
11250 $as_echo_n "checking for intmax_t... " >&6; }
11251 if test "${gt_cv_c_intmax_t+set}" = set; then
11252 $as_echo_n "(cached) " >&6
11254 cat >conftest.$ac_ext <<_ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11261 #include <stddef.h>
11262 #include <stdlib.h>
11263 #if HAVE_STDINT_H_WITH_UINTMAX
11264 #include <stdint.h>
11266 #if HAVE_INTTYPES_H_WITH_UINTMAX
11267 #include <inttypes.h>
11273 intmax_t x = -1; return !x;
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11285 $as_echo "$ac_try_echo") >&5
11286 (eval "$ac_compile") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest.$ac_objext; then
11296 gt_cv_c_intmax_t=yes
11298 $as_echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 gt_cv_c_intmax_t=no
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
11307 $as_echo "$gt_cv_c_intmax_t" >&6; }
11308 if test $gt_cv_c_intmax_t = yes; then
11310 cat >>confdefs.h <<\_ACEOF
11311 #define HAVE_INTMAX_T 1
11316 test $ac_cv_type_long_long_int = yes \
11317 && ac_type='long long' \
11320 cat >>confdefs.h <<_ACEOF
11321 #define intmax_t $ac_type
11328 HAVE_DECL_WCWIDTH=1;
11335 GL_COND_LIBTOOL_TRUE=
11336 GL_COND_LIBTOOL_FALSE='#'
11338 GL_COND_LIBTOOL_TRUE='#'
11339 GL_COND_LIBTOOL_FALSE=
11342 gl_cond_libtool=true
11346 gl_source_base='gnulib'
11352 if test $ac_cv_func_alloca_works = no; then
11356 # Define an additional variable used in the Makefile substitution.
11357 if test $ac_cv_working_alloca_h = yes; then
11358 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
11359 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11360 if test "${gl_cv_rpl_alloca+set}" = set; then
11361 $as_echo_n "(cached) " >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11371 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11377 $EGREP "Need own alloca" >/dev/null 2>&1; then
11378 gl_cv_rpl_alloca=yes
11380 gl_cv_rpl_alloca=no
11386 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
11387 $as_echo "$gl_cv_rpl_alloca" >&6; }
11388 if test $gl_cv_rpl_alloca = yes; then
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_ALLOCA 1
11411 if test $ac_cv_header_arpa_inet_h = yes; then
11414 ARPA_INET_H='arpa/inet.h'
11418 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11419 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11420 if test -z "$MKDIR_P"; then
11421 if test "${ac_cv_path_mkdir+set}" = set; then
11422 $as_echo_n "(cached) " >&6
11424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11428 test -z "$as_dir" && as_dir=.
11429 for ac_prog in mkdir gmkdir; do
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11433 'mkdir (GNU coreutils) '* | \
11434 'mkdir (coreutils) '* | \
11435 'mkdir (fileutils) '4.1*)
11436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11446 if test "${ac_cv_path_mkdir+set}" = set; then
11447 MKDIR_P="$ac_cv_path_mkdir -p"
11449 # As a last resort, use the slow shell script. Don't cache a
11450 # value for MKDIR_P within a source directory, because that will
11451 # break other packages using the cache if that directory is
11452 # removed, or if the value is a relative name.
11453 test -d ./--version && rmdir ./--version
11454 MKDIR_P="$ac_install_sh -d"
11457 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11458 $as_echo "$MKDIR_P" >&6; }
11484 if test $gl_cv_have_include_next = yes; then
11485 gl_cv_next_float_h='<'float.h'>'
11487 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
11488 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11489 if test "${gl_cv_next_float_h+set}" = set; then
11490 $as_echo_n "(cached) " >&6
11493 if test $ac_cv_header_float_h = yes; then
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11503 gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11504 sed -n '\#/float.h#{
11505 s#.*"\(.*/float.h\)".*#\1#
11511 gl_cv_next_float_h='<'float.h'>'
11515 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
11516 $as_echo "$gl_cv_next_float_h" >&6; }
11518 NEXT_FLOAT_H=$gl_cv_next_float_h
11545 for ac_header in sys/mount.h
11547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 $as_echo_n "checking for $ac_header... " >&6; }
11550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 $as_echo_n "(cached) " >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 $ac_includes_default
11560 #if HAVE_SYS_PARAM_H
11561 #include <sys/param.h>
11564 #include <$ac_header>
11566 rm -f conftest.$ac_objext
11567 if { (ac_try="$ac_compile"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573 $as_echo "$ac_try_echo") >&5
11574 (eval "$ac_compile") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest.$ac_objext; then
11584 eval "$as_ac_Header=yes"
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 eval "$as_ac_Header=no"
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 ac_res=`eval 'as_val=${'$as_ac_Header'}
11595 $as_echo "$as_val"'`
11596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11597 $as_echo "$ac_res" >&6; }
11598 as_val=`eval 'as_val=${'$as_ac_Header'}
11599 $as_echo "$as_val"'`
11600 if test "x$as_val" = x""yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
11612 $as_echo "$as_me: checking how to get file system space usage" >&6;}
11613 ac_fsusage_space=no
11615 # Perform only the link test since it seems there are no variants of the
11616 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11617 # because that got a false positive on SCO OSR5. Adding the declaration
11618 # of a `struct statvfs' causes this test to fail (as it should) on such
11619 # systems. That system is reported to work fine with STAT_STATFS4 which
11620 # is what it gets when this test fails.
11621 if test $ac_fsusage_space = no; then
11623 { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
11624 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
11625 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
11626 $as_echo_n "(cached) " >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 #include <sys/types.h>
11635 #if defined __GLIBC__ && !defined __BEOS__
11636 Do not use statvfs on systems with GNU libc, because that function stats
11637 all preceding entries in /proc/mounts, and that makes df hang if even
11638 one of the corresponding file systems is hard-mounted, but not available.
11639 statvfs in GNU libc on BeOS operates differently: it only makes a system
11644 "Do not use Tru64's statvfs implementation"
11647 #include <sys/statvfs.h>
11651 struct statvfs fsd; statvfs (0, &fsd);
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (ac_try="$ac_link"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11663 $as_echo "$ac_try_echo") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext && {
11674 test "$cross_compiling" = yes ||
11675 $as_test_x conftest$ac_exeext
11677 fu_cv_sys_stat_statvfs=yes
11679 $as_echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 fu_cv_sys_stat_statvfs=no
11685 rm -rf conftest.dSYM
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687 conftest$ac_exeext conftest.$ac_ext
11689 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
11690 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
11691 if test $fu_cv_sys_stat_statvfs = yes; then
11692 ac_fsusage_space=yes
11694 cat >>confdefs.h <<\_ACEOF
11695 #define STAT_STATVFS 1
11701 if test $ac_fsusage_space = no; then
11702 # DEC Alpha running OSF/1
11703 { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
11704 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
11705 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
11706 $as_echo_n "(cached) " >&6
11708 if test "$cross_compiling" = yes; then
11709 fu_cv_sys_stat_statfs3_osf1=no
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11718 #include <sys/param.h>
11719 #include <sys/types.h>
11720 #include <sys/mount.h>
11726 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
11729 rm -f conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11736 $as_echo "$ac_try_echo") >&5
11737 (eval "$ac_link") 2>&5
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11741 { (case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11746 $as_echo "$ac_try_echo") >&5
11747 (eval "$ac_try") 2>&5
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 fu_cv_sys_stat_statfs3_osf1=yes
11753 $as_echo "$as_me: program exited with status $ac_status" >&5
11754 $as_echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ( exit $ac_status )
11758 fu_cv_sys_stat_statfs3_osf1=no
11760 rm -rf conftest.dSYM
11761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11767 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
11768 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
11769 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11770 ac_fsusage_space=yes
11772 cat >>confdefs.h <<\_ACEOF
11773 #define STAT_STATFS3_OSF1 1
11779 if test $ac_fsusage_space = no; then
11781 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11782 $as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
11783 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
11784 $as_echo_n "(cached) " >&6
11786 if test "$cross_compiling" = yes; then
11787 fu_cv_sys_stat_statfs2_bsize=no
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11796 #ifdef HAVE_SYS_PARAM_H
11797 #include <sys/param.h>
11799 #ifdef HAVE_SYS_MOUNT_H
11800 #include <sys/mount.h>
11802 #ifdef HAVE_SYS_VFS_H
11803 #include <sys/vfs.h>
11810 return statfs (".", &fsd) != 0;
11813 rm -f conftest$ac_exeext
11814 if { (ac_try="$ac_link"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821 (eval "$ac_link") 2>&5
11823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831 (eval "$ac_try") 2>&5
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 fu_cv_sys_stat_statfs2_bsize=yes
11837 $as_echo "$as_me: program exited with status $ac_status" >&5
11838 $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ( exit $ac_status )
11842 fu_cv_sys_stat_statfs2_bsize=no
11844 rm -rf conftest.dSYM
11845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11851 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
11852 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
11853 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11854 ac_fsusage_space=yes
11856 cat >>confdefs.h <<\_ACEOF
11857 #define STAT_STATFS2_BSIZE 1
11863 if test $ac_fsusage_space = no; then
11865 { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11866 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
11867 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
11868 $as_echo_n "(cached) " >&6
11870 if test "$cross_compiling" = yes; then
11871 fu_cv_sys_stat_statfs4=no
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 #include <sys/types.h>
11880 #include <sys/statfs.h>
11885 return statfs (".", &fsd, sizeof fsd, 0) != 0;
11888 rm -f conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11895 $as_echo "$ac_try_echo") >&5
11896 (eval "$ac_link") 2>&5
11898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11900 { (case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905 $as_echo "$ac_try_echo") >&5
11906 (eval "$ac_try") 2>&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 fu_cv_sys_stat_statfs4=yes
11912 $as_echo "$as_me: program exited with status $ac_status" >&5
11913 $as_echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ( exit $ac_status )
11917 fu_cv_sys_stat_statfs4=no
11919 rm -rf conftest.dSYM
11920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
11927 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
11928 if test $fu_cv_sys_stat_statfs4 = yes; then
11929 ac_fsusage_space=yes
11931 cat >>confdefs.h <<\_ACEOF
11932 #define STAT_STATFS4 1
11938 if test $ac_fsusage_space = no; then
11939 # 4.4BSD and NetBSD
11940 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11941 $as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
11942 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
11943 $as_echo_n "(cached) " >&6
11945 if test "$cross_compiling" = yes; then
11946 fu_cv_sys_stat_statfs2_fsize=no
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <sys/types.h>
11955 #ifdef HAVE_SYS_PARAM_H
11956 #include <sys/param.h>
11958 #ifdef HAVE_SYS_MOUNT_H
11959 #include <sys/mount.h>
11966 return statfs (".", &fsd) != 0;
11969 rm -f conftest$ac_exeext
11970 if { (ac_try="$ac_link"
11971 case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976 $as_echo "$ac_try_echo") >&5
11977 (eval "$ac_link") 2>&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986 $as_echo "$ac_try_echo") >&5
11987 (eval "$ac_try") 2>&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 fu_cv_sys_stat_statfs2_fsize=yes
11993 $as_echo "$as_me: program exited with status $ac_status" >&5
11994 $as_echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ( exit $ac_status )
11998 fu_cv_sys_stat_statfs2_fsize=no
12000 rm -rf conftest.dSYM
12001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12007 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
12008 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
12009 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12010 ac_fsusage_space=yes
12012 cat >>confdefs.h <<\_ACEOF
12013 #define STAT_STATFS2_FSIZE 1
12019 if test $ac_fsusage_space = no; then
12021 { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12022 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
12023 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12026 if test "$cross_compiling" = yes; then
12027 fu_cv_sys_stat_fs_data=no
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 #include <sys/types.h>
12036 #ifdef HAVE_SYS_PARAM_H
12037 #include <sys/param.h>
12039 #ifdef HAVE_SYS_MOUNT_H
12040 #include <sys/mount.h>
12042 #ifdef HAVE_SYS_FS_TYPES_H
12043 #include <sys/fs_types.h>
12048 struct fs_data fsd;
12049 /* Ultrix's statfs returns 1 for success,
12050 0 for not mounted, -1 for failure. */
12051 return statfs (".", &fsd) != 1;
12054 rm -f conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062 (eval "$ac_link") 2>&5
12064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12066 { (case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12071 $as_echo "$ac_try_echo") >&5
12072 (eval "$ac_try") 2>&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 fu_cv_sys_stat_fs_data=yes
12078 $as_echo "$as_me: program exited with status $ac_status" >&5
12079 $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ( exit $ac_status )
12083 fu_cv_sys_stat_fs_data=no
12085 rm -rf conftest.dSYM
12086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12092 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
12093 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
12094 if test $fu_cv_sys_stat_fs_data = yes; then
12095 ac_fsusage_space=yes
12097 cat >>confdefs.h <<\_ACEOF
12098 #define STAT_STATFS2_FS_DATA 1
12104 if test $ac_fsusage_space = no; then
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <sys/filsys.h>
12115 if { (ac_try="$ac_cpp conftest.$ac_ext"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } >/dev/null && {
12129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12133 cat >>confdefs.h <<\_ACEOF
12134 #define STAT_READ_FILSYS 1
12137 ac_fsusage_space=yes
12139 $as_echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12145 rm -f conftest.err conftest.$ac_ext
12148 if test $ac_fsusage_space = yes; then
12156 if test $gl_cv_fs_space = yes; then
12164 gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
12171 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
12173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12176 $as_echo_n "checking for $ac_header... " >&6; }
12177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12178 $as_echo_n "(cached) " >&6
12180 ac_res=`eval 'as_val=${'$as_ac_Header'}
12181 $as_echo "$as_val"'`
12182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12183 $as_echo "$ac_res" >&6; }
12185 # Is the header compilable?
12186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12187 $as_echo_n "checking $ac_header usability... " >&6; }
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 $ac_includes_default
12195 #include <$ac_header>
12197 rm -f conftest.$ac_objext
12198 if { (ac_try="$ac_compile"
12199 case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12207 grep -v '^ *+' conftest.er1 >conftest.err
12209 cat conftest.err >&5
12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12215 ac_header_compiler=yes
12217 $as_echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_header_compiler=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12225 $as_echo "$ac_header_compiler" >&6; }
12227 # Is the header present?
12228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12229 $as_echo_n "checking $ac_header presence... " >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <$ac_header>
12238 if { (ac_try="$ac_cpp conftest.$ac_ext"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12244 $as_echo "$ac_try_echo") >&5
12245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1 >conftest.err
12249 cat conftest.err >&5
12250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null && {
12252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12255 ac_header_preproc=yes
12257 $as_echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_header_preproc=no
12263 rm -f conftest.err conftest.$ac_ext
12264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12265 $as_echo "$ac_header_preproc" >&6; }
12267 # So? What about this header?
12268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12274 ac_header_preproc=yes
12277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12293 $as_echo_n "checking for $ac_header... " >&6; }
12294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12295 $as_echo_n "(cached) " >&6
12297 eval "$as_ac_Header=\$ac_header_preproc"
12299 ac_res=`eval 'as_val=${'$as_ac_Header'}
12300 $as_echo "$as_val"'`
12301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12302 $as_echo "$ac_res" >&6; }
12305 as_val=`eval 'as_val=${'$as_ac_Header'}
12306 $as_echo "$as_val"'`
12307 if test "x$as_val" = x""yes; then
12308 cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
12318 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
12319 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
12320 $as_echo_n "(cached) " >&6
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #if !defined(sun) && !defined(__sun)
12330 choke -- this is a workaround for a Sun-specific problem
12332 #include <sys/types.h>
12333 #include <sys/vfs.h>
12337 struct statfs t; long c = *(t.f_spare);
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 fu_cv_sys_truncating_statfs=yes
12363 $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 fu_cv_sys_truncating_statfs=no
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 if test $fu_cv_sys_truncating_statfs = yes; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
12379 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
12380 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
12386 { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
12387 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
12397 { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
12398 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12399 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12400 $as_echo_n "(cached) " >&6
12402 ac_func_search_save_LIBS=$LIBS
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12416 char getaddrinfo ();
12420 return getaddrinfo ();
12425 for ac_lib in '' nsl socket; do
12426 if test -z "$ac_lib"; then
12427 ac_res="none required"
12430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_link") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest$ac_exeext && {
12450 test "$cross_compiling" = yes ||
12451 $as_test_x conftest$ac_exeext
12453 ac_cv_search_getaddrinfo=$ac_res
12455 $as_echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12461 rm -rf conftest.dSYM
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12464 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12468 if test "${ac_cv_search_getaddrinfo+set}" = set; then
12471 ac_cv_search_getaddrinfo=no
12473 rm conftest.$ac_ext
12474 LIBS=$ac_func_search_save_LIBS
12476 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
12477 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12478 ac_res=$ac_cv_search_getaddrinfo
12479 if test "$ac_res" != no; then
12480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12484 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
12485 $as_echo_n "checking for getaddrinfo... " >&6; }
12486 if test "${gl_cv_func_getaddrinfo+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 #ifdef HAVE_SYS_SOCKET_H
12499 #include <sys/socket.h>
12501 #ifdef HAVE_NETDB_H
12504 #include <stddef.h>
12509 getaddrinfo("", "", NULL, NULL);
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12521 $as_echo "$ac_try_echo") >&5
12522 (eval "$ac_link") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest$ac_exeext && {
12532 test "$cross_compiling" = yes ||
12533 $as_test_x conftest$ac_exeext
12535 gl_cv_func_getaddrinfo=yes
12537 $as_echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12540 gl_cv_func_getaddrinfo=no
12543 rm -rf conftest.dSYM
12544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12545 conftest$ac_exeext conftest.$ac_ext
12547 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
12548 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
12549 if test $gl_cv_func_getaddrinfo = no; then
12550 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
12551 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
12552 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
12553 $as_echo_n "(cached) " >&6
12556 gl_cv_w32_getaddrinfo=no
12557 am_save_LIBS="$LIBS"
12558 LIBS="$LIBS -lws2_32"
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 #ifdef HAVE_WS2TCPIP_H
12567 #include <ws2tcpip.h>
12569 #include <stddef.h>
12574 getaddrinfo(NULL, NULL, NULL, NULL);
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (ac_try="$ac_link"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12586 $as_echo "$ac_try_echo") >&5
12587 (eval "$ac_link") 2>conftest.er1
12589 grep -v '^ *+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest$ac_exeext && {
12597 test "$cross_compiling" = yes ||
12598 $as_test_x conftest$ac_exeext
12600 gl_cv_w32_getaddrinfo=yes
12602 $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12608 rm -rf conftest.dSYM
12609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS="$am_save_LIBS"
12613 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
12614 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
12615 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
12616 LIBS="$LIBS -lws2_32"
12625 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
12630 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
12631 # inline function declared in ws2tcpip.h, so we need to get that
12632 # header included somehow.
12633 { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
12634 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
12635 if test "${gl_cv_func_gai_strerror+set}" = set; then
12636 $as_echo_n "(cached) " >&6
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 #include <sys/types.h>
12647 #ifdef HAVE_SYS_SOCKET_H
12648 #include <sys/socket.h>
12650 #ifdef HAVE_NETDB_H
12653 #ifdef HAVE_WS2TCPIP_H
12654 #include <ws2tcpip.h>
12656 #include <stddef.h>
12661 gai_strerror (NULL);
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (ac_try="$ac_link"
12668 case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
12674 (eval "$ac_link") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1 >conftest.err
12678 cat conftest.err >&5
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest$ac_exeext && {
12684 test "$cross_compiling" = yes ||
12685 $as_test_x conftest$ac_exeext
12687 gl_cv_func_gai_strerror=yes
12689 $as_echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 gl_cv_func_gai_strerror=no
12695 rm -rf conftest.dSYM
12696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697 conftest$ac_exeext conftest.$ac_ext
12699 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
12700 $as_echo "$gl_cv_func_gai_strerror" >&6; }
12701 if test $gl_cv_func_gai_strerror = no; then
12709 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
12714 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
12715 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12716 if test "${ac_cv_search_gethostbyname+set}" = set; then
12717 $as_echo_n "(cached) " >&6
12719 ac_func_search_save_LIBS=$LIBS
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12727 /* Override any GCC internal prototype to avoid an error.
12728 Use char because int might match the return type of a GCC
12729 builtin and then its argument prototype would still apply. */
12733 char gethostbyname ();
12737 return gethostbyname ();
12742 for ac_lib in '' inet nsl; do
12743 if test -z "$ac_lib"; then
12744 ac_res="none required"
12747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest$ac_exeext
12770 ac_cv_search_gethostbyname=$ac_res
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12781 if test "${ac_cv_search_gethostbyname+set}" = set; then
12785 if test "${ac_cv_search_gethostbyname+set}" = set; then
12788 ac_cv_search_gethostbyname=no
12790 rm conftest.$ac_ext
12791 LIBS=$ac_func_search_save_LIBS
12793 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
12794 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12795 ac_res=$ac_cv_search_gethostbyname
12796 if test "$ac_res" != no; then
12797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12801 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
12802 $as_echo_n "checking for library containing getservbyname... " >&6; }
12803 if test "${ac_cv_search_getservbyname+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12806 ac_func_search_save_LIBS=$LIBS
12807 cat >conftest.$ac_ext <<_ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12820 char getservbyname ();
12824 return getservbyname ();
12829 for ac_lib in '' inet nsl socket xnet; do
12830 if test -z "$ac_lib"; then
12831 ac_res="none required"
12834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_link") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest$ac_exeext && {
12854 test "$cross_compiling" = yes ||
12855 $as_test_x conftest$ac_exeext
12857 ac_cv_search_getservbyname=$ac_res
12859 $as_echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12865 rm -rf conftest.dSYM
12866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 if test "${ac_cv_search_getservbyname+set}" = set; then
12872 if test "${ac_cv_search_getservbyname+set}" = set; then
12875 ac_cv_search_getservbyname=no
12877 rm conftest.$ac_ext
12878 LIBS=$ac_func_search_save_LIBS
12880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
12881 $as_echo "$ac_cv_search_getservbyname" >&6; }
12882 ac_res=$ac_cv_search_getservbyname
12883 if test "$ac_res" != no; then
12884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12889 for ac_func in gethostbyname
12891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12893 $as_echo_n "checking for $ac_func... " >&6; }
12894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12895 $as_echo_n "(cached) " >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12905 #define $ac_func innocuous_$ac_func
12907 /* System header to define __stub macros and hopefully few prototypes,
12908 which can conflict with char $ac_func (); below.
12909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910 <limits.h> exists even on freestanding compilers. */
12913 # include <limits.h>
12915 # include <assert.h>
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12927 /* The GNU C library defines this for functions which it implements
12928 to always fail with ENOSYS. Some functions are actually named
12929 something starting with __ and the normal name is an alias. */
12930 #if defined __stub_$ac_func || defined __stub___$ac_func
12937 return $ac_func ();
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_link") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest$ac_exeext && {
12960 test "$cross_compiling" = yes ||
12961 $as_test_x conftest$ac_exeext
12963 eval "$as_ac_var=yes"
12965 $as_echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 eval "$as_ac_var=no"
12971 rm -rf conftest.dSYM
12972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12973 conftest$ac_exeext conftest.$ac_ext
12975 ac_res=`eval 'as_val=${'$as_ac_var'}
12976 $as_echo "$as_val"'`
12977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12978 $as_echo "$ac_res" >&6; }
12979 as_val=`eval 'as_val=${'$as_ac_var'}
12980 $as_echo "$as_val"'`
12981 if test "x$as_val" = x""yes; then
12982 cat >>confdefs.h <<_ACEOF
12983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12988 { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
12989 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
12990 if test "${gl_cv_w32_gethostbyname+set}" = set; then
12991 $as_echo_n "(cached) " >&6
12994 gl_cv_w32_gethostbyname=no
12995 am_save_LIBS="$LIBS"
12996 LIBS="$LIBS -lws2_32"
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 #ifdef HAVE_WINSOCK2_H
13005 #include <winsock2.h>
13007 #include <stddef.h>
13012 gethostbyname(NULL);
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024 $as_echo "$ac_try_echo") >&5
13025 (eval "$ac_link") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest$ac_exeext && {
13035 test "$cross_compiling" = yes ||
13036 $as_test_x conftest$ac_exeext
13038 gl_cv_w32_gethostbyname=yes
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13046 rm -rf conftest.dSYM
13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048 conftest$ac_exeext conftest.$ac_ext
13049 LIBS="$am_save_LIBS"
13051 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
13052 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
13053 if test "$gl_cv_w32_gethostbyname" = "yes"; then
13054 LIBS="$LIBS -lws2_32"
13075 { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
13076 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
13077 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
13078 $as_echo_n "(cached) " >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13087 /* sys/types.h is not needed according to POSIX, but the
13088 sys/socket.h in i386-unknown-freebsd4.10 and
13089 powerpc-apple-darwin5.5 required it. */
13090 #include <sys/types.h>
13091 #ifdef HAVE_SYS_SOCKET_H
13092 #include <sys/socket.h>
13094 #ifdef HAVE_NETDB_H
13097 #ifdef HAVE_WS2TCPIP_H
13098 #include <ws2tcpip.h>
13105 #ifndef getaddrinfo
13106 (void) getaddrinfo;
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13120 $as_echo "$ac_try_echo") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
13131 ac_cv_have_decl_getaddrinfo=yes
13133 $as_echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ac_cv_have_decl_getaddrinfo=no
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
13142 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
13143 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_DECL_GETADDRINFO 1
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_DECL_GETADDRINFO 0
13157 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
13158 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
13159 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
13160 $as_echo_n "(cached) " >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13169 /* sys/types.h is not needed according to POSIX, but the
13170 sys/socket.h in i386-unknown-freebsd4.10 and
13171 powerpc-apple-darwin5.5 required it. */
13172 #include <sys/types.h>
13173 #ifdef HAVE_SYS_SOCKET_H
13174 #include <sys/socket.h>
13176 #ifdef HAVE_NETDB_H
13179 #ifdef HAVE_WS2TCPIP_H
13180 #include <ws2tcpip.h>
13187 #ifndef freeaddrinfo
13188 (void) freeaddrinfo;
13195 rm -f conftest.$ac_objext
13196 if { (ac_try="$ac_compile"
13197 case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13202 $as_echo "$ac_try_echo") >&5
13203 (eval "$ac_compile") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } && {
13210 test -z "$ac_c_werror_flag" ||
13211 test ! -s conftest.err
13212 } && test -s conftest.$ac_objext; then
13213 ac_cv_have_decl_freeaddrinfo=yes
13215 $as_echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13218 ac_cv_have_decl_freeaddrinfo=no
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
13224 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
13225 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
13227 cat >>confdefs.h <<_ACEOF
13228 #define HAVE_DECL_FREEADDRINFO 1
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_DECL_FREEADDRINFO 0
13239 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
13240 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
13241 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
13242 $as_echo_n "(cached) " >&6
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* sys/types.h is not needed according to POSIX, but the
13252 sys/socket.h in i386-unknown-freebsd4.10 and
13253 powerpc-apple-darwin5.5 required it. */
13254 #include <sys/types.h>
13255 #ifdef HAVE_SYS_SOCKET_H
13256 #include <sys/socket.h>
13258 #ifdef HAVE_NETDB_H
13261 #ifdef HAVE_WS2TCPIP_H
13262 #include <ws2tcpip.h>
13269 #ifndef gai_strerror
13270 (void) gai_strerror;
13277 rm -f conftest.$ac_objext
13278 if { (ac_try="$ac_compile"
13279 case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13284 $as_echo "$ac_try_echo") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } && {
13292 test -z "$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 } && test -s conftest.$ac_objext; then
13295 ac_cv_have_decl_gai_strerror=yes
13297 $as_echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_cv_have_decl_gai_strerror=no
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
13306 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
13307 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_DECL_GAI_STRERROR 1
13315 cat >>confdefs.h <<_ACEOF
13316 #define HAVE_DECL_GAI_STRERROR 0
13321 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
13322 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
13323 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
13324 $as_echo_n "(cached) " >&6
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13333 /* sys/types.h is not needed according to POSIX, but the
13334 sys/socket.h in i386-unknown-freebsd4.10 and
13335 powerpc-apple-darwin5.5 required it. */
13336 #include <sys/types.h>
13337 #ifdef HAVE_SYS_SOCKET_H
13338 #include <sys/socket.h>
13340 #ifdef HAVE_NETDB_H
13343 #ifdef HAVE_WS2TCPIP_H
13344 #include <ws2tcpip.h>
13351 #ifndef getnameinfo
13352 (void) getnameinfo;
13359 rm -f conftest.$ac_objext
13360 if { (ac_try="$ac_compile"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13366 $as_echo "$ac_try_echo") >&5
13367 (eval "$ac_compile") 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } && {
13374 test -z "$ac_c_werror_flag" ||
13375 test ! -s conftest.err
13376 } && test -s conftest.$ac_objext; then
13377 ac_cv_have_decl_getnameinfo=yes
13379 $as_echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13382 ac_cv_have_decl_getnameinfo=no
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
13388 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
13389 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_DECL_GETNAMEINFO 1
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_DECL_GETNAMEINFO 0
13405 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13406 $as_echo_n "checking for struct addrinfo... " >&6; }
13407 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13408 $as_echo_n "(cached) " >&6
13410 ac_cv_type_struct_addrinfo=no
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13418 #include <sys/types.h>
13419 #ifdef HAVE_SYS_SOCKET_H
13420 #include <sys/socket.h>
13422 #ifdef HAVE_NETDB_H
13425 #ifdef HAVE_WS2TCPIP_H
13426 #include <ws2tcpip.h>
13433 if (sizeof (struct addrinfo))
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13446 $as_echo "$ac_try_echo") >&5
13447 (eval "$ac_compile") 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest.$ac_objext; then
13457 cat >conftest.$ac_ext <<_ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13464 #include <sys/types.h>
13465 #ifdef HAVE_SYS_SOCKET_H
13466 #include <sys/socket.h>
13468 #ifdef HAVE_NETDB_H
13471 #ifdef HAVE_WS2TCPIP_H
13472 #include <ws2tcpip.h>
13479 if (sizeof ((struct addrinfo)))
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493 (eval "$ac_compile") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
13505 $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_cv_type_struct_addrinfo=yes
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513 $as_echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13522 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
13523 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define HAVE_STRUCT_ADDRINFO 1
13536 if test -n "$GETOPT_H"; then
13545 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13554 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13559 cat >>confdefs.h <<\_ACEOF
13560 #define __GETOPT_PREFIX rpl_
13591 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
13592 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13593 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
13594 $as_echo_n "(cached) " >&6
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <sys/time.h>
13609 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13611 return !(x | c.tv_sec | c.tv_usec);
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13624 $as_echo "$ac_try_echo") >&5
13625 (eval "$ac_compile") 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } && {
13632 test -z "$ac_c_werror_flag" ||
13633 test ! -s conftest.err
13634 } && test -s conftest.$ac_objext; then
13635 gl_cv_func_gettimeofday_posix_signature=yes
13637 $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 gl_cv_func_gettimeofday_posix_signature=no
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13646 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13651 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
13652 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13653 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
13654 $as_echo_n "(cached) " >&6
13656 if test "$cross_compiling" = yes; then
13657 gl_cv_func_gettimeofday_clobber=yes
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <string.h>
13666 #include <sys/time.h>
13668 #include <stdlib.h>
13676 struct tm saved_lt;
13678 lt = localtime (&t);
13680 gettimeofday (&tv, NULL);
13681 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13687 rm -f conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13694 $as_echo "$ac_try_echo") >&5
13695 (eval "$ac_link") 2>&5
13697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13704 $as_echo "$ac_try_echo") >&5
13705 (eval "$ac_try") 2>&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 gl_cv_func_gettimeofday_clobber=no
13711 $as_echo "$as_me: program exited with status $ac_status" >&5
13712 $as_echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ( exit $ac_status )
13716 gl_cv_func_gettimeofday_clobber=yes
13718 rm -rf conftest.dSYM
13719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13724 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
13725 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13727 if test $gl_cv_func_gettimeofday_clobber = yes; then
13728 REPLACE_GETTIMEOFDAY=1
13729 SYS_TIME_H=sys/time.h
13738 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13742 for ac_header in sys/timeb.h
13744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13747 $as_echo_n "checking for $ac_header... " >&6; }
13748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13749 $as_echo_n "(cached) " >&6
13751 ac_res=`eval 'as_val=${'$as_ac_Header'}
13752 $as_echo "$as_val"'`
13753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13754 $as_echo "$ac_res" >&6; }
13756 # Is the header compilable?
13757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13758 $as_echo_n "checking $ac_header usability... " >&6; }
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 $ac_includes_default
13766 #include <$ac_header>
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13775 $as_echo "$ac_try_echo") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13778 grep -v '^ *+' conftest.er1 >conftest.err
13780 cat conftest.err >&5
13781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest.$ac_objext; then
13786 ac_header_compiler=yes
13788 $as_echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_header_compiler=no
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 $as_echo "$ac_header_compiler" >&6; }
13798 # Is the header present?
13799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13800 $as_echo_n "checking $ac_header presence... " >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <$ac_header>
13809 if { (ac_try="$ac_cpp conftest.$ac_ext"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } >/dev/null && {
13823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13826 ac_header_preproc=yes
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_header_preproc=no
13834 rm -f conftest.err conftest.$ac_ext
13835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13836 $as_echo "$ac_header_preproc" >&6; }
13838 # So? What about this header?
13839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13845 ac_header_preproc=yes
13848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13851 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13855 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 $as_echo_n "checking for $ac_header... " >&6; }
13865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13866 $as_echo_n "(cached) " >&6
13868 eval "$as_ac_Header=\$ac_header_preproc"
13870 ac_res=`eval 'as_val=${'$as_ac_Header'}
13871 $as_echo "$as_val"'`
13872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13873 $as_echo "$ac_res" >&6; }
13876 as_val=`eval 'as_val=${'$as_ac_Header'}
13877 $as_echo "$as_val"'`
13878 if test "x$as_val" = x""yes; then
13879 cat >>confdefs.h <<_ACEOF
13880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13888 for ac_func in _ftime
13890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13892 $as_echo_n "checking for $ac_func... " >&6; }
13893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13894 $as_echo_n "(cached) " >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13904 #define $ac_func innocuous_$ac_func
13906 /* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char $ac_func (); below.
13908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13909 <limits.h> exists even on freestanding compilers. */
13912 # include <limits.h>
13914 # include <assert.h>
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined __stub_$ac_func || defined __stub___$ac_func
13936 return $ac_func ();
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13948 $as_echo "$ac_try_echo") >&5
13949 (eval "$ac_link") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest$ac_exeext && {
13959 test "$cross_compiling" = yes ||
13960 $as_test_x conftest$ac_exeext
13962 eval "$as_ac_var=yes"
13964 $as_echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 eval "$as_ac_var=no"
13970 rm -rf conftest.dSYM
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13974 ac_res=`eval 'as_val=${'$as_ac_var'}
13975 $as_echo "$as_val"'`
13976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13977 $as_echo "$ac_res" >&6; }
13978 as_val=`eval 'as_val=${'$as_ac_var'}
13979 $as_echo "$as_val"'`
13980 if test "x$as_val" = x""yes; then
13981 cat >>confdefs.h <<_ACEOF
13982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13990 cat >>confdefs.h <<\_ACEOF
13991 #define gmtime rpl_gmtime
13995 cat >>confdefs.h <<\_ACEOF
13996 #define localtime rpl_localtime
14001 cat >>confdefs.h <<\_ACEOF
14002 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
14008 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
14009 REPLACE_GETTIMEOFDAY=1
14010 SYS_TIME_H=sys/time.h
14011 if test $gl_cv_func_gettimeofday_clobber != yes; then
14019 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14023 for ac_header in sys/timeb.h
14025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14028 $as_echo_n "checking for $ac_header... " >&6; }
14029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14030 $as_echo_n "(cached) " >&6
14032 ac_res=`eval 'as_val=${'$as_ac_Header'}
14033 $as_echo "$as_val"'`
14034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14035 $as_echo "$ac_res" >&6; }
14037 # Is the header compilable?
14038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14039 $as_echo_n "checking $ac_header usability... " >&6; }
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 #include <$ac_header>
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14056 $as_echo "$ac_try_echo") >&5
14057 (eval "$ac_compile") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest.$ac_objext; then
14067 ac_header_compiler=yes
14069 $as_echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_header_compiler=no
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14077 $as_echo "$ac_header_compiler" >&6; }
14079 # Is the header present?
14080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14081 $as_echo_n "checking $ac_header presence... " >&6; }
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 #include <$ac_header>
14090 if { (ac_try="$ac_cpp conftest.$ac_ext"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } >/dev/null && {
14104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14107 ac_header_preproc=yes
14109 $as_echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_header_preproc=no
14115 rm -f conftest.err conftest.$ac_ext
14116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 $as_echo "$ac_header_preproc" >&6; }
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc=yes
14129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14132 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14136 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14145 $as_echo_n "checking for $ac_header... " >&6; }
14146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14147 $as_echo_n "(cached) " >&6
14149 eval "$as_ac_Header=\$ac_header_preproc"
14151 ac_res=`eval 'as_val=${'$as_ac_Header'}
14152 $as_echo "$as_val"'`
14153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14154 $as_echo "$ac_res" >&6; }
14157 as_val=`eval 'as_val=${'$as_ac_Header'}
14158 $as_echo "$as_val"'`
14159 if test "x$as_val" = x""yes; then
14160 cat >>confdefs.h <<_ACEOF
14161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14169 for ac_func in _ftime
14171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14173 $as_echo_n "checking for $ac_func... " >&6; }
14174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14175 $as_echo_n "(cached) " >&6
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14185 #define $ac_func innocuous_$ac_func
14187 /* System header to define __stub macros and hopefully few prototypes,
14188 which can conflict with char $ac_func (); below.
14189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14190 <limits.h> exists even on freestanding compilers. */
14193 # include <limits.h>
14195 # include <assert.h>
14200 /* Override any GCC internal prototype to avoid an error.
14201 Use char because int might match the return type of a GCC
14202 builtin and then its argument prototype would still apply. */
14207 /* The GNU C library defines this for functions which it implements
14208 to always fail with ENOSYS. Some functions are actually named
14209 something starting with __ and the normal name is an alias. */
14210 #if defined __stub_$ac_func || defined __stub___$ac_func
14217 return $ac_func ();
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (ac_try="$ac_link"
14224 case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14229 $as_echo "$ac_try_echo") >&5
14230 (eval "$ac_link") 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } && {
14237 test -z "$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14239 } && test -s conftest$ac_exeext && {
14240 test "$cross_compiling" = yes ||
14241 $as_test_x conftest$ac_exeext
14243 eval "$as_ac_var=yes"
14245 $as_echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14248 eval "$as_ac_var=no"
14251 rm -rf conftest.dSYM
14252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253 conftest$ac_exeext conftest.$ac_ext
14255 ac_res=`eval 'as_val=${'$as_ac_var'}
14256 $as_echo "$as_val"'`
14257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14258 $as_echo "$ac_res" >&6; }
14259 as_val=`eval 'as_val=${'$as_ac_var'}
14260 $as_echo "$as_val"'`
14261 if test "x$as_val" = x""yes; then
14262 cat >>confdefs.h <<_ACEOF
14263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14282 for ac_func in inet_ntop
14284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14285 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14286 $as_echo_n "checking for $ac_func... " >&6; }
14287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14288 $as_echo_n "(cached) " >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14298 #define $ac_func innocuous_$ac_func
14300 /* System header to define __stub macros and hopefully few prototypes,
14301 which can conflict with char $ac_func (); below.
14302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14303 <limits.h> exists even on freestanding compilers. */
14306 # include <limits.h>
14308 # include <assert.h>
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14320 /* The GNU C library defines this for functions which it implements
14321 to always fail with ENOSYS. Some functions are actually named
14322 something starting with __ and the normal name is an alias. */
14323 #if defined __stub_$ac_func || defined __stub___$ac_func
14330 return $ac_func ();
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (ac_try="$ac_link"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343 (eval "$ac_link") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1 >conftest.err
14347 cat conftest.err >&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest$ac_exeext && {
14353 test "$cross_compiling" = yes ||
14354 $as_test_x conftest$ac_exeext
14356 eval "$as_ac_var=yes"
14358 $as_echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14361 eval "$as_ac_var=no"
14364 rm -rf conftest.dSYM
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14368 ac_res=`eval 'as_val=${'$as_ac_var'}
14369 $as_echo "$as_val"'`
14370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14371 $as_echo "$ac_res" >&6; }
14372 as_val=`eval 'as_val=${'$as_ac_var'}
14373 $as_echo "$as_val"'`
14374 if test "x$as_val" = x""yes; then
14375 cat >>confdefs.h <<_ACEOF
14376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14381 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14398 { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
14399 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
14400 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
14401 $as_echo_n "(cached) " >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 #include <arpa/inet.h>
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14429 $as_echo "$ac_try_echo") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && {
14437 test -z "$ac_c_werror_flag" ||
14438 test ! -s conftest.err
14439 } && test -s conftest.$ac_objext; then
14440 ac_cv_have_decl_inet_ntop=yes
14442 $as_echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 ac_cv_have_decl_inet_ntop=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
14451 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
14452 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_DECL_INET_NTOP 1
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_DECL_INET_NTOP 0
14481 if test $gl_cv_func_malloc_posix = yes; then
14482 HAVE_MALLOC_POSIX=1
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_MALLOC_POSIX 1
14496 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14498 HAVE_MALLOC_POSIX=0
14504 GNULIB_MALLOC_POSIX=1
14516 for ac_func in mkdtemp
14518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14520 $as_echo_n "checking for $ac_func... " >&6; }
14521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14522 $as_echo_n "(cached) " >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14532 #define $ac_func innocuous_$ac_func
14534 /* System header to define __stub macros and hopefully few prototypes,
14535 which can conflict with char $ac_func (); below.
14536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14537 <limits.h> exists even on freestanding compilers. */
14540 # include <limits.h>
14542 # include <assert.h>
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14554 /* The GNU C library defines this for functions which it implements
14555 to always fail with ENOSYS. Some functions are actually named
14556 something starting with __ and the normal name is an alias. */
14557 #if defined __stub_$ac_func || defined __stub___$ac_func
14564 return $ac_func ();
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_link") 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext && {
14587 test "$cross_compiling" = yes ||
14588 $as_test_x conftest$ac_exeext
14590 eval "$as_ac_var=yes"
14592 $as_echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 eval "$as_ac_var=no"
14598 rm -rf conftest.dSYM
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext conftest.$ac_ext
14602 ac_res=`eval 'as_val=${'$as_ac_var'}
14603 $as_echo "$as_val"'`
14604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14605 $as_echo "$ac_res" >&6; }
14606 as_val=`eval 'as_val=${'$as_ac_var'}
14607 $as_echo "$as_val"'`
14608 if test "x$as_val" = x""yes; then
14609 cat >>confdefs.h <<_ACEOF
14610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14615 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14621 if test $ac_cv_func_mkdtemp = no; then
14632 { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
14633 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
14634 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
14635 $as_echo_n "(cached) " >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 #include <netinet/in.h>
14653 rm -f conftest.$ac_objext
14654 if { (ac_try="$ac_compile"
14655 case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14660 $as_echo "$ac_try_echo") >&5
14661 (eval "$ac_compile") 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } && {
14668 test -z "$ac_c_werror_flag" ||
14669 test ! -s conftest.err
14670 } && test -s conftest.$ac_objext; then
14671 gl_cv_header_netinet_in_h_selfcontained=yes
14673 $as_echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 gl_cv_header_netinet_in_h_selfcontained=no
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
14683 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
14684 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
14687 NETINET_IN_H='netinet/in.h'
14689 for ac_header in netinet/in.h
14691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14694 $as_echo_n "checking for $ac_header... " >&6; }
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 $as_echo_n "(cached) " >&6
14698 ac_res=`eval 'as_val=${'$as_ac_Header'}
14699 $as_echo "$as_val"'`
14700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14701 $as_echo "$ac_res" >&6; }
14703 # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 $as_echo_n "checking $ac_header usability... " >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <$ac_header>
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest.$ac_objext; then
14733 ac_header_compiler=yes
14735 $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_header_compiler=no
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14747 $as_echo_n "checking $ac_header presence... " >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <$ac_header>
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc=yes
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_preproc=no
14781 rm -f conftest.err conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14798 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14802 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14811 $as_echo_n "checking for $ac_header... " >&6; }
14812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14813 $as_echo_n "(cached) " >&6
14815 eval "$as_ac_Header=\$ac_header_preproc"
14817 ac_res=`eval 'as_val=${'$as_ac_Header'}
14818 $as_echo "$as_val"'`
14819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14820 $as_echo "$ac_res" >&6; }
14823 as_val=`eval 'as_val=${'$as_ac_Header'}
14824 $as_echo "$as_val"'`
14825 if test "x$as_val" = x""yes; then
14826 cat >>confdefs.h <<_ACEOF
14827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 if test $gl_cv_have_include_next = yes; then
14846 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14848 { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
14849 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
14850 if test "${gl_cv_next_netinet_in_h+set}" = set; then
14851 $as_echo_n "(cached) " >&6
14854 if test $ac_cv_header_netinet_in_h = yes; then
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <netinet/in.h>
14864 gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14865 sed -n '\#/netinet/in.h#{
14866 s#.*"\(.*/netinet/in.h\)".*#\1#
14872 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
14876 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
14877 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
14879 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
14883 if test $ac_cv_header_netinet_in_h = yes; then
14884 HAVE_NETINET_IN_H=1
14886 HAVE_NETINET_IN_H=0
14892 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14894 if test -z "$MKDIR_P"; then
14895 if test "${ac_cv_path_mkdir+set}" = set; then
14896 $as_echo_n "(cached) " >&6
14898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14902 test -z "$as_dir" && as_dir=.
14903 for ac_prog in mkdir gmkdir; do
14904 for ac_exec_ext in '' $ac_executable_extensions; do
14905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14907 'mkdir (GNU coreutils) '* | \
14908 'mkdir (coreutils) '* | \
14909 'mkdir (fileutils) '4.1*)
14910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14920 if test "${ac_cv_path_mkdir+set}" = set; then
14921 MKDIR_P="$ac_cv_path_mkdir -p"
14923 # As a last resort, use the slow shell script. Don't cache a
14924 # value for MKDIR_P within a source directory, because that will
14925 # break other packages using the cache if that directory is
14926 # removed, or if the value is a relative name.
14927 test -d ./--version && rmdir ./--version
14928 MKDIR_P="$ac_install_sh -d"
14931 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14932 $as_echo "$MKDIR_P" >&6; }
14942 gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
14945 # Prerequisites of lib/physmem.c.
14954 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14955 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14960 $as_echo_n "checking for $ac_header... " >&6; }
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 $as_echo_n "(cached) " >&6
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 $ac_includes_default
14972 #include <$ac_header>
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981 $as_echo "$ac_try_echo") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 eval "$as_ac_Header=yes"
14994 $as_echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 eval "$as_ac_Header=no"
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 ac_res=`eval 'as_val=${'$as_ac_Header'}
15003 $as_echo "$as_val"'`
15004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15005 $as_echo "$ac_res" >&6; }
15006 as_val=`eval 'as_val=${'$as_ac_Header'}
15007 $as_echo "$as_val"'`
15008 if test "x$as_val" = x""yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15024 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
15026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15028 $as_echo_n "checking for $ac_func... " >&6; }
15029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15030 $as_echo_n "(cached) " >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15040 #define $ac_func innocuous_$ac_func
15042 /* System header to define __stub macros and hopefully few prototypes,
15043 which can conflict with char $ac_func (); below.
15044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15045 <limits.h> exists even on freestanding compilers. */
15048 # include <limits.h>
15050 # include <assert.h>
15055 /* Override any GCC internal prototype to avoid an error.
15056 Use char because int might match the return type of a GCC
15057 builtin and then its argument prototype would still apply. */
15062 /* The GNU C library defines this for functions which it implements
15063 to always fail with ENOSYS. Some functions are actually named
15064 something starting with __ and the normal name is an alias. */
15065 #if defined __stub_$ac_func || defined __stub___$ac_func
15072 return $ac_func ();
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15084 $as_echo "$ac_try_echo") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext && {
15095 test "$cross_compiling" = yes ||
15096 $as_test_x conftest$ac_exeext
15098 eval "$as_ac_var=yes"
15100 $as_echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 eval "$as_ac_var=no"
15106 rm -rf conftest.dSYM
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15110 ac_res=`eval 'as_val=${'$as_ac_var'}
15111 $as_echo "$as_val"'`
15112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15113 $as_echo "$ac_res" >&6; }
15114 as_val=`eval 'as_val=${'$as_ac_var'}
15115 $as_echo "$as_val"'`
15116 if test "x$as_val" = x""yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15134 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
15149 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
15160 for ac_header in stdint.h
15162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15165 $as_echo_n "checking for $ac_header... " >&6; }
15166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 $as_echo_n "(cached) " >&6
15169 ac_res=`eval 'as_val=${'$as_ac_Header'}
15170 $as_echo "$as_val"'`
15171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15172 $as_echo "$ac_res" >&6; }
15174 # Is the header compilable?
15175 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 $as_echo_n "checking $ac_header usability... " >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15184 #include <$ac_header>
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194 (eval "$ac_compile") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && {
15201 test -z "$ac_c_werror_flag" ||
15202 test ! -s conftest.err
15203 } && test -s conftest.$ac_objext; then
15204 ac_header_compiler=yes
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_compiler=no
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15214 $as_echo "$ac_header_compiler" >&6; }
15216 # Is the header present?
15217 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15218 $as_echo_n "checking $ac_header presence... " >&6; }
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <$ac_header>
15227 if { (ac_try="$ac_cpp conftest.$ac_ext"
15228 case "(($ac_try" in
15229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230 *) ac_try_echo=$ac_try;;
15232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15233 $as_echo "$ac_try_echo") >&5
15234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } >/dev/null && {
15241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15242 test ! -s conftest.err
15244 ac_header_preproc=yes
15246 $as_echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_header_preproc=no
15252 rm -f conftest.err conftest.$ac_ext
15253 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15254 $as_echo "$ac_header_preproc" >&6; }
15256 # So? What about this header?
15257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15260 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15263 ac_header_preproc=yes
15266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15267 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15269 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15271 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15273 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15277 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 $as_echo_n "checking for $ac_header... " >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 $as_echo_n "(cached) " >&6
15286 eval "$as_ac_Header=\$ac_header_preproc"
15288 ac_res=`eval 'as_val=${'$as_ac_Header'}
15289 $as_echo "$as_val"'`
15290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15291 $as_echo "$ac_res" >&6; }
15294 as_val=`eval 'as_val=${'$as_ac_Header'}
15295 $as_echo "$as_val"'`
15296 if test "x$as_val" = x""yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
15306 $as_echo_n "checking for SIZE_MAX... " >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15315 #include <limits.h>
15317 #include <stdint.h>
15324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15325 $EGREP "Found it" >/dev/null 2>&1; then
15330 if test -z "$result"; then
15331 if test "$cross_compiling" = yes; then
15332 # Depending upon the size, compute the lo and hi bounds.
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <stddef.h>
15340 #include <limits.h>
15344 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_compile") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest.$ac_objext; then
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 #include <stddef.h>
15378 #include <limits.h>
15382 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15399 grep -v '^ *+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest.$ac_objext; then
15407 ac_hi=$ac_mid; break
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_lo=`expr $ac_mid + 1`
15413 if test $ac_lo -le $ac_mid; then
15417 ac_mid=`expr 2 '*' $ac_mid + 1`
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 $as_echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #include <stddef.h>
15433 #include <limits.h>
15437 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452 (eval "$ac_compile") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest.$ac_objext; then
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <stddef.h>
15471 #include <limits.h>
15475 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489 $as_echo "$ac_try_echo") >&5
15490 (eval "$ac_compile") 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest.$ac_objext; then
15500 ac_lo=$ac_mid; break
15502 $as_echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_hi=`expr '(' $ac_mid ')' - 1`
15506 if test $ac_mid -le $ac_hi; then
15510 ac_mid=`expr 2 '*' $ac_mid`
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 $as_echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 # Binary search between lo and hi bounds.
15527 while test "x$ac_lo" != "x$ac_hi"; do
15528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 #include <stddef.h>
15536 #include <limits.h>
15540 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554 $as_echo "$ac_try_echo") >&5
15555 (eval "$ac_compile") 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && {
15562 test -z "$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15564 } && test -s conftest.$ac_objext; then
15567 $as_echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 ac_lo=`expr '(' $ac_mid ')' + 1`
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15576 ?*) size_t_bits_minus_1=$ac_lo;;
15577 '') size_t_bits_minus_1= ;;
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 #include <stddef.h>
15587 #include <limits.h>
15588 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
15589 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
15591 #include <stdlib.h>
15596 FILE *f = fopen ("conftest.val", "w");
15599 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
15601 long int i = longval ();
15602 if (i != (sizeof (size_t) * CHAR_BIT - 1))
15604 fprintf (f, "%ld", i);
15608 unsigned long int i = ulongval ();
15609 if (i != (sizeof (size_t) * CHAR_BIT - 1))
15611 fprintf (f, "%lu", i);
15613 /* Do not output a trailing newline, as this causes \r\n confusion
15614 on some platforms. */
15615 return ferror (f) || fclose (f) != 0;
15621 rm -f conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15628 $as_echo "$ac_try_echo") >&5
15629 (eval "$ac_link") 2>&5
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15633 { (case "(($ac_try" in
15634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635 *) ac_try_echo=$ac_try;;
15637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638 $as_echo "$ac_try_echo") >&5
15639 (eval "$ac_try") 2>&5
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 size_t_bits_minus_1=`cat conftest.val`
15645 $as_echo "$as_me: program exited with status $ac_status" >&5
15646 $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ( exit $ac_status )
15650 size_t_bits_minus_1=
15652 rm -rf conftest.dSYM
15653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15657 if test "$cross_compiling" = yes; then
15658 # Depending upon the size, compute the lo and hi bounds.
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 #include <stddef.h>
15669 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
15676 rm -f conftest.$ac_objext
15677 if { (ac_try="$ac_compile"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15683 $as_echo "$ac_try_echo") >&5
15684 (eval "$ac_compile") 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest.$ac_objext; then
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 #include <stddef.h>
15706 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720 $as_echo "$ac_try_echo") >&5
15721 (eval "$ac_compile") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest.$ac_objext; then
15731 ac_hi=$ac_mid; break
15733 $as_echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 ac_lo=`expr $ac_mid + 1`
15737 if test $ac_lo -le $ac_mid; then
15741 ac_mid=`expr 2 '*' $ac_mid + 1`
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 $as_echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <stddef.h>
15760 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
15767 rm -f conftest.$ac_objext
15768 if { (ac_try="$ac_compile"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774 $as_echo "$ac_try_echo") >&5
15775 (eval "$ac_compile") 2>conftest.er1
15777 grep -v '^ *+' conftest.er1 >conftest.err
15779 cat conftest.err >&5
15780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest.$ac_objext; then
15787 cat >conftest.$ac_ext <<_ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 #include <stddef.h>
15797 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15811 $as_echo "$ac_try_echo") >&5
15812 (eval "$ac_compile") 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && {
15819 test -z "$ac_c_werror_flag" ||
15820 test ! -s conftest.err
15821 } && test -s conftest.$ac_objext; then
15822 ac_lo=$ac_mid; break
15824 $as_echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_hi=`expr '(' $ac_mid ')' - 1`
15828 if test $ac_mid -le $ac_hi; then
15832 ac_mid=`expr 2 '*' $ac_mid`
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15838 $as_echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15848 # Binary search between lo and hi bounds.
15849 while test "x$ac_lo" != "x$ac_hi"; do
15850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <stddef.h>
15861 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
15868 rm -f conftest.$ac_objext
15869 if { (ac_try="$ac_compile"
15870 case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15875 $as_echo "$ac_try_echo") >&5
15876 (eval "$ac_compile") 2>conftest.er1
15878 grep -v '^ *+' conftest.er1 >conftest.err
15880 cat conftest.err >&5
15881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } && {
15883 test -z "$ac_c_werror_flag" ||
15884 test ! -s conftest.err
15885 } && test -s conftest.$ac_objext; then
15888 $as_echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891 ac_lo=`expr '(' $ac_mid ')' + 1`
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 ?*) fits_in_uint=$ac_lo;;
15898 '') fits_in_uint= ;;
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 #include <stddef.h>
15908 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
15909 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
15911 #include <stdlib.h>
15916 FILE *f = fopen ("conftest.val", "w");
15919 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
15921 long int i = longval ();
15922 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15924 fprintf (f, "%ld", i);
15928 unsigned long int i = ulongval ();
15929 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
15931 fprintf (f, "%lu", i);
15933 /* Do not output a trailing newline, as this causes \r\n confusion
15934 on some platforms. */
15935 return ferror (f) || fclose (f) != 0;
15941 rm -f conftest$ac_exeext
15942 if { (ac_try="$ac_link"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15948 $as_echo "$ac_try_echo") >&5
15949 (eval "$ac_link") 2>&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15953 { (case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15958 $as_echo "$ac_try_echo") >&5
15959 (eval "$ac_try") 2>&5
15961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 fits_in_uint=`cat conftest.val`
15965 $as_echo "$as_me: program exited with status $ac_status" >&5
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15969 ( exit $ac_status )
15972 rm -rf conftest.dSYM
15973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15977 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
15978 if test $fits_in_uint = 1; then
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <stddef.h>
15987 extern unsigned long foo;
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005 (eval "$ac_compile") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest.$ac_objext; then
16017 $as_echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 if test $fits_in_uint = 1; then
16026 result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16028 result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16031 result='((size_t)~(size_t)0)'
16034 { $as_echo "$as_me:$LINENO: result: $result" >&5
16035 $as_echo "$result" >&6; }
16036 if test "$result" != yes; then
16038 cat >>confdefs.h <<_ACEOF
16039 #define SIZE_MAX $result
16047 for ac_func in snprintf
16049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16050 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16051 $as_echo_n "checking for $ac_func... " >&6; }
16052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16053 $as_echo_n "(cached) " >&6
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16063 #define $ac_func innocuous_$ac_func
16065 /* System header to define __stub macros and hopefully few prototypes,
16066 which can conflict with char $ac_func (); below.
16067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16068 <limits.h> exists even on freestanding compilers. */
16071 # include <limits.h>
16073 # include <assert.h>
16078 /* Override any GCC internal prototype to avoid an error.
16079 Use char because int might match the return type of a GCC
16080 builtin and then its argument prototype would still apply. */
16085 /* The GNU C library defines this for functions which it implements
16086 to always fail with ENOSYS. Some functions are actually named
16087 something starting with __ and the normal name is an alias. */
16088 #if defined __stub_$ac_func || defined __stub___$ac_func
16095 return $ac_func ();
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108 (eval "$ac_link") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } && {
16115 test -z "$ac_c_werror_flag" ||
16116 test ! -s conftest.err
16117 } && test -s conftest$ac_exeext && {
16118 test "$cross_compiling" = yes ||
16119 $as_test_x conftest$ac_exeext
16121 eval "$as_ac_var=yes"
16123 $as_echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 eval "$as_ac_var=no"
16129 rm -rf conftest.dSYM
16130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16131 conftest$ac_exeext conftest.$ac_ext
16133 ac_res=`eval 'as_val=${'$as_ac_var'}
16134 $as_echo "$as_val"'`
16135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16136 $as_echo "$ac_res" >&6; }
16137 as_val=`eval 'as_val=${'$as_ac_var'}
16138 $as_echo "$as_val"'`
16139 if test "x$as_val" = x""yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16147 if test $ac_cv_func_snprintf = no; then
16157 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16159 if test $ac_cv_func_snprintf = yes; then
16172 if test $ac_cv_have_decl_snprintf = no; then
16173 HAVE_DECL_SNPRINTF=0
16180 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
16181 $as_echo_n "checking for socklen_t... " >&6; }
16182 if test "${ac_cv_type_socklen_t+set}" = set; then
16183 $as_echo_n "(cached) " >&6
16185 ac_cv_type_socklen_t=no
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <sys/types.h>
16193 #if HAVE_SYS_SOCKET_H
16194 # include <sys/socket.h>
16195 #elif HAVE_WS2TCPIP_H
16196 # include <ws2tcpip.h>
16202 if (sizeof (socklen_t))
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216 (eval "$ac_compile") 2>conftest.er1
16218 grep -v '^ *+' conftest.er1 >conftest.err
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest.$ac_objext; then
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 #include <sys/types.h>
16233 #if HAVE_SYS_SOCKET_H
16234 # include <sys/socket.h>
16235 #elif HAVE_WS2TCPIP_H
16236 # include <ws2tcpip.h>
16242 if (sizeof ((socklen_t)))
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_cv_type_socklen_t=yes
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 $as_echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
16285 $as_echo "$ac_cv_type_socklen_t" >&6; }
16286 if test "x$ac_cv_type_socklen_t" = x""yes; then
16289 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
16290 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16291 if test "${gl_cv_socklen_t_equiv+set}" = set; then
16292 $as_echo_n "(cached) " >&6
16294 # Systems have either "struct sockaddr *" or
16295 # "void *" as the second argument to getpeername
16296 gl_cv_socklen_t_equiv=
16297 for arg2 in "struct sockaddr" void; do
16298 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <sys/types.h>
16306 #include <sys/socket.h>
16308 int getpeername (int, $arg2 *, $t *);
16313 getpeername (0, 0, &len);
16318 rm -f conftest.$ac_objext
16319 if { (ac_try="$ac_compile"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325 $as_echo "$ac_try_echo") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16328 grep -v '^ *+' conftest.er1 >conftest.err
16330 cat conftest.err >&5
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16336 gl_cv_socklen_t_equiv="$t"
16338 $as_echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 test "$gl_cv_socklen_t_equiv" != "" && break
16347 test "$gl_cv_socklen_t_equiv" != "" && break
16352 if test "$gl_cv_socklen_t_equiv" = ""; then
16353 { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
16354 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
16355 { (exit 1); exit 1; }; }
16357 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
16358 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16360 cat >>confdefs.h <<_ACEOF
16361 #define socklen_t $gl_cv_socklen_t_equiv
16367 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
16368 $as_echo_n "checking for ssize_t... " >&6; }
16369 if test "${gt_cv_ssize_t+set}" = set; then
16370 $as_echo_n "(cached) " >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 #include <sys/types.h>
16382 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16388 rm -f conftest.$ac_objext
16389 if { (ac_try="$ac_compile"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_compile") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest.$ac_objext; then
16408 $as_echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
16417 $as_echo "$gt_cv_ssize_t" >&6; }
16418 if test $gt_cv_ssize_t = no; then
16420 cat >>confdefs.h <<\_ACEOF
16421 #define ssize_t int
16429 # Define two additional variables used in the Makefile substitution.
16431 if test "$ac_cv_header_stdbool_h" = yes; then
16434 STDBOOL_H='stdbool.h'
16438 if test "$ac_cv_type__Bool" = yes; then
16448 if test $ac_cv_type_long_long_int = yes; then
16449 HAVE_LONG_LONG_INT=1
16451 HAVE_LONG_LONG_INT=0
16455 if test $ac_cv_type_unsigned_long_long_int = yes; then
16456 HAVE_UNSIGNED_LONG_LONG_INT=1
16458 HAVE_UNSIGNED_LONG_LONG_INT=0
16462 if test $ac_cv_header_inttypes_h = yes; then
16469 if test $ac_cv_header_sys_types_h = yes; then
16487 if test $gl_cv_have_include_next = yes; then
16488 gl_cv_next_stdint_h='<'stdint.h'>'
16490 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16491 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16492 if test "${gl_cv_next_stdint_h+set}" = set; then
16493 $as_echo_n "(cached) " >&6
16496 if test $ac_cv_header_stdint_h = yes; then
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <stdint.h>
16506 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16507 sed -n '\#/stdint.h#{
16508 s#.*"\(.*/stdint.h\)".*#\1#
16514 gl_cv_next_stdint_h='<'stdint.h'>'
16518 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16519 $as_echo "$gl_cv_next_stdint_h" >&6; }
16521 NEXT_STDINT_H=$gl_cv_next_stdint_h
16525 if test $ac_cv_header_stdint_h = yes; then
16532 if test $ac_cv_header_stdint_h = yes; then
16533 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16534 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16535 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16536 $as_echo_n "(cached) " >&6
16538 gl_cv_header_working_stdint_h=no
16539 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16547 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16548 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16549 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16550 #include <stdint.h>
16551 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16552 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16553 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16557 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16558 included before <wchar.h>. */
16559 #include <stddef.h>
16560 #include <signal.h>
16562 # include <stdio.h>
16564 # include <wchar.h>
16569 int8_t a1 = INT8_MAX;
16570 int8_t a1min = INT8_MIN;
16573 int16_t a2 = INT16_MAX;
16574 int16_t a2min = INT16_MIN;
16577 int32_t a3 = INT32_MAX;
16578 int32_t a3min = INT32_MIN;
16581 int64_t a4 = INT64_MAX;
16582 int64_t a4min = INT64_MIN;
16585 uint8_t b1 = UINT8_MAX;
16587 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16590 uint16_t b2 = UINT16_MAX;
16593 uint32_t b3 = UINT32_MAX;
16596 uint64_t b4 = UINT64_MAX;
16598 int_least8_t c1 = INT8_C (0x7f);
16599 int_least8_t c1max = INT_LEAST8_MAX;
16600 int_least8_t c1min = INT_LEAST8_MIN;
16601 int_least16_t c2 = INT16_C (0x7fff);
16602 int_least16_t c2max = INT_LEAST16_MAX;
16603 int_least16_t c2min = INT_LEAST16_MIN;
16604 int_least32_t c3 = INT32_C (0x7fffffff);
16605 int_least32_t c3max = INT_LEAST32_MAX;
16606 int_least32_t c3min = INT_LEAST32_MIN;
16607 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16608 int_least64_t c4max = INT_LEAST64_MAX;
16609 int_least64_t c4min = INT_LEAST64_MIN;
16610 uint_least8_t d1 = UINT8_C (0xff);
16611 uint_least8_t d1max = UINT_LEAST8_MAX;
16612 uint_least16_t d2 = UINT16_C (0xffff);
16613 uint_least16_t d2max = UINT_LEAST16_MAX;
16614 uint_least32_t d3 = UINT32_C (0xffffffff);
16615 uint_least32_t d3max = UINT_LEAST32_MAX;
16616 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16617 uint_least64_t d4max = UINT_LEAST64_MAX;
16618 int_fast8_t e1 = INT_FAST8_MAX;
16619 int_fast8_t e1min = INT_FAST8_MIN;
16620 int_fast16_t e2 = INT_FAST16_MAX;
16621 int_fast16_t e2min = INT_FAST16_MIN;
16622 int_fast32_t e3 = INT_FAST32_MAX;
16623 int_fast32_t e3min = INT_FAST32_MIN;
16624 int_fast64_t e4 = INT_FAST64_MAX;
16625 int_fast64_t e4min = INT_FAST64_MIN;
16626 uint_fast8_t f1 = UINT_FAST8_MAX;
16627 uint_fast16_t f2 = UINT_FAST16_MAX;
16628 uint_fast32_t f3 = UINT_FAST32_MAX;
16629 uint_fast64_t f4 = UINT_FAST64_MAX;
16631 intptr_t g = INTPTR_MAX;
16632 intptr_t gmin = INTPTR_MIN;
16635 uintptr_t h = UINTPTR_MAX;
16637 intmax_t i = INTMAX_MAX;
16638 uintmax_t j = UINTMAX_MAX;
16640 #include <limits.h> /* for CHAR_BIT */
16641 #define TYPE_MINIMUM(t) \
16642 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16643 #define TYPE_MAXIMUM(t) \
16644 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16647 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16648 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16650 /* Detect bug in FreeBSD 6.0 / ia64. */
16651 int check_SIG_ATOMIC:
16652 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16653 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16655 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16657 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16658 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16660 /* Detect bug in mingw. */
16662 WINT_MIN == TYPE_MINIMUM (wint_t)
16663 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16666 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16668 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16669 int check_UINT16_C:
16670 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16672 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16674 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16677 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16680 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16683 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16685 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16686 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16687 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16688 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16689 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16690 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16691 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16692 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16693 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16694 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16695 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } && {
16721 test -z "$ac_c_werror_flag" ||
16722 test ! -s conftest.err
16723 } && test -s conftest.$ac_objext; then
16724 gl_cv_header_working_stdint_h=yes
16726 $as_echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16735 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16737 if test "$gl_cv_header_working_stdint_h" = yes; then
16742 for ac_header in sys/inttypes.h sys/bitypes.h
16744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16747 $as_echo_n "checking for $ac_header... " >&6; }
16748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16749 $as_echo_n "(cached) " >&6
16751 ac_res=`eval 'as_val=${'$as_ac_Header'}
16752 $as_echo "$as_val"'`
16753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16754 $as_echo "$ac_res" >&6; }
16756 # Is the header compilable?
16757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16758 $as_echo_n "checking $ac_header usability... " >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 #include <$ac_header>
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16775 $as_echo "$ac_try_echo") >&5
16776 (eval "$ac_compile") 2>conftest.er1
16778 grep -v '^ *+' conftest.er1 >conftest.err
16780 cat conftest.err >&5
16781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } && {
16783 test -z "$ac_c_werror_flag" ||
16784 test ! -s conftest.err
16785 } && test -s conftest.$ac_objext; then
16786 ac_header_compiler=yes
16788 $as_echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_header_compiler=no
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16796 $as_echo "$ac_header_compiler" >&6; }
16798 # Is the header present?
16799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16800 $as_echo_n "checking $ac_header presence... " >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <$ac_header>
16809 if { (ac_try="$ac_cpp conftest.$ac_ext"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16815 $as_echo "$ac_try_echo") >&5
16816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } >/dev/null && {
16823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16824 test ! -s conftest.err
16826 ac_header_preproc=yes
16828 $as_echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_header_preproc=no
16834 rm -f conftest.err conftest.$ac_ext
16835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16836 $as_echo "$ac_header_preproc" >&6; }
16838 # So? What about this header?
16839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16845 ac_header_preproc=yes
16848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16851 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16855 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16864 $as_echo_n "checking for $ac_header... " >&6; }
16865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16866 $as_echo_n "(cached) " >&6
16868 eval "$as_ac_Header=\$ac_header_preproc"
16870 ac_res=`eval 'as_val=${'$as_ac_Header'}
16871 $as_echo "$as_val"'`
16872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16873 $as_echo "$ac_res" >&6; }
16876 as_val=`eval 'as_val=${'$as_ac_Header'}
16877 $as_echo "$as_val"'`
16878 if test "x$as_val" = x""yes; then
16879 cat >>confdefs.h <<_ACEOF
16880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16887 if test $ac_cv_header_sys_inttypes_h = yes; then
16888 HAVE_SYS_INTTYPES_H=1
16890 HAVE_SYS_INTTYPES_H=0
16893 if test $ac_cv_header_sys_bitypes_h = yes; then
16894 HAVE_SYS_BITYPES_H=1
16896 HAVE_SYS_BITYPES_H=0
16916 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16917 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16918 $as_echo_n "checking for bit size of $gltype... " >&6; }
16919 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16920 $as_echo_n "(cached) " >&6
16922 if test "$cross_compiling" = yes; then
16923 # Depending upon the size, compute the lo and hi bounds.
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16931 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16932 included before <wchar.h>. */
16933 #include <stddef.h>
16934 #include <signal.h>
16936 # include <stdio.h>
16938 # include <wchar.h>
16941 #include <limits.h>
16945 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16952 rm -f conftest.$ac_objext
16953 if { (ac_try="$ac_compile"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16959 $as_echo "$ac_try_echo") >&5
16960 (eval "$ac_compile") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1 >conftest.err
16964 cat conftest.err >&5
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest.$ac_objext; then
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16979 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16980 included before <wchar.h>. */
16981 #include <stddef.h>
16982 #include <signal.h>
16984 # include <stdio.h>
16986 # include <wchar.h>
16989 #include <limits.h>
16993 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17000 rm -f conftest.$ac_objext
17001 if { (ac_try="$ac_compile"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_compile") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } && {
17015 test -z "$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17017 } && test -s conftest.$ac_objext; then
17018 ac_hi=$ac_mid; break
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ac_lo=`expr $ac_mid + 1`
17024 if test $ac_lo -le $ac_mid; then
17028 ac_mid=`expr 2 '*' $ac_mid + 1`
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 $as_echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.$ac_ext >&5
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17044 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17045 included before <wchar.h>. */
17046 #include <stddef.h>
17047 #include <signal.h>
17049 # include <stdio.h>
17051 # include <wchar.h>
17054 #include <limits.h>
17058 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17072 $as_echo "$ac_try_echo") >&5
17073 (eval "$ac_compile") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest.$ac_objext; then
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17092 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17093 included before <wchar.h>. */
17094 #include <stddef.h>
17095 #include <signal.h>
17097 # include <stdio.h>
17099 # include <wchar.h>
17102 #include <limits.h>
17106 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest.$ac_objext; then
17131 ac_lo=$ac_mid; break
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_hi=`expr '(' $ac_mid ')' - 1`
17137 if test $ac_mid -le $ac_hi; then
17141 ac_mid=`expr 2 '*' $ac_mid`
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 $as_echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 # Binary search between lo and hi bounds.
17158 while test "x$ac_lo" != "x$ac_hi"; do
17159 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17167 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17168 included before <wchar.h>. */
17169 #include <stddef.h>
17170 #include <signal.h>
17172 # include <stdio.h>
17174 # include <wchar.h>
17177 #include <limits.h>
17181 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1 >conftest.err
17200 cat conftest.err >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.$ac_objext; then
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_lo=`expr '(' $ac_mid ')' + 1`
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 ?*) result=$ac_lo;;
17218 '') result=unknown ;;
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17229 included before <wchar.h>. */
17230 #include <stddef.h>
17231 #include <signal.h>
17233 # include <stdio.h>
17235 # include <wchar.h>
17238 #include <limits.h>
17239 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17240 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17242 #include <stdlib.h>
17247 FILE *f = fopen ("conftest.val", "w");
17250 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17252 long int i = longval ();
17253 if (i != (sizeof ($gltype) * CHAR_BIT))
17255 fprintf (f, "%ld", i);
17259 unsigned long int i = ulongval ();
17260 if (i != (sizeof ($gltype) * CHAR_BIT))
17262 fprintf (f, "%lu", i);
17264 /* Do not output a trailing newline, as this causes \r\n confusion
17265 on some platforms. */
17266 return ferror (f) || fclose (f) != 0;
17272 rm -f conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17279 $as_echo "$ac_try_echo") >&5
17280 (eval "$ac_link") 2>&5
17282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290 (eval "$ac_try") 2>&5
17292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 result=`cat conftest.val`
17296 $as_echo "$as_me: program exited with status $ac_status" >&5
17297 $as_echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ( exit $ac_status )
17303 rm -rf conftest.dSYM
17304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17307 eval gl_cv_bitsizeof_${gltype}=\$result
17310 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17311 $as_echo "$as_val"'`
17312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17313 $as_echo "$ac_res" >&6; }
17314 eval result=\$gl_cv_bitsizeof_${gltype}
17315 if test $result = unknown; then
17318 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17319 cat >>confdefs.h <<_ACEOF
17320 #define BITSIZEOF_${GLTYPE} $result
17323 eval BITSIZEOF_${GLTYPE}=\$result
17332 for gltype in sig_atomic_t wchar_t wint_t ; do
17333 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17334 $as_echo_n "checking whether $gltype is signed... " >&6; }
17335 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17336 $as_echo_n "(cached) " >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17346 included before <wchar.h>. */
17347 #include <stddef.h>
17348 #include <signal.h>
17350 # include <stdio.h>
17352 # include <wchar.h>
17355 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17364 rm -f conftest.$ac_objext
17365 if { (ac_try="$ac_compile"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17371 $as_echo "$ac_try_echo") >&5
17372 (eval "$ac_compile") 2>conftest.er1
17374 grep -v '^ *+' conftest.er1 >conftest.err
17376 cat conftest.err >&5
17377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } && {
17379 test -z "$ac_c_werror_flag" ||
17380 test ! -s conftest.err
17381 } && test -s conftest.$ac_objext; then
17384 $as_echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17391 eval gl_cv_type_${gltype}_signed=\$result
17394 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17395 $as_echo "$as_val"'`
17396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17397 $as_echo "$ac_res" >&6; }
17398 eval result=\$gl_cv_type_${gltype}_signed
17399 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17400 if test "$result" = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define HAVE_SIGNED_${GLTYPE} 1
17405 eval HAVE_SIGNED_${GLTYPE}=1
17407 eval HAVE_SIGNED_${GLTYPE}=0
17412 gl_cv_type_ptrdiff_t_signed=yes
17413 gl_cv_type_size_t_signed=no
17421 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
17422 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17423 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17424 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17425 $as_echo_n "(cached) " >&6
17427 eval gl_cv_type_${gltype}_suffix=no
17428 eval result=\$gl_cv_type_${gltype}_signed
17429 if test "$result" = yes; then
17434 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17436 '') gltype1='int';;
17437 l) gltype1='long int';;
17438 ll) gltype1='long long int';;
17439 i64) gltype1='__int64';;
17440 u) gltype1='unsigned int';;
17441 ul) gltype1='unsigned long int';;
17442 ull) gltype1='unsigned long long int';;
17443 ui64)gltype1='unsigned __int64';;
17445 cat >conftest.$ac_ext <<_ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17453 included before <wchar.h>. */
17454 #include <stddef.h>
17455 #include <signal.h>
17457 # include <stdio.h>
17459 # include <wchar.h>
17462 extern $gltype foo;
17463 extern $gltype1 foo;
17472 rm -f conftest.$ac_objext
17473 if { (ac_try="$ac_compile"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17479 $as_echo "$ac_try_echo") >&5
17480 (eval "$ac_compile") 2>conftest.er1
17482 grep -v '^ *+' conftest.er1 >conftest.err
17484 cat conftest.err >&5
17485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && {
17487 test -z "$ac_c_werror_flag" ||
17488 test ! -s conftest.err
17489 } && test -s conftest.$ac_objext; then
17490 eval gl_cv_type_${gltype}_suffix=\$glsuf
17492 $as_echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499 eval result=\$gl_cv_type_${gltype}_suffix
17500 test "$result" != no && break
17503 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17504 $as_echo "$as_val"'`
17505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17506 $as_echo "$ac_res" >&6; }
17507 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17508 eval result=\$gl_cv_type_${gltype}_suffix
17509 test "$result" = no && result=
17510 eval ${GLTYPE}_SUFFIX=\$result
17511 cat >>confdefs.h <<_ACEOF
17512 #define ${GLTYPE}_SUFFIX $result
17536 if test $gl_cv_have_include_next = yes; then
17537 gl_cv_next_stdio_h='<'stdio.h'>'
17539 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
17540 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17541 if test "${gl_cv_next_stdio_h+set}" = set; then
17542 $as_echo_n "(cached) " >&6
17545 if test $ac_cv_header_stdio_h = yes; then
17546 cat >conftest.$ac_ext <<_ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17555 gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17556 sed -n '\#/stdio.h#{
17557 s#.*"\(.*/stdio.h\)".*#\1#
17563 gl_cv_next_stdio_h='<'stdio.h'>'
17567 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
17568 $as_echo "$gl_cv_next_stdio_h" >&6; }
17570 NEXT_STDIO_H=$gl_cv_next_stdio_h
17588 if test $gl_cv_have_include_next = yes; then
17589 gl_cv_next_stdlib_h='<'stdlib.h'>'
17591 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
17592 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17593 if test "${gl_cv_next_stdlib_h+set}" = set; then
17594 $as_echo_n "(cached) " >&6
17597 if test $ac_cv_header_stdlib_h = yes; then
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 #include <stdlib.h>
17607 gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17608 sed -n '\#/stdlib.h#{
17609 s#.*"\(.*/stdlib.h\)".*#\1#
17615 gl_cv_next_stdlib_h='<'stdlib.h'>'
17619 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
17620 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17622 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17637 for ac_func in strdup
17639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17640 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17641 $as_echo_n "checking for $ac_func... " >&6; }
17642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17643 $as_echo_n "(cached) " >&6
17645 cat >conftest.$ac_ext <<_ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653 #define $ac_func innocuous_$ac_func
17655 /* System header to define __stub macros and hopefully few prototypes,
17656 which can conflict with char $ac_func (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
17661 # include <limits.h>
17663 # include <assert.h>
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17675 /* The GNU C library defines this for functions which it implements
17676 to always fail with ENOSYS. Some functions are actually named
17677 something starting with __ and the normal name is an alias. */
17678 #if defined __stub_$ac_func || defined __stub___$ac_func
17685 return $ac_func ();
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (ac_try="$ac_link"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17697 $as_echo "$ac_try_echo") >&5
17698 (eval "$ac_link") 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest$ac_exeext && {
17708 test "$cross_compiling" = yes ||
17709 $as_test_x conftest$ac_exeext
17711 eval "$as_ac_var=yes"
17713 $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 eval "$as_ac_var=no"
17719 rm -rf conftest.dSYM
17720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17721 conftest$ac_exeext conftest.$ac_ext
17723 ac_res=`eval 'as_val=${'$as_ac_var'}
17724 $as_echo "$as_val"'`
17725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17726 $as_echo "$ac_res" >&6; }
17727 as_val=`eval 'as_val=${'$as_ac_var'}
17728 $as_echo "$as_val"'`
17729 if test "x$as_val" = x""yes; then
17730 cat >>confdefs.h <<_ACEOF
17731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17736 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17749 if test $ac_cv_have_decl_strdup = no; then
17762 { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
17763 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
17764 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
17765 $as_echo_n "(cached) " >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 #include <sys/socket.h>
17783 rm -f conftest.$ac_objext
17784 if { (ac_try="$ac_compile"
17785 case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17790 $as_echo "$ac_try_echo") >&5
17791 (eval "$ac_compile") 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && {
17798 test -z "$ac_c_werror_flag" ||
17799 test ! -s conftest.err
17800 } && test -s conftest.$ac_objext; then
17801 gl_cv_header_sys_socket_h_selfcontained=yes
17803 $as_echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 gl_cv_header_sys_socket_h_selfcontained=no
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17812 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
17813 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
17814 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
17817 SYS_SOCKET_H='sys/socket.h'
17830 if test $gl_cv_have_include_next = yes; then
17831 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17833 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
17834 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
17835 if test "${gl_cv_next_sys_socket_h+set}" = set; then
17836 $as_echo_n "(cached) " >&6
17839 if test $ac_cv_header_sys_socket_h = yes; then
17840 cat >conftest.$ac_ext <<_ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 #include <sys/socket.h>
17849 gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17850 sed -n '\#/sys/socket.h#{
17851 s#.*"\(.*/sys/socket.h\)".*#\1#
17857 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
17861 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
17862 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
17864 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
17868 if test $ac_cv_header_sys_socket_h = yes; then
17869 HAVE_SYS_SOCKET_H=1
17873 HAVE_SYS_SOCKET_H=0
17876 for ac_header in winsock2.h ws2tcpip.h
17878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17881 $as_echo_n "checking for $ac_header... " >&6; }
17882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17883 $as_echo_n "(cached) " >&6
17885 ac_res=`eval 'as_val=${'$as_ac_Header'}
17886 $as_echo "$as_val"'`
17887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17888 $as_echo "$ac_res" >&6; }
17890 # Is the header compilable?
17891 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17892 $as_echo_n "checking $ac_header usability... " >&6; }
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 #include <$ac_header>
17902 rm -f conftest.$ac_objext
17903 if { (ac_try="$ac_compile"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17909 $as_echo "$ac_try_echo") >&5
17910 (eval "$ac_compile") 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && {
17917 test -z "$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 } && test -s conftest.$ac_objext; then
17920 ac_header_compiler=yes
17922 $as_echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_header_compiler=no
17928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17930 $as_echo "$ac_header_compiler" >&6; }
17932 # Is the header present?
17933 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17934 $as_echo_n "checking $ac_header presence... " >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 #include <$ac_header>
17943 if { (ac_try="$ac_cpp conftest.$ac_ext"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17949 $as_echo "$ac_try_echo") >&5
17950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } >/dev/null && {
17957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17960 ac_header_preproc=yes
17962 $as_echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ac_header_preproc=no
17968 rm -f conftest.err conftest.$ac_ext
17969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17970 $as_echo "$ac_header_preproc" >&6; }
17972 # So? What about this header?
17973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17976 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17979 ac_header_preproc=yes
17982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17983 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17985 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17987 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17989 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17993 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17998 $as_echo_n "checking for $ac_header... " >&6; }
17999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18000 $as_echo_n "(cached) " >&6
18002 eval "$as_ac_Header=\$ac_header_preproc"
18004 ac_res=`eval 'as_val=${'$as_ac_Header'}
18005 $as_echo "$as_val"'`
18006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18007 $as_echo "$ac_res" >&6; }
18010 as_val=`eval 'as_val=${'$as_ac_Header'}
18011 $as_echo "$as_val"'`
18012 if test "x$as_val" = x""yes; then
18013 cat >>confdefs.h <<_ACEOF
18014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18021 if test $ac_cv_header_winsock2_h = yes; then
18026 if test $ac_cv_header_ws2tcpip_h = yes; then
18038 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18039 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18040 if test -z "$MKDIR_P"; then
18041 if test "${ac_cv_path_mkdir+set}" = set; then
18042 $as_echo_n "(cached) " >&6
18044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18048 test -z "$as_dir" && as_dir=.
18049 for ac_prog in mkdir gmkdir; do
18050 for ac_exec_ext in '' $ac_executable_extensions; do
18051 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18052 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18053 'mkdir (GNU coreutils) '* | \
18054 'mkdir (coreutils) '* | \
18055 'mkdir (fileutils) '4.1*)
18056 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18066 if test "${ac_cv_path_mkdir+set}" = set; then
18067 MKDIR_P="$ac_cv_path_mkdir -p"
18069 # As a last resort, use the slow shell script. Don't cache a
18070 # value for MKDIR_P within a source directory, because that will
18071 # break other packages using the cache if that directory is
18072 # removed, or if the value is a relative name.
18073 test -d ./--version && rmdir ./--version
18074 MKDIR_P="$ac_install_sh -d"
18077 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18078 $as_echo "$MKDIR_P" >&6; }
18088 if test $ac_cv_func_lstat = yes; then
18095 { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
18096 $as_echo_n "checking whether mkdir is declared... " >&6; }
18097 if test "${ac_cv_have_decl_mkdir+set}" = set; then
18098 $as_echo_n "(cached) " >&6
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <sys/stat.h>
18119 rm -f conftest.$ac_objext
18120 if { (ac_try="$ac_compile"
18121 case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18126 $as_echo "$ac_try_echo") >&5
18127 (eval "$ac_compile") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_c_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest.$ac_objext; then
18137 ac_cv_have_decl_mkdir=yes
18139 $as_echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_cv_have_decl_mkdir=no
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
18148 $as_echo "$ac_cv_have_decl_mkdir" >&6; }
18149 if test "x$ac_cv_have_decl_mkdir" = x""yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_DECL_MKDIR 1
18157 cat >>confdefs.h <<_ACEOF
18158 #define HAVE_DECL_MKDIR 0
18162 for ac_header in io.h
18164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18167 $as_echo_n "checking for $ac_header... " >&6; }
18168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18169 $as_echo_n "(cached) " >&6
18171 ac_res=`eval 'as_val=${'$as_ac_Header'}
18172 $as_echo "$as_val"'`
18173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18174 $as_echo "$ac_res" >&6; }
18176 # Is the header compilable?
18177 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18178 $as_echo_n "checking $ac_header usability... " >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 $ac_includes_default
18186 #include <$ac_header>
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.$ac_objext; then
18206 ac_header_compiler=yes
18208 $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 ac_header_compiler=no
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18216 $as_echo "$ac_header_compiler" >&6; }
18218 # Is the header present?
18219 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18220 $as_echo_n "checking $ac_header presence... " >&6; }
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 #include <$ac_header>
18229 if { (ac_try="$ac_cpp conftest.$ac_ext"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18235 $as_echo "$ac_try_echo") >&5
18236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } >/dev/null && {
18243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18246 ac_header_preproc=yes
18248 $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_header_preproc=no
18254 rm -f conftest.err conftest.$ac_ext
18255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18256 $as_echo "$ac_header_preproc" >&6; }
18258 # So? What about this header?
18259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18262 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18264 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18265 ac_header_preproc=yes
18268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18269 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18271 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18273 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18275 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18277 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18279 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18284 $as_echo_n "checking for $ac_header... " >&6; }
18285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18286 $as_echo_n "(cached) " >&6
18288 eval "$as_ac_Header=\$ac_header_preproc"
18290 ac_res=`eval 'as_val=${'$as_ac_Header'}
18291 $as_echo "$as_val"'`
18292 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18293 $as_echo "$ac_res" >&6; }
18296 as_val=`eval 'as_val=${'$as_ac_Header'}
18297 $as_echo "$as_val"'`
18298 if test "x$as_val" = x""yes; then
18299 cat >>confdefs.h <<_ACEOF
18300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18310 if test $ac_cv_have_decl_mkdir = yes; then
18316 if test "$ac_cv_header_io_h" = yes; then
18337 if test $gl_cv_have_include_next = yes; then
18338 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18340 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
18341 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18342 if test "${gl_cv_next_sys_stat_h+set}" = set; then
18343 $as_echo_n "(cached) " >&6
18346 if test $ac_cv_header_sys_stat_h = yes; then
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <sys/stat.h>
18356 gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18357 sed -n '\#/sys/stat.h#{
18358 s#.*"\(.*/sys/stat.h\)".*#\1#
18364 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18368 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
18369 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18371 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18375 SYS_STAT_H='sys/stat.h'
18378 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18379 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18380 if test -z "$MKDIR_P"; then
18381 if test "${ac_cv_path_mkdir+set}" = set; then
18382 $as_echo_n "(cached) " >&6
18384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18385 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18388 test -z "$as_dir" && as_dir=.
18389 for ac_prog in mkdir gmkdir; do
18390 for ac_exec_ext in '' $ac_executable_extensions; do
18391 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18392 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18393 'mkdir (GNU coreutils) '* | \
18394 'mkdir (coreutils) '* | \
18395 'mkdir (fileutils) '4.1*)
18396 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18406 if test "${ac_cv_path_mkdir+set}" = set; then
18407 MKDIR_P="$ac_cv_path_mkdir -p"
18409 # As a last resort, use the slow shell script. Don't cache a
18410 # value for MKDIR_P within a source directory, because that will
18411 # break other packages using the cache if that directory is
18412 # removed, or if the value is a relative name.
18413 test -d ./--version && rmdir ./--version
18414 MKDIR_P="$ac_install_sh -d"
18417 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18418 $as_echo "$MKDIR_P" >&6; }
18423 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18424 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18425 if test -z "$MKDIR_P"; then
18426 if test "${ac_cv_path_mkdir+set}" = set; then
18427 $as_echo_n "(cached) " >&6
18429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18433 test -z "$as_dir" && as_dir=.
18434 for ac_prog in mkdir gmkdir; do
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18437 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18438 'mkdir (GNU coreutils) '* | \
18439 'mkdir (coreutils) '* | \
18440 'mkdir (fileutils) '4.1*)
18441 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18451 if test "${ac_cv_path_mkdir+set}" = set; then
18452 MKDIR_P="$ac_cv_path_mkdir -p"
18454 # As a last resort, use the slow shell script. Don't cache a
18455 # value for MKDIR_P within a source directory, because that will
18456 # break other packages using the cache if that directory is
18457 # removed, or if the value is a relative name.
18458 test -d ./--version && rmdir ./--version
18459 MKDIR_P="$ac_install_sh -d"
18462 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18463 $as_echo "$MKDIR_P" >&6; }
18475 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18495 if test $gl_cv_have_include_next = yes; then
18496 gl_cv_next_unistd_h='<'unistd.h'>'
18498 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
18499 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18500 if test "${gl_cv_next_unistd_h+set}" = set; then
18501 $as_echo_n "(cached) " >&6
18504 if test $ac_cv_header_unistd_h = yes; then
18505 cat >conftest.$ac_ext <<_ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 #include <unistd.h>
18514 gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18515 sed -n '\#/unistd.h#{
18516 s#.*"\(.*/unistd.h\)".*#\1#
18522 gl_cv_next_unistd_h='<'unistd.h'>'
18526 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
18527 $as_echo "$gl_cv_next_unistd_h" >&6; }
18529 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18541 if test $ac_cv_header_unistd_h = yes; then
18557 if test $ac_cv_func_vasnprintf = no; then
18573 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18582 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18591 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18600 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18602 if test $ac_cv_func_vasnprintf = yes; then
18604 cat >>confdefs.h <<\_ACEOF
18605 #define REPLACE_VASNPRINTF 1
18619 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
18620 $as_echo_n "checking for ptrdiff_t... " >&6; }
18621 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
18622 $as_echo_n "(cached) " >&6
18624 ac_cv_type_ptrdiff_t=no
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18631 $ac_includes_default
18635 if (sizeof (ptrdiff_t))
18641 rm -f conftest.$ac_objext
18642 if { (ac_try="$ac_compile"
18643 case "(($ac_try" in
18644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18648 $as_echo "$ac_try_echo") >&5
18649 (eval "$ac_compile") 2>conftest.er1
18651 grep -v '^ *+' conftest.er1 >conftest.err
18653 cat conftest.err >&5
18654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && {
18656 test -z "$ac_c_werror_flag" ||
18657 test ! -s conftest.err
18658 } && test -s conftest.$ac_objext; then
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 $ac_includes_default
18669 if (sizeof ((ptrdiff_t)))
18675 rm -f conftest.$ac_objext
18676 if { (ac_try="$ac_compile"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18682 $as_echo "$ac_try_echo") >&5
18683 (eval "$ac_compile") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest.$ac_objext; then
18695 $as_echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_type_ptrdiff_t=yes
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703 $as_echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
18712 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
18713 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define ptrdiff_t long
18733 for ac_func in snprintf wcslen
18735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18737 $as_echo_n "checking for $ac_func... " >&6; }
18738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739 $as_echo_n "(cached) " >&6
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749 #define $ac_func innocuous_$ac_func
18751 /* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char $ac_func (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18757 # include <limits.h>
18759 # include <assert.h>
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18771 /* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774 #if defined __stub_$ac_func || defined __stub___$ac_func
18781 return $ac_func ();
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18793 $as_echo "$ac_try_echo") >&5
18794 (eval "$ac_link") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && {
18801 test -z "$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 } && test -s conftest$ac_exeext && {
18804 test "$cross_compiling" = yes ||
18805 $as_test_x conftest$ac_exeext
18807 eval "$as_ac_var=yes"
18809 $as_echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 eval "$as_ac_var=no"
18815 rm -rf conftest.dSYM
18816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18817 conftest$ac_exeext conftest.$ac_ext
18819 ac_res=`eval 'as_val=${'$as_ac_var'}
18820 $as_echo "$as_val"'`
18821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18822 $as_echo "$ac_res" >&6; }
18823 as_val=`eval 'as_val=${'$as_ac_var'}
18824 $as_echo "$as_val"'`
18825 if test "x$as_val" = x""yes; then
18826 cat >>confdefs.h <<_ACEOF
18827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18833 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18834 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18835 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18836 $as_echo_n "(cached) " >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18857 rm -f conftest.$ac_objext
18858 if { (ac_try="$ac_compile"
18859 case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18864 $as_echo "$ac_try_echo") >&5
18865 (eval "$ac_compile") 2>conftest.er1
18867 grep -v '^ *+' conftest.er1 >conftest.err
18869 cat conftest.err >&5
18870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } && {
18872 test -z "$ac_c_werror_flag" ||
18873 test ! -s conftest.err
18874 } && test -s conftest.$ac_objext; then
18875 ac_cv_have_decl__snprintf=yes
18877 $as_echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18880 ac_cv_have_decl__snprintf=no
18883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18886 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18887 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18889 cat >>confdefs.h <<_ACEOF
18890 #define HAVE_DECL__SNPRINTF 1
18895 cat >>confdefs.h <<_ACEOF
18896 #define HAVE_DECL__SNPRINTF 0
18913 if test -n "$GCC"; then
18914 { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
18915 $as_echo_n "checking for simple visibility declarations... " >&6; }
18916 if test "${gl_cv_cc_visibility+set}" = set; then
18917 $as_echo_n "(cached) " >&6
18920 gl_save_CFLAGS="$CFLAGS"
18921 CFLAGS="$CFLAGS -fvisibility=hidden"
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
18929 extern __attribute__((__visibility__("default"))) int exportedvar;
18930 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
18931 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
18940 rm -f conftest.$ac_objext
18941 if { (ac_try="$ac_compile"
18942 case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18947 $as_echo "$ac_try_echo") >&5
18948 (eval "$ac_compile") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } && {
18955 test -z "$ac_c_werror_flag" ||
18956 test ! -s conftest.err
18957 } && test -s conftest.$ac_objext; then
18958 gl_cv_cc_visibility=yes
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 gl_cv_cc_visibility=no
18966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18967 CFLAGS="$gl_save_CFLAGS"
18970 { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
18971 $as_echo "$gl_cv_cc_visibility" >&6; }
18972 if test $gl_cv_cc_visibility = yes; then
18973 CFLAG_VISIBILITY="-fvisibility=hidden"
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_VISIBILITY $HAVE_VISIBILITY
18987 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
18988 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
18989 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
18990 $as_echo_n "(cached) " >&6
18992 cat >conftest.$ac_ext <<_ACEOF
18996 rm -f conftest.$ac_objext
18997 if { (ac_try="$ac_compile"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19003 $as_echo "$ac_try_echo") >&5
19004 (eval "$ac_compile") 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest.$ac_objext; then
19014 gl_cv_header_wchar_h_standalone=yes
19016 $as_echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 gl_cv_header_wchar_h_standalone=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
19025 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
19026 if test $gl_cv_header_wchar_h_standalone != yes; then
19037 if test $ac_cv_header_wchar_h = yes; then
19054 if test $gl_cv_have_include_next = yes; then
19055 gl_cv_next_wchar_h='<'wchar.h'>'
19057 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
19058 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19059 if test "${gl_cv_next_wchar_h+set}" = set; then
19060 $as_echo_n "(cached) " >&6
19063 if test $ac_cv_header_wchar_h = yes; then
19064 cat >conftest.$ac_ext <<_ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19073 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19074 sed -n '\#/wchar.h#{
19075 s#.*"\(.*/wchar.h\)".*#\1#
19081 gl_cv_next_wchar_h='<'wchar.h'>'
19085 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
19086 $as_echo "$gl_cv_next_wchar_h" >&6; }
19088 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19097 for ac_header in stdint.h
19099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19102 $as_echo_n "checking for $ac_header... " >&6; }
19103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19104 $as_echo_n "(cached) " >&6
19106 ac_res=`eval 'as_val=${'$as_ac_Header'}
19107 $as_echo "$as_val"'`
19108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19109 $as_echo "$ac_res" >&6; }
19111 # Is the header compilable?
19112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19113 $as_echo_n "checking $ac_header usability... " >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 $ac_includes_default
19121 #include <$ac_header>
19123 rm -f conftest.$ac_objext
19124 if { (ac_try="$ac_compile"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19130 $as_echo "$ac_try_echo") >&5
19131 (eval "$ac_compile") 2>conftest.er1
19133 grep -v '^ *+' conftest.er1 >conftest.err
19135 cat conftest.err >&5
19136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } && {
19138 test -z "$ac_c_werror_flag" ||
19139 test ! -s conftest.err
19140 } && test -s conftest.$ac_objext; then
19141 ac_header_compiler=yes
19143 $as_echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_compiler=no
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19151 $as_echo "$ac_header_compiler" >&6; }
19153 # Is the header present?
19154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19155 $as_echo_n "checking $ac_header presence... " >&6; }
19156 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <$ac_header>
19164 if { (ac_try="$ac_cpp conftest.$ac_ext"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } >/dev/null && {
19178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19181 ac_header_preproc=yes
19183 $as_echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_header_preproc=no
19189 rm -f conftest.err conftest.$ac_ext
19190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19191 $as_echo "$ac_header_preproc" >&6; }
19193 # So? What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19200 ac_header_preproc=yes
19203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19206 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19219 $as_echo_n "checking for $ac_header... " >&6; }
19220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19221 $as_echo_n "(cached) " >&6
19223 eval "$as_ac_Header=\$ac_header_preproc"
19225 ac_res=`eval 'as_val=${'$as_ac_Header'}
19226 $as_echo "$as_val"'`
19227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19228 $as_echo "$ac_res" >&6; }
19231 as_val=`eval 'as_val=${'$as_ac_Header'}
19232 $as_echo "$as_val"'`
19233 if test "x$as_val" = x""yes; then
19234 cat >>confdefs.h <<_ACEOF
19235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19252 gl_source_base='tests'
19261 # support deprecated ./configure flags to set various compiler flags
19264 # Check whether --with-cflags was given.
19265 if test "${with_cflags+set}" = set; then
19266 withval=$with_cflags;
19268 "" | y | ye | yes | n | no)
19269 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
19270 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
19271 { (exit 1); exit 1; }; }
19281 # Check whether --with-includes was given.
19282 if test "${with_includes+set}" = set; then
19283 withval=$with_includes;
19285 "" | y | ye | yes | n | no)
19286 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
19287 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
19288 { (exit 1); exit 1; }; }
19292 for dir in $withval; do
19293 if test -d "$dir"; then
19294 CPPFLAGS="$CPPFLAGS -I$dir"
19297 { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
19298 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19301 cat <<AAW_EOF >>config.warnings
19302 Include directory $dir does not exist.
19313 # Check whether --with-libraries was given.
19314 if test "${with_libraries+set}" = set; then
19315 withval=$with_libraries;
19317 "" | y | ye | yes | n | no)
19318 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
19319 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
19320 { (exit 1); exit 1; }; }
19324 for dir in $withval; do
19325 if test -d "$dir"; then
19327 *-solaris2*,*-netbsd*)
19328 LDFLAGS="$LDFLAGS -R$dir"
19331 LDFLAGS="$LDFLAGS -L$dir"
19334 { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
19335 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19338 cat <<AAW_EOF >>config.warnings
19339 Library directory $dir does not exist.
19349 # Disable strict-aliasing optimizations
19351 # test for -W'feature', then add the 'no-' version.
19355 { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
19356 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19357 if test "x$GCC" = "xyes"; then
19358 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19359 $CC -v --help 2>&1) |
19360 $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19361 if test $? -eq 0; then
19363 { $as_echo "$as_me:$LINENO: result: yes" >&5
19364 $as_echo "yes" >&6; }
19367 { $as_echo "$as_me:$LINENO: result: no" >&5
19368 $as_echo "no" >&6; }
19372 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19373 $as_echo "no (not using gcc)" >&6; }
19376 if test x"$found_warning" = x"yes"; then
19377 CFLAGS="$CFLAGS -fno-strict-aliasing"
19379 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19388 # Warn for just about everything
19393 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
19394 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19395 if test "x$GCC" = "xyes"; then
19396 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19397 $CC -v --help 2>&1) |
19398 $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19399 if test $? -eq 0; then
19401 { $as_echo "$as_me:$LINENO: result: yes" >&5
19402 $as_echo "yes" >&6; }
19405 { $as_echo "$as_me:$LINENO: result: no" >&5
19406 $as_echo "no" >&6; }
19410 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19411 $as_echo "no (not using gcc)" >&6; }
19414 if test x"$found_warning" = x"yes"; then
19415 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19424 # And add any extra warnings too
19428 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
19429 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19430 if test "x$GCC" = "xyes"; then
19431 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19432 $CC -v --help 2>&1) |
19433 $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19434 if test $? -eq 0; then
19436 { $as_echo "$as_me:$LINENO: result: yes" >&5
19437 $as_echo "yes" >&6; }
19440 { $as_echo "$as_me:$LINENO: result: no" >&5
19441 $as_echo "no" >&6; }
19445 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19446 $as_echo "no (not using gcc)" >&6; }
19449 if test x"$found_warning" = x"yes"; then
19450 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19457 { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
19458 $as_echo_n "checking for gcc flag -W... " >&6; }
19459 if test "x$GCC" = "xyes"; then
19460 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19461 $CC -v --help 2>&1) |
19462 $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19463 if test $? -eq 0; then
19465 { $as_echo "$as_me:$LINENO: result: yes" >&5
19466 $as_echo "yes" >&6; }
19469 { $as_echo "$as_me:$LINENO: result: no" >&5
19470 $as_echo "no" >&6; }
19474 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
19475 $as_echo "no (not using gcc)" >&6; }
19478 if test x"$found_warning" = x"yes"; then
19479 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19491 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19496 # Configuration flags (--with-xxx and --enable-xxx)
19501 # Check whether --with-user was given.
19502 if test "${with_user+set}" = set; then
19503 withval=$with_user;
19505 "" | y | ye | yes | n | no)
19506 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
19507 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
19508 { (exit 1); exit 1; }; }
19511 CLIENT_LOGIN="$withval"
19518 { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
19519 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
19522 cat <<AAW_EOF >>config.warnings
19523 no user specified (--with-user) -- using 'amanda'
19527 CLIENT_LOGIN=amanda
19534 cat >>confdefs.h <<_ACEOF
19535 #define CLIENT_LOGIN "$CLIENT_LOGIN"
19542 # Check whether --with-group was given.
19543 if test "${with_group+set}" = set; then
19544 withval=$with_group;
19546 "" | y | ye | yes | n | no)
19547 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
19548 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
19549 { (exit 1); exit 1; }; }
19551 *) SETUID_GROUP="$withval"
19558 { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
19559 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
19562 cat <<AAW_EOF >>config.warnings
19563 no group specified (--with-group) -- using 'backup'
19567 CLIENT_LOGIN=backup
19576 # Check whether --with-dumperdir was given.
19577 if test "${with_dumperdir+set}" = set; then
19578 withval=$with_dumperdir;
19580 { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
19581 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
19584 cat <<AAW_EOF >>config.warnings
19585 --with-dumperdir is no longer used.
19596 # Check whether --with-configdir was given.
19597 if test "${with_configdir+set}" = set; then
19598 withval=$with_configdir;
19600 "" | y | ye | yes | n | no)
19601 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
19602 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
19603 { (exit 1); exit 1; }; }
19605 *) CONFIG_DIR="$withval"
19611 : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
19619 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19620 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19621 eval ac_define_dir="\"$CONFIG_DIR\""
19622 eval ac_define_dir="\"$ac_define_dir\""
19623 CONFIG_DIR="$ac_define_dir"
19626 cat >>confdefs.h <<_ACEOF
19627 #define CONFIG_DIR "$ac_define_dir"
19630 test "$prefix_NONE" && prefix=NONE
19631 test "$exec_prefix_NONE" && exec_prefix=NONE
19636 # Check whether --with-indexdir was given.
19637 if test "${with_indexdir+set}" = set; then
19638 withval=$with_indexdir; { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
19639 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
19640 { (exit 1); exit 1; }; }
19647 # Check whether --with-dbdir was given.
19648 if test "${with_dbdir+set}" = set; then
19649 withval=$with_dbdir; { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
19650 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
19651 { (exit 1); exit 1; }; }
19658 # Check whether --with-logdir was given.
19659 if test "${with_logdir+set}" = set; then
19660 withval=$with_logdir; { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
19661 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
19662 { (exit 1); exit 1; }; }
19669 # Check whether --with-suffixes was given.
19670 if test "${with_suffixes+set}" = set; then
19671 withval=$with_suffixes; USE_VERSION_SUFFIXES=$withval
19673 : ${USE_VERSION_SUFFIXES=no}
19678 case "$USE_VERSION_SUFFIXES" in
19679 y | ye | yes) USE_VERSION_SUFFIXES=yes
19681 cat >>confdefs.h <<\_ACEOF
19682 #define USE_VERSION_SUFFIXES 1
19686 program_suffix="-$VERSION_SUFFIX"
19687 # This is from the output of configure.in.
19688 if test "x$program_transform_name" = xs,x,x,; then
19689 program_transform_name=
19691 # Double any \ or $. echo might interpret backslashes.
19692 cat <<\EOF_SED > conftestsed
19693 s,\\,\\\\,g; s,\$,$$,g
19695 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19698 test "x$program_prefix" != xNONE &&
19699 program_transform_name="s,^,${program_prefix},; $program_transform_name"
19700 # Use a double $ so make ignores it.
19701 test "x$program_suffix" != xNONE &&
19702 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
19704 # sed with no file args requires a program.
19705 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
19706 # Remove empty command
19707 cat <<\EOF_SED > conftestsed
19708 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
19710 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
19713 n | no) USE_VERSION_SUFFIXES=no
19715 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
19716 $as_echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
19717 { (exit 1); exit 1; }; }
19725 # Check whether --with-gnutar-listdir was given.
19726 if test "${with_gnutar_listdir+set}" = set; then
19727 withval=$with_gnutar_listdir;
19729 n | no) GNUTAR_LISTDIR= ;;
19730 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
19731 *) GNUTAR_LISTDIR="$withval" ;;
19736 GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
19742 # substitute $prefix, etc. if necessary
19746 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19747 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19748 eval ac_define_dir="\"$GNUTAR_LISTDIR\""
19749 eval ac_define_dir="\"$ac_define_dir\""
19750 GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
19753 cat >>confdefs.h <<_ACEOF
19754 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
19757 test "$prefix_NONE" && prefix=NONE
19758 test "$exec_prefix_NONE" && exec_prefix=NONE
19761 # handle deprecated option
19763 # Check whether --with-gnutar-listed-incremental was given.
19764 if test "${with_gnutar_listed_incremental+set}" = set; then
19765 withval=$with_gnutar_listed_incremental;
19766 { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
19767 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
19768 { (exit 1); exit 1; }; }
19776 # Check whether --with-tmpdir was given.
19777 if test "${with_tmpdir+set}" = set; then
19778 withval=$with_tmpdir;
19790 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
19791 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
19792 { (exit 1); exit 1; }; };;
19793 y | ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
19794 *) AMANDA_TMPDIR="$tmpdir";;
19800 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
19801 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
19802 eval ac_define_dir="\"$AMANDA_TMPDIR\""
19803 eval ac_define_dir="\"$ac_define_dir\""
19804 AMANDA_TMPDIR="$ac_define_dir"
19807 cat >>confdefs.h <<_ACEOF
19808 #define AMANDA_TMPDIR "$ac_define_dir"
19811 test "$prefix_NONE" && prefix=NONE
19812 test "$exec_prefix_NONE" && exec_prefix=NONE
19817 # Check whether --with-force-uid was given.
19818 if test "${with_force_uid+set}" = set; then
19819 withval=$with_force_uid; CHECK_USERID="$withval"
19821 : ${CHECK_USERID=yes}
19825 case "$CHECK_USERID" in
19829 cat >>confdefs.h <<\_ACEOF
19830 #define CHECK_USERID 1
19838 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
19839 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
19840 { (exit 1); exit 1; }; }
19847 # Check whether --with-owner was given.
19848 if test "${with_owner+set}" = set; then
19849 withval=$with_owner;
19851 "" | y | ye | yes | n | no)
19852 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
19853 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
19854 { (exit 1); exit 1; }; }
19856 *) BINARY_OWNER="$withval"
19862 BINARY_OWNER="$CLIENT_LOGIN"
19868 cat >>confdefs.h <<_ACEOF
19869 #define BINARY_OWNER "$BINARY_OWNER"
19876 # Check whether --with-fqdn was given.
19877 if test "${with_fqdn+set}" = set; then
19878 withval=$with_fqdn; USE_FQDN=$withval
19884 case "$USE_FQDN" in
19888 cat >>confdefs.h <<\_ACEOF
19893 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
19894 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
19895 { (exit 1); exit 1; }; }
19901 # Check whether --with-reuseports was given.
19902 if test "${with_reuseports+set}" = set; then
19903 withval=$with_reuseports; case "$withval" in
19904 y | ye | yes) USE_REUSEADDR=no;;
19905 n | no) USE_REUSEADDR=yes;;
19906 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
19907 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
19908 { (exit 1); exit 1; }; };;
19915 if test x"$USE_REUSEADDR" = x"yes"; then
19917 cat >>confdefs.h <<\_ACEOF
19918 #define USE_REUSEADDR 1
19925 # Check whether --with-low-tcpportrange was given.
19926 if test "${with_low_tcpportrange+set}" = set; then
19927 withval=$with_low_tcpportrange; LOW_TCPPORTRANGE="$withval"
19929 LOW_TCPPORTRANGE=unlimited
19933 if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
19934 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19935 { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
19936 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
19937 { (exit 1); exit 1; }; }
19939 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
19940 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
19941 if test $min_low_tcp_port -gt $max_low_tcp_port; then
19942 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
19943 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
19944 { (exit 1); exit 1; }; }
19946 if test $min_low_tcp_port -lt 512; then
19948 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
19949 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
19952 cat <<AAW_EOF >>config.warnings
19953 the low TCP port range should be 512 or greater in --with-low-tcpportrange
19958 if test $max_low_tcp_port -ge 1024; then
19960 { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
19961 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
19964 cat <<AAW_EOF >>config.warnings
19965 the low TCP port range should be less than 1024 in --with-low-tcpportrange
19971 cat >>confdefs.h <<_ACEOF
19972 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
19978 # Check whether --with-tcpportrange was given.
19979 if test "${with_tcpportrange+set}" = set; then
19980 withval=$with_tcpportrange; TCPPORTRANGE="$withval"
19982 TCPPORTRANGE="unlimited"
19986 if test x"$TCPPORTRANGE" != x"unlimited"; then
19987 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
19988 { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
19989 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
19990 { (exit 1); exit 1; }; }
19992 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
19993 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
19994 if test $min_tcp_port -gt $max_tcp_port; then
19995 { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
19996 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
19997 { (exit 1); exit 1; }; }
19999 if test $min_tcp_port -lt 1024; then
20001 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20002 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20005 cat <<AAW_EOF >>config.warnings
20006 the TCP port range should be 1024 or greater in --with-tcpportrange
20011 if test $max_tcp_port -ge 65536; then
20013 { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20014 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20017 cat <<AAW_EOF >>config.warnings
20018 the TCP port range should be less than 65536 in --with-tcpportrange
20024 cat >>confdefs.h <<_ACEOF
20025 #define TCPPORTRANGE $TCPPORTRANGE
20031 # Check whether --with-udpportrange was given.
20032 if test "${with_udpportrange+set}" = set; then
20033 withval=$with_udpportrange; UDPPORTRANGE="$withval"
20035 UDPPORTRANGE="unlimited"
20038 if test x"$UDPPORTRANGE" != x"unlimited"; then
20039 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20040 { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
20041 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
20042 { (exit 1); exit 1; }; }
20044 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20045 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20046 if test $min_udp_port -gt $max_udp_port; then
20047 { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
20048 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
20049 { (exit 1); exit 1; }; }
20051 if test $max_udp_port -ge 1024; then
20053 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20054 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20057 cat <<AAW_EOF >>config.warnings
20058 the UDP port range should be less than 1025 in --with-udpportrange
20063 if test $min_udp_port -le 0; then
20065 { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20066 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20069 cat <<AAW_EOF >>config.warnings
20070 the UDP port range should be greater than 0 in --with-udpportrange
20076 cat >>confdefs.h <<_ACEOF
20077 #define UDPPORTRANGE $UDPPORTRANGE
20087 # Check whether --with-buffered-dump was given.
20088 if test "${with_buffered_dump+set}" = set; then
20089 withval=$with_buffered_dump; DUMPER_SOCKET_BUFFERING=$withval
20091 DUMPER_SOCKET_BUFFERING=no
20094 case "$DUMPER_SOCKET_BUFFERING" in
20098 cat >>confdefs.h <<\_ACEOF
20099 #define DUMPER_SOCKET_BUFFERING 1
20103 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
20104 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
20105 { (exit 1); exit 1; }; } ;;
20110 # Check whether --with-maxtapeblocksize was given.
20111 if test "${with_maxtapeblocksize+set}" = set; then
20112 withval=$with_maxtapeblocksize;
20113 { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20114 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20117 cat <<AAW_EOF >>config.warnings
20118 --with-maxtapeblocksize is no longer needed
20129 # Check whether --with-assertions was given.
20130 if test "${with_assertions+set}" = set; then
20131 withval=$with_assertions;
20137 cat >>confdefs.h <<\_ACEOF
20138 #define ASSERTIONS 1
20142 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
20143 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
20144 { (exit 1); exit 1; }; }
20156 # Check whether --with-debugging was given.
20157 if test "${with_debugging+set}" = set; then
20158 withval=$with_debugging; debugging="$withval"
20165 case "$debugging" in
20166 n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
20167 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
20168 { (exit 1); exit 1; }; };;
20169 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20170 *) AMANDA_DBGDIR="$debugging";;
20173 # evaluate any extra variables in the directory
20177 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20178 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20179 eval ac_define_dir="\"$AMANDA_DBGDIR\""
20180 eval ac_define_dir="\"$ac_define_dir\""
20181 AMANDA_DBGDIR="$ac_define_dir"
20184 cat >>confdefs.h <<_ACEOF
20185 #define AMANDA_DBGDIR "$ac_define_dir"
20188 test "$prefix_NONE" && prefix=NONE
20189 test "$exec_prefix_NONE" && exec_prefix=NONE
20194 # Check whether --with-debug_days was given.
20195 if test "${with_debug_days+set}" = set; then
20196 withval=$with_debug_days;
20197 debug_days="$withval"
20206 case "$debug_days" in
20208 AMANDA_DEBUG_DAYS=0 ;;
20210 AMANDA_DEBUG_DAYS=4 ;;
20211 [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20212 AMANDA_DEBUG_DAYS="$debug_days" ;;
20213 *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
20214 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
20215 { (exit 1); exit 1; }; }
20219 cat >>confdefs.h <<_ACEOF
20220 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20227 # Check whether --with-testing was given.
20228 if test "${with_testing+set}" = set; then
20229 withval=$with_testing;
20240 n | no) SERVICE_SUFFIX="";;
20241 y | ye | yes) SERVICE_SUFFIX="-test";;
20242 *) SERVICE_SUFFIX="-$TESTING";;
20245 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20246 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20250 cat >>confdefs.h <<_ACEOF
20251 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20255 cat >>confdefs.h <<_ACEOF
20256 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20260 cat >>confdefs.h <<_ACEOF
20261 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20266 SINGLE_USERID=${SINGLE_USERID:-no}
20267 WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20270 # Check whether --with-single-userid was given.
20271 if test "${with_single_userid+set}" = set; then
20272 withval=$with_single_userid; SINGLE_USERID=$withval
20278 WANT_SETUID_CLIENT=false
20283 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20285 cat >>confdefs.h <<\_ACEOF
20286 #define WANT_SETUID_CLIENT 1
20290 if test x"$WANT_SETUID_CLIENT" = x"true"; then
20291 WANT_SETUID_CLIENT_TRUE=
20292 WANT_SETUID_CLIENT_FALSE='#'
20294 WANT_SETUID_CLIENT_TRUE='#'
20295 WANT_SETUID_CLIENT_FALSE=
20299 if test x"$SINGLE_USERID" = x"yes"; then
20301 cat >>confdefs.h <<\_ACEOF
20302 #define SINGLE_USERID 1
20308 WANT_INSTALLPERMS=yes
20309 # Check whether --enable-installperms was given.
20310 if test "${enable_installperms+set}" = set; then
20311 enableval=$enable_installperms; WANT_INSTALLPERMS="$enableval"
20313 WANT_INSTALLPERMS="yes"
20317 if test x"$WANT_INSTALLPERMS" = x"yes"; then
20318 WANT_INSTALLPERMS_TRUE=
20319 WANT_INSTALLPERMS_FALSE='#'
20321 WANT_INSTALLPERMS_TRUE='#'
20322 WANT_INSTALLPERMS_FALSE=
20329 # Set up for Amanda components and modules
20334 # Check whether --with-server was given.
20335 if test "${with_server+set}" = set; then
20336 withval=$with_server;
20338 y | ye | yes) WANT_SERVER=true;;
20339 n | no) WANT_SERVER=false;;
20340 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
20341 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
20342 { (exit 1); exit 1; }; } ;;
20351 # Check whether --with-client was given.
20352 if test "${with_client+set}" = set; then
20353 withval=$with_client;
20355 y | ye | yes) WANT_CLIENT=true;;
20356 n | no) WANT_CLIENT=false;;
20357 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
20358 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
20359 { (exit 1); exit 1; }; } ;;
20367 WANT_RESTORE=${WANT_SERVER-true}
20369 # Check whether --with-restore was given.
20370 if test "${with_restore+set}" = set; then
20371 withval=$with_restore;
20373 y | ye | yes) WANT_RESTORE=true;;
20374 n | no) WANT_RESTORE=false;;
20375 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
20376 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
20377 { (exit 1); exit 1; }; } ;;
20385 WANT_RECOVER=${WANT_CLIENT-true}
20387 # Check whether --with-amrecover was given.
20388 if test "${with_amrecover+set}" = set; then
20389 withval=$with_amrecover;
20391 y | ye | yes) WANT_RECOVER=false;;
20392 n | no) WANT_RECOVER=false;;
20393 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
20394 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
20395 { (exit 1); exit 1; }; } ;;
20403 # Check whether --with-client-only was given.
20404 if test "${with_client_only+set}" = set; then
20405 withval=$with_client_only; { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
20406 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
20407 { (exit 1); exit 1; }; }
20414 # Check whether --with-server-only was given.
20415 if test "${with_server_only+set}" = set; then
20416 withval=$with_server_only; { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
20417 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
20418 { (exit 1); exit 1; }; }
20429 # detect invalid combinations of components
20430 if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20431 { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
20432 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
20433 { (exit 1); exit 1; }; }
20435 if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20436 { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
20437 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
20438 { (exit 1); exit 1; }; }
20441 if $WANT_CLIENT; then
20443 WANT_CLIENT_FALSE='#'
20445 WANT_CLIENT_TRUE='#'
20449 if $WANT_RESTORE; then
20451 WANT_RESTORE_FALSE='#'
20453 WANT_RESTORE_TRUE='#'
20454 WANT_RESTORE_FALSE=
20457 if $WANT_SERVER; then
20459 WANT_SERVER_FALSE='#'
20461 WANT_SERVER_TRUE='#'
20465 if $WANT_RECOVER; then
20467 WANT_RECOVER_FALSE='#'
20469 WANT_RECOVER_TRUE='#'
20470 WANT_RECOVER_FALSE=
20474 if $WANT_SERVER || $WANT_RESTORE; then
20476 WANT_TAPE_FALSE='#'
20484 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
20485 # expand prefix or exec_prefix in LOCPATH
20487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20488 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
20489 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
20491 SYSLOCPATH="$SYSPATH:$LOCPATH"
20492 LOCSYSPATH="$LOCPATH:$SYSPATH"
20498 # Check whether --with-gnuplot was given.
20499 if test "${with_gnuplot+set}" = set; then
20500 withval=$with_gnuplot;
20503 n | no) GNUPLOT=no ;;
20504 *) GNUPLOT="$withval" ;;
20509 if test "x$GNUPLOT" = "xno"; then
20512 # Extract the first word of "gnuplot", so it can be a program name with args.
20513 set dummy gnuplot; ac_word=$2
20514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 $as_echo_n "checking for $ac_word... " >&6; }
20516 if test "${ac_cv_path_GNUPLOT+set}" = set; then
20517 $as_echo_n "(cached) " >&6
20521 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $LOCSYSPATH
20528 test -z "$as_dir" && as_dir=.
20529 for ac_exec_ext in '' $ac_executable_extensions; do
20530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20531 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
20532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20542 GNUPLOT=$ac_cv_path_GNUPLOT
20543 if test -n "$GNUPLOT"; then
20544 { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
20545 $as_echo "$GNUPLOT" >&6; }
20547 { $as_echo "$as_me:$LINENO: result: no" >&5
20548 $as_echo "no" >&6; }
20559 # Extract the first word of "pcat", so it can be a program name with args.
20560 set dummy pcat; ac_word=$2
20561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20562 $as_echo_n "checking for $ac_word... " >&6; }
20563 if test "${ac_cv_path_PCAT+set}" = set; then
20564 $as_echo_n "(cached) " >&6
20568 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
20571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20572 for as_dir in $LOCSYSPATH
20575 test -z "$as_dir" && as_dir=.
20576 for ac_exec_ext in '' $ac_executable_extensions; do
20577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20578 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
20579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20589 PCAT=$ac_cv_path_PCAT
20590 if test -n "$PCAT"; then
20591 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
20592 $as_echo "$PCAT" >&6; }
20594 { $as_echo "$as_me:$LINENO: result: no" >&5
20595 $as_echo "no" >&6; }
20602 # Extract the first word of "compress", so it can be a program name with args.
20603 set dummy compress; ac_word=$2
20604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20605 $as_echo_n "checking for $ac_word... " >&6; }
20606 if test "${ac_cv_path_COMPRESS+set}" = set; then
20607 $as_echo_n "(cached) " >&6
20611 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
20614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20615 for as_dir in $LOCSYSPATH
20618 test -z "$as_dir" && as_dir=.
20619 for ac_exec_ext in '' $ac_executable_extensions; do
20620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20621 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
20622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20632 COMPRESS=$ac_cv_path_COMPRESS
20633 if test -n "$COMPRESS"; then
20634 { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
20635 $as_echo "$COMPRESS" >&6; }
20637 { $as_echo "$as_me:$LINENO: result: no" >&5
20638 $as_echo "no" >&6; }
20645 # Extract the first word of "gzip", so it can be a program name with args.
20646 set dummy gzip; ac_word=$2
20647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20648 $as_echo_n "checking for $ac_word... " >&6; }
20649 if test "${ac_cv_path_GZIP+set}" = set; then
20650 $as_echo_n "(cached) " >&6
20654 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20658 for as_dir in $LOCSYSPATH
20661 test -z "$as_dir" && as_dir=.
20662 for ac_exec_ext in '' $ac_executable_extensions; do
20663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20664 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20675 GZIP=$ac_cv_path_GZIP
20676 if test -n "$GZIP"; then
20677 { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
20678 $as_echo "$GZIP" >&6; }
20680 { $as_echo "$as_me:$LINENO: result: no" >&5
20681 $as_echo "no" >&6; }
20693 if test "x$GNUPLOT" != "x"; then
20696 # variable substitutions for amcat.awk
20697 if test "$PCAT"; then
20698 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
20702 if test "$COMPRESS"; then
20703 AMPLOT_COMPRESS=$COMPRESS
20704 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
20706 AMPLOT_CAT_COMPRESS=
20708 if test "$GZIP"; then
20709 AMPLOT_COMPRESS=$GZIP
20710 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
20722 { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
20723 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
20726 cat <<AAW_EOF >>config.warnings
20727 Not building 'amplot', because gnuplot was not found
20733 if test x"$WANT_AMPLOT" = x"true"; then
20735 WANT_AMPLOT_FALSE='#'
20737 WANT_AMPLOT_TRUE='#'
20743 # Check whether --enable-manpage-build was given.
20744 if test "${enable_manpage_build+set}" = set; then
20745 enableval=$enable_manpage_build; ENABLE_MANPAGE_BUILD=$enableval
20747 ENABLE_MANPAGE_BUILD=no
20751 # and ensure that everything docbook-related is OK if we'll be using it
20752 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
20753 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
20756 XSLTPROC_FLAGS="--nonet"
20759 # The (lack of) whitespace and overquoting here are all necessary for
20760 # proper formatting.
20762 # Check whether --with-xsltproc was given.
20763 if test "${with_xsltproc+set}" = set; then
20764 withval=$with_xsltproc; ac_with_xsltproc=$withval;
20766 ac_with_xsltproc=maybe;
20771 # Check whether --with-xsltproc-flags was given.
20772 if test "${with_xsltproc_flags+set}" = set; then
20773 withval=$with_xsltproc_flags; if test "x$withval" == "xno"; then
20776 if test "x$withval" != "xyes"; then
20777 XSLTPROC_FLAGS="$withval"
20784 # search for xsltproc if it wasn't specified
20785 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
20786 for ac_prog in xsltproc
20788 # Extract the first word of "$ac_prog", so it can be a program name with args.
20789 set dummy $ac_prog; ac_word=$2
20790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20791 $as_echo_n "checking for $ac_word... " >&6; }
20792 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20793 $as_echo_n "(cached) " >&6
20797 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20801 for as_dir in $LOCSYSPATH
20804 test -z "$as_dir" && as_dir=.
20805 for ac_exec_ext in '' $ac_executable_extensions; do
20806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20807 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20808 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20818 XSLTPROC=$ac_cv_path_XSLTPROC
20819 if test -n "$XSLTPROC"; then
20820 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20821 $as_echo "$XSLTPROC" >&6; }
20823 { $as_echo "$as_me:$LINENO: result: no" >&5
20824 $as_echo "no" >&6; }
20828 test -n "$XSLTPROC" && break
20832 if test "$ac_with_xsltproc" != "no"; then
20833 if test -x "$ac_with_xsltproc"; then
20834 XSLTPROC="$ac_with_xsltproc";
20837 { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
20838 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
20841 cat <<AAW_EOF >>config.warnings
20842 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
20846 for ac_prog in xsltproc
20848 # Extract the first word of "$ac_prog", so it can be a program name with args.
20849 set dummy $ac_prog; ac_word=$2
20850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20851 $as_echo_n "checking for $ac_word... " >&6; }
20852 if test "${ac_cv_path_XSLTPROC+set}" = set; then
20853 $as_echo_n "(cached) " >&6
20857 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20861 for as_dir in $LOCSYSPATH
20864 test -z "$as_dir" && as_dir=.
20865 for ac_exec_ext in '' $ac_executable_extensions; do
20866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20867 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
20868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20878 XSLTPROC=$ac_cv_path_XSLTPROC
20879 if test -n "$XSLTPROC"; then
20880 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
20881 $as_echo "$XSLTPROC" >&6; }
20883 { $as_echo "$as_me:$LINENO: result: no" >&5
20884 $as_echo "no" >&6; }
20888 test -n "$XSLTPROC" && break
20904 { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
20905 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
20906 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
20907 $as_echo_n "(cached) " >&6
20910 ac_cv_docbook_xslt_1_72_0=no
20911 if test -n "$XSLTPROC"; then
20912 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
20913 $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
20915 if test "$?" = 0; then
20916 ac_cv_docbook_xslt_1_72_0=yes
20921 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
20922 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
20924 HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
20925 HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
20934 { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
20935 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
20936 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
20937 $as_echo_n "(cached) " >&6
20940 ac_cv_docbook_xslt_current_version=no
20942 if test -n "$XSLTPROC"; then
20943 cat >conftest.xsl <<EOF
20945 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20946 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
20948 <xsl:output method="text"/>
20949 <xsl:template match="fm:project/fm:Version">
20950 <xsl:value-of select="." />
20952 <!-- do nothing with any other text -->
20953 <xsl:template match="text()"/>
20956 echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
20958 cat conftest.xsl >&5
20961 ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
20963 if test "$?" != 0; then
20964 ac_cv_docbook_xslt_current_version='no'
20971 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
20972 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
20974 DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
20975 { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
20976 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
20978 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
20979 { $as_echo "$as_me:$LINENO: result: no" >&5
20980 $as_echo "no" >&6; }
20983 # Used to indicate true or false condition
20984 ax_compare_version=false
20986 # Convert the two version strings to be compared into a format that
20987 # allows a simple string comparison. The end result is that a version
20988 # string of the form 1.12.5-r617 will be converted to the form
20989 # 0001001200050617. In other words, each number is zero padded to four
20990 # digits, and non digits are removed.
20992 ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20993 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20994 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20995 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20999 ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21000 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21001 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21002 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21006 ax_compare_version=`echo "x$ax_compare_version_A
21007 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21011 if test "$ax_compare_version" = "true" ; then
21013 # version is less than required, so mark it as "no"
21014 DOCBOOK_XSLT_CURRENT_VERSION=no
21019 if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21020 { $as_echo "$as_me:$LINENO: result: no" >&5
21021 $as_echo "no" >&6; }
21023 { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21024 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21037 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
21038 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21039 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
21040 $as_echo_n "(cached) " >&6
21043 ac_cv_docbook_dtd_4_1_2=no
21044 if test -n "$XSLTPROC"; then
21045 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21046 cat <<EOF >conftest.xml
21047 <?xml version="1.0" encoding='ISO-8859-1'?>
21048 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21052 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21053 echo "conftest.xml:" >&5
21055 cat conftest.xml >&5
21058 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21059 if test "$?" = 0 -o "$?" = 5; then
21060 # failing to load the DTD is just a warning, so check for it in the output.
21061 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21064 ac_cv_docbook_dtd_4_1_2=yes
21067 cat conftest.out >&5
21069 rm -f conftest.xml conftest.out
21073 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
21074 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21076 HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21077 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21092 { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
21093 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21094 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
21095 $as_echo_n "(cached) " >&6
21098 ac_cv_docbook_dtd_4_2=no
21099 if test -n "$XSLTPROC"; then
21100 MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21101 cat <<EOF >conftest.xml
21102 <?xml version="1.0" encoding='ISO-8859-1'?>
21103 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21107 echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21108 echo "conftest.xml:" >&5
21110 cat conftest.xml >&5
21113 $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21114 if test "$?" = 0 -o "$?" = 5; then
21115 # failing to load the DTD is just a warning, so check for it in the output.
21116 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21119 ac_cv_docbook_dtd_4_2=yes
21122 cat conftest.out >&5
21124 rm -f conftest.xml conftest.out
21128 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
21129 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21131 HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21132 HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21139 if test -z "$XSLTPROC"; then
21140 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
21141 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
21142 { (exit 1); exit 1; }; }
21145 # if the 'current' Docbook revision is good enough, use that; otherwise,
21146 # if 1.72.0 is available, use that.
21148 if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21149 if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21150 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
21151 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
21152 { (exit 1); exit 1; }; }
21158 # disable validation if the correct DTDs are not available
21159 if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21161 { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21162 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21165 cat <<AAW_EOF >>config.warnings
21166 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21170 XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21174 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21175 ENABLE_MANPAGE_BUILD_TRUE=
21176 ENABLE_MANPAGE_BUILD_FALSE='#'
21178 ENABLE_MANPAGE_BUILD_TRUE='#'
21179 ENABLE_MANPAGE_BUILD_FALSE=
21186 #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21187 CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21191 # Check whether --with-index-server was given.
21192 if test "${with_index_server+set}" = set; then
21193 withval=$with_index_server;
21195 "" | y | ye | yes | n | no)
21196 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
21197 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
21198 { (exit 1); exit 1; }; }
21200 *) DEFAULT_SERVER="$withval"
21205 : ${DEFAULT_SERVER=`uname -n`}
21210 cat >>confdefs.h <<_ACEOF
21211 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21217 # Check whether --with-config was given.
21218 if test "${with_config+set}" = set; then
21219 withval=$with_config;
21221 "" | y | ye | yes | n | no)
21222 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
21223 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
21224 { (exit 1); exit 1; }; }
21226 *) DEFAULT_CONFIG="$withval"
21231 : ${DEFAULT_CONFIG=DailySet1}
21236 cat >>confdefs.h <<_ACEOF
21237 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21243 # Check whether --with-tape-server was given.
21244 if test "${with_tape_server+set}" = set; then
21245 withval=$with_tape_server;
21247 "" | y | ye | yes | n | no)
21248 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
21249 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
21250 { (exit 1); exit 1; }; }
21252 *) DEFAULT_TAPE_SERVER="$withval"
21257 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21262 cat >>confdefs.h <<_ACEOF
21263 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21269 # Check whether --with-tape-device was given.
21270 if test "${with_tape_device+set}" = set; then
21271 withval=$with_tape_device;
21273 "" | y | ye | yes | n | no)
21274 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
21275 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
21276 { (exit 1); exit 1; }; }
21278 *) DEFAULT_TAPE_DEVICE="$withval"
21287 cat >>confdefs.h <<_ACEOF
21288 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21293 if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21294 EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21296 EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21301 # Check whether --with-changer-device was given.
21302 if test "${with_changer_device+set}" = set; then
21303 withval=$with_changer_device;
21305 "" | y | ye | yes | n | no)
21306 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
21307 $as_echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
21308 { (exit 1); exit 1; }; }
21310 *) DEFAULT_CHANGER_DEVICE="$withval"
21318 if test -z "$DEFAULT_CHANGER_DEVICE"; then
21319 DEFAULT_CHANGER_DEVICE=/dev/null
21320 if test -f /dev/ch0; then
21321 DEFAULT_CHANGER_DEVICE=/dev/ch0
21326 cat >>confdefs.h <<_ACEOF
21327 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
21333 # Check whether --with-amandates was given.
21334 if test "${with_amandates+set}" = set; then
21335 withval=$with_amandates;
21337 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
21338 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
21339 { (exit 1); exit 1; }; };;
21340 y | ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21341 *) amandates="$withval";;
21345 amandates='$localstatedir/amanda/amandates'
21353 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21354 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21355 eval ac_define_dir="\"$amandates\""
21356 eval ac_define_dir="\"$ac_define_dir\""
21357 DEFAULT_AMANDATES_FILE="$ac_define_dir"
21360 cat >>confdefs.h <<_ACEOF
21361 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21364 test "$prefix_NONE" && prefix=NONE
21365 test "$exec_prefix_NONE" && exec_prefix=NONE
21368 DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21370 *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21374 cat >>confdefs.h <<_ACEOF
21375 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21381 # Extract the first word of "getconf", so it can be a program name with args.
21382 set dummy getconf; ac_word=$2
21383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21384 $as_echo_n "checking for $ac_word... " >&6; }
21385 if test "${ac_cv_path_GETCONF+set}" = set; then
21386 $as_echo_n "(cached) " >&6
21390 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in $SYSPATH
21397 test -z "$as_dir" && as_dir=.
21398 for ac_exec_ext in '' $ac_executable_extensions; do
21399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21400 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21411 GETCONF=$ac_cv_path_GETCONF
21412 if test -n "$GETCONF"; then
21413 { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
21414 $as_echo "$GETCONF" >&6; }
21416 { $as_echo "$as_me:$LINENO: result: no" >&5
21417 $as_echo "no" >&6; }
21426 # we use 'getconf', if it exists, to get the relevant
21430 *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21431 *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21434 # Checks for compilers, typedefs, structures, and compiler characteristics.
21435 # Check for large file compilation environment.
21437 { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
21438 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21439 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
21440 $as_echo_n "(cached) " >&6
21443 amanda_cv_LFS_CFLAGS=
21444 if test "$GETCONF"; then
21445 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21446 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21453 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
21454 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21455 CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21458 { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
21459 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21460 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
21461 $as_echo_n "(cached) " >&6
21464 amanda_cv_LFS_LDFLAGS=
21465 if test "$GETCONF"; then
21466 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21467 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21474 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
21475 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21476 LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21479 { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
21480 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21481 if test "${amanda_cv_LFS_LIBS+set}" = set; then
21482 $as_echo_n "(cached) " >&6
21485 amanda_cv_LFS_LIBS=
21486 if test "$GETCONF"; then
21487 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21488 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21495 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
21496 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21497 LIBS="$amanda_cv_LFS_LIBS $LIBS"
21500 if test x"$NEED_RESETOFS" = x"yes"; then
21502 cat >>confdefs.h <<\_ACEOF
21503 #define NEED_RESETOFS 1
21510 # Extract the first word of "chio", so it can be a program name with args.
21511 set dummy chio; ac_word=$2
21512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21513 $as_echo_n "checking for $ac_word... " >&6; }
21514 if test "${ac_cv_path_CHIO+set}" = set; then
21515 $as_echo_n "(cached) " >&6
21519 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
21522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523 for as_dir in $LOCSYSPATH
21526 test -z "$as_dir" && as_dir=.
21527 for ac_exec_ext in '' $ac_executable_extensions; do
21528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21529 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
21530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21537 test -z "$ac_cv_path_CHIO" && ac_cv_path_CHIO="chio"
21541 CHIO=$ac_cv_path_CHIO
21542 if test -n "$CHIO"; then
21543 { $as_echo "$as_me:$LINENO: result: $CHIO" >&5
21544 $as_echo "$CHIO" >&6; }
21546 { $as_echo "$as_me:$LINENO: result: no" >&5
21547 $as_echo "no" >&6; }
21554 # Extract the first word of "chs", so it can be a program name with args.
21555 set dummy chs; ac_word=$2
21556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_CHS+set}" = set; then
21559 $as_echo_n "(cached) " >&6
21563 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
21566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $LOCSYSPATH
21570 test -z "$as_dir" && as_dir=.
21571 for ac_exec_ext in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21581 test -z "$ac_cv_path_CHS" && ac_cv_path_CHS="chs"
21585 CHS=$ac_cv_path_CHS
21586 if test -n "$CHS"; then
21587 { $as_echo "$as_me:$LINENO: result: $CHS" >&5
21588 $as_echo "$CHS" >&6; }
21590 { $as_echo "$as_me:$LINENO: result: no" >&5
21591 $as_echo "no" >&6; }
21598 # Extract the first word of "mtx", so it can be a program name with args.
21599 set dummy mtx; ac_word=$2
21600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21601 $as_echo_n "checking for $ac_word... " >&6; }
21602 if test "${ac_cv_path_MTX+set}" = set; then
21603 $as_echo_n "(cached) " >&6
21607 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
21610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21611 for as_dir in $LOCSYSPATH
21614 test -z "$as_dir" && as_dir=.
21615 for ac_exec_ext in '' $ac_executable_extensions; do
21616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21617 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
21618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21625 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
21629 MTX=$ac_cv_path_MTX
21630 if test -n "$MTX"; then
21631 { $as_echo "$as_me:$LINENO: result: $MTX" >&5
21632 $as_echo "$MTX" >&6; }
21634 { $as_echo "$as_me:$LINENO: result: no" >&5
21635 $as_echo "no" >&6; }
21642 # Extract the first word of "mcutil", so it can be a program name with args.
21643 set dummy mcutil; ac_word=$2
21644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21645 $as_echo_n "checking for $ac_word... " >&6; }
21646 if test "${ac_cv_path_MCUTIL+set}" = set; then
21647 $as_echo_n "(cached) " >&6
21651 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
21654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21655 for as_dir in $LOCSYSPATH
21658 test -z "$as_dir" && as_dir=.
21659 for ac_exec_ext in '' $ac_executable_extensions; do
21660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21661 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
21662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21669 test -z "$ac_cv_path_MCUTIL" && ac_cv_path_MCUTIL="mcutil"
21673 MCUTIL=$ac_cv_path_MCUTIL
21674 if test -n "$MCUTIL"; then
21675 { $as_echo "$as_me:$LINENO: result: $MCUTIL" >&5
21676 $as_echo "$MCUTIL" >&6; }
21678 { $as_echo "$as_me:$LINENO: result: no" >&5
21679 $as_echo "no" >&6; }
21709 scsi/scsi_ioctl.h \
21717 sys/scsi/impl/uscsi.h \
21718 sys/scsi/scsi/ioctl.h
21720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21722 $as_echo_n "checking for $ac_header... " >&6; }
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724 $as_echo_n "(cached) " >&6
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 $ac_includes_default
21734 #include <$ac_header>
21736 rm -f conftest.$ac_objext
21737 if { (ac_try="$ac_compile"
21738 case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.$ac_objext; then
21754 eval "$as_ac_Header=yes"
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 eval "$as_ac_Header=no"
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21764 ac_res=`eval 'as_val=${'$as_ac_Header'}
21765 $as_echo "$as_val"'`
21766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21767 $as_echo "$ac_res" >&6; }
21768 as_val=`eval 'as_val=${'$as_ac_Header'}
21769 $as_echo "$as_val"'`
21770 if test "x$as_val" = x""yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21784 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21785 { $as_echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
21786 $as_echo_n "checking for HP/UX-like scsi changer support... " >&6; }
21787 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
21788 $as_echo_n "(cached) " >&6
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21797 #include <sys/scsi.h>
21803 static struct element_addresses changer_info;
21804 int i = SIOC_ELEMENT_ADDRESSES;
21805 int j = SIOC_ELEMENT_STATUS;
21806 int k = SIOC_MOVE_MEDIUM;
21812 rm -f conftest.$ac_objext
21813 if { (ac_try="$ac_compile"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21819 $as_echo "$ac_try_echo") >&5
21820 (eval "$ac_compile") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest.$ac_objext; then
21830 amanda_cv_hpux_scsi_chio=yes
21832 $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 amanda_cv_hpux_scsi_chio=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
21841 $as_echo "$amanda_cv_hpux_scsi_chio" >&6; }
21842 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
21849 # Linux SCSI based on ioctl
21851 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21852 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
21853 { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
21854 $as_echo_n "checking for Linux like scsi support (ioctl)... " >&6; }
21855 if test "${amanda_cv_linux_scsi+set}" = set; then
21856 $as_echo_n "(cached) " >&6
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 #include <scsi/scsi_ioctl.h>
21866 #include <sys/mtio.h>
21874 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21887 $as_echo "$ac_try_echo") >&5
21888 (eval "$ac_compile") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest.$ac_objext; then
21898 amanda_cv_linux_scsi=yes
21900 $as_echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 amanda_cv_linux_scsi=no
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
21909 $as_echo "$amanda_cv_linux_scsi" >&6; }
21913 # Linux SCSI based on sg
21915 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21916 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
21917 { $as_echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
21918 $as_echo_n "checking for Linux like scsi support (sg)... " >&6; }
21919 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
21920 $as_echo_n "(cached) " >&6
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 #include <sys/types.h>
21930 #include <scsi/sg.h>
21931 #include <sys/mtio.h>
21938 struct sg_header *psg_header;
21940 write(device, buffer, 1);
21946 rm -f conftest.$ac_objext
21947 if { (ac_try="$ac_compile"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954 (eval "$ac_compile") 2>conftest.er1
21956 grep -v '^ *+' conftest.er1 >conftest.err
21958 cat conftest.err >&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest.$ac_objext; then
21964 amanda_cv_linux_sg_scsi=yes
21966 $as_echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 amanda_cv_linux_sg_scsi=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 { $as_echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
21975 $as_echo "$amanda_cv_linux_sg_scsi" >&6; }
21978 if test x"$amanda_cv_linux_scsi" = x"yes" ||
21979 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
21980 WANT_SCSI_LINUX=yes
21987 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
21988 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
21989 { $as_echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
21990 $as_echo_n "checking for HP-UX like scsi support... " >&6; }
21991 if test "${amanda_cv_hpux_scsi+set}" = set; then
21992 $as_echo_n "(cached) " >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22002 #include <sys/ioctl.h>
22003 #include <sys/scsi.h>
22004 #include <sys/mtio.h>
22012 ioctl(device, SIOC_IO, Command);
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22025 $as_echo "$ac_try_echo") >&5
22026 (eval "$ac_compile") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && {
22033 test -z "$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 } && test -s conftest.$ac_objext; then
22036 amanda_cv_hpux_scsi=yes
22038 $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 amanda_cv_hpux_scsi=no
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { $as_echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
22047 $as_echo "$amanda_cv_hpux_scsi" >&6; }
22048 if test x"$amanda_cv_hpux_scsi" = x"yes";then
22049 WANT_SCSI_HPUX_NEW=yes
22051 WANT_CHG_SCSI_CHIO=yes
22058 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22059 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
22060 { $as_echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
22061 $as_echo_n "checking for Irix like scsi support... " >&6; }
22062 if test "${amanda_cv_irix_scsi+set}" = set; then
22063 $as_echo_n "(cached) " >&6
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22072 #include <sys/types.h>
22073 #include <sys/dsreq.h>
22074 #include <sys/mtio.h>
22082 ioctl(device, DS_ENTER, &Command);
22088 rm -f conftest.$ac_objext
22089 if { (ac_try="$ac_compile"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22095 $as_echo "$ac_try_echo") >&5
22096 (eval "$ac_compile") 2>conftest.er1
22098 grep -v '^ *+' conftest.er1 >conftest.err
22100 cat conftest.err >&5
22101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } && {
22103 test -z "$ac_c_werror_flag" ||
22104 test ! -s conftest.err
22105 } && test -s conftest.$ac_objext; then
22106 amanda_cv_irix_scsi=yes
22108 $as_echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 amanda_cv_irix_scsi=no
22114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22116 { $as_echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
22117 $as_echo "$amanda_cv_irix_scsi" >&6; }
22118 if test x"$amanda_cv_irix_scsi" = x"yes";then
22127 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22128 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
22129 { $as_echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
22130 $as_echo_n "checking for Solaris-like scsi support... " >&6; }
22131 if test "${amanda_cv_solaris_scsi+set}" = set; then
22132 $as_echo_n "(cached) " >&6
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22141 #include <sys/types.h>
22142 #include <sys/scsi/impl/uscsi.h>
22143 #include <sys/mtio.h>
22151 ioctl(device, USCSICMD, Command);
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22164 $as_echo "$ac_try_echo") >&5
22165 (eval "$ac_compile") 2>conftest.er1
22167 grep -v '^ *+' conftest.er1 >conftest.err
22169 cat conftest.err >&5
22170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); } && {
22172 test -z "$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22174 } && test -s conftest.$ac_objext; then
22175 amanda_cv_solaris_scsi=yes
22177 $as_echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 amanda_cv_solaris_scsi=no
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 { $as_echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
22186 $as_echo "$amanda_cv_solaris_scsi" >&6; }
22187 if test x"$amanda_cv_solaris_scsi" = x"yes";then
22188 WANT_SCSI_SOLARIS=yes
22196 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
22197 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
22198 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
22199 { $as_echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
22200 $as_echo_n "checking for AIX like scsi support... " >&6; }
22201 if test "${amanda_cv_aix_scsi+set}" = set; then
22202 $as_echo_n "(cached) " >&6
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22211 #include <sys/types.h>
22212 #include <sys/scarray.h>
22213 #include <sys/tape.h>
22221 ioctl(device, STIOCMD, Command);
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest.$ac_objext; then
22245 amanda_cv_aix_scsi=yes
22247 $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 amanda_cv_aix_scsi=no
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 { $as_echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
22256 $as_echo "$amanda_cv_aix_scsi" >&6; }
22257 if test x"$amanda_cv_aix_scsi" = x"yes";then
22265 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
22266 { $as_echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
22267 $as_echo_n "checking for CAM like scsi support... " >&6; }
22268 if test "${amanda_cv_cam_scsi+set}" = set; then
22269 $as_echo_n "(cached) " >&6
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22279 # include <fcntl.h>
22280 # include <cam/cam.h>
22281 # include <cam/cam_ccb.h>
22282 # include <cam/scsi/scsi_message.h>
22283 # include <cam/scsi/scsi_pass.h>
22284 # include <camlib.h>
22290 struct cam_device *curdev;
22292 curdev = cam_open_pass("", O_RDWR, NULL);
22298 rm -f conftest.$ac_objext
22299 if { (ac_try="$ac_compile"
22300 case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305 $as_echo "$ac_try_echo") >&5
22306 (eval "$ac_compile") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest.$ac_objext; then
22316 amanda_cv_cam_scsi=yes
22318 $as_echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 amanda_cv_cam_scsi=no
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 { $as_echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
22327 $as_echo "$amanda_cv_cam_scsi" >&6; }
22328 if test x"$amanda_cv_cam_scsi" = x"yes";then
22332 { $as_echo "$as_me:$LINENO: checking for main in -lcam" >&5
22333 $as_echo_n "checking for main in -lcam... " >&6; }
22334 if test "${ac_cv_lib_cam_main+set}" = set; then
22335 $as_echo_n "(cached) " >&6
22337 ac_check_lib_save_LIBS=$LIBS
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22355 rm -f conftest.$ac_objext conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22362 $as_echo "$ac_try_echo") >&5
22363 (eval "$ac_link") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest$ac_exeext && {
22373 test "$cross_compiling" = yes ||
22374 $as_test_x conftest$ac_exeext
22376 ac_cv_lib_cam_main=yes
22378 $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 ac_cv_lib_cam_main=no
22384 rm -rf conftest.dSYM
22385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22386 conftest$ac_exeext conftest.$ac_ext
22387 LIBS=$ac_check_lib_save_LIBS
22389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
22390 $as_echo "$ac_cv_lib_cam_main" >&6; }
22391 if test "x$ac_cv_lib_cam_main" = x""yes; then
22392 cat >>confdefs.h <<_ACEOF
22393 #define HAVE_LIBCAM 1
22407 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
22408 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
22409 { $as_echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
22410 $as_echo_n "checking for BSD like scsi support... " >&6; }
22411 if test "${amanda_cv_bsd_scsi+set}" = set; then
22412 $as_echo_n "(cached) " >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22421 #include <sys/types.h>
22422 #include <sys/scsiio.h>
22423 #include <sys/mtio.h>
22431 ioctl(device, SCIOCCOMMAND, &Command);
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444 $as_echo "$ac_try_echo") >&5
22445 (eval "$ac_compile") 2>conftest.er1
22447 grep -v '^ *+' conftest.er1 >conftest.err
22449 cat conftest.err >&5
22450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest.$ac_objext; then
22455 amanda_cv_bsd_scsi=yes
22457 $as_echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 amanda_cv_bsd_scsi=no
22463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22465 { $as_echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
22466 $as_echo "$amanda_cv_bsd_scsi" >&6; }
22467 if test x"$amanda_cv_bsd_scsi" = x"yes";then
22473 # Do not build chg-scsi-chio if we cannot find the needed support
22474 # include files for the SCSI interfaces
22475 # chio.h and sys/chio.h are chio based systems
22476 if test x"$ac_cv_header_chio_h" = x"yes" ||
22477 test x"$ac_cv_header_linux_chio_h" = x"yes" ||
22478 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
22479 # chg-scsi does not support FreeBSD 3.0's chio.h; it became backward
22480 # incompatible with the introduction of camlib.h
22481 if test x"$ac_cv_header_camlib_h" != x"yes"; then
22483 # prefer to use chg-scsi, unless we already have a driver for that,
22484 # in which case set it up as chg-scsi-chio.
22485 if test x"$WANT_CHG_SCSI" = x"no"; then
22488 WANT_CHG_SCSI_CHIO=yes
22493 # scsi-based implementations
22494 if test x"$WANT_CHG_SCSI" = x"yes"; then
22495 WANT_CHG_SCSI_TRUE=
22496 WANT_CHG_SCSI_FALSE='#'
22498 WANT_CHG_SCSI_TRUE='#'
22499 WANT_CHG_SCSI_FALSE=
22502 if test x"$WANT_SCSI_LINUX" = x"yes"; then
22503 WANT_SCSI_LINUX_TRUE=
22504 WANT_SCSI_LINUX_FALSE='#'
22506 WANT_SCSI_LINUX_TRUE='#'
22507 WANT_SCSI_LINUX_FALSE=
22510 if test x"$WANT_SCSI_HPUX_NEW" = x"yes"; then
22511 WANT_SCSI_HPUX_NEW_TRUE=
22512 WANT_SCSI_HPUX_NEW_FALSE='#'
22514 WANT_SCSI_HPUX_NEW_TRUE='#'
22515 WANT_SCSI_HPUX_NEW_FALSE=
22518 if test x"$WANT_SCSI_IRIX" = x"yes"; then
22519 WANT_SCSI_IRIX_TRUE=
22520 WANT_SCSI_IRIX_FALSE='#'
22522 WANT_SCSI_IRIX_TRUE='#'
22523 WANT_SCSI_IRIX_FALSE=
22526 if test x"$WANT_SCSI_SOLARIS" = x"yes"; then
22527 WANT_SCSI_SOLARIS_TRUE=
22528 WANT_SCSI_SOLARIS_FALSE='#'
22530 WANT_SCSI_SOLARIS_TRUE='#'
22531 WANT_SCSI_SOLARIS_FALSE=
22534 if test x"$WANT_SCSI_AIX" = x"yes"; then
22535 WANT_SCSI_AIX_TRUE=
22536 WANT_SCSI_AIX_FALSE='#'
22538 WANT_SCSI_AIX_TRUE='#'
22539 WANT_SCSI_AIX_FALSE=
22542 if test x"$WANT_SCSI_CAM" = x"yes"; then
22543 WANT_SCSI_CAM_TRUE=
22544 WANT_SCSI_CAM_FALSE='#'
22546 WANT_SCSI_CAM_TRUE='#'
22547 WANT_SCSI_CAM_FALSE=
22550 if test x"$WANT_SCSI_BSD" = x"yes"; then
22551 WANT_SCSI_BSD_TRUE=
22552 WANT_SCSI_BSD_FALSE='#'
22554 WANT_SCSI_BSD_TRUE='#'
22555 WANT_SCSI_BSD_FALSE=
22559 # scsi-chio-based implementations
22560 if test x"$WANT_CHG_SCSI_CHIO" = x"yes"; then
22561 WANT_CHG_SCSI_CHIO_TRUE=
22562 WANT_CHG_SCSI_CHIO_FALSE='#'
22564 WANT_CHG_SCSI_CHIO_TRUE='#'
22565 WANT_CHG_SCSI_CHIO_FALSE=
22568 if test x"$WANT_SCSI_HPUX" = x"yes"; then
22569 WANT_SCSI_HPUX_TRUE=
22570 WANT_SCSI_HPUX_FALSE='#'
22572 WANT_SCSI_HPUX_TRUE='#'
22573 WANT_SCSI_HPUX_FALSE=
22576 if test x"$WANT_SCSI_CHIO" = x"yes"; then
22577 WANT_SCSI_CHIO_TRUE=
22578 WANT_SCSI_CHIO_FALSE='#'
22580 WANT_SCSI_CHIO_TRUE='#'
22581 WANT_SCSI_CHIO_FALSE=
22590 for ac_header in fstab.h \
22596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22599 $as_echo_n "checking for $ac_header... " >&6; }
22600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22601 $as_echo_n "(cached) " >&6
22603 ac_res=`eval 'as_val=${'$as_ac_Header'}
22604 $as_echo "$as_val"'`
22605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22606 $as_echo "$ac_res" >&6; }
22608 # Is the header compilable?
22609 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22610 $as_echo_n "checking $ac_header usability... " >&6; }
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 $ac_includes_default
22618 #include <$ac_header>
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22627 $as_echo "$ac_try_echo") >&5
22628 (eval "$ac_compile") 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest.$ac_objext; then
22638 ac_header_compiler=yes
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 ac_header_compiler=no
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22648 $as_echo "$ac_header_compiler" >&6; }
22650 # Is the header present?
22651 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22652 $as_echo_n "checking $ac_header presence... " >&6; }
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 #include <$ac_header>
22661 if { (ac_try="$ac_cpp conftest.$ac_ext"
22662 case "(($ac_try" in
22663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664 *) ac_try_echo=$ac_try;;
22666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22667 $as_echo "$ac_try_echo") >&5
22668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } >/dev/null && {
22675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22678 ac_header_preproc=yes
22680 $as_echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ac_header_preproc=no
22686 rm -f conftest.err conftest.$ac_ext
22687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22688 $as_echo "$ac_header_preproc" >&6; }
22690 # So? What about this header?
22691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22694 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22697 ac_header_preproc=yes
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22703 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22705 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22707 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22711 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22715 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22716 $as_echo_n "checking for $ac_header... " >&6; }
22717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22718 $as_echo_n "(cached) " >&6
22720 eval "$as_ac_Header=\$ac_header_preproc"
22722 ac_res=`eval 'as_val=${'$as_ac_Header'}
22723 $as_echo "$as_val"'`
22724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22725 $as_echo "$ac_res" >&6; }
22728 as_val=`eval 'as_val=${'$as_ac_Header'}
22729 $as_echo "$as_val"'`
22730 if test "x$as_val" = x""yes; then
22731 cat >>confdefs.h <<_ACEOF
22732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22741 for ac_func in endmntent
22743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22744 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22745 $as_echo_n "checking for $ac_func... " >&6; }
22746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22747 $as_echo_n "(cached) " >&6
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22757 #define $ac_func innocuous_$ac_func
22759 /* System header to define __stub macros and hopefully few prototypes,
22760 which can conflict with char $ac_func (); below.
22761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22762 <limits.h> exists even on freestanding compilers. */
22765 # include <limits.h>
22767 # include <assert.h>
22772 /* Override any GCC internal prototype to avoid an error.
22773 Use char because int might match the return type of a GCC
22774 builtin and then its argument prototype would still apply. */
22779 /* The GNU C library defines this for functions which it implements
22780 to always fail with ENOSYS. Some functions are actually named
22781 something starting with __ and the normal name is an alias. */
22782 #if defined __stub_$ac_func || defined __stub___$ac_func
22789 return $ac_func ();
22794 rm -f conftest.$ac_objext conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801 $as_echo "$ac_try_echo") >&5
22802 (eval "$ac_link") 2>conftest.er1
22804 grep -v '^ *+' conftest.er1 >conftest.err
22806 cat conftest.err >&5
22807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest$ac_exeext && {
22812 test "$cross_compiling" = yes ||
22813 $as_test_x conftest$ac_exeext
22815 eval "$as_ac_var=yes"
22817 $as_echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 eval "$as_ac_var=no"
22823 rm -rf conftest.dSYM
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
22827 ac_res=`eval 'as_val=${'$as_ac_var'}
22828 $as_echo "$as_val"'`
22829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22830 $as_echo "$ac_res" >&6; }
22831 as_val=`eval 'as_val=${'$as_ac_var'}
22832 $as_echo "$as_val"'`
22833 if test "x$as_val" = x""yes; then
22834 cat >>confdefs.h <<_ACEOF
22835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22842 for ac_func in setmntent
22844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22846 $as_echo_n "checking for $ac_func... " >&6; }
22847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22848 $as_echo_n "(cached) " >&6
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22858 #define $ac_func innocuous_$ac_func
22860 /* System header to define __stub macros and hopefully few prototypes,
22861 which can conflict with char $ac_func (); below.
22862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22863 <limits.h> exists even on freestanding compilers. */
22866 # include <limits.h>
22868 # include <assert.h>
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22880 /* The GNU C library defines this for functions which it implements
22881 to always fail with ENOSYS. Some functions are actually named
22882 something starting with __ and the normal name is an alias. */
22883 #if defined __stub_$ac_func || defined __stub___$ac_func
22890 return $ac_func ();
22895 rm -f conftest.$ac_objext conftest$ac_exeext
22896 if { (ac_try="$ac_link"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22902 $as_echo "$ac_try_echo") >&5
22903 (eval "$ac_link") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest$ac_exeext && {
22913 test "$cross_compiling" = yes ||
22914 $as_test_x conftest$ac_exeext
22916 eval "$as_ac_var=yes"
22918 $as_echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 eval "$as_ac_var=no"
22924 rm -rf conftest.dSYM
22925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22926 conftest$ac_exeext conftest.$ac_ext
22928 ac_res=`eval 'as_val=${'$as_ac_var'}
22929 $as_echo "$as_val"'`
22930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22931 $as_echo "$ac_res" >&6; }
22932 as_val=`eval 'as_val=${'$as_ac_var'}
22933 $as_echo "$as_val"'`
22934 if test "x$as_val" = x""yes; then
22935 cat >>confdefs.h <<_ACEOF
22936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22949 for ac_header in fcntl.h \
22956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22959 $as_echo_n "checking for $ac_header... " >&6; }
22960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22961 $as_echo_n "(cached) " >&6
22963 ac_res=`eval 'as_val=${'$as_ac_Header'}
22964 $as_echo "$as_val"'`
22965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22966 $as_echo "$ac_res" >&6; }
22968 # Is the header compilable?
22969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22970 $as_echo_n "checking $ac_header usability... " >&6; }
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 $ac_includes_default
22978 #include <$ac_header>
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22987 $as_echo "$ac_try_echo") >&5
22988 (eval "$ac_compile") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest.$ac_objext; then
22998 ac_header_compiler=yes
23000 $as_echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_header_compiler=no
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23008 $as_echo "$ac_header_compiler" >&6; }
23010 # Is the header present?
23011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23012 $as_echo_n "checking $ac_header presence... " >&6; }
23013 cat >conftest.$ac_ext <<_ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 #include <$ac_header>
23021 if { (ac_try="$ac_cpp conftest.$ac_ext"
23022 case "(($ac_try" in
23023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23024 *) ac_try_echo=$ac_try;;
23026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23027 $as_echo "$ac_try_echo") >&5
23028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23030 grep -v '^ *+' conftest.er1 >conftest.err
23032 cat conftest.err >&5
23033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } >/dev/null && {
23035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23036 test ! -s conftest.err
23038 ac_header_preproc=yes
23040 $as_echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 ac_header_preproc=no
23046 rm -f conftest.err conftest.$ac_ext
23047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23048 $as_echo "$ac_header_preproc" >&6; }
23050 # So? What about this header?
23051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23057 ac_header_preproc=yes
23060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23076 $as_echo_n "checking for $ac_header... " >&6; }
23077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23078 $as_echo_n "(cached) " >&6
23080 eval "$as_ac_Header=\$ac_header_preproc"
23082 ac_res=`eval 'as_val=${'$as_ac_Header'}
23083 $as_echo "$as_val"'`
23084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23085 $as_echo "$ac_res" >&6; }
23088 as_val=`eval 'as_val=${'$as_ac_Header'}
23089 $as_echo "$as_val"'`
23090 if test "x$as_val" = x""yes; then
23091 cat >>confdefs.h <<_ACEOF
23092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23100 # find a working file-locking mechanism.
23101 # Note: these all use AC_TRY_LINK to make sure that we can compile
23102 # and link each variant. They do not try to test the variants --
23103 # that is left to runtime.
23106 # check POSIX locking
23107 { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
23108 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
23109 if test "${amanda_cv_posix_filelocking+set}" = set; then
23110 $as_echo_n "(cached) " >&6
23113 cat >conftest.$ac_ext <<_ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23120 #if HAVE_SYS_TYPES_H
23121 # include <sys/types.h>
23124 # include <unistd.h>
23127 # include <fcntl.h>
23136 lock.l_type = F_RDLCK;
23138 lock.l_whence = SEEK_CUR;
23140 return fcntl(1, F_SETLK, &lock);
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23153 $as_echo "$ac_try_echo") >&5
23154 (eval "$ac_link") 2>conftest.er1
23156 grep -v '^ *+' conftest.er1 >conftest.err
23158 cat conftest.err >&5
23159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } && {
23161 test -z "$ac_c_werror_flag" ||
23162 test ! -s conftest.err
23163 } && test -s conftest$ac_exeext && {
23164 test "$cross_compiling" = yes ||
23165 $as_test_x conftest$ac_exeext
23168 amanda_cv_posix_filelocking="yes"
23171 $as_echo "$as_me: failed program was:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23175 amanda_cv_posix_filelocking="no"
23179 rm -rf conftest.dSYM
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181 conftest$ac_exeext conftest.$ac_ext
23184 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
23185 $as_echo "$amanda_cv_posix_filelocking" >&6; }
23186 if test "x$amanda_cv_posix_filelocking" = xyes; then
23188 cat >>confdefs.h <<\_ACEOF
23189 #define WANT_AMFLOCK_POSIX 1
23192 WANT_AMFLOCK_POSIX="yes"
23193 LOCKING="POSIX_FCNTL"
23195 if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
23196 WANT_AMFLOCK_POSIX_TRUE=
23197 WANT_AMFLOCK_POSIX_FALSE='#'
23199 WANT_AMFLOCK_POSIX_TRUE='#'
23200 WANT_AMFLOCK_POSIX_FALSE=
23204 # check flock-based (BSD) locking
23205 { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
23206 $as_echo_n "checking whether flock locking is available... " >&6; }
23207 if test "${amanda_cv_flock_filelocking+set}" = set; then
23208 $as_echo_n "(cached) " >&6
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23218 #if HAVE_SYS_FILE_H
23219 # include <sys/file.h>
23226 return flock(1, LOCK_SH);
23232 rm -f conftest.$ac_objext conftest$ac_exeext
23233 if { (ac_try="$ac_link"
23234 case "(($ac_try" in
23235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236 *) ac_try_echo=$ac_try;;
23238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23239 $as_echo "$ac_try_echo") >&5
23240 (eval "$ac_link") 2>conftest.er1
23242 grep -v '^ *+' conftest.er1 >conftest.err
23244 cat conftest.err >&5
23245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest$ac_exeext && {
23250 test "$cross_compiling" = yes ||
23251 $as_test_x conftest$ac_exeext
23254 amanda_cv_flock_filelocking="yes"
23257 $as_echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23261 amanda_cv_flock_filelocking="no"
23265 rm -rf conftest.dSYM
23266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23267 conftest$ac_exeext conftest.$ac_ext
23270 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
23271 $as_echo "$amanda_cv_flock_filelocking" >&6; }
23272 if test "x$amanda_cv_flock_filelocking" = xyes; then
23274 cat >>confdefs.h <<\_ACEOF
23275 #define WANT_AMFLOCK_FLOCK 1
23278 WANT_AMFLOCK_FLOCK="yes"
23281 if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
23282 WANT_AMFLOCK_FLOCK_TRUE=
23283 WANT_AMFLOCK_FLOCK_FALSE='#'
23285 WANT_AMFLOCK_FLOCK_TRUE='#'
23286 WANT_AMFLOCK_FLOCK_FALSE=
23290 # check lockf-based (SVR2, SVR3, SVR4) locking
23291 { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
23292 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
23293 if test "${amanda_cv_lockf_filelocking+set}" = set; then
23294 $as_echo_n "(cached) " >&6
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23305 # include <unistd.h>
23312 return lockf(1, F_LOCK, 0);
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23325 $as_echo "$ac_try_echo") >&5
23326 (eval "$ac_link") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest$ac_exeext && {
23336 test "$cross_compiling" = yes ||
23337 $as_test_x conftest$ac_exeext
23340 amanda_cv_lockf_filelocking="yes"
23343 $as_echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23347 amanda_cv_lockf_filelocking="no"
23351 rm -rf conftest.dSYM
23352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23353 conftest$ac_exeext conftest.$ac_ext
23356 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
23357 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
23358 if test "x$amanda_cv_lockf_filelocking" = xyes; then
23360 cat >>confdefs.h <<\_ACEOF
23361 #define WANT_AMFLOCK_LOCKF 1
23364 WANT_AMFLOCK_LOCKF="yes"
23367 if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
23368 WANT_AMFLOCK_LOCKF_TRUE=
23369 WANT_AMFLOCK_LOCKF_FALSE='#'
23371 WANT_AMFLOCK_LOCKF_TRUE='#'
23372 WANT_AMFLOCK_LOCKF_FALSE=
23376 # check our homebrew hardlink-based locking (requires hardlinks)
23377 { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
23378 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
23379 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
23380 $as_echo_n "(cached) " >&6
23383 cat >conftest.$ac_ext <<_ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23391 # include <unistd.h>
23398 return link("/tmp/foo", "/tmp/bar");
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23411 $as_echo "$ac_try_echo") >&5
23412 (eval "$ac_link") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest$ac_exeext && {
23422 test "$cross_compiling" = yes ||
23423 $as_test_x conftest$ac_exeext
23426 amanda_cv_lnlock_filelocking="yes"
23429 $as_echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23433 amanda_cv_lnlock_filelocking="no"
23437 rm -rf conftest.dSYM
23438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23439 conftest$ac_exeext conftest.$ac_ext
23442 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
23443 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
23444 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define WANT_AMFLOCK_LNLOCK 1
23450 WANT_AMFLOCK_LNLOCK="yes"
23453 if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
23454 WANT_AMFLOCK_LNLOCK_TRUE=
23455 WANT_AMFLOCK_LNLOCK_FALSE='#'
23457 WANT_AMFLOCK_LNLOCK_TRUE='#'
23458 WANT_AMFLOCK_LNLOCK_FALSE=
23462 if test x"$LOCKING" = "no"; then
23463 # this shouldn't happen, and is *bad* if it does
23464 { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
23465 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
23466 { (exit 1); exit 1; }; }
23473 for ac_prog in swig
23475 # Extract the first word of "$ac_prog", so it can be a program name with args.
23476 set dummy $ac_prog; ac_word=$2
23477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23478 $as_echo_n "checking for $ac_word... " >&6; }
23479 if test "${ac_cv_path_SWIG+set}" = set; then
23480 $as_echo_n "(cached) " >&6
23484 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23488 for as_dir in $LOCSYSPATH
23491 test -z "$as_dir" && as_dir=.
23492 for ac_exec_ext in '' $ac_executable_extensions; do
23493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23494 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23505 SWIG=$ac_cv_path_SWIG
23506 if test -n "$SWIG"; then
23507 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23508 $as_echo "$SWIG" >&6; }
23510 { $as_echo "$as_me:$LINENO: result: no" >&5
23511 $as_echo "no" >&6; }
23515 test -n "$SWIG" && break
23520 # Extract the first word of "swig", so it can be a program name with args.
23521 set dummy swig; ac_word=$2
23522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23523 $as_echo_n "checking for $ac_word... " >&6; }
23524 if test "${ac_cv_path_SWIG+set}" = set; then
23525 $as_echo_n "(cached) " >&6
23529 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
23532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23533 for as_dir in $PATH
23536 test -z "$as_dir" && as_dir=.
23537 for ac_exec_ext in '' $ac_executable_extensions; do
23538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23539 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
23540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23550 SWIG=$ac_cv_path_SWIG
23551 if test -n "$SWIG"; then
23552 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
23553 $as_echo "$SWIG" >&6; }
23555 { $as_echo "$as_me:$LINENO: result: no" >&5
23556 $as_echo "no" >&6; }
23560 if test -z "$SWIG" ; then
23561 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
23562 elif test -n "1.3.28" ; then
23563 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
23564 $as_echo_n "checking for SWIG version... " >&6; }
23565 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
23566 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
23567 $as_echo "$swig_version" >&6; }
23568 if test -n "$swig_version" ; then
23569 # Calculate the required version number components
23571 required_major=`echo $required | sed 's/[^0-9].*//'`
23572 if test -z "$required_major" ; then
23575 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23576 required_minor=`echo $required | sed 's/[^0-9].*//'`
23577 if test -z "$required_minor" ; then
23580 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
23581 required_patch=`echo $required | sed 's/[^0-9].*//'`
23582 if test -z "$required_patch" ; then
23585 # Calculate the available version number components
23586 available=$swig_version
23587 available_major=`echo $available | sed 's/[^0-9].*//'`
23588 if test -z "$available_major" ; then
23591 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23592 available_minor=`echo $available | sed 's/[^0-9].*//'`
23593 if test -z "$available_minor" ; then
23596 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
23597 available_patch=`echo $available | sed 's/[^0-9].*//'`
23598 if test -z "$available_patch" ; then
23601 if test $available_major -ne $required_major \
23602 -o $available_minor -ne $required_minor \
23603 -o $available_patch -lt $required_patch ; then
23604 SWIG='echo "Error: SWIG version >= 1.3.28 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
23606 SWIG_LIB=`$SWIG -swiglib`
23609 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
23617 for ac_prog in perl5 perl
23619 # Extract the first word of "$ac_prog", so it can be a program name with args.
23620 set dummy $ac_prog; ac_word=$2
23621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23622 $as_echo_n "checking for $ac_word... " >&6; }
23623 if test "${ac_cv_path_PERL+set}" = set; then
23624 $as_echo_n "(cached) " >&6
23628 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
23631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23632 for as_dir in $LOCSYSPATH
23635 test -z "$as_dir" && as_dir=.
23636 for ac_exec_ext in '' $ac_executable_extensions; do
23637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23638 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
23639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23649 PERL=$ac_cv_path_PERL
23650 if test -n "$PERL"; then
23651 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23652 $as_echo "$PERL" >&6; }
23654 { $as_echo "$as_me:$LINENO: result: no" >&5
23655 $as_echo "no" >&6; }
23659 test -n "$PERL" && break
23663 # Make sure we have perl
23664 if test -z "$PERL"; then
23665 # Extract the first word of "perl", so it can be a program name with args.
23666 set dummy perl; ac_word=$2
23667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23668 $as_echo_n "checking for $ac_word... " >&6; }
23669 if test "${ac_cv_prog_PERL+set}" = set; then
23670 $as_echo_n "(cached) " >&6
23672 if test -n "$PERL"; then
23673 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23676 for as_dir in $PATH
23679 test -z "$as_dir" && as_dir=.
23680 for ac_exec_ext in '' $ac_executable_extensions; do
23681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23682 ac_cv_prog_PERL="perl"
23683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23692 PERL=$ac_cv_prog_PERL
23693 if test -n "$PERL"; then
23694 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23695 $as_echo "$PERL" >&6; }
23697 { $as_echo "$as_me:$LINENO: result: no" >&5
23698 $as_echo "no" >&6; }
23704 # Check if version of Perl is sufficient
23705 ac_perl_version="5.6.0"
23707 if test "x$PERL" != "x"; then
23708 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
23709 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
23710 # NB: It would be nice to log the error if there is one, but we cannot rely
23711 # on autoconf internals
23712 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
23713 if test $? -ne 0; then
23714 { $as_echo "$as_me:$LINENO: result: no" >&5
23715 $as_echo "no" >&6; };
23717 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
23718 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
23719 { (exit 1); exit 1; }; }
23722 { $as_echo "$as_me:$LINENO: result: ok" >&5
23723 $as_echo "ok" >&6; };
23727 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
23728 $as_echo "$as_me: WARNING: could not find perl" >&2;}
23736 # If we want cygwin to copy ddl to modules directory.
23737 WANT_CYGWIN_COPY_PERL_DLL="false"
23739 # test for ExtUtils::Embed
23740 ac_perl_list_modules="ExtUtils::Embed 0.0"
23741 # Make sure we have perl
23742 if test -z "$PERL"; then
23743 # Extract the first word of "perl", so it can be a program name with args.
23744 set dummy perl; ac_word=$2
23745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23746 $as_echo_n "checking for $ac_word... " >&6; }
23747 if test "${ac_cv_prog_PERL+set}" = set; then
23748 $as_echo_n "(cached) " >&6
23750 if test -n "$PERL"; then
23751 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23754 for as_dir in $PATH
23757 test -z "$as_dir" && as_dir=.
23758 for ac_exec_ext in '' $ac_executable_extensions; do
23759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23760 ac_cv_prog_PERL="perl"
23761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23770 PERL=$ac_cv_prog_PERL
23771 if test -n "$PERL"; then
23772 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
23773 $as_echo "$PERL" >&6; }
23775 { $as_echo "$as_me:$LINENO: result: no" >&5
23776 $as_echo "no" >&6; }
23782 # Check the number of arguments
23783 args_num=`echo $ac_perl_list_modules | wc -w`
23784 let "ckeck_args = $args_num % 2"
23785 if test "$check_args" = "1" ; then
23786 { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
23787 $as_echo "$as_me: error: syntax error" >&2;}
23788 { (exit 1); exit 1; }; }
23793 if test "x$PERL" != x; then
23795 while test ${#ac_perl_list_modules} -gt 2 ; do
23796 module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
23797 module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
23798 ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
23799 { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
23800 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
23802 $PERL "-M$module_name" -e exit > /dev/null 2>&1
23803 if test $? -ne 0; then
23804 { $as_echo "$as_me:$LINENO: result: no" >&5
23805 $as_echo "no" >&6; };
23807 ac_perl_list_modules=""
23809 version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
23810 $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
23811 if test $? -eq 0 -o $? -eq 1 ; then
23812 { $as_echo "$as_me:$LINENO: result: ok" >&5
23813 $as_echo "ok" >&6; };
23815 { $as_echo "$as_me:$LINENO: result: no" >&5
23816 $as_echo "no" >&6; }
23818 ac_perl_list_modules=""
23823 if test "$ac_failed" = 0; then
23829 { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
23830 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
23831 { (exit 1); exit 1; }; }
23835 { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
23836 $as_echo "$as_me: error: could not find perl" >&2;}
23837 { (exit 1); exit 1; }; }
23840 # get the include path for building perl extensions
23841 PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
23844 if test x"$enable_shared" = x"no"; then
23845 { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
23846 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
23847 { (exit 1); exit 1; }; }
23851 *freebsd[123456]*) # up to and including FreeBSD 6.*
23852 # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
23853 # libgthread to automatically pull in the desired threading library.
23854 # Instead, they assume that any application linking against
23855 # libgthread will pull in the threading library. This is fine for
23856 # Amanda C applications, but for Perl applications this assumption
23857 # means that the perl binary would pull in the threading library.
23858 # But perl is compiled without threading by default.
23860 # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
23861 # decision is made in gcc's spec files, which were changed in
23862 # gcc-4.0. For a more in-depth discussion, see
23863 # http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
23865 # The easiest solution for the "default" case is to link all perl
23866 # extension libraries against the threading library, so it is loaded
23867 # when perl loads the extension library. The default threading
23868 # library in FreeBSD is libpthread. The below default will work on
23869 # such a FreeBSD system, but ports maintainers and those with
23870 # different configurations may need to override this value with
23871 # --with-perlextlibs.
23873 # We can't use -pthread because gcc on FreeBSD ignores -pthread in
23874 # combination with -shared. See
23875 # http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
23877 PERLEXTLIBS="-lpthread"
23880 # When need -lperl and the '-L' where it is located,
23881 # we don't want the DynaLoader.a
23882 PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
23883 WANT_CYGWIN_COPY_PERL_DLL="true";
23886 if $WANT_CYGWIN_COPY_PERL_DLL; then
23887 WANT_CYGWIN_COPY_PERL_DLL_TRUE=
23888 WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
23890 WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
23891 WANT_CYGWIN_COPY_PERL_DLL_FALSE=
23896 # Check whether --with-perlextlibs was given.
23897 if test "${with_perlextlibs+set}" = set; then
23898 withval=$with_perlextlibs;
23900 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
23901 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
23902 { (exit 1); exit 1; }; };;
23903 n|no) PERLEXTLIBS='';;
23904 *) PERLEXTLIBS="$withval" ;;
23913 # Extract the first word of "cat", so it can be a program name with args.
23914 set dummy cat; ac_word=$2
23915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23916 $as_echo_n "checking for $ac_word... " >&6; }
23917 if test "${ac_cv_path_CAT+set}" = set; then
23918 $as_echo_n "(cached) " >&6
23922 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
23925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23926 for as_dir in $LOCSYSPATH
23929 test -z "$as_dir" && as_dir=.
23930 for ac_exec_ext in '' $ac_executable_extensions; do
23931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23932 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
23933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23940 test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
23944 CAT=$ac_cv_path_CAT
23945 if test -n "$CAT"; then
23946 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
23947 $as_echo "$CAT" >&6; }
23949 { $as_echo "$as_me:$LINENO: result: no" >&5
23950 $as_echo "no" >&6; }
23961 if test "$GZIP"; then
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_GZIP 1
23968 COMPRESS_PATH="$GZIP"
23969 COMPRESS_SUFFIX=".gz"
23970 COMPRESS_FAST_OPT="--fast"
23971 COMPRESS_BEST_OPT="--best"
23972 UNCOMPRESS_PATH="$GZIP"
23973 UNCOMPRESS_OPT="-dc"
23975 if test "$COMPRESS"; then
23976 COMPRESS_PATH="$COMPRESS"
23977 COMPRESS_SUFFIX=".Z"
23978 COMPRESS_FAST_OPT="-f"
23979 COMPRESS_BEST_OPT="-f"
23980 UNCOMPRESS_PATH="$COMPRESS"
23981 UNCOMPRESS_OPT="-dc"
23983 # If we have to use cat, we don't define COMPRESS_FAST_OPT,
23984 # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
23985 # look for a file by the name of "".
23986 # XXX is the above true? --dustin
23989 { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress. Using cat." >&5
23990 $as_echo "$as_me: WARNING: Cannot find either gzip or compress. Using cat." >&2;}
23993 cat <<AAW_EOF >>config.warnings
23994 Cannot find either gzip or compress. Using cat.
23998 COMPRESS_PATH="$CAT"
24000 COMPRESS_FAST_OPT=""
24001 COMPRESS_BEST_OPT=""
24002 UNCOMPRESS_PATH="$CAT"
24008 cat >>confdefs.h <<_ACEOF
24009 #define COMPRESS_PATH "$COMPRESS_PATH"
24013 cat >>confdefs.h <<_ACEOF
24014 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
24018 cat >>confdefs.h <<_ACEOF
24019 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
24023 cat >>confdefs.h <<_ACEOF
24024 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
24028 cat >>confdefs.h <<_ACEOF
24029 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
24033 cat >>confdefs.h <<_ACEOF
24034 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
24046 # Empty GZIP so that make dist works.
24050 { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
24051 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
24052 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
24053 $as_echo_n "(cached) " >&6
24056 cat >conftest.$ac_ext <<_ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h. */
24063 # include <sys/types.h>
24064 # include <sys/socket.h>
24068 u_int i = sizeof (struct sockaddr_storage)
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24080 $as_echo "$ac_try_echo") >&5
24081 (eval "$ac_compile") 2>conftest.er1
24083 grep -v '^ *+' conftest.er1 >conftest.err
24085 cat conftest.err >&5
24086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && {
24088 test -z "$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 } && test -s conftest.$ac_objext; then
24091 ac_cv_has_sockaddr_storage=yes
24093 $as_echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 ac_cv_has_sockaddr_storage=no
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
24103 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
24105 if test $ac_cv_has_sockaddr_storage = yes ; then
24107 cat >>confdefs.h <<\_ACEOF
24108 #define HAVE_SOCKADDR_STORAGE 1
24118 # Check whether --with-ipv6 was given.
24119 if test "${with_ipv6+set}" = set; then
24120 withval=$with_ipv6;
24122 y | ye | yes) amanda_with_ipv6=yes;;
24123 n | no) amanda_with_ipv6=no;;
24125 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
24126 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
24127 { (exit 1); exit 1; }; }
24133 amanda_with_ipv6=maybe
24139 if test x"$amanda_with_ipv6" = x"yes" ||
24140 test x"$amanda_with_ipv6" = x"maybe" ; then
24141 { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
24142 $as_echo_n "checking for working IPv6... " >&6; }
24143 if test "${amanda_cv_working_ipv6+set}" = set; then
24144 $as_echo_n "(cached) " >&6
24148 *-pc-cygwin) amanda_cv_working_ipv6=no;;
24150 if test "$cross_compiling" = yes; then
24151 amanda_cv_working_ipv6=yes
24154 cat >conftest.$ac_ext <<_ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24161 #include <sys/types.h>
24162 #ifdef HAVE_SYS_SOCKET_H
24163 #include <sys/socket.h>
24165 #ifdef HAVE_NETINET_IN_H
24166 #include <netinet/in.h>
24168 #ifdef HAVE_WINSOCK2_H
24169 #include <winsock2.h>
24171 #include <sys/socket.h>
24177 aa = socket(AF_INET6, SOCK_STREAM, 0);
24178 if (aa > 0) return 0;
24182 rm -f conftest$ac_exeext
24183 if { (ac_try="$ac_link"
24184 case "(($ac_try" in
24185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186 *) ac_try_echo=$ac_try;;
24188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190 (eval "$ac_link") 2>&5
24192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24194 { (case "(($ac_try" in
24195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24196 *) ac_try_echo=$ac_try;;
24198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24199 $as_echo "$ac_try_echo") >&5
24200 (eval "$ac_try") 2>&5
24202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24204 amanda_cv_working_ipv6=yes
24206 $as_echo "$as_me: program exited with status $ac_status" >&5
24207 $as_echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24210 ( exit $ac_status )
24211 amanda_cv_working_ipv6=no
24213 rm -rf conftest.dSYM
24214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24221 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
24222 $as_echo "$amanda_cv_working_ipv6" >&6; }
24224 if test "$amanda_cv_working_ipv6" = yes; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define WORKING_IPV6 1
24232 # error out only if the user specifically requested support
24233 if test x"$amanda_with_ipv6" = x"yes"; then
24234 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but it is not working." >&5
24235 $as_echo "$as_me: error: IPv6 support was requested, but it is not working." >&2;}
24236 { (exit 1); exit 1; }; }
24244 # Check whether --with-mmap was given.
24245 if test "${with_mmap+set}" = set; then
24246 withval=$with_mmap;
24247 case "$FORCE_MMAP" in
24248 y | ye | yes | n | no) : ;;
24249 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
24250 $as_echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
24251 { (exit 1); exit 1; }; } ;;
24253 FORCE_MMAP=$withval
24269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24272 $as_echo_n "checking for $ac_header... " >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24274 $as_echo_n "(cached) " >&6
24276 ac_res=`eval 'as_val=${'$as_ac_Header'}
24277 $as_echo "$as_val"'`
24278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24281 # Is the header compilable?
24282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24283 $as_echo_n "checking $ac_header usability... " >&6; }
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24290 $ac_includes_default
24291 #include <$ac_header>
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24303 grep -v '^ *+' conftest.er1 >conftest.err
24305 cat conftest.err >&5
24306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } && {
24308 test -z "$ac_c_werror_flag" ||
24309 test ! -s conftest.err
24310 } && test -s conftest.$ac_objext; then
24311 ac_header_compiler=yes
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ac_header_compiler=no
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24321 $as_echo "$ac_header_compiler" >&6; }
24323 # Is the header present?
24324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24325 $as_echo_n "checking $ac_header presence... " >&6; }
24326 cat >conftest.$ac_ext <<_ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h. */
24332 #include <$ac_header>
24334 if { (ac_try="$ac_cpp conftest.$ac_ext"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24340 $as_echo "$ac_try_echo") >&5
24341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24343 grep -v '^ *+' conftest.er1 >conftest.err
24345 cat conftest.err >&5
24346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347 (exit $ac_status); } >/dev/null && {
24348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24349 test ! -s conftest.err
24351 ac_header_preproc=yes
24353 $as_echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_header_preproc=no
24359 rm -f conftest.err conftest.$ac_ext
24360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24361 $as_echo "$ac_header_preproc" >&6; }
24363 # So? What about this header?
24364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24370 ac_header_preproc=yes
24373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24389 $as_echo_n "checking for $ac_header... " >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24391 $as_echo_n "(cached) " >&6
24393 eval "$as_ac_Header=\$ac_header_preproc"
24395 ac_res=`eval 'as_val=${'$as_ac_Header'}
24396 $as_echo "$as_val"'`
24397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24398 $as_echo "$ac_res" >&6; }
24401 as_val=`eval 'as_val=${'$as_ac_Header'}
24402 $as_echo "$as_val"'`
24403 if test "x$as_val" = x""yes; then
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24415 for ac_header in stdlib.h unistd.h
24417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24420 $as_echo_n "checking for $ac_header... " >&6; }
24421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24422 $as_echo_n "(cached) " >&6
24424 ac_res=`eval 'as_val=${'$as_ac_Header'}
24425 $as_echo "$as_val"'`
24426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24427 $as_echo "$ac_res" >&6; }
24429 # Is the header compilable?
24430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24431 $as_echo_n "checking $ac_header usability... " >&6; }
24432 cat >conftest.$ac_ext <<_ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24438 $ac_includes_default
24439 #include <$ac_header>
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24445 *) ac_try_echo=$ac_try;;
24447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24448 $as_echo "$ac_try_echo") >&5
24449 (eval "$ac_compile") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest.$ac_objext; then
24459 ac_header_compiler=yes
24461 $as_echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 ac_header_compiler=no
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24469 $as_echo "$ac_header_compiler" >&6; }
24471 # Is the header present?
24472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24473 $as_echo_n "checking $ac_header presence... " >&6; }
24474 cat >conftest.$ac_ext <<_ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24480 #include <$ac_header>
24482 if { (ac_try="$ac_cpp conftest.$ac_ext"
24483 case "(($ac_try" in
24484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24485 *) ac_try_echo=$ac_try;;
24487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24488 $as_echo "$ac_try_echo") >&5
24489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24491 grep -v '^ *+' conftest.er1 >conftest.err
24493 cat conftest.err >&5
24494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } >/dev/null && {
24496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24497 test ! -s conftest.err
24499 ac_header_preproc=yes
24501 $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ac_header_preproc=no
24507 rm -f conftest.err conftest.$ac_ext
24508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24509 $as_echo "$ac_header_preproc" >&6; }
24511 # So? What about this header?
24512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24518 ac_header_preproc=yes
24521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24524 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24528 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24537 $as_echo_n "checking for $ac_header... " >&6; }
24538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24539 $as_echo_n "(cached) " >&6
24541 eval "$as_ac_Header=\$ac_header_preproc"
24543 ac_res=`eval 'as_val=${'$as_ac_Header'}
24544 $as_echo "$as_val"'`
24545 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24546 $as_echo "$ac_res" >&6; }
24549 as_val=`eval 'as_val=${'$as_ac_Header'}
24550 $as_echo "$as_val"'`
24551 if test "x$as_val" = x""yes; then
24552 cat >>confdefs.h <<_ACEOF
24553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24561 for ac_func in getpagesize
24563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24565 $as_echo_n "checking for $ac_func... " >&6; }
24566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24567 $as_echo_n "(cached) " >&6
24569 cat >conftest.$ac_ext <<_ACEOF
24572 cat confdefs.h >>conftest.$ac_ext
24573 cat >>conftest.$ac_ext <<_ACEOF
24574 /* end confdefs.h. */
24575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24577 #define $ac_func innocuous_$ac_func
24579 /* System header to define __stub macros and hopefully few prototypes,
24580 which can conflict with char $ac_func (); below.
24581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24582 <limits.h> exists even on freestanding compilers. */
24585 # include <limits.h>
24587 # include <assert.h>
24592 /* Override any GCC internal prototype to avoid an error.
24593 Use char because int might match the return type of a GCC
24594 builtin and then its argument prototype would still apply. */
24599 /* The GNU C library defines this for functions which it implements
24600 to always fail with ENOSYS. Some functions are actually named
24601 something starting with __ and the normal name is an alias. */
24602 #if defined __stub_$ac_func || defined __stub___$ac_func
24609 return $ac_func ();
24614 rm -f conftest.$ac_objext conftest$ac_exeext
24615 if { (ac_try="$ac_link"
24616 case "(($ac_try" in
24617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618 *) ac_try_echo=$ac_try;;
24620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24621 $as_echo "$ac_try_echo") >&5
24622 (eval "$ac_link") 2>conftest.er1
24624 grep -v '^ *+' conftest.er1 >conftest.err
24626 cat conftest.err >&5
24627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); } && {
24629 test -z "$ac_c_werror_flag" ||
24630 test ! -s conftest.err
24631 } && test -s conftest$ac_exeext && {
24632 test "$cross_compiling" = yes ||
24633 $as_test_x conftest$ac_exeext
24635 eval "$as_ac_var=yes"
24637 $as_echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24640 eval "$as_ac_var=no"
24643 rm -rf conftest.dSYM
24644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24645 conftest$ac_exeext conftest.$ac_ext
24647 ac_res=`eval 'as_val=${'$as_ac_var'}
24648 $as_echo "$as_val"'`
24649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24650 $as_echo "$ac_res" >&6; }
24651 as_val=`eval 'as_val=${'$as_ac_var'}
24652 $as_echo "$as_val"'`
24653 if test "x$as_val" = x""yes; then
24654 cat >>confdefs.h <<_ACEOF
24655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24661 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
24662 $as_echo_n "checking for working mmap... " >&6; }
24663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24664 $as_echo_n "(cached) " >&6
24666 if test "$cross_compiling" = yes; then
24667 ac_cv_func_mmap_fixed_mapped=no
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24676 /* malloc might have been renamed as rpl_malloc. */
24679 /* Thanks to Mike Haertel and Jim Avera for this test.
24680 Here is a matrix of mmap possibilities:
24681 mmap private not fixed
24682 mmap private fixed at somewhere currently unmapped
24683 mmap private fixed at somewhere already mapped
24684 mmap shared not fixed
24685 mmap shared fixed at somewhere currently unmapped
24686 mmap shared fixed at somewhere already mapped
24687 For private mappings, we should verify that changes cannot be read()
24688 back from the file, nor mmap's back from the file at a different
24689 address. (There have been systems where private was not correctly
24690 implemented like the infamous i386 svr4.0, and systems where the
24691 VM page cache was not coherent with the file system buffer cache
24692 like early versions of FreeBSD and possibly contemporary NetBSD.)
24693 For shared mappings, we should conversely verify that changes get
24694 propagated back to all the places they're supposed to be.
24696 Grep wants private fixed already mapped.
24697 The main things grep needs to know about mmap are:
24698 * does it exist and is it safe to write into the mmap'd area
24699 * how to use it (BSD variants) */
24702 #include <sys/mman.h>
24704 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24708 /* This mess was copied from the GNU getpagesize.h. */
24709 #ifndef HAVE_GETPAGESIZE
24710 /* Assume that all systems that can run configure have sys/param.h. */
24711 # ifndef HAVE_SYS_PARAM_H
24712 # define HAVE_SYS_PARAM_H 1
24715 # ifdef _SC_PAGESIZE
24716 # define getpagesize() sysconf(_SC_PAGESIZE)
24717 # else /* no _SC_PAGESIZE */
24718 # ifdef HAVE_SYS_PARAM_H
24719 # include <sys/param.h>
24720 # ifdef EXEC_PAGESIZE
24721 # define getpagesize() EXEC_PAGESIZE
24722 # else /* no EXEC_PAGESIZE */
24724 # define getpagesize() NBPG * CLSIZE
24727 # endif /* no CLSIZE */
24728 # else /* no NBPG */
24730 # define getpagesize() NBPC
24731 # else /* no NBPC */
24733 # define getpagesize() PAGESIZE
24734 # endif /* PAGESIZE */
24735 # endif /* no NBPC */
24736 # endif /* no NBPG */
24737 # endif /* no EXEC_PAGESIZE */
24738 # else /* no HAVE_SYS_PARAM_H */
24739 # define getpagesize() 8192 /* punt totally */
24740 # endif /* no HAVE_SYS_PARAM_H */
24741 # endif /* no _SC_PAGESIZE */
24743 #endif /* no HAVE_GETPAGESIZE */
24748 char *data, *data2, *data3;
24752 pagesize = getpagesize ();
24754 /* First, make a file with some known garbage in it. */
24755 data = (char *) malloc (pagesize);
24758 for (i = 0; i < pagesize; ++i)
24759 *(data + i) = rand ();
24761 fd = creat ("conftest.mmap", 0600);
24764 if (write (fd, data, pagesize) != pagesize)
24768 /* Next, try to mmap the file at a fixed address which already has
24769 something else allocated at it. If we can, also make sure that
24770 we see the same garbage. */
24771 fd = open ("conftest.mmap", O_RDWR);
24774 data2 = (char *) malloc (2 * pagesize);
24777 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24778 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24781 for (i = 0; i < pagesize; ++i)
24782 if (*(data + i) != *(data2 + i))
24785 /* Finally, make sure that changes to the mapped area do not
24786 percolate back to the file as seen by read(). (This is a bug on
24787 some variants of i386 svr4.0.) */
24788 for (i = 0; i < pagesize; ++i)
24789 *(data2 + i) = *(data2 + i) + 1;
24790 data3 = (char *) malloc (pagesize);
24793 if (read (fd, data3, pagesize) != pagesize)
24795 for (i = 0; i < pagesize; ++i)
24796 if (*(data + i) != *(data3 + i))
24802 rm -f conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_link") 2>&5
24812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24814 { (case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24819 $as_echo "$ac_try_echo") >&5
24820 (eval "$ac_try") 2>&5
24822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
24824 ac_cv_func_mmap_fixed_mapped=yes
24826 $as_echo "$as_me: program exited with status $ac_status" >&5
24827 $as_echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24830 ( exit $ac_status )
24831 ac_cv_func_mmap_fixed_mapped=no
24833 rm -rf conftest.dSYM
24834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24840 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24841 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24843 cat >>confdefs.h <<\_ACEOF
24844 #define HAVE_MMAP 1
24848 rm -f conftest.mmap
24852 for ac_func in shmget
24854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24856 $as_echo_n "checking for $ac_func... " >&6; }
24857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24858 $as_echo_n "(cached) " >&6
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24868 #define $ac_func innocuous_$ac_func
24870 /* System header to define __stub macros and hopefully few prototypes,
24871 which can conflict with char $ac_func (); below.
24872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24873 <limits.h> exists even on freestanding compilers. */
24876 # include <limits.h>
24878 # include <assert.h>
24883 /* Override any GCC internal prototype to avoid an error.
24884 Use char because int might match the return type of a GCC
24885 builtin and then its argument prototype would still apply. */
24890 /* The GNU C library defines this for functions which it implements
24891 to always fail with ENOSYS. Some functions are actually named
24892 something starting with __ and the normal name is an alias. */
24893 #if defined __stub_$ac_func || defined __stub___$ac_func
24900 return $ac_func ();
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913 (eval "$ac_link") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest$ac_exeext && {
24923 test "$cross_compiling" = yes ||
24924 $as_test_x conftest$ac_exeext
24926 eval "$as_ac_var=yes"
24928 $as_echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 eval "$as_ac_var=no"
24934 rm -rf conftest.dSYM
24935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24936 conftest$ac_exeext conftest.$ac_ext
24938 ac_res=`eval 'as_val=${'$as_ac_var'}
24939 $as_echo "$as_val"'`
24940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24941 $as_echo "$ac_res" >&6; }
24942 as_val=`eval 'as_val=${'$as_ac_var'}
24943 $as_echo "$as_val"'`
24944 if test "x$as_val" = x""yes; then
24945 cat >>confdefs.h <<_ACEOF
24946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24953 for ac_header in sys/types.h \
24958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24961 $as_echo_n "checking for $ac_header... " >&6; }
24962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24963 $as_echo_n "(cached) " >&6
24965 ac_res=`eval 'as_val=${'$as_ac_Header'}
24966 $as_echo "$as_val"'`
24967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24968 $as_echo "$ac_res" >&6; }
24970 # Is the header compilable?
24971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24972 $as_echo_n "checking $ac_header usability... " >&6; }
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 $ac_includes_default
24980 #include <$ac_header>
24982 rm -f conftest.$ac_objext
24983 if { (ac_try="$ac_compile"
24984 case "(($ac_try" in
24985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986 *) ac_try_echo=$ac_try;;
24988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24989 $as_echo "$ac_try_echo") >&5
24990 (eval "$ac_compile") 2>conftest.er1
24992 grep -v '^ *+' conftest.er1 >conftest.err
24994 cat conftest.err >&5
24995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } && {
24997 test -z "$ac_c_werror_flag" ||
24998 test ! -s conftest.err
24999 } && test -s conftest.$ac_objext; then
25000 ac_header_compiler=yes
25002 $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25005 ac_header_compiler=no
25008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25010 $as_echo "$ac_header_compiler" >&6; }
25012 # Is the header present?
25013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25014 $as_echo_n "checking $ac_header presence... " >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <$ac_header>
25023 if { (ac_try="$ac_cpp conftest.$ac_ext"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25029 $as_echo "$ac_try_echo") >&5
25030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25032 grep -v '^ *+' conftest.er1 >conftest.err
25034 cat conftest.err >&5
25035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); } >/dev/null && {
25037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25038 test ! -s conftest.err
25040 ac_header_preproc=yes
25042 $as_echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 ac_header_preproc=no
25048 rm -f conftest.err conftest.$ac_ext
25049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25050 $as_echo "$ac_header_preproc" >&6; }
25052 # So? What about this header?
25053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25059 ac_header_preproc=yes
25062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25065 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25069 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25078 $as_echo_n "checking for $ac_header... " >&6; }
25079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25080 $as_echo_n "(cached) " >&6
25082 eval "$as_ac_Header=\$ac_header_preproc"
25084 ac_res=`eval 'as_val=${'$as_ac_Header'}
25085 $as_echo "$as_val"'`
25086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25087 $as_echo "$ac_res" >&6; }
25090 as_val=`eval 'as_val=${'$as_ac_Header'}
25091 $as_echo "$as_val"'`
25092 if test "x$as_val" = x""yes; then
25093 cat >>confdefs.h <<_ACEOF
25094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25102 { $as_echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
25103 $as_echo_n "checking for shmdt() argument type... " >&6; }
25104 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
25105 $as_echo_n "(cached) " >&6
25108 if test "$ac_cv_func_shmget" = yes; then
25109 cat <<EOF >conftest.$ac_ext
25110 #include "confdefs.h"
25111 #ifdef HAVE_SYS_TYPES_H
25112 # include <sys/types.h>
25114 #ifdef HAVE_SYS_IPC_H
25115 # include <sys/ipc.h>
25117 #ifdef HAVE_SYS_SHM_H
25118 # include <sys/shm.h>
25122 extern "C" void *shmat(int, void *, int);
25133 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
25134 if test $? = 0; then
25135 amanda_cv_shmdt_arg_type=void
25137 amanda_cv_shmdt_arg_type=char
25141 amanda_cv_shmdt_arg_type=nothing
25146 { $as_echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
25147 $as_echo "$amanda_cv_shmdt_arg_type" >&6; }
25149 cat >>confdefs.h <<_ACEOF
25150 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
25155 case "$FORCE_MMAP" in
25158 cat >>confdefs.h <<\_ACEOF
25159 #define HAVE_SYSVSHM 1
25172 for ac_func in shmat
25174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25175 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25176 $as_echo_n "checking for $ac_func... " >&6; }
25177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25178 $as_echo_n "(cached) " >&6
25180 cat >conftest.$ac_ext <<_ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25188 #define $ac_func innocuous_$ac_func
25190 /* System header to define __stub macros and hopefully few prototypes,
25191 which can conflict with char $ac_func (); below.
25192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25193 <limits.h> exists even on freestanding compilers. */
25196 # include <limits.h>
25198 # include <assert.h>
25203 /* Override any GCC internal prototype to avoid an error.
25204 Use char because int might match the return type of a GCC
25205 builtin and then its argument prototype would still apply. */
25210 /* The GNU C library defines this for functions which it implements
25211 to always fail with ENOSYS. Some functions are actually named
25212 something starting with __ and the normal name is an alias. */
25213 #if defined __stub_$ac_func || defined __stub___$ac_func
25220 return $ac_func ();
25225 rm -f conftest.$ac_objext conftest$ac_exeext
25226 if { (ac_try="$ac_link"
25227 case "(($ac_try" in
25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229 *) ac_try_echo=$ac_try;;
25231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25232 $as_echo "$ac_try_echo") >&5
25233 (eval "$ac_link") 2>conftest.er1
25235 grep -v '^ *+' conftest.er1 >conftest.err
25237 cat conftest.err >&5
25238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } && {
25240 test -z "$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25242 } && test -s conftest$ac_exeext && {
25243 test "$cross_compiling" = yes ||
25244 $as_test_x conftest$ac_exeext
25246 eval "$as_ac_var=yes"
25248 $as_echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25251 eval "$as_ac_var=no"
25254 rm -rf conftest.dSYM
25255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25256 conftest$ac_exeext conftest.$ac_ext
25258 ac_res=`eval 'as_val=${'$as_ac_var'}
25259 $as_echo "$as_val"'`
25260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25261 $as_echo "$ac_res" >&6; }
25262 as_val=`eval 'as_val=${'$as_ac_var'}
25263 $as_echo "$as_val"'`
25264 if test "x$as_val" = x""yes; then
25265 cat >>confdefs.h <<_ACEOF
25266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25272 if test "${ice_have_shmat}" = yes; then
25273 { $as_echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25274 $as_echo_n "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25275 if test "${ice_cv_have_shmat_decl+set}" = set; then
25276 $as_echo_n "(cached) " >&6
25279 ice_cv_have_shmat_decl=no
25280 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25281 ice_re_word='(^|[^a-zA-Z0-9_])'
25282 for header in sys/types.h sys/ipc.h sys/shm.h; do
25283 # Check for ordinary declaration
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25294 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
25295 ice_cv_have_shmat_decl=yes
25299 if test "$ice_cv_have_shmat_decl" = yes; then
25302 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25313 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25314 ice_cv_have_shmat_decl=yes
25318 if test "$ice_cv_have_shmat_decl" = yes; then
25325 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
25326 $as_echo "$ice_cv_have_shmat_decl" >&6; }
25327 if test "$ice_cv_have_shmat_decl" = yes; then
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_SHMAT_DECL 1
25339 for ac_func in shmctl
25341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25342 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25343 $as_echo_n "checking for $ac_func... " >&6; }
25344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25345 $as_echo_n "(cached) " >&6
25347 cat >conftest.$ac_ext <<_ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25355 #define $ac_func innocuous_$ac_func
25357 /* System header to define __stub macros and hopefully few prototypes,
25358 which can conflict with char $ac_func (); below.
25359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25360 <limits.h> exists even on freestanding compilers. */
25363 # include <limits.h>
25365 # include <assert.h>
25370 /* Override any GCC internal prototype to avoid an error.
25371 Use char because int might match the return type of a GCC
25372 builtin and then its argument prototype would still apply. */
25377 /* The GNU C library defines this for functions which it implements
25378 to always fail with ENOSYS. Some functions are actually named
25379 something starting with __ and the normal name is an alias. */
25380 #if defined __stub_$ac_func || defined __stub___$ac_func
25387 return $ac_func ();
25392 rm -f conftest.$ac_objext conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400 (eval "$ac_link") 2>conftest.er1
25402 grep -v '^ *+' conftest.er1 >conftest.err
25404 cat conftest.err >&5
25405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } && {
25407 test -z "$ac_c_werror_flag" ||
25408 test ! -s conftest.err
25409 } && test -s conftest$ac_exeext && {
25410 test "$cross_compiling" = yes ||
25411 $as_test_x conftest$ac_exeext
25413 eval "$as_ac_var=yes"
25415 $as_echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25418 eval "$as_ac_var=no"
25421 rm -rf conftest.dSYM
25422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25423 conftest$ac_exeext conftest.$ac_ext
25425 ac_res=`eval 'as_val=${'$as_ac_var'}
25426 $as_echo "$as_val"'`
25427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25428 $as_echo "$ac_res" >&6; }
25429 as_val=`eval 'as_val=${'$as_ac_var'}
25430 $as_echo "$as_val"'`
25431 if test "x$as_val" = x""yes; then
25432 cat >>confdefs.h <<_ACEOF
25433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25435 ice_have_shmctl=yes
25439 if test "${ice_have_shmctl}" = yes; then
25440 { $as_echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25441 $as_echo_n "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25442 if test "${ice_cv_have_shmctl_decl+set}" = set; then
25443 $as_echo_n "(cached) " >&6
25446 ice_cv_have_shmctl_decl=no
25447 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25448 ice_re_word='(^|[^a-zA-Z0-9_])'
25449 for header in sys/types.h sys/ipc.h sys/shm.h; do
25450 # Check for ordinary declaration
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25461 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
25462 ice_cv_have_shmctl_decl=yes
25466 if test "$ice_cv_have_shmctl_decl" = yes; then
25469 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25470 cat >conftest.$ac_ext <<_ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25481 ice_cv_have_shmctl_decl=yes
25485 if test "$ice_cv_have_shmctl_decl" = yes; then
25492 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
25493 $as_echo "$ice_cv_have_shmctl_decl" >&6; }
25494 if test "$ice_cv_have_shmctl_decl" = yes; then
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_SHMCTL_DECL 1
25506 for ac_func in shmdt
25508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25510 $as_echo_n "checking for $ac_func... " >&6; }
25511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25512 $as_echo_n "(cached) " >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25522 #define $ac_func innocuous_$ac_func
25524 /* System header to define __stub macros and hopefully few prototypes,
25525 which can conflict with char $ac_func (); below.
25526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25527 <limits.h> exists even on freestanding compilers. */
25530 # include <limits.h>
25532 # include <assert.h>
25537 /* Override any GCC internal prototype to avoid an error.
25538 Use char because int might match the return type of a GCC
25539 builtin and then its argument prototype would still apply. */
25544 /* The GNU C library defines this for functions which it implements
25545 to always fail with ENOSYS. Some functions are actually named
25546 something starting with __ and the normal name is an alias. */
25547 #if defined __stub_$ac_func || defined __stub___$ac_func
25554 return $ac_func ();
25559 rm -f conftest.$ac_objext conftest$ac_exeext
25560 if { (ac_try="$ac_link"
25561 case "(($ac_try" in
25562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563 *) ac_try_echo=$ac_try;;
25565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25566 $as_echo "$ac_try_echo") >&5
25567 (eval "$ac_link") 2>conftest.er1
25569 grep -v '^ *+' conftest.er1 >conftest.err
25571 cat conftest.err >&5
25572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && {
25574 test -z "$ac_c_werror_flag" ||
25575 test ! -s conftest.err
25576 } && test -s conftest$ac_exeext && {
25577 test "$cross_compiling" = yes ||
25578 $as_test_x conftest$ac_exeext
25580 eval "$as_ac_var=yes"
25582 $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 eval "$as_ac_var=no"
25588 rm -rf conftest.dSYM
25589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25590 conftest$ac_exeext conftest.$ac_ext
25592 ac_res=`eval 'as_val=${'$as_ac_var'}
25593 $as_echo "$as_val"'`
25594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25595 $as_echo "$ac_res" >&6; }
25596 as_val=`eval 'as_val=${'$as_ac_var'}
25597 $as_echo "$as_val"'`
25598 if test "x$as_val" = x""yes; then
25599 cat >>confdefs.h <<_ACEOF
25600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25606 if test "${ice_have_shmdt}" = yes; then
25607 { $as_echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25608 $as_echo_n "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25609 if test "${ice_cv_have_shmdt_decl+set}" = set; then
25610 $as_echo_n "(cached) " >&6
25613 ice_cv_have_shmdt_decl=no
25614 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25615 ice_re_word='(^|[^a-zA-Z0-9_])'
25616 for header in sys/types.h sys/ipc.h sys/shm.h; do
25617 # Check for ordinary declaration
25618 cat >conftest.$ac_ext <<_ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h. */
25627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25628 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
25629 ice_cv_have_shmdt_decl=yes
25633 if test "$ice_cv_have_shmdt_decl" = yes; then
25636 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25637 cat >conftest.$ac_ext <<_ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h. */
25646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25647 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25648 ice_cv_have_shmdt_decl=yes
25652 if test "$ice_cv_have_shmdt_decl" = yes; then
25659 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
25660 $as_echo "$ice_cv_have_shmdt_decl" >&6; }
25661 if test "$ice_cv_have_shmdt_decl" = yes; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define HAVE_SHMDT_DECL 1
25673 for ac_func in shmget
25675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25676 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25677 $as_echo_n "checking for $ac_func... " >&6; }
25678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25679 $as_echo_n "(cached) " >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25689 #define $ac_func innocuous_$ac_func
25691 /* System header to define __stub macros and hopefully few prototypes,
25692 which can conflict with char $ac_func (); below.
25693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25694 <limits.h> exists even on freestanding compilers. */
25697 # include <limits.h>
25699 # include <assert.h>
25704 /* Override any GCC internal prototype to avoid an error.
25705 Use char because int might match the return type of a GCC
25706 builtin and then its argument prototype would still apply. */
25711 /* The GNU C library defines this for functions which it implements
25712 to always fail with ENOSYS. Some functions are actually named
25713 something starting with __ and the normal name is an alias. */
25714 #if defined __stub_$ac_func || defined __stub___$ac_func
25721 return $ac_func ();
25726 rm -f conftest.$ac_objext conftest$ac_exeext
25727 if { (ac_try="$ac_link"
25728 case "(($ac_try" in
25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25733 $as_echo "$ac_try_echo") >&5
25734 (eval "$ac_link") 2>conftest.er1
25736 grep -v '^ *+' conftest.er1 >conftest.err
25738 cat conftest.err >&5
25739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); } && {
25741 test -z "$ac_c_werror_flag" ||
25742 test ! -s conftest.err
25743 } && test -s conftest$ac_exeext && {
25744 test "$cross_compiling" = yes ||
25745 $as_test_x conftest$ac_exeext
25747 eval "$as_ac_var=yes"
25749 $as_echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 eval "$as_ac_var=no"
25755 rm -rf conftest.dSYM
25756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25757 conftest$ac_exeext conftest.$ac_ext
25759 ac_res=`eval 'as_val=${'$as_ac_var'}
25760 $as_echo "$as_val"'`
25761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25762 $as_echo "$ac_res" >&6; }
25763 as_val=`eval 'as_val=${'$as_ac_var'}
25764 $as_echo "$as_val"'`
25765 if test "x$as_val" = x""yes; then
25766 cat >>confdefs.h <<_ACEOF
25767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25769 ice_have_shmget=yes
25773 if test "${ice_have_shmget}" = yes; then
25774 { $as_echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
25775 $as_echo_n "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... " >&6; }
25776 if test "${ice_cv_have_shmget_decl+set}" = set; then
25777 $as_echo_n "(cached) " >&6
25780 ice_cv_have_shmget_decl=no
25781 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
25782 ice_re_word='(^|[^a-zA-Z0-9_])'
25783 for header in sys/types.h sys/ipc.h sys/shm.h; do
25784 # Check for ordinary declaration
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
25796 ice_cv_have_shmget_decl=yes
25800 if test "$ice_cv_have_shmget_decl" = yes; then
25803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25814 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
25815 ice_cv_have_shmget_decl=yes
25819 if test "$ice_cv_have_shmget_decl" = yes; then
25826 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
25827 $as_echo "$ice_cv_have_shmget_decl" >&6; }
25828 if test "$ice_cv_have_shmget_decl" = yes; then
25830 cat >>confdefs.h <<_ACEOF
25831 #define HAVE_SHMGET_DECL 1
25838 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
25839 case "$FORCE_MMAP" in
25841 if test "x$ac_cv_func_shmget" != xyes; then
25843 { $as_echo "$as_me:$LINENO: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&5
25844 $as_echo "$as_me: WARNING: Neither shmget() nor mmap() found. This system will not support the Amanda server." >&2;}
25847 cat <<AAW_EOF >>config.warnings
25848 Neither shmget() nor mmap() found. This system will not support the Amanda server.
25852 NO_SERVER_MODE=true
25857 { $as_echo "$as_me:$LINENO: WARNING: --with-mmap used on a system with no mmap() support. This system will not support the Amanda server." >&5
25858 $as_echo "$as_me: WARNING: --with-mmap used on a system with no mmap() support. This system will not support the Amanda server." >&2;}
25861 cat <<AAW_EOF >>config.warnings
25862 --with-mmap used on a system with no mmap() support. This system will not support the Amanda server.
25866 NO_SERVER_MODE=true
25877 ac_header_dirent=no
25878 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25879 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25880 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25881 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25883 $as_echo_n "(cached) " >&6
25885 cat >conftest.$ac_ext <<_ACEOF
25888 cat confdefs.h >>conftest.$ac_ext
25889 cat >>conftest.$ac_ext <<_ACEOF
25890 /* end confdefs.h. */
25891 #include <sys/types.h>
25903 rm -f conftest.$ac_objext
25904 if { (ac_try="$ac_compile"
25905 case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25910 $as_echo "$ac_try_echo") >&5
25911 (eval "$ac_compile") 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest.$ac_objext; then
25921 eval "$as_ac_Header=yes"
25923 $as_echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 eval "$as_ac_Header=no"
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25931 ac_res=`eval 'as_val=${'$as_ac_Header'}
25932 $as_echo "$as_val"'`
25933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25934 $as_echo "$ac_res" >&6; }
25935 as_val=`eval 'as_val=${'$as_ac_Header'}
25936 $as_echo "$as_val"'`
25937 if test "x$as_val" = x""yes; then
25938 cat >>confdefs.h <<_ACEOF
25939 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25942 ac_header_dirent=$ac_hdr; break
25946 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25947 if test $ac_header_dirent = dirent.h; then
25948 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
25949 $as_echo_n "checking for library containing opendir... " >&6; }
25950 if test "${ac_cv_search_opendir+set}" = set; then
25951 $as_echo_n "(cached) " >&6
25953 ac_func_search_save_LIBS=$LIBS
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25961 /* Override any GCC internal prototype to avoid an error.
25962 Use char because int might match the return type of a GCC
25963 builtin and then its argument prototype would still apply. */
25976 for ac_lib in '' dir; do
25977 if test -z "$ac_lib"; then
25978 ac_res="none required"
25981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25983 rm -f conftest.$ac_objext conftest$ac_exeext
25984 if { (ac_try="$ac_link"
25985 case "(($ac_try" in
25986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25987 *) ac_try_echo=$ac_try;;
25989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25990 $as_echo "$ac_try_echo") >&5
25991 (eval "$ac_link") 2>conftest.er1
25993 grep -v '^ *+' conftest.er1 >conftest.err
25995 cat conftest.err >&5
25996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); } && {
25998 test -z "$ac_c_werror_flag" ||
25999 test ! -s conftest.err
26000 } && test -s conftest$ac_exeext && {
26001 test "$cross_compiling" = yes ||
26002 $as_test_x conftest$ac_exeext
26004 ac_cv_search_opendir=$ac_res
26006 $as_echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26012 rm -rf conftest.dSYM
26013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26015 if test "${ac_cv_search_opendir+set}" = set; then
26019 if test "${ac_cv_search_opendir+set}" = set; then
26022 ac_cv_search_opendir=no
26024 rm conftest.$ac_ext
26025 LIBS=$ac_func_search_save_LIBS
26027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26028 $as_echo "$ac_cv_search_opendir" >&6; }
26029 ac_res=$ac_cv_search_opendir
26030 if test "$ac_res" != no; then
26031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26036 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
26037 $as_echo_n "checking for library containing opendir... " >&6; }
26038 if test "${ac_cv_search_opendir+set}" = set; then
26039 $as_echo_n "(cached) " >&6
26041 ac_func_search_save_LIBS=$LIBS
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26049 /* Override any GCC internal prototype to avoid an error.
26050 Use char because int might match the return type of a GCC
26051 builtin and then its argument prototype would still apply. */
26064 for ac_lib in '' x; do
26065 if test -z "$ac_lib"; then
26066 ac_res="none required"
26069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (ac_try="$ac_link"
26073 case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26078 $as_echo "$ac_try_echo") >&5
26079 (eval "$ac_link") 2>conftest.er1
26081 grep -v '^ *+' conftest.er1 >conftest.err
26083 cat conftest.err >&5
26084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } && {
26086 test -z "$ac_c_werror_flag" ||
26087 test ! -s conftest.err
26088 } && test -s conftest$ac_exeext && {
26089 test "$cross_compiling" = yes ||
26090 $as_test_x conftest$ac_exeext
26092 ac_cv_search_opendir=$ac_res
26094 $as_echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.$ac_ext >&5
26100 rm -rf conftest.dSYM
26101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26103 if test "${ac_cv_search_opendir+set}" = set; then
26107 if test "${ac_cv_search_opendir+set}" = set; then
26110 ac_cv_search_opendir=no
26112 rm conftest.$ac_ext
26113 LIBS=$ac_func_search_save_LIBS
26115 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26116 $as_echo "$ac_cv_search_opendir" >&6; }
26117 ac_res=$ac_cv_search_opendir
26118 if test "$ac_res" != no; then
26119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26126 # include the dirent headers as described in the autoconf documentation.
26127 { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
26128 $as_echo_n "checking whether readdir is declared... " >&6; }
26129 if test "${ac_cv_have_decl_readdir+set}" = set; then
26130 $as_echo_n "(cached) " >&6
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26140 # include <dirent.h>
26141 # define NAMLEN(dirent) strlen((dirent)->d_name)
26143 # define dirent direct
26144 # define NAMLEN(dirent) (dirent)->d_namlen
26145 # if HAVE_SYS_NDIR_H
26146 # include <sys/ndir.h>
26148 # if HAVE_SYS_DIR_H
26149 # include <sys/dir.h>
26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26175 $as_echo "$ac_try_echo") >&5
26176 (eval "$ac_compile") 2>conftest.er1
26178 grep -v '^ *+' conftest.er1 >conftest.err
26180 cat conftest.err >&5
26181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && {
26183 test -z "$ac_c_werror_flag" ||
26184 test ! -s conftest.err
26185 } && test -s conftest.$ac_objext; then
26186 ac_cv_have_decl_readdir=yes
26188 $as_echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ac_cv_have_decl_readdir=no
26194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
26197 $as_echo "$ac_cv_have_decl_readdir" >&6; }
26198 if test "x$ac_cv_have_decl_readdir" = x""yes; then
26200 cat >>confdefs.h <<_ACEOF
26201 #define HAVE_DECL_READDIR 1
26206 cat >>confdefs.h <<_ACEOF
26207 #define HAVE_DECL_READDIR 0
26212 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
26213 $as_echo_n "checking whether readdir_r is declared... " >&6; }
26214 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
26215 $as_echo_n "(cached) " >&6
26217 cat >conftest.$ac_ext <<_ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26225 # include <dirent.h>
26226 # define NAMLEN(dirent) strlen((dirent)->d_name)
26228 # define dirent direct
26229 # define NAMLEN(dirent) (dirent)->d_namlen
26230 # if HAVE_SYS_NDIR_H
26231 # include <sys/ndir.h>
26233 # if HAVE_SYS_DIR_H
26234 # include <sys/dir.h>
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257 *) ac_try_echo=$ac_try;;
26259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26260 $as_echo "$ac_try_echo") >&5
26261 (eval "$ac_compile") 2>conftest.er1
26263 grep -v '^ *+' conftest.er1 >conftest.err
26265 cat conftest.err >&5
26266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } && {
26268 test -z "$ac_c_werror_flag" ||
26269 test ! -s conftest.err
26270 } && test -s conftest.$ac_objext; then
26271 ac_cv_have_decl_readdir_r=yes
26273 $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 ac_cv_have_decl_readdir_r=no
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
26282 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
26283 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_DECL_READDIR_R 1
26291 cat >>confdefs.h <<_ACEOF
26292 #define HAVE_DECL_READDIR_R 0
26297 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
26298 $as_echo_n "checking whether readdir64 is declared... " >&6; }
26299 if test "${ac_cv_have_decl_readdir64+set}" = set; then
26300 $as_echo_n "(cached) " >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26310 # include <dirent.h>
26311 # define NAMLEN(dirent) strlen((dirent)->d_name)
26313 # define dirent direct
26314 # define NAMLEN(dirent) (dirent)->d_namlen
26315 # if HAVE_SYS_NDIR_H
26316 # include <sys/ndir.h>
26318 # if HAVE_SYS_DIR_H
26319 # include <sys/dir.h>
26338 rm -f conftest.$ac_objext
26339 if { (ac_try="$ac_compile"
26340 case "(($ac_try" in
26341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26345 $as_echo "$ac_try_echo") >&5
26346 (eval "$ac_compile") 2>conftest.er1
26348 grep -v '^ *+' conftest.er1 >conftest.err
26350 cat conftest.err >&5
26351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } && {
26353 test -z "$ac_c_werror_flag" ||
26354 test ! -s conftest.err
26355 } && test -s conftest.$ac_objext; then
26356 ac_cv_have_decl_readdir64=yes
26358 $as_echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ac_cv_have_decl_readdir64=no
26364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26366 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
26367 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
26368 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
26370 cat >>confdefs.h <<_ACEOF
26371 #define HAVE_DECL_READDIR64 1
26376 cat >>confdefs.h <<_ACEOF
26377 #define HAVE_DECL_READDIR64 0
26382 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
26383 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
26384 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
26385 $as_echo_n "(cached) " >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26395 # include <dirent.h>
26396 # define NAMLEN(dirent) strlen((dirent)->d_name)
26398 # define dirent direct
26399 # define NAMLEN(dirent) (dirent)->d_namlen
26400 # if HAVE_SYS_NDIR_H
26401 # include <sys/ndir.h>
26403 # if HAVE_SYS_DIR_H
26404 # include <sys/dir.h>
26415 #ifndef readdir64_r
26416 (void) readdir64_r;
26423 rm -f conftest.$ac_objext
26424 if { (ac_try="$ac_compile"
26425 case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430 $as_echo "$ac_try_echo") >&5
26431 (eval "$ac_compile") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1 >conftest.err
26435 cat conftest.err >&5
26436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest.$ac_objext; then
26441 ac_cv_have_decl_readdir64_r=yes
26443 $as_echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26446 ac_cv_have_decl_readdir64_r=no
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
26452 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
26453 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
26455 cat >>confdefs.h <<_ACEOF
26456 #define HAVE_DECL_READDIR64_R 1
26461 cat >>confdefs.h <<_ACEOF
26462 #define HAVE_DECL_READDIR64_R 0
26471 # disk device prefixes
26472 { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
26473 $as_echo_n "checking disk device prefixes... " >&6; }
26475 # Use df to find the mount point for the root filesystem. Use
26476 # the positional parameters to find the particular line from df
26477 # that contains the root paritition. We put it in a subshell so
26478 # that the original positional parameters are not messed with.
26480 df / | while read line; do
26482 while test $# -gt 0; do
26483 if test "x$1" = "x/"; then
26490 ) | sed 's/(//' | sed 's/)//' `
26492 # Search for the mount point by using expr to find the parameter
26496 while test $# -gt 0; do
26497 if expr "$1" : '.*dev' >/dev/null 2>&1; then
26505 # get any system-specific configuration information
26508 CLIENT_SCRIPTS_OPT=amhpfixdevs
26512 { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
26513 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
26516 cat <<AAW_EOF >>config.warnings
26517 Run amhpfixdevs on HP-UX systems using /dev/vg??.
26525 DEV_PREFIX=/dev/dsk/
26526 RDEV_PREFIX=/dev/rdsk/
26527 CLIENT_SCRIPTS_OPT=amsinixfixdevs
26528 if ! test -d /dev/dsk; then
26530 { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
26531 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
26534 cat <<AAW_EOF >>config.warnings
26535 Run amsinixfixdevs on Sinix systems using VxFS.
26546 CLIENT_SCRIPTS_OPT=
26550 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
26551 { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
26552 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
26554 if test -d /dev/dsk; then
26555 DEV_PREFIX=/dev/dsk/
26556 if test -d /dev/rdsk; then
26557 RDEV_PREFIX=/dev/rdsk/
26559 RDEV_PREFIX=/dev/dsk/
26561 elif test -d /dev; then
26564 # Some systems, notably Linux, do not have raw disk devices
26565 # names. Check this by trying to see if a raw disk device name
26566 # exists using the normal raw device path prepended to the
26567 # mount point of the root filesystem.
26568 if test "$mount"; then
26569 dev_name="/dev/r`basename $mount`"
26570 if test -b $dev_name -o -c $dev_name; then
26583 { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
26584 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
26588 cat >>confdefs.h <<_ACEOF
26589 #define DEV_PREFIX "${DEV_PREFIX}"
26593 cat >>confdefs.h <<_ACEOF
26594 #define RDEV_PREFIX "${RDEV_PREFIX}"
26615 CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
26619 CFLAGS="$CFLAGS -Ae"
26626 m88k-motorola-sysv4)
26647 # The old cc won't work!
26648 if test "x$GCC" != "xyes"; then
26649 { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
26650 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
26651 { (exit 1); exit 1; }; }
26676 cat >>confdefs.h <<\_ACEOF
26677 #define IGNORE_TAR_ERRORS 1
26680 # Cygwin needs PATH to find cygwin1.dll
26682 cat >>confdefs.h <<\_ACEOF
26683 #define NEED_PATH_ENV 1
26687 cat >>confdefs.h <<\_ACEOF
26688 #define IGNORE_FSTAB 1
26691 LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
26694 *-apple-darwin7*) # MacOS X 10.3.* (Panther)
26696 *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
26701 cat <<AAW_EOF >>config.warnings
26703 This machine, target type $target, is not known to be fully supported
26704 by this configure script. If the installation of Amanda on this system
26705 succeeds or needed any patches, please email amanda-hackers@amanda.org
26706 with the patches or an indication of the sucess or failure of the
26707 Amanda installation on your system.
26720 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26721 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26722 eval ac_define_dir="\"$bindir\""
26723 eval ac_define_dir="\"$ac_define_dir\""
26724 bindir="$ac_define_dir"
26727 cat >>confdefs.h <<_ACEOF
26728 #define bindir "$ac_define_dir"
26731 test "$prefix_NONE" && prefix=NONE
26732 test "$exec_prefix_NONE" && exec_prefix=NONE
26738 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26739 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26740 eval ac_define_dir="\"$sbindir\""
26741 eval ac_define_dir="\"$ac_define_dir\""
26742 sbindir="$ac_define_dir"
26745 cat >>confdefs.h <<_ACEOF
26746 #define sbindir "$ac_define_dir"
26749 test "$prefix_NONE" && prefix=NONE
26750 test "$exec_prefix_NONE" && exec_prefix=NONE
26756 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26757 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26758 eval ac_define_dir="\"$libexecdir\""
26759 eval ac_define_dir="\"$ac_define_dir\""
26760 libexecdir="$ac_define_dir"
26763 cat >>confdefs.h <<_ACEOF
26764 #define libexecdir "$ac_define_dir"
26767 test "$prefix_NONE" && prefix=NONE
26768 test "$exec_prefix_NONE" && exec_prefix=NONE
26774 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26775 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26776 eval ac_define_dir="\"$mandir\""
26777 eval ac_define_dir="\"$ac_define_dir\""
26778 mandir="$ac_define_dir"
26781 cat >>confdefs.h <<_ACEOF
26782 #define mandir "$ac_define_dir"
26785 test "$prefix_NONE" && prefix=NONE
26786 test "$exec_prefix_NONE" && exec_prefix=NONE
26790 # amanda-specific directories
26791 AMLIBDIR=$libdir/amanda
26793 # Check whether --with-amlibdir was given.
26794 if test "${with_amlibdir+set}" = set; then
26795 withval=$with_amlibdir;
26797 n | no) AMLIBDIR=$libdir ;;
26798 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
26799 *) AMLIBDIR=$withval ;;
26808 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26809 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26810 eval ac_define_dir="\"$AMLIBDIR\""
26811 eval ac_define_dir="\"$ac_define_dir\""
26812 amlibdir="$ac_define_dir"
26815 cat >>confdefs.h <<_ACEOF
26816 #define amlibdir "$ac_define_dir"
26819 test "$prefix_NONE" && prefix=NONE
26820 test "$exec_prefix_NONE" && exec_prefix=NONE
26823 AMLIBEXECDIR=$libexecdir/amanda
26825 # Check whether --with-amlibexecdir was given.
26826 if test "${with_amlibexecdir+set}" = set; then
26827 withval=$with_amlibexecdir;
26829 n | no) AMLIBEXECDIR=$libexecdir ;;
26830 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
26831 *) AMLIBEXECDIR=$withval ;;
26840 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26841 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26842 eval ac_define_dir="\"$AMLIBEXECDIR\""
26843 eval ac_define_dir="\"$ac_define_dir\""
26844 amlibexecdir="$ac_define_dir"
26847 cat >>confdefs.h <<_ACEOF
26848 #define amlibexecdir "$ac_define_dir"
26851 test "$prefix_NONE" && prefix=NONE
26852 test "$exec_prefix_NONE" && exec_prefix=NONE
26855 amincludedir="${includedir}/amanda"
26859 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26860 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26861 eval ac_define_dir="\"$amincludedir\""
26862 eval ac_define_dir="\"$ac_define_dir\""
26863 amincludedir="$ac_define_dir"
26866 cat >>confdefs.h <<_ACEOF
26867 #define amincludedir "$ac_define_dir"
26870 test "$prefix_NONE" && prefix=NONE
26871 test "$exec_prefix_NONE" && exec_prefix=NONE
26875 # Check whether --with-amperldir was given.
26876 if test "${with_amperldir+set}" = set; then
26877 withval=$with_amperldir;
26879 y | ye | yes) AMPERLLIB=DEFAULT ;;
26880 n | no) AMPERLLIB=$amlibdir/perl ;;
26881 *) AMPERLLIB=$withval ;;
26891 # apply the default if no value was given.
26892 if test x"$AMPERLLIB" = x"DEFAULT"; then
26893 eval `$PERL -V:installsitelib`
26894 AMPERLLIB=$installsitelib
26899 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26900 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26901 eval ac_define_dir="\"$AMPERLLIB\""
26902 eval ac_define_dir="\"$ac_define_dir\""
26903 amperldir="$ac_define_dir"
26906 cat >>confdefs.h <<_ACEOF
26907 #define amperldir "$ac_define_dir"
26910 test "$prefix_NONE" && prefix=NONE
26911 test "$exec_prefix_NONE" && exec_prefix=NONE
26914 APPLICATION_DIR='${amlibexecdir}/application'
26918 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26919 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26920 eval ac_define_dir="\"$APPLICATION_DIR\""
26921 eval ac_define_dir="\"$ac_define_dir\""
26922 APPLICATION_DIR="$ac_define_dir"
26925 cat >>confdefs.h <<_ACEOF
26926 #define APPLICATION_DIR "$ac_define_dir"
26929 test "$prefix_NONE" && prefix=NONE
26930 test "$exec_prefix_NONE" && exec_prefix=NONE
26934 # Check whether --with-amdatadir was given.
26935 if test "${with_amdatadir+set}" = set; then
26936 withval=$with_amdatadir;
26941 AMDATADIR=$datadir/amanda
26949 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
26950 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
26951 eval ac_define_dir="\"$AMDATADIR\""
26952 eval ac_define_dir="\"$ac_define_dir\""
26953 amdatadir="$ac_define_dir"
26956 cat >>confdefs.h <<_ACEOF
26957 #define amdatadir "$ac_define_dir"
26960 test "$prefix_NONE" && prefix=NONE
26961 test "$exec_prefix_NONE" && exec_prefix=NONE
26966 # Internationalization
26969 # FreeBSD needs to link libxpg4
26971 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
26972 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
26973 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
26974 $as_echo_n "(cached) " >&6
26976 ac_check_lib_save_LIBS=$LIBS
26977 LIBS="-lxpg4 $LIBS"
26978 cat >conftest.$ac_ext <<_ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h. */
26985 /* Override any GCC internal prototype to avoid an error.
26986 Use char because int might match the return type of a GCC
26987 builtin and then its argument prototype would still apply. */
26995 return setlocale ();
27000 rm -f conftest.$ac_objext conftest$ac_exeext
27001 if { (ac_try="$ac_link"
27002 case "(($ac_try" in
27003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004 *) ac_try_echo=$ac_try;;
27006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27007 $as_echo "$ac_try_echo") >&5
27008 (eval "$ac_link") 2>conftest.er1
27010 grep -v '^ *+' conftest.er1 >conftest.err
27012 cat conftest.err >&5
27013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } && {
27015 test -z "$ac_c_werror_flag" ||
27016 test ! -s conftest.err
27017 } && test -s conftest$ac_exeext && {
27018 test "$cross_compiling" = yes ||
27019 $as_test_x conftest$ac_exeext
27021 ac_cv_lib_xpg4_setlocale=yes
27023 $as_echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27026 ac_cv_lib_xpg4_setlocale=no
27029 rm -rf conftest.dSYM
27030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27031 conftest$ac_exeext conftest.$ac_ext
27032 LIBS=$ac_check_lib_save_LIBS
27034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
27035 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
27036 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
27037 cat >>confdefs.h <<_ACEOF
27038 #define HAVE_LIBXPG4 1
27041 LIBS="-lxpg4 $LIBS"
27046 # ------------------------------------------------------------------
27047 # All list of languages for which a translation exist. Each
27048 # language is separated by a space.
27049 # ------------------------------------------------------------------
27053 # Extract the first word of "msgfmt", so it can be a program name with args.
27054 set dummy msgfmt; ac_word=$2
27055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27056 $as_echo_n "checking for $ac_word... " >&6; }
27057 if test "${ac_cv_path_MSGFMT+set}" = set; then
27058 $as_echo_n "(cached) " >&6
27062 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27066 for as_dir in $LOCSYSPATH
27069 test -z "$as_dir" && as_dir=.
27070 for ac_exec_ext in '' $ac_executable_extensions; do
27071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27072 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
27073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27083 MSGFMT=$ac_cv_path_MSGFMT
27084 if test -n "$MSGFMT"; then
27085 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27086 $as_echo "$MSGFMT" >&6; }
27088 { $as_echo "$as_me:$LINENO: result: no" >&5
27089 $as_echo "no" >&6; }
27093 # Extract the first word of "gettext", so it can be a program name with args.
27094 set dummy gettext; ac_word=$2
27095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27096 $as_echo_n "checking for $ac_word... " >&6; }
27097 if test "${ac_cv_path_GETTEXT+set}" = set; then
27098 $as_echo_n "(cached) " >&6
27102 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27106 for as_dir in $LOCSYSPATH
27109 test -z "$as_dir" && as_dir=.
27110 for ac_exec_ext in '' $ac_executable_extensions; do
27111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27112 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27123 GETTEXT=$ac_cv_path_GETTEXT
27124 if test -n "$GETTEXT"; then
27125 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
27126 $as_echo "$GETTEXT" >&6; }
27128 { $as_echo "$as_me:$LINENO: result: no" >&5
27129 $as_echo "no" >&6; }
27136 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
27137 $as_echo_n "checking whether NLS is requested... " >&6; }
27138 # Check whether --enable-nls was given.
27139 if test "${enable_nls+set}" = set; then
27140 enableval=$enable_nls; USE_NLS=$enableval
27145 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
27146 $as_echo "$USE_NLS" >&6; }
27153 # Prepare PATH_SEPARATOR.
27154 # The user is always right.
27155 if test "${PATH_SEPARATOR+set}" != set; then
27156 echo "#! /bin/sh" >conf$$.sh
27157 echo "exit 0" >>conf$$.sh
27159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27167 # Find out how to test for executable files. Don't use a zero-byte file,
27168 # as systems may use methods other than mode bits to determine executability.
27169 cat >conf$$.file <<_ASEOF
27173 chmod +x conf$$.file
27174 if test -x conf$$.file >/dev/null 2>&1; then
27175 ac_executable_p="test -x"
27177 ac_executable_p="test -f"
27181 # Extract the first word of "msgfmt", so it can be a program name with args.
27182 set dummy msgfmt; ac_word=$2
27183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27184 $as_echo_n "checking for $ac_word... " >&6; }
27185 if test "${ac_cv_path_MSGFMT+set}" = set; then
27186 $as_echo_n "(cached) " >&6
27190 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
27193 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27194 for ac_dir in $PATH; do
27196 test -z "$ac_dir" && ac_dir=.
27197 for ac_exec_ext in '' $ac_executable_extensions; do
27198 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27199 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27200 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
27201 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27202 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
27209 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
27213 MSGFMT="$ac_cv_path_MSGFMT"
27214 if test "$MSGFMT" != ":"; then
27215 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27216 $as_echo "$MSGFMT" >&6; }
27218 { $as_echo "$as_me:$LINENO: result: no" >&5
27219 $as_echo "no" >&6; }
27222 # Extract the first word of "gmsgfmt", so it can be a program name with args.
27223 set dummy gmsgfmt; ac_word=$2
27224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27225 $as_echo_n "checking for $ac_word... " >&6; }
27226 if test "${ac_cv_path_GMSGFMT+set}" = set; then
27227 $as_echo_n "(cached) " >&6
27231 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
27234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27235 for as_dir in $PATH
27238 test -z "$as_dir" && as_dir=.
27239 for ac_exec_ext in '' $ac_executable_extensions; do
27240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27241 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
27242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27249 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
27253 GMSGFMT=$ac_cv_path_GMSGFMT
27254 if test -n "$GMSGFMT"; then
27255 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
27256 $as_echo "$GMSGFMT" >&6; }
27258 { $as_echo "$as_me:$LINENO: result: no" >&5
27259 $as_echo "no" >&6; }
27264 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27265 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
27266 *) MSGFMT_015=$MSGFMT ;;
27269 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27270 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
27271 *) GMSGFMT_015=$GMSGFMT ;;
27276 # Prepare PATH_SEPARATOR.
27277 # The user is always right.
27278 if test "${PATH_SEPARATOR+set}" != set; then
27279 echo "#! /bin/sh" >conf$$.sh
27280 echo "exit 0" >>conf$$.sh
27282 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27290 # Find out how to test for executable files. Don't use a zero-byte file,
27291 # as systems may use methods other than mode bits to determine executability.
27292 cat >conf$$.file <<_ASEOF
27296 chmod +x conf$$.file
27297 if test -x conf$$.file >/dev/null 2>&1; then
27298 ac_executable_p="test -x"
27300 ac_executable_p="test -f"
27304 # Extract the first word of "xgettext", so it can be a program name with args.
27305 set dummy xgettext; ac_word=$2
27306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27307 $as_echo_n "checking for $ac_word... " >&6; }
27308 if test "${ac_cv_path_XGETTEXT+set}" = set; then
27309 $as_echo_n "(cached) " >&6
27311 case "$XGETTEXT" in
27313 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
27316 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27317 for ac_dir in $PATH; do
27319 test -z "$ac_dir" && ac_dir=.
27320 for ac_exec_ext in '' $ac_executable_extensions; do
27321 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27322 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27323 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
27324 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
27325 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
27332 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
27336 XGETTEXT="$ac_cv_path_XGETTEXT"
27337 if test "$XGETTEXT" != ":"; then
27338 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27339 $as_echo "$XGETTEXT" >&6; }
27341 { $as_echo "$as_me:$LINENO: result: no" >&5
27342 $as_echo "no" >&6; }
27347 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
27348 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
27349 *) XGETTEXT_015=$XGETTEXT ;;
27354 # Prepare PATH_SEPARATOR.
27355 # The user is always right.
27356 if test "${PATH_SEPARATOR+set}" != set; then
27357 echo "#! /bin/sh" >conf$$.sh
27358 echo "exit 0" >>conf$$.sh
27360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27368 # Find out how to test for executable files. Don't use a zero-byte file,
27369 # as systems may use methods other than mode bits to determine executability.
27370 cat >conf$$.file <<_ASEOF
27374 chmod +x conf$$.file
27375 if test -x conf$$.file >/dev/null 2>&1; then
27376 ac_executable_p="test -x"
27378 ac_executable_p="test -f"
27382 # Extract the first word of "msgmerge", so it can be a program name with args.
27383 set dummy msgmerge; ac_word=$2
27384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27385 $as_echo_n "checking for $ac_word... " >&6; }
27386 if test "${ac_cv_path_MSGMERGE+set}" = set; then
27387 $as_echo_n "(cached) " >&6
27389 case "$MSGMERGE" in
27391 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
27394 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
27395 for ac_dir in $PATH; do
27397 test -z "$ac_dir" && ac_dir=.
27398 for ac_exec_ext in '' $ac_executable_extensions; do
27399 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
27400 echo "$as_me: trying $ac_dir/$ac_word..." >&5
27401 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
27402 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
27409 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
27413 MSGMERGE="$ac_cv_path_MSGMERGE"
27414 if test "$MSGMERGE" != ":"; then
27415 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27416 $as_echo "$MSGMERGE" >&6; }
27418 { $as_echo "$as_me:$LINENO: result: no" >&5
27419 $as_echo "no" >&6; }
27423 test -n "$localedir" || localedir='${datadir}/locale'
27426 ac_config_commands="$ac_config_commands po-directories"
27438 acl_save_prefix="$prefix"
27439 prefix="$acl_final_prefix"
27440 acl_save_exec_prefix="$exec_prefix"
27441 exec_prefix="$acl_final_exec_prefix"
27443 eval additional_includedir=\"$includedir\"
27444 eval additional_libdir=\"$libdir\"
27446 exec_prefix="$acl_save_exec_prefix"
27447 prefix="$acl_save_prefix"
27450 # Check whether --with-libiconv-prefix was given.
27451 if test "${with_libiconv_prefix+set}" = set; then
27452 withval=$with_libiconv_prefix;
27453 if test "X$withval" = "Xno"; then
27456 if test "X$withval" = "X"; then
27458 acl_save_prefix="$prefix"
27459 prefix="$acl_final_prefix"
27460 acl_save_exec_prefix="$exec_prefix"
27461 exec_prefix="$acl_final_exec_prefix"
27463 eval additional_includedir=\"$includedir\"
27464 eval additional_libdir=\"$libdir\"
27466 exec_prefix="$acl_save_exec_prefix"
27467 prefix="$acl_save_prefix"
27470 additional_includedir="$withval/include"
27471 additional_libdir="$withval/$acl_libdirstem"
27482 names_already_handled=
27483 names_next_round='iconv '
27484 while test -n "$names_next_round"; do
27485 names_this_round="$names_next_round"
27487 for name in $names_this_round; do
27489 for n in $names_already_handled; do
27490 if test "$n" = "$name"; then
27491 already_handled=yes
27495 if test -z "$already_handled"; then
27496 names_already_handled="$names_already_handled $name"
27497 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27498 eval value=\"\$HAVE_LIB$uppername\"
27499 if test -n "$value"; then
27500 if test "$value" = yes; then
27501 eval value=\"\$LIB$uppername\"
27502 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
27503 eval value=\"\$LTLIB$uppername\"
27504 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
27513 if test $use_additional = yes; then
27514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27515 found_dir="$additional_libdir"
27516 found_so="$additional_libdir/lib$name.$shlibext"
27517 if test -f "$additional_libdir/lib$name.la"; then
27518 found_la="$additional_libdir/lib$name.la"
27521 if test -f "$additional_libdir/lib$name.$libext"; then
27522 found_dir="$additional_libdir"
27523 found_a="$additional_libdir/lib$name.$libext"
27524 if test -f "$additional_libdir/lib$name.la"; then
27525 found_la="$additional_libdir/lib$name.la"
27530 if test "X$found_dir" = "X"; then
27531 for x in $LDFLAGS $LTLIBICONV; do
27533 acl_save_prefix="$prefix"
27534 prefix="$acl_final_prefix"
27535 acl_save_exec_prefix="$exec_prefix"
27536 exec_prefix="$acl_final_exec_prefix"
27538 exec_prefix="$acl_save_exec_prefix"
27539 prefix="$acl_save_prefix"
27543 dir=`echo "X$x" | sed -e 's/^X-L//'`
27544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27546 found_so="$dir/lib$name.$shlibext"
27547 if test -f "$dir/lib$name.la"; then
27548 found_la="$dir/lib$name.la"
27551 if test -f "$dir/lib$name.$libext"; then
27553 found_a="$dir/lib$name.$libext"
27554 if test -f "$dir/lib$name.la"; then
27555 found_la="$dir/lib$name.la"
27561 if test "X$found_dir" != "X"; then
27566 if test "X$found_dir" != "X"; then
27567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
27568 if test "X$found_so" != "X"; then
27569 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
27570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27573 for x in $ltrpathdirs; do
27574 if test "X$x" = "X$found_dir"; then
27579 if test -z "$haveit"; then
27580 ltrpathdirs="$ltrpathdirs $found_dir"
27582 if test "$hardcode_direct" = yes; then
27583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27588 for x in $rpathdirs; do
27589 if test "X$x" = "X$found_dir"; then
27594 if test -z "$haveit"; then
27595 rpathdirs="$rpathdirs $found_dir"
27599 for x in $LDFLAGS $LIBICONV; do
27601 acl_save_prefix="$prefix"
27602 prefix="$acl_final_prefix"
27603 acl_save_exec_prefix="$exec_prefix"
27604 exec_prefix="$acl_final_exec_prefix"
27606 exec_prefix="$acl_save_exec_prefix"
27607 prefix="$acl_save_prefix"
27609 if test "X$x" = "X-L$found_dir"; then
27614 if test -z "$haveit"; then
27615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
27617 if test "$hardcode_minus_L" != no; then
27618 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
27620 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27626 if test "X$found_a" != "X"; then
27627 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
27629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
27632 additional_includedir=
27633 case "$found_dir" in
27634 */$acl_libdirstem | */$acl_libdirstem/)
27635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
27636 additional_includedir="$basedir/include"
27639 if test "X$additional_includedir" != "X"; then
27640 if test "X$additional_includedir" != "X/usr/include"; then
27642 if test "X$additional_includedir" = "X/usr/local/include"; then
27643 if test -n "$GCC"; then
27645 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27649 if test -z "$haveit"; then
27650 for x in $CPPFLAGS $INCICONV; do
27652 acl_save_prefix="$prefix"
27653 prefix="$acl_final_prefix"
27654 acl_save_exec_prefix="$exec_prefix"
27655 exec_prefix="$acl_final_exec_prefix"
27657 exec_prefix="$acl_save_exec_prefix"
27658 prefix="$acl_save_prefix"
27660 if test "X$x" = "X-I$additional_includedir"; then
27665 if test -z "$haveit"; then
27666 if test -d "$additional_includedir"; then
27667 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
27673 if test -n "$found_la"; then
27674 save_libdir="$libdir"
27675 case "$found_la" in
27676 */* | *\\*) . "$found_la" ;;
27677 *) . "./$found_la" ;;
27679 libdir="$save_libdir"
27680 for dep in $dependency_libs; do
27683 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27684 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
27686 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
27687 if test -n "$GCC"; then
27689 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27693 if test -z "$haveit"; then
27695 for x in $LDFLAGS $LIBICONV; do
27697 acl_save_prefix="$prefix"
27698 prefix="$acl_final_prefix"
27699 acl_save_exec_prefix="$exec_prefix"
27700 exec_prefix="$acl_final_exec_prefix"
27702 exec_prefix="$acl_save_exec_prefix"
27703 prefix="$acl_save_prefix"
27705 if test "X$x" = "X-L$additional_libdir"; then
27710 if test -z "$haveit"; then
27711 if test -d "$additional_libdir"; then
27712 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
27716 for x in $LDFLAGS $LTLIBICONV; do
27718 acl_save_prefix="$prefix"
27719 prefix="$acl_final_prefix"
27720 acl_save_exec_prefix="$exec_prefix"
27721 exec_prefix="$acl_final_exec_prefix"
27723 exec_prefix="$acl_save_exec_prefix"
27724 prefix="$acl_save_prefix"
27726 if test "X$x" = "X-L$additional_libdir"; then
27731 if test -z "$haveit"; then
27732 if test -d "$additional_libdir"; then
27733 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
27740 dir=`echo "X$dep" | sed -e 's/^X-R//'`
27741 if test "$enable_rpath" != no; then
27743 for x in $rpathdirs; do
27744 if test "X$x" = "X$dir"; then
27749 if test -z "$haveit"; then
27750 rpathdirs="$rpathdirs $dir"
27753 for x in $ltrpathdirs; do
27754 if test "X$x" = "X$dir"; then
27759 if test -z "$haveit"; then
27760 ltrpathdirs="$ltrpathdirs $dir"
27765 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27768 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27771 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
27772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
27778 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
27779 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
27785 if test "X$rpathdirs" != "X"; then
27786 if test -n "$hardcode_libdir_separator"; then
27788 for found_dir in $rpathdirs; do
27789 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27791 acl_save_libdir="$libdir"
27793 eval flag=\"$hardcode_libdir_flag_spec\"
27794 libdir="$acl_save_libdir"
27795 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27797 for found_dir in $rpathdirs; do
27798 acl_save_libdir="$libdir"
27799 libdir="$found_dir"
27800 eval flag=\"$hardcode_libdir_flag_spec\"
27801 libdir="$acl_save_libdir"
27802 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
27806 if test "X$ltrpathdirs" != "X"; then
27807 for found_dir in $ltrpathdirs; do
27808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
27829 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27830 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
27831 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27832 $as_echo_n "(cached) " >&6
27834 gt_save_LIBS="$LIBS"
27835 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27842 #include <CoreFoundation/CFPreferences.h>
27846 CFPreferencesCopyAppValue(NULL, NULL)
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27858 $as_echo "$ac_try_echo") >&5
27859 (eval "$ac_link") 2>conftest.er1
27861 grep -v '^ *+' conftest.er1 >conftest.err
27863 cat conftest.err >&5
27864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } && {
27866 test -z "$ac_c_werror_flag" ||
27867 test ! -s conftest.err
27868 } && test -s conftest$ac_exeext && {
27869 test "$cross_compiling" = yes ||
27870 $as_test_x conftest$ac_exeext
27872 gt_cv_func_CFPreferencesCopyAppValue=yes
27874 $as_echo "$as_me: failed program was:" >&5
27875 sed 's/^/| /' conftest.$ac_ext >&5
27877 gt_cv_func_CFPreferencesCopyAppValue=no
27880 rm -rf conftest.dSYM
27881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27882 conftest$ac_exeext conftest.$ac_ext
27883 LIBS="$gt_save_LIBS"
27885 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27886 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27887 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27889 cat >>confdefs.h <<\_ACEOF
27890 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27894 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27895 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
27896 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27897 $as_echo_n "(cached) " >&6
27899 gt_save_LIBS="$LIBS"
27900 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27901 cat >conftest.$ac_ext <<_ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h. */
27907 #include <CoreFoundation/CFLocale.h>
27911 CFLocaleCopyCurrent();
27916 rm -f conftest.$ac_objext conftest$ac_exeext
27917 if { (ac_try="$ac_link"
27918 case "(($ac_try" in
27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27920 *) ac_try_echo=$ac_try;;
27922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27923 $as_echo "$ac_try_echo") >&5
27924 (eval "$ac_link") 2>conftest.er1
27926 grep -v '^ *+' conftest.er1 >conftest.err
27928 cat conftest.err >&5
27929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } && {
27931 test -z "$ac_c_werror_flag" ||
27932 test ! -s conftest.err
27933 } && test -s conftest$ac_exeext && {
27934 test "$cross_compiling" = yes ||
27935 $as_test_x conftest$ac_exeext
27937 gt_cv_func_CFLocaleCopyCurrent=yes
27939 $as_echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27942 gt_cv_func_CFLocaleCopyCurrent=no
27945 rm -rf conftest.dSYM
27946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27947 conftest$ac_exeext conftest.$ac_ext
27948 LIBS="$gt_save_LIBS"
27950 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27951 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27952 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27954 cat >>confdefs.h <<\_ACEOF
27955 #define HAVE_CFLOCALECOPYCURRENT 1
27960 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27961 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27973 if test "$USE_NLS" = "yes"; then
27974 gt_use_preinstalled_gnugettext=no
27981 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27982 $as_echo_n "checking for GNU gettext in libc... " >&6; }
27983 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
27984 $as_echo_n "(cached) " >&6
27986 cat >conftest.$ac_ext <<_ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27992 #include <libintl.h>
27993 extern int _nl_msg_cat_cntr;
27994 extern int *_nl_domain_bindings;
27998 bindtextdomain ("", "");
27999 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (ac_try="$ac_link"
28006 case "(($ac_try" in
28007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008 *) ac_try_echo=$ac_try;;
28010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28011 $as_echo "$ac_try_echo") >&5
28012 (eval "$ac_link") 2>conftest.er1
28014 grep -v '^ *+' conftest.er1 >conftest.err
28016 cat conftest.err >&5
28017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); } && {
28019 test -z "$ac_c_werror_flag" ||
28020 test ! -s conftest.err
28021 } && test -s conftest$ac_exeext && {
28022 test "$cross_compiling" = yes ||
28023 $as_test_x conftest$ac_exeext
28025 gt_cv_func_gnugettext1_libc=yes
28027 $as_echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28030 gt_cv_func_gnugettext1_libc=no
28033 rm -rf conftest.dSYM
28034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28035 conftest$ac_exeext conftest.$ac_ext
28037 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
28038 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
28040 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
28046 am_save_CPPFLAGS="$CPPFLAGS"
28048 for element in $INCICONV; do
28050 for x in $CPPFLAGS; do
28052 acl_save_prefix="$prefix"
28053 prefix="$acl_final_prefix"
28054 acl_save_exec_prefix="$exec_prefix"
28055 exec_prefix="$acl_final_exec_prefix"
28057 exec_prefix="$acl_save_exec_prefix"
28058 prefix="$acl_save_prefix"
28060 if test "X$x" = "X$element"; then
28065 if test -z "$haveit"; then
28066 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28071 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
28072 $as_echo_n "checking for iconv... " >&6; }
28073 if test "${am_cv_func_iconv+set}" = set; then
28074 $as_echo_n "(cached) " >&6
28077 am_cv_func_iconv="no, consider installing GNU libiconv"
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28085 #include <stdlib.h>
28090 iconv_t cd = iconv_open("","");
28091 iconv(cd,NULL,NULL,NULL,NULL);
28097 rm -f conftest.$ac_objext conftest$ac_exeext
28098 if { (ac_try="$ac_link"
28099 case "(($ac_try" in
28100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28104 $as_echo "$ac_try_echo") >&5
28105 (eval "$ac_link") 2>conftest.er1
28107 grep -v '^ *+' conftest.er1 >conftest.err
28109 cat conftest.err >&5
28110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } && {
28112 test -z "$ac_c_werror_flag" ||
28113 test ! -s conftest.err
28114 } && test -s conftest$ac_exeext && {
28115 test "$cross_compiling" = yes ||
28116 $as_test_x conftest$ac_exeext
28118 am_cv_func_iconv=yes
28120 $as_echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28126 rm -rf conftest.dSYM
28127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28128 conftest$ac_exeext conftest.$ac_ext
28129 if test "$am_cv_func_iconv" != yes; then
28130 am_save_LIBS="$LIBS"
28131 LIBS="$LIBS $LIBICONV"
28132 cat >conftest.$ac_ext <<_ACEOF
28135 cat confdefs.h >>conftest.$ac_ext
28136 cat >>conftest.$ac_ext <<_ACEOF
28137 /* end confdefs.h. */
28138 #include <stdlib.h>
28143 iconv_t cd = iconv_open("","");
28144 iconv(cd,NULL,NULL,NULL,NULL);
28150 rm -f conftest.$ac_objext conftest$ac_exeext
28151 if { (ac_try="$ac_link"
28152 case "(($ac_try" in
28153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154 *) ac_try_echo=$ac_try;;
28156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28157 $as_echo "$ac_try_echo") >&5
28158 (eval "$ac_link") 2>conftest.er1
28160 grep -v '^ *+' conftest.er1 >conftest.err
28162 cat conftest.err >&5
28163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } && {
28165 test -z "$ac_c_werror_flag" ||
28166 test ! -s conftest.err
28167 } && test -s conftest$ac_exeext && {
28168 test "$cross_compiling" = yes ||
28169 $as_test_x conftest$ac_exeext
28171 am_cv_lib_iconv=yes
28172 am_cv_func_iconv=yes
28174 $as_echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28180 rm -rf conftest.dSYM
28181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28182 conftest$ac_exeext conftest.$ac_ext
28183 LIBS="$am_save_LIBS"
28187 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28188 $as_echo "$am_cv_func_iconv" >&6; }
28189 if test "$am_cv_func_iconv" = yes; then
28191 cat >>confdefs.h <<\_ACEOF
28192 #define HAVE_ICONV 1
28196 if test "$am_cv_lib_iconv" = yes; then
28197 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
28198 $as_echo_n "checking how to link with libiconv... " >&6; }
28199 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
28200 $as_echo "$LIBICONV" >&6; }
28202 CPPFLAGS="$am_save_CPPFLAGS"
28215 acl_save_prefix="$prefix"
28216 prefix="$acl_final_prefix"
28217 acl_save_exec_prefix="$exec_prefix"
28218 exec_prefix="$acl_final_exec_prefix"
28220 eval additional_includedir=\"$includedir\"
28221 eval additional_libdir=\"$libdir\"
28223 exec_prefix="$acl_save_exec_prefix"
28224 prefix="$acl_save_prefix"
28227 # Check whether --with-libintl-prefix was given.
28228 if test "${with_libintl_prefix+set}" = set; then
28229 withval=$with_libintl_prefix;
28230 if test "X$withval" = "Xno"; then
28233 if test "X$withval" = "X"; then
28235 acl_save_prefix="$prefix"
28236 prefix="$acl_final_prefix"
28237 acl_save_exec_prefix="$exec_prefix"
28238 exec_prefix="$acl_final_exec_prefix"
28240 eval additional_includedir=\"$includedir\"
28241 eval additional_libdir=\"$libdir\"
28243 exec_prefix="$acl_save_exec_prefix"
28244 prefix="$acl_save_prefix"
28247 additional_includedir="$withval/include"
28248 additional_libdir="$withval/$acl_libdirstem"
28259 names_already_handled=
28260 names_next_round='intl '
28261 while test -n "$names_next_round"; do
28262 names_this_round="$names_next_round"
28264 for name in $names_this_round; do
28266 for n in $names_already_handled; do
28267 if test "$n" = "$name"; then
28268 already_handled=yes
28272 if test -z "$already_handled"; then
28273 names_already_handled="$names_already_handled $name"
28274 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28275 eval value=\"\$HAVE_LIB$uppername\"
28276 if test -n "$value"; then
28277 if test "$value" = yes; then
28278 eval value=\"\$LIB$uppername\"
28279 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28280 eval value=\"\$LTLIB$uppername\"
28281 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28290 if test $use_additional = yes; then
28291 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28292 found_dir="$additional_libdir"
28293 found_so="$additional_libdir/lib$name.$shlibext"
28294 if test -f "$additional_libdir/lib$name.la"; then
28295 found_la="$additional_libdir/lib$name.la"
28298 if test -f "$additional_libdir/lib$name.$libext"; then
28299 found_dir="$additional_libdir"
28300 found_a="$additional_libdir/lib$name.$libext"
28301 if test -f "$additional_libdir/lib$name.la"; then
28302 found_la="$additional_libdir/lib$name.la"
28307 if test "X$found_dir" = "X"; then
28308 for x in $LDFLAGS $LTLIBINTL; do
28310 acl_save_prefix="$prefix"
28311 prefix="$acl_final_prefix"
28312 acl_save_exec_prefix="$exec_prefix"
28313 exec_prefix="$acl_final_exec_prefix"
28315 exec_prefix="$acl_save_exec_prefix"
28316 prefix="$acl_save_prefix"
28320 dir=`echo "X$x" | sed -e 's/^X-L//'`
28321 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28323 found_so="$dir/lib$name.$shlibext"
28324 if test -f "$dir/lib$name.la"; then
28325 found_la="$dir/lib$name.la"
28328 if test -f "$dir/lib$name.$libext"; then
28330 found_a="$dir/lib$name.$libext"
28331 if test -f "$dir/lib$name.la"; then
28332 found_la="$dir/lib$name.la"
28338 if test "X$found_dir" != "X"; then
28343 if test "X$found_dir" != "X"; then
28344 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28345 if test "X$found_so" != "X"; then
28346 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28347 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28350 for x in $ltrpathdirs; do
28351 if test "X$x" = "X$found_dir"; then
28356 if test -z "$haveit"; then
28357 ltrpathdirs="$ltrpathdirs $found_dir"
28359 if test "$hardcode_direct" = yes; then
28360 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28362 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28365 for x in $rpathdirs; do
28366 if test "X$x" = "X$found_dir"; then
28371 if test -z "$haveit"; then
28372 rpathdirs="$rpathdirs $found_dir"
28376 for x in $LDFLAGS $LIBINTL; do
28378 acl_save_prefix="$prefix"
28379 prefix="$acl_final_prefix"
28380 acl_save_exec_prefix="$exec_prefix"
28381 exec_prefix="$acl_final_exec_prefix"
28383 exec_prefix="$acl_save_exec_prefix"
28384 prefix="$acl_save_prefix"
28386 if test "X$x" = "X-L$found_dir"; then
28391 if test -z "$haveit"; then
28392 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28394 if test "$hardcode_minus_L" != no; then
28395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28397 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28403 if test "X$found_a" != "X"; then
28404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28406 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28409 additional_includedir=
28410 case "$found_dir" in
28411 */$acl_libdirstem | */$acl_libdirstem/)
28412 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28413 additional_includedir="$basedir/include"
28416 if test "X$additional_includedir" != "X"; then
28417 if test "X$additional_includedir" != "X/usr/include"; then
28419 if test "X$additional_includedir" = "X/usr/local/include"; then
28420 if test -n "$GCC"; then
28422 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28426 if test -z "$haveit"; then
28427 for x in $CPPFLAGS $INCINTL; do
28429 acl_save_prefix="$prefix"
28430 prefix="$acl_final_prefix"
28431 acl_save_exec_prefix="$exec_prefix"
28432 exec_prefix="$acl_final_exec_prefix"
28434 exec_prefix="$acl_save_exec_prefix"
28435 prefix="$acl_save_prefix"
28437 if test "X$x" = "X-I$additional_includedir"; then
28442 if test -z "$haveit"; then
28443 if test -d "$additional_includedir"; then
28444 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28450 if test -n "$found_la"; then
28451 save_libdir="$libdir"
28452 case "$found_la" in
28453 */* | *\\*) . "$found_la" ;;
28454 *) . "./$found_la" ;;
28456 libdir="$save_libdir"
28457 for dep in $dependency_libs; do
28460 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28461 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28463 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28464 if test -n "$GCC"; then
28466 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28470 if test -z "$haveit"; then
28472 for x in $LDFLAGS $LIBINTL; do
28474 acl_save_prefix="$prefix"
28475 prefix="$acl_final_prefix"
28476 acl_save_exec_prefix="$exec_prefix"
28477 exec_prefix="$acl_final_exec_prefix"
28479 exec_prefix="$acl_save_exec_prefix"
28480 prefix="$acl_save_prefix"
28482 if test "X$x" = "X-L$additional_libdir"; then
28487 if test -z "$haveit"; then
28488 if test -d "$additional_libdir"; then
28489 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28493 for x in $LDFLAGS $LTLIBINTL; do
28495 acl_save_prefix="$prefix"
28496 prefix="$acl_final_prefix"
28497 acl_save_exec_prefix="$exec_prefix"
28498 exec_prefix="$acl_final_exec_prefix"
28500 exec_prefix="$acl_save_exec_prefix"
28501 prefix="$acl_save_prefix"
28503 if test "X$x" = "X-L$additional_libdir"; then
28508 if test -z "$haveit"; then
28509 if test -d "$additional_libdir"; then
28510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28517 dir=`echo "X$dep" | sed -e 's/^X-R//'`
28518 if test "$enable_rpath" != no; then
28520 for x in $rpathdirs; do
28521 if test "X$x" = "X$dir"; then
28526 if test -z "$haveit"; then
28527 rpathdirs="$rpathdirs $dir"
28530 for x in $ltrpathdirs; do
28531 if test "X$x" = "X$dir"; then
28536 if test -z "$haveit"; then
28537 ltrpathdirs="$ltrpathdirs $dir"
28542 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28545 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28548 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28549 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28555 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28562 if test "X$rpathdirs" != "X"; then
28563 if test -n "$hardcode_libdir_separator"; then
28565 for found_dir in $rpathdirs; do
28566 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28568 acl_save_libdir="$libdir"
28570 eval flag=\"$hardcode_libdir_flag_spec\"
28571 libdir="$acl_save_libdir"
28572 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28574 for found_dir in $rpathdirs; do
28575 acl_save_libdir="$libdir"
28576 libdir="$found_dir"
28577 eval flag=\"$hardcode_libdir_flag_spec\"
28578 libdir="$acl_save_libdir"
28579 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28583 if test "X$ltrpathdirs" != "X"; then
28584 for found_dir in $ltrpathdirs; do
28585 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28589 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28590 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
28591 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28592 $as_echo_n "(cached) " >&6
28594 gt_save_CPPFLAGS="$CPPFLAGS"
28595 CPPFLAGS="$CPPFLAGS $INCINTL"
28596 gt_save_LIBS="$LIBS"
28597 LIBS="$LIBS $LIBINTL"
28598 cat >conftest.$ac_ext <<_ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28604 #include <libintl.h>
28605 extern int _nl_msg_cat_cntr;
28610 const char *_nl_expand_alias (const char *);
28614 bindtextdomain ("", "");
28615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28620 rm -f conftest.$ac_objext conftest$ac_exeext
28621 if { (ac_try="$ac_link"
28622 case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28627 $as_echo "$ac_try_echo") >&5
28628 (eval "$ac_link") 2>conftest.er1
28630 grep -v '^ *+' conftest.er1 >conftest.err
28632 cat conftest.err >&5
28633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } && {
28635 test -z "$ac_c_werror_flag" ||
28636 test ! -s conftest.err
28637 } && test -s conftest$ac_exeext && {
28638 test "$cross_compiling" = yes ||
28639 $as_test_x conftest$ac_exeext
28641 gt_cv_func_gnugettext1_libintl=yes
28643 $as_echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28646 gt_cv_func_gnugettext1_libintl=no
28649 rm -rf conftest.dSYM
28650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28651 conftest$ac_exeext conftest.$ac_ext
28652 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28653 LIBS="$LIBS $LIBICONV"
28654 cat >conftest.$ac_ext <<_ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h. */
28660 #include <libintl.h>
28661 extern int _nl_msg_cat_cntr;
28666 const char *_nl_expand_alias (const char *);
28670 bindtextdomain ("", "");
28671 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28683 $as_echo "$ac_try_echo") >&5
28684 (eval "$ac_link") 2>conftest.er1
28686 grep -v '^ *+' conftest.er1 >conftest.err
28688 cat conftest.err >&5
28689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } && {
28691 test -z "$ac_c_werror_flag" ||
28692 test ! -s conftest.err
28693 } && test -s conftest$ac_exeext && {
28694 test "$cross_compiling" = yes ||
28695 $as_test_x conftest$ac_exeext
28697 LIBINTL="$LIBINTL $LIBICONV"
28698 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28699 gt_cv_func_gnugettext1_libintl=yes
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28708 rm -rf conftest.dSYM
28709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710 conftest$ac_exeext conftest.$ac_ext
28712 CPPFLAGS="$gt_save_CPPFLAGS"
28713 LIBS="$gt_save_LIBS"
28715 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28716 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
28719 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28720 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28721 && test "$PACKAGE" != gettext-runtime \
28722 && test "$PACKAGE" != gettext-tools; }; then
28723 gt_use_preinstalled_gnugettext=yes
28732 if test -n "$INTL_MACOSX_LIBS"; then
28733 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28734 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28735 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28736 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28740 if test "$gt_use_preinstalled_gnugettext" = "yes" \
28741 || test "$nls_cv_use_gnu_gettext" = "yes"; then
28743 cat >>confdefs.h <<\_ACEOF
28744 #define ENABLE_NLS 1
28752 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
28753 $as_echo_n "checking whether to use NLS... " >&6; }
28754 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
28755 $as_echo "$USE_NLS" >&6; }
28756 if test "$USE_NLS" = "yes"; then
28757 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28758 $as_echo_n "checking where the gettext function comes from... " >&6; }
28759 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28760 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28761 gt_source="external libintl"
28766 gt_source="included intl directory"
28768 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
28769 $as_echo "$gt_source" >&6; }
28772 if test "$USE_NLS" = "yes"; then
28774 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28775 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28776 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
28777 $as_echo_n "checking how to link with libintl... " >&6; }
28778 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
28779 $as_echo "$LIBINTL" >&6; }
28781 for element in $INCINTL; do
28783 for x in $CPPFLAGS; do
28785 acl_save_prefix="$prefix"
28786 prefix="$acl_final_prefix"
28787 acl_save_exec_prefix="$exec_prefix"
28788 exec_prefix="$acl_final_exec_prefix"
28790 exec_prefix="$acl_save_exec_prefix"
28791 prefix="$acl_save_prefix"
28793 if test "X$x" = "X$element"; then
28798 if test -z "$haveit"; then
28799 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28806 cat >>confdefs.h <<\_ACEOF
28807 #define HAVE_GETTEXT 1
28811 cat >>confdefs.h <<\_ACEOF
28812 #define HAVE_DCGETTEXT 1
28822 INTLLIBS="$LIBINTL"
28835 sparc-sun-solaris2.10) # Solaris 10
28836 # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
28837 # for it in a few common paths; we then extract the -L flags and
28838 # translate them to -R flags, as required by the runtime linker.
28839 # Extract the first word of "curl-config", so it can be a program name with args.
28840 set dummy curl-config; ac_word=$2
28841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28842 $as_echo_n "checking for $ac_word... " >&6; }
28843 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
28844 $as_echo_n "(cached) " >&6
28846 case $CURL_CONFIG in
28848 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
28851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28852 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
28853 for as_dir in $as_dummy
28856 test -z "$as_dir" && as_dir=.
28857 for ac_exec_ext in '' $ac_executable_extensions; do
28858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28859 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28870 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
28871 if test -n "$CURL_CONFIG"; then
28872 { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
28873 $as_echo "$CURL_CONFIG" >&6; }
28875 { $as_echo "$as_me:$LINENO: result: no" >&5
28876 $as_echo "no" >&6; }
28880 if test -n "$CURL_CONFIG"; then
28881 curlflags=`$CURL_CONFIG --libs 2>/dev/null`
28882 for flag in curlflags; do
28884 -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
28929 # Check whether --with-libcurl was given.
28930 if test "${with_libcurl+set}" = set; then
28931 withval=$with_libcurl; _libcurl_with=$withval
28937 if test "$_libcurl_with" != "no" ; then
28939 for ac_prog in gawk mawk nawk awk
28941 # Extract the first word of "$ac_prog", so it can be a program name with args.
28942 set dummy $ac_prog; ac_word=$2
28943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28944 $as_echo_n "checking for $ac_word... " >&6; }
28945 if test "${ac_cv_prog_AWK+set}" = set; then
28946 $as_echo_n "(cached) " >&6
28948 if test -n "$AWK"; then
28949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
28951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28952 for as_dir in $PATH
28955 test -z "$as_dir" && as_dir=.
28956 for ac_exec_ext in '' $ac_executable_extensions; do
28957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28958 ac_cv_prog_AWK="$ac_prog"
28959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28968 AWK=$ac_cv_prog_AWK
28969 if test -n "$AWK"; then
28970 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
28971 $as_echo "$AWK" >&6; }
28973 { $as_echo "$as_me:$LINENO: result: no" >&5
28974 $as_echo "no" >&6; }
28978 test -n "$AWK" && break
28982 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
28984 _libcurl_try_link=yes
28986 if test -d "$_libcurl_with" ; then
28987 LIBCURL_CPPFLAGS="-I$withval/include"
28988 _libcurl_ldflags="-L$withval/lib"
28989 # Extract the first word of "curl-config", so it can be a program name with args.
28990 set dummy curl-config; ac_word=$2
28991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28992 $as_echo_n "checking for $ac_word... " >&6; }
28993 if test "${ac_cv_path__libcurl_config+set}" = set; then
28994 $as_echo_n "(cached) " >&6
28996 case $_libcurl_config in
28998 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
29001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29002 for as_dir in "$withval/bin"
29005 test -z "$as_dir" && as_dir=.
29006 for ac_exec_ext in '' $ac_executable_extensions; do
29007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29008 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
29009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29016 test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
29020 _libcurl_config=$ac_cv_path__libcurl_config
29021 if test -n "$_libcurl_config"; then
29022 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29023 $as_echo "$_libcurl_config" >&6; }
29025 { $as_echo "$as_me:$LINENO: result: no" >&5
29026 $as_echo "no" >&6; }
29031 # Extract the first word of "curl-config", so it can be a program name with args.
29032 set dummy curl-config; ac_word=$2
29033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29034 $as_echo_n "checking for $ac_word... " >&6; }
29035 if test "${ac_cv_path__libcurl_config+set}" = set; then
29036 $as_echo_n "(cached) " >&6
29038 case $_libcurl_config in
29040 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
29043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29044 for as_dir in $PATH
29047 test -z "$as_dir" && as_dir=.
29048 for ac_exec_ext in '' $ac_executable_extensions; do
29049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29050 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
29051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29061 _libcurl_config=$ac_cv_path__libcurl_config
29062 if test -n "$_libcurl_config"; then
29063 { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
29064 $as_echo "$_libcurl_config" >&6; }
29066 { $as_echo "$as_me:$LINENO: result: no" >&5
29067 $as_echo "no" >&6; }
29073 if test x$_libcurl_config != "x" ; then
29074 { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
29075 $as_echo_n "checking for the version of libcurl... " >&6; }
29076 if test "${libcurl_cv_lib_curl_version+set}" = set; then
29077 $as_echo_n "(cached) " >&6
29079 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
29081 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
29082 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
29084 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
29085 _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
29087 if test $_libcurl_wanted -gt 0 ; then
29088 { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
29089 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
29090 if test "${libcurl_cv_lib_version_ok+set}" = set; then
29091 $as_echo_n "(cached) " >&6
29094 if test $_libcurl_version -ge $_libcurl_wanted ; then
29095 libcurl_cv_lib_version_ok=yes
29097 libcurl_cv_lib_version_ok=no
29101 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
29102 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
29105 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
29106 if test x"$LIBCURL_CPPFLAGS" = "x" ; then
29107 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
29109 if test x"$LIBCURL" = "x" ; then
29110 LIBCURL=`$_libcurl_config --libs`
29112 # This is so silly, but Apple actually has a bug in their
29113 # curl-config script. Fixed in Tiger, but there are still
29114 # lots of Panther installs around.
29116 powerpc-apple-darwin7*)
29117 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
29122 # All curl-config scripts support --feature
29123 _libcurl_features=`$_libcurl_config --feature`
29125 # Is it modern enough to have --protocols? (7.12.4)
29126 if test $_libcurl_version -ge 461828 ; then
29127 _libcurl_protocols=`$_libcurl_config --protocols`
29130 _libcurl_try_link=no
29133 unset _libcurl_wanted
29136 if test $_libcurl_try_link = yes ; then
29138 # we didn't find curl-config, so let's see if the user-supplied
29139 # link line (or failing that, "-lcurl") is enough.
29140 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
29142 { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
29143 $as_echo_n "checking whether libcurl is usable... " >&6; }
29144 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
29145 $as_echo_n "(cached) " >&6
29148 _libcurl_save_cppflags=$CPPFLAGS
29149 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
29150 _libcurl_save_libs=$LIBS
29151 LIBS="$LIBCURL $LIBS"
29153 cat >conftest.$ac_ext <<_ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159 #include <curl/curl.h>
29164 /* Try and use a few common options to force a failure if we are
29165 missing symbols or can't link. */
29167 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
29169 x=CURLOPT_WRITEFUNCTION;
29171 x=CURLOPT_ERRORBUFFER;
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (ac_try="$ac_link"
29181 case "(($ac_try" in
29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183 *) ac_try_echo=$ac_try;;
29185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29186 $as_echo "$ac_try_echo") >&5
29187 (eval "$ac_link") 2>conftest.er1
29189 grep -v '^ *+' conftest.er1 >conftest.err
29191 cat conftest.err >&5
29192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } && {
29194 test -z "$ac_c_werror_flag" ||
29195 test ! -s conftest.err
29196 } && test -s conftest$ac_exeext && {
29197 test "$cross_compiling" = yes ||
29198 $as_test_x conftest$ac_exeext
29200 libcurl_cv_lib_curl_usable=yes
29202 $as_echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29205 libcurl_cv_lib_curl_usable=no
29208 rm -rf conftest.dSYM
29209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29210 conftest$ac_exeext conftest.$ac_ext
29212 CPPFLAGS=$_libcurl_save_cppflags
29213 LIBS=$_libcurl_save_libs
29214 unset _libcurl_save_cppflags
29215 unset _libcurl_save_libs
29218 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
29219 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
29221 if test $libcurl_cv_lib_curl_usable = yes ; then
29223 # Does curl_free() exist in this version of libcurl?
29224 # If not, fake it with free()
29226 _libcurl_save_cppflags=$CPPFLAGS
29227 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29228 _libcurl_save_libs=$LIBS
29229 LIBS="$LIBS $LIBCURL"
29231 { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
29232 $as_echo_n "checking for curl_free... " >&6; }
29233 if test "${ac_cv_func_curl_free+set}" = set; then
29234 $as_echo_n "(cached) " >&6
29236 cat >conftest.$ac_ext <<_ACEOF
29239 cat confdefs.h >>conftest.$ac_ext
29240 cat >>conftest.$ac_ext <<_ACEOF
29241 /* end confdefs.h. */
29242 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
29243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29244 #define curl_free innocuous_curl_free
29246 /* System header to define __stub macros and hopefully few prototypes,
29247 which can conflict with char curl_free (); below.
29248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29249 <limits.h> exists even on freestanding compilers. */
29252 # include <limits.h>
29254 # include <assert.h>
29259 /* Override any GCC internal prototype to avoid an error.
29260 Use char because int might match the return type of a GCC
29261 builtin and then its argument prototype would still apply. */
29266 /* The GNU C library defines this for functions which it implements
29267 to always fail with ENOSYS. Some functions are actually named
29268 something starting with __ and the normal name is an alias. */
29269 #if defined __stub_curl_free || defined __stub___curl_free
29276 return curl_free ();
29281 rm -f conftest.$ac_objext conftest$ac_exeext
29282 if { (ac_try="$ac_link"
29283 case "(($ac_try" in
29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29285 *) ac_try_echo=$ac_try;;
29287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29288 $as_echo "$ac_try_echo") >&5
29289 (eval "$ac_link") 2>conftest.er1
29291 grep -v '^ *+' conftest.er1 >conftest.err
29293 cat conftest.err >&5
29294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } && {
29296 test -z "$ac_c_werror_flag" ||
29297 test ! -s conftest.err
29298 } && test -s conftest$ac_exeext && {
29299 test "$cross_compiling" = yes ||
29300 $as_test_x conftest$ac_exeext
29302 ac_cv_func_curl_free=yes
29304 $as_echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29307 ac_cv_func_curl_free=no
29310 rm -rf conftest.dSYM
29311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29312 conftest$ac_exeext conftest.$ac_ext
29314 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
29315 $as_echo "$ac_cv_func_curl_free" >&6; }
29316 if test "x$ac_cv_func_curl_free" = x""yes; then
29320 cat >>confdefs.h <<\_ACEOF
29321 #define curl_free free
29327 CPPFLAGS=$_libcurl_save_cppflags
29328 LIBS=$_libcurl_save_libs
29329 unset _libcurl_save_cppflags
29330 unset _libcurl_save_libs
29333 cat >>confdefs.h <<\_ACEOF
29334 #define HAVE_LIBCURL 1
29340 for _libcurl_feature in $_libcurl_features ; do
29341 cat >>confdefs.h <<_ACEOF
29342 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
29345 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
29348 if test "x$_libcurl_protocols" = "x" ; then
29350 # We don't have --protocols, so just assume that all
29351 # protocols are available
29352 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
29354 if test x$libcurl_feature_SSL = xyes ; then
29355 _libcurl_protocols="$_libcurl_protocols HTTPS"
29357 # FTPS wasn't standards-compliant until version
29359 if test $_libcurl_version -ge 461568; then
29360 _libcurl_protocols="$_libcurl_protocols FTPS"
29365 for _libcurl_protocol in $_libcurl_protocols ; do
29366 cat >>confdefs.h <<_ACEOF
29367 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
29370 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
29374 unset LIBCURL_CPPFLAGS
29378 unset _libcurl_try_link
29379 unset _libcurl_version_parse
29380 unset _libcurl_config
29381 unset _libcurl_feature
29382 unset _libcurl_features
29383 unset _libcurl_protocol
29384 unset _libcurl_protocols
29385 unset _libcurl_version
29386 unset _libcurl_ldflags
29389 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
29390 # This is the IF-NO path
29393 # This is the IF-YES path
29397 unset _libcurl_with
29399 if test x"$HAVE_CURL" = x"yes"; then
29400 LIBS="$LIBCURL $LIBS"
29402 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
29407 { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
29408 $as_echo_n "checking for curl_off_t... " >&6; }
29409 if test "${ac_cv_type_curl_off_t+set}" = set; then
29410 $as_echo_n "(cached) " >&6
29412 ac_cv_type_curl_off_t=no
29413 cat >conftest.$ac_ext <<_ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h. */
29420 #ifdef HAVE_SYS_TYPES_H
29421 #include <sys/types.h>
29423 #ifdef STDC_HEADERS
29424 #include <stdlib.h>
29425 #include <stddef.h>
29427 #include <curl/curl.h>
29434 if (sizeof (curl_off_t))
29440 rm -f conftest.$ac_objext
29441 if { (ac_try="$ac_compile"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29447 $as_echo "$ac_try_echo") >&5
29448 (eval "$ac_compile") 2>conftest.er1
29450 grep -v '^ *+' conftest.er1 >conftest.err
29452 cat conftest.err >&5
29453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } && {
29455 test -z "$ac_c_werror_flag" ||
29456 test ! -s conftest.err
29457 } && test -s conftest.$ac_objext; then
29458 cat >conftest.$ac_ext <<_ACEOF
29461 cat confdefs.h >>conftest.$ac_ext
29462 cat >>conftest.$ac_ext <<_ACEOF
29463 /* end confdefs.h. */
29465 #ifdef HAVE_SYS_TYPES_H
29466 #include <sys/types.h>
29468 #ifdef STDC_HEADERS
29469 #include <stdlib.h>
29470 #include <stddef.h>
29472 #include <curl/curl.h>
29479 if (sizeof ((curl_off_t)))
29485 rm -f conftest.$ac_objext
29486 if { (ac_try="$ac_compile"
29487 case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29492 $as_echo "$ac_try_echo") >&5
29493 (eval "$ac_compile") 2>conftest.er1
29495 grep -v '^ *+' conftest.er1 >conftest.err
29497 cat conftest.err >&5
29498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } && {
29500 test -z "$ac_c_werror_flag" ||
29501 test ! -s conftest.err
29502 } && test -s conftest.$ac_objext; then
29505 $as_echo "$as_me: failed program was:" >&5
29506 sed 's/^/| /' conftest.$ac_ext >&5
29508 ac_cv_type_curl_off_t=yes
29511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29513 $as_echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29521 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
29522 $as_echo "$ac_cv_type_curl_off_t" >&6; }
29523 if test "x$ac_cv_type_curl_off_t" = x""yes; then
29528 cat >>confdefs.h <<\_ACEOF
29529 #define curl_off_t off_t
29541 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
29542 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
29543 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
29544 $as_echo_n "(cached) " >&6
29546 ac_check_lib_save_LIBS=$LIBS
29547 LIBS="-lcrypto $LIBS"
29548 cat >conftest.$ac_ext <<_ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h. */
29555 /* Override any GCC internal prototype to avoid an error.
29556 Use char because int might match the return type of a GCC
29557 builtin and then its argument prototype would still apply. */
29561 char HMAC_CTX_init ();
29565 return HMAC_CTX_init ();
29570 rm -f conftest.$ac_objext conftest$ac_exeext
29571 if { (ac_try="$ac_link"
29572 case "(($ac_try" in
29573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574 *) ac_try_echo=$ac_try;;
29576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29577 $as_echo "$ac_try_echo") >&5
29578 (eval "$ac_link") 2>conftest.er1
29580 grep -v '^ *+' conftest.er1 >conftest.err
29582 cat conftest.err >&5
29583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } && {
29585 test -z "$ac_c_werror_flag" ||
29586 test ! -s conftest.err
29587 } && test -s conftest$ac_exeext && {
29588 test "$cross_compiling" = yes ||
29589 $as_test_x conftest$ac_exeext
29591 ac_cv_lib_crypto_HMAC_CTX_init=yes
29593 $as_echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29596 ac_cv_lib_crypto_HMAC_CTX_init=no
29599 rm -rf conftest.dSYM
29600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29601 conftest$ac_exeext conftest.$ac_ext
29602 LIBS=$ac_check_lib_save_LIBS
29604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
29605 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
29606 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
29607 cat >>confdefs.h <<_ACEOF
29608 #define HAVE_LIBCRYPTO 1
29611 LIBS="-lcrypto $LIBS"
29622 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
29624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29627 $as_echo_n "checking for $ac_header... " >&6; }
29628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29629 $as_echo_n "(cached) " >&6
29631 ac_res=`eval 'as_val=${'$as_ac_Header'}
29632 $as_echo "$as_val"'`
29633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29634 $as_echo "$ac_res" >&6; }
29636 # Is the header compilable?
29637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29638 $as_echo_n "checking $ac_header usability... " >&6; }
29639 cat >conftest.$ac_ext <<_ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29645 $ac_includes_default
29646 #include <$ac_header>
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656 (eval "$ac_compile") 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest.$ac_objext; then
29666 ac_header_compiler=yes
29668 $as_echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29671 ac_header_compiler=no
29674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29676 $as_echo "$ac_header_compiler" >&6; }
29678 # Is the header present?
29679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29680 $as_echo_n "checking $ac_header presence... " >&6; }
29681 cat >conftest.$ac_ext <<_ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29687 #include <$ac_header>
29689 if { (ac_try="$ac_cpp conftest.$ac_ext"
29690 case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29695 $as_echo "$ac_try_echo") >&5
29696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29698 grep -v '^ *+' conftest.er1 >conftest.err
29700 cat conftest.err >&5
29701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } >/dev/null && {
29703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29704 test ! -s conftest.err
29706 ac_header_preproc=yes
29708 $as_echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29711 ac_header_preproc=no
29714 rm -f conftest.err conftest.$ac_ext
29715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29716 $as_echo "$ac_header_preproc" >&6; }
29718 # So? What about this header?
29719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29725 ac_header_preproc=yes
29728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29731 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29735 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29744 $as_echo_n "checking for $ac_header... " >&6; }
29745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29746 $as_echo_n "(cached) " >&6
29748 eval "$as_ac_Header=\$ac_header_preproc"
29750 ac_res=`eval 'as_val=${'$as_ac_Header'}
29751 $as_echo "$as_val"'`
29752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29753 $as_echo "$ac_res" >&6; }
29756 as_val=`eval 'as_val=${'$as_ac_Header'}
29757 $as_echo "$as_val"'`
29758 if test "x$as_val" = x""yes; then
29759 cat >>confdefs.h <<_ACEOF
29760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29762 found_hmac_h=yes; break
29767 if test x"$found_hmac_h" != x"yes"; then
29775 # Check whether --enable-s3-device was given.
29776 if test "${enable_s3_device+set}" = set; then
29777 enableval=$enable_s3_device; WANT_S3_DEVICE=$enableval
29779 WANT_S3_DEVICE=maybe
29783 { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
29784 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
29785 # if the user didn't specify 'no', then check for support
29786 if test x"$WANT_S3_DEVICE" != x"no"; then
29787 if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
29790 # no support -- if the user explicitly enabled the device,
29791 # then this is an error
29792 if test x"$WANT_S3_DEVICE" = x"yes"; then
29793 { $as_echo "$as_me:$LINENO: result: no" >&5
29794 $as_echo "no" >&6; }
29795 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
29796 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
29797 { (exit 1); exit 1; }; }
29803 { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
29804 $as_echo "$WANT_S3_DEVICE" >&6; }
29806 if test x"$WANT_S3_DEVICE" = x"yes"; then
29807 WANT_S3_DEVICE_TRUE=
29808 WANT_S3_DEVICE_FALSE='#'
29810 WANT_S3_DEVICE_TRUE='#'
29811 WANT_S3_DEVICE_FALSE=
29815 # Now handle any setup for S3, if we want it.
29816 if test x"$WANT_S3_DEVICE" = x"yes"; then
29818 cat >>confdefs.h <<\_ACEOF
29819 #define WANT_S3_DEVICE /**/
29834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29837 $as_echo_n "checking for $ac_header... " >&6; }
29838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29839 $as_echo_n "(cached) " >&6
29841 ac_res=`eval 'as_val=${'$as_ac_Header'}
29842 $as_echo "$as_val"'`
29843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29844 $as_echo "$ac_res" >&6; }
29846 # Is the header compilable?
29847 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29848 $as_echo_n "checking $ac_header usability... " >&6; }
29849 cat >conftest.$ac_ext <<_ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h. */
29855 $ac_includes_default
29856 #include <$ac_header>
29858 rm -f conftest.$ac_objext
29859 if { (ac_try="$ac_compile"
29860 case "(($ac_try" in
29861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862 *) ac_try_echo=$ac_try;;
29864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29865 $as_echo "$ac_try_echo") >&5
29866 (eval "$ac_compile") 2>conftest.er1
29868 grep -v '^ *+' conftest.er1 >conftest.err
29870 cat conftest.err >&5
29871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); } && {
29873 test -z "$ac_c_werror_flag" ||
29874 test ! -s conftest.err
29875 } && test -s conftest.$ac_objext; then
29876 ac_header_compiler=yes
29878 $as_echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29881 ac_header_compiler=no
29884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29885 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29886 $as_echo "$ac_header_compiler" >&6; }
29888 # Is the header present?
29889 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29890 $as_echo_n "checking $ac_header presence... " >&6; }
29891 cat >conftest.$ac_ext <<_ACEOF
29894 cat confdefs.h >>conftest.$ac_ext
29895 cat >>conftest.$ac_ext <<_ACEOF
29896 /* end confdefs.h. */
29897 #include <$ac_header>
29899 if { (ac_try="$ac_cpp conftest.$ac_ext"
29900 case "(($ac_try" in
29901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902 *) ac_try_echo=$ac_try;;
29904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29905 $as_echo "$ac_try_echo") >&5
29906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29908 grep -v '^ *+' conftest.er1 >conftest.err
29910 cat conftest.err >&5
29911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); } >/dev/null && {
29913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29914 test ! -s conftest.err
29916 ac_header_preproc=yes
29918 $as_echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29921 ac_header_preproc=no
29924 rm -f conftest.err conftest.$ac_ext
29925 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29926 $as_echo "$ac_header_preproc" >&6; }
29928 # So? What about this header?
29929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29932 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29935 ac_header_preproc=yes
29938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29939 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29941 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29943 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29945 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29949 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29954 $as_echo_n "checking for $ac_header... " >&6; }
29955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29956 $as_echo_n "(cached) " >&6
29958 eval "$as_ac_Header=\$ac_header_preproc"
29960 ac_res=`eval 'as_val=${'$as_ac_Header'}
29961 $as_echo "$as_val"'`
29962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29963 $as_echo "$ac_res" >&6; }
29966 as_val=`eval 'as_val=${'$as_ac_Header'}
29967 $as_echo "$as_val"'`
29968 if test "x$as_val" = x""yes; then
29969 cat >>confdefs.h <<_ACEOF
29970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29978 # check for MTIOCTOP, an indicator of POSIX tape support
29979 { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
29980 $as_echo_n "checking for MTIOCTOP... " >&6; }
29981 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
29982 $as_echo_n "(cached) " >&6
29985 cat >conftest.$ac_ext <<_ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h. */
29992 #ifdef HAVE_SYS_TAPE_H
29993 # include <sys/tape.h>
29995 #ifdef HAVE_SYS_MTIO_H
29996 # include <sys/mtio.h>
29999 #error MTIOCTOP not defined
30010 rm -f conftest.$ac_objext
30011 if { (ac_try="$ac_compile"
30012 case "(($ac_try" in
30013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30014 *) ac_try_echo=$ac_try;;
30016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30017 $as_echo "$ac_try_echo") >&5
30018 (eval "$ac_compile") 2>conftest.er1
30020 grep -v '^ *+' conftest.er1 >conftest.err
30022 cat conftest.err >&5
30023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); } && {
30025 test -z "$ac_c_werror_flag" ||
30026 test ! -s conftest.err
30027 } && test -s conftest.$ac_objext; then
30028 amanda_cv_HAVE_MTIOCTOP=yes
30030 $as_echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30033 amanda_cv_HAVE_MTIOCTOP=no
30036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038 HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
30041 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
30042 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
30044 # decide which tape device to compile (arranged in such a way that
30045 # only one actually gets compiled)
30047 *-ibm-aix*) aix_tapeio=yes ;;
30048 *-sysv4.2uw2*) uware_tapeio=yes ;;
30049 *-sco3.2v5*) xenix_tapeio=yes ;;
30050 i386-pc-isc4*) xenix_tapeio=yes ;;
30053 # maybe we have no tape device at all (e.g., Mac OS X)?
30054 if test -n "$xenix_tapeio" ||
30055 test -n "$aix_tapeio" ||
30056 test -n "$uware_tapeio" ||
30057 test -n "$HAVE_MTIOCTOP"; then
30058 want_tape_device=yes
30060 cat >>confdefs.h <<\_ACEOF
30061 #define WANT_TAPE_DEVICE 1
30066 if test -n "$xenix_tapeio"; then
30067 WANT_TAPE_XENIX_TRUE=
30068 WANT_TAPE_XENIX_FALSE='#'
30070 WANT_TAPE_XENIX_TRUE='#'
30071 WANT_TAPE_XENIX_FALSE=
30074 if test -n "$aix_tapeio"; then
30075 WANT_TAPE_AIX_TRUE=
30076 WANT_TAPE_AIX_FALSE='#'
30078 WANT_TAPE_AIX_TRUE='#'
30079 WANT_TAPE_AIX_FALSE=
30082 if test -n "$uware_tapeio"; then
30083 WANT_TAPE_UWARE_TRUE=
30084 WANT_TAPE_UWARE_FALSE='#'
30086 WANT_TAPE_UWARE_TRUE='#'
30087 WANT_TAPE_UWARE_FALSE=
30090 if test -n "$HAVE_MTIOCTOP"; then
30091 WANT_TAPE_POSIX_TRUE=
30092 WANT_TAPE_POSIX_FALSE='#'
30094 WANT_TAPE_POSIX_TRUE='#'
30095 WANT_TAPE_POSIX_FALSE=
30098 if test -n "$want_tape_device"; then
30099 WANT_TAPE_DEVICE_TRUE=
30100 WANT_TAPE_DEVICE_FALSE='#'
30102 WANT_TAPE_DEVICE_TRUE='#'
30103 WANT_TAPE_DEVICE_FALSE=
30107 if test -n "$xenix_tapeio"; then
30109 cat >>confdefs.h <<\_ACEOF
30110 #define WANT_TAPE_XENIX 1
30115 if test -n "$aix_tapeio"; then
30117 cat >>confdefs.h <<\_ACEOF
30118 #define WANT_TAPE_AIX 1
30123 if test -n "$uware_tapeio"; then
30125 cat >>confdefs.h <<\_ACEOF
30126 #define WANT_TAPE_UWARE 1
30132 # Check for various "mt status" related structure elements.
30134 { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30135 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
30136 cat >conftest.$ac_ext <<_ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30144 #include <sys/types.h>
30145 #include <sys/mtio.h>
30160 rm -f conftest.$ac_objext
30161 if { (ac_try="$ac_compile"
30162 case "(($ac_try" in
30163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164 *) ac_try_echo=$ac_try;;
30166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30167 $as_echo "$ac_try_echo") >&5
30168 (eval "$ac_compile") 2>conftest.er1
30170 grep -v '^ *+' conftest.er1 >conftest.err
30172 cat conftest.err >&5
30173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } && {
30175 test -z "$ac_c_werror_flag" ||
30176 test ! -s conftest.err
30177 } && test -s conftest.$ac_objext; then
30179 { $as_echo "$as_me:$LINENO: result: yes" >&5
30180 $as_echo "yes" >&6; }
30182 cat >>confdefs.h <<\_ACEOF
30183 #define HAVE_MT_FLAGS 1
30188 $as_echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30192 { $as_echo "$as_me:$LINENO: result: no" >&5
30193 $as_echo "no" >&6; }
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30199 { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30200 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
30201 mt_fileno_result="found"
30202 cat >conftest.$ac_ext <<_ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h. */
30210 #include <sys/types.h>
30211 #include <sys/mtio.h>
30220 ds = buf.mt_fileno;
30226 rm -f conftest.$ac_objext
30227 if { (ac_try="$ac_compile"
30228 case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30233 $as_echo "$ac_try_echo") >&5
30234 (eval "$ac_compile") 2>conftest.er1
30236 grep -v '^ *+' conftest.er1 >conftest.err
30238 cat conftest.err >&5
30239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); } && {
30241 test -z "$ac_c_werror_flag" ||
30242 test ! -s conftest.err
30243 } && test -s conftest.$ac_objext; then
30245 { $as_echo "$as_me:$LINENO: result: yes" >&5
30246 $as_echo "yes" >&6; }
30248 cat >>confdefs.h <<\_ACEOF
30249 #define HAVE_MT_FILENO 1
30254 $as_echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30258 { $as_echo "$as_me:$LINENO: result: no" >&5
30259 $as_echo "no" >&6; }
30263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30265 { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30266 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
30267 cat >conftest.$ac_ext <<_ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h. */
30275 #include <sys/types.h>
30276 #include <sys/mtio.h>
30291 rm -f conftest.$ac_objext
30292 if { (ac_try="$ac_compile"
30293 case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30298 $as_echo "$ac_try_echo") >&5
30299 (eval "$ac_compile") 2>conftest.er1
30301 grep -v '^ *+' conftest.er1 >conftest.err
30303 cat conftest.err >&5
30304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } && {
30306 test -z "$ac_c_werror_flag" ||
30307 test ! -s conftest.err
30308 } && test -s conftest.$ac_objext; then
30310 { $as_echo "$as_me:$LINENO: result: yes" >&5
30311 $as_echo "yes" >&6; }
30313 cat >>confdefs.h <<\_ACEOF
30314 #define HAVE_MT_BLKNO 1
30319 $as_echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30323 { $as_echo "$as_me:$LINENO: result: no" >&5
30324 $as_echo "no" >&6; }
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30330 { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30331 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
30332 cat >conftest.$ac_ext <<_ACEOF
30335 cat confdefs.h >>conftest.$ac_ext
30336 cat >>conftest.$ac_ext <<_ACEOF
30337 /* end confdefs.h. */
30340 #include <sys/types.h>
30341 #include <sys/mtio.h>
30356 rm -f conftest.$ac_objext
30357 if { (ac_try="$ac_compile"
30358 case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30363 $as_echo "$ac_try_echo") >&5
30364 (eval "$ac_compile") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest.$ac_objext; then
30375 { $as_echo "$as_me:$LINENO: result: yes" >&5
30376 $as_echo "yes" >&6; }
30378 cat >>confdefs.h <<\_ACEOF
30379 #define HAVE_MT_DSREG 1
30384 $as_echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30388 { $as_echo "$as_me:$LINENO: result: no" >&5
30389 $as_echo "no" >&6; }
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30396 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
30397 cat >conftest.$ac_ext <<_ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h. */
30405 #include <sys/types.h>
30406 #include <sys/mtio.h>
30421 rm -f conftest.$ac_objext
30422 if { (ac_try="$ac_compile"
30423 case "(($ac_try" in
30424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30425 *) ac_try_echo=$ac_try;;
30427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30428 $as_echo "$ac_try_echo") >&5
30429 (eval "$ac_compile") 2>conftest.er1
30431 grep -v '^ *+' conftest.er1 >conftest.err
30433 cat conftest.err >&5
30434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); } && {
30436 test -z "$ac_c_werror_flag" ||
30437 test ! -s conftest.err
30438 } && test -s conftest.$ac_objext; then
30440 { $as_echo "$as_me:$LINENO: result: yes" >&5
30441 $as_echo "yes" >&6; }
30443 cat >>confdefs.h <<\_ACEOF
30444 #define HAVE_MT_ERREG 1
30449 $as_echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30453 { $as_echo "$as_me:$LINENO: result: no" >&5
30454 $as_echo "no" >&6; }
30458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30462 cat >>confdefs.h <<\_ACEOF
30463 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
30470 # Security (authentication) mechansims
30475 # Check whether --with-bsd-security was given.
30476 if test "${with_bsd_security+set}" = set; then
30477 withval=$with_bsd_security;
30479 n | no) BSD_SECURITY=no ;;
30480 y | ye | yes) BSD_SECURITY=yes ;;
30481 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
30482 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
30483 { (exit 1); exit 1; }; }
30490 USE_AMANDAHOSTS=yes
30492 # Check whether --with-amandahosts was given.
30493 if test "${with_amandahosts+set}" = set; then
30494 withval=$with_amandahosts;
30496 n | no ) USE_AMANDAHOSTS=no ;;
30497 y | ye | yes) USE_AMANDAHOSTS=yes ;;
30498 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
30499 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
30500 { (exit 1); exit 1; }; }
30508 if test "x$BSD_SECURITY" = "xyes"; then
30510 cat >>confdefs.h <<\_ACEOF
30511 #define BSD_SECURITY 1
30514 if test "x$USE_AMANDAHOSTS" = "xyes"; then
30516 cat >>confdefs.h <<\_ACEOF
30517 #define USE_AMANDAHOSTS 1
30523 if test x"$BSD_SECURITY" = x"yes"; then
30524 WANT_BSD_SECURITY_TRUE=
30525 WANT_BSD_SECURITY_FALSE='#'
30527 WANT_BSD_SECURITY_TRUE='#'
30528 WANT_BSD_SECURITY_FALSE=
30535 BSDTCP_SECURITY="yes"
30537 # Check whether --with-bsdtcp-security was given.
30538 if test "${with_bsdtcp_security+set}" = set; then
30539 withval=$with_bsdtcp_security;
30541 n | no) BSDTCP_SECURITY=no ;;
30542 y | ye | yes) BSDTCP_SECURITY=yes ;;
30543 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
30544 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
30545 { (exit 1); exit 1; }; }
30552 if test "x$BSDTCP_SECURITY" = "xyes"; then
30554 cat >>confdefs.h <<\_ACEOF
30555 #define BSDTCP_SECURITY 1
30560 if test x"$BSDTCP_SECURITY" = x"yes"; then
30561 WANT_BSDTCP_SECURITY_TRUE=
30562 WANT_BSDTCP_SECURITY_FALSE='#'
30564 WANT_BSDTCP_SECURITY_TRUE='#'
30565 WANT_BSDTCP_SECURITY_FALSE=
30571 BSDUDP_SECURITY="no"
30573 # Check whether --with-bsdudp-security was given.
30574 if test "${with_bsdudp_security+set}" = set; then
30575 withval=$with_bsdudp_security;
30578 y | ye | yes) BSDUDP_SECURITY=yes ;;
30579 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
30580 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
30581 { (exit 1); exit 1; }; }
30588 if test "x$BSDUDP_SECURITY" = "xyes"; then
30590 cat >>confdefs.h <<\_ACEOF
30591 #define BSDUDP_SECURITY 1
30596 if test x"$BSDUDP_SECURITY" = x"yes"; then
30597 WANT_BSDUDP_SECURITY_TRUE=
30598 WANT_BSDUDP_SECURITY_FALSE='#'
30600 WANT_BSDUDP_SECURITY_TRUE='#'
30601 WANT_BSDUDP_SECURITY_FALSE=
30609 # Check whether --with-rsh-security was given.
30610 if test "${with_rsh_security+set}" = set; then
30611 withval=$with_rsh_security;
30614 y | ye | yes) RSH_SECURITY=yes ;;
30615 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
30616 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
30617 { (exit 1); exit 1; }; }
30624 if test "x$RSH_SECURITY" = "xyes"; then
30626 cat >>confdefs.h <<\_ACEOF
30627 #define RSH_SECURITY 1
30631 if test x"$RSH_SECURITY" = x"yes"; then
30632 WANT_RSH_SECURITY_TRUE=
30633 WANT_RSH_SECURITY_FALSE='#'
30635 WANT_RSH_SECURITY_TRUE='#'
30636 WANT_RSH_SECURITY_FALSE=
30644 # Check whether --with-ssh-security was given.
30645 if test "${with_ssh_security+set}" = set; then
30646 withval=$with_ssh_security;
30648 n | no) SSH_SECURITY=no ;;
30649 y | ye | yes) SSH_SECURITY=yes ;;
30650 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
30651 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
30652 { (exit 1); exit 1; }; }
30659 if test "x$SSH_SECURITY" = "xyes"; then
30660 # find the SSH binary
30663 # Extract the first word of "$ac_prog", so it can be a program name with args.
30664 set dummy $ac_prog; ac_word=$2
30665 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30666 $as_echo_n "checking for $ac_word... " >&6; }
30667 if test "${ac_cv_path_SSH+set}" = set; then
30668 $as_echo_n "(cached) " >&6
30672 ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
30675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30676 for as_dir in $LOCSYSPATH
30679 test -z "$as_dir" && as_dir=.
30680 for ac_exec_ext in '' $ac_executable_extensions; do
30681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30682 ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
30683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30693 SSH=$ac_cv_path_SSH
30694 if test -n "$SSH"; then
30695 { $as_echo "$as_me:$LINENO: result: $SSH" >&5
30696 $as_echo "$SSH" >&6; }
30698 { $as_echo "$as_me:$LINENO: result: no" >&5
30699 $as_echo "no" >&6; }
30703 test -n "$SSH" && break
30707 # see what options we should use
30709 # Check whether --with-ssh-options was given.
30710 if test "${with_ssh_options+set}" = set; then
30711 withval=$with_ssh_options; SSH_OPTIONS="$withval"
30718 case "$SSH_OPTIONS" in
30719 y | ye | yes | n | no)
30720 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
30721 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
30722 { (exit 1); exit 1; }; };;
30726 { $as_echo "$as_me:$LINENO: checking SSH options" >&5
30727 $as_echo_n "checking SSH options... " >&6; }
30728 # if we didn't get SSH options from the user, figure them out for ourselves
30729 if test -z "$SSH_OPTIONS"; then
30730 case `$SSH -V 2>&1` in
30731 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
30732 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
30736 # now convert that to a comma-separated list of C strings
30737 eval "set dummy ${SSH_OPTIONS}"; shift
30739 for i in "${@}"; do
30740 quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
30741 SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
30743 { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
30744 $as_echo "$SSH_OPTIONS" >&6; }
30746 # finally, make the various outputs for all of this
30748 cat >>confdefs.h <<\_ACEOF
30749 #define SSH_SECURITY 1
30753 cat >>confdefs.h <<_ACEOF
30758 cat >>confdefs.h <<_ACEOF
30759 #define SSH_OPTIONS $SSH_OPTIONS
30763 if test x"$SSH_SECURITY" = x"yes"; then
30764 WANT_SSH_SECURITY_TRUE=
30765 WANT_SSH_SECURITY_FALSE='#'
30767 WANT_SSH_SECURITY_TRUE='#'
30768 WANT_SSH_SECURITY_FALSE=
30773 # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
30776 # Specify --with-krb4-security if Kerberos software is in somewhere
30777 # other than the listed KRB4_SPOTS. We only compile kerberos support in
30778 # if the right files are there.
30780 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
30784 # Check whether --with-krb4-security was given.
30785 if test "${with_krb4_security+set}" = set; then
30786 withval=$with_krb4_security;
30789 y | ye | yes) KRB4_SECURITY="yes" ;;
30790 *) KRB4_SPOTS="$KRB4_SECURITY"
30791 KRB4_SECURITY="yes"
30798 # check the remaining, subsidiary options
30800 { $as_echo "$as_me:$LINENO: checking host principal" >&5
30801 $as_echo_n "checking host principal... " >&6; }
30803 # Check whether --with-server-principal was given.
30804 if test "${with_server_principal+set}" = set; then
30805 withval=$with_server_principal;
30807 "" | y | ye | yes | n | no)
30808 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
30809 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
30810 { (exit 1); exit 1; }; }
30812 *) SERVER_HOST_PRINCIPAL="$withval" ;;
30816 : ${SERVER_HOST_PRINCIPAL="amanda"}
30820 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
30821 $as_echo "$SERVER_HOST_PRINCIPAL" >&6; }
30823 { $as_echo "$as_me:$LINENO: checking server host instance" >&5
30824 $as_echo_n "checking server host instance... " >&6; }
30826 # Check whether --with-server-instance was given.
30827 if test "${with_server_instance+set}" = set; then
30828 withval=$with_server_instance;
30830 "" | y | ye | yes | n | no)
30831 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
30832 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
30833 { (exit 1); exit 1; }; }
30835 *) SERVER_HOST_INSTANCE="$withval" ;;
30839 : ${SERVER_HOST_INSTANCE="amanda"}
30843 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
30844 $as_echo "$SERVER_HOST_INSTANCE" >&6; }
30846 { $as_echo "$as_me:$LINENO: checking server host key file" >&5
30847 $as_echo_n "checking server host key file... " >&6; }
30849 # Check whether --with-server-keyfile was given.
30850 if test "${with_server_keyfile+set}" = set; then
30851 withval=$with_server_keyfile;
30853 "" | y | ye | yes | n | no)
30854 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
30855 $as_echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
30856 { (exit 1); exit 1; }; }
30858 *) SERVER_HOST_KEY_FILE="$withval" ;;
30862 : ${SERVER_HOST_KEY_FILE="/.amanda"}
30866 { $as_echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
30867 $as_echo "$SERVER_HOST_KEY_FILE" >&6; }
30869 { $as_echo "$as_me:$LINENO: checking client host principle" >&5
30870 $as_echo_n "checking client host principle... " >&6; }
30872 # Check whether --with-client-principal was given.
30873 if test "${with_client_principal+set}" = set; then
30874 withval=$with_client_principal;
30876 "" | y | ye | yes | n | no)
30877 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
30878 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
30879 { (exit 1); exit 1; }; }
30881 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
30885 : ${CLIENT_HOST_PRINCIPAL="rcmd"}
30889 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
30890 $as_echo "$CLIENT_HOST_PRINCIPAL" >&6; }
30892 { $as_echo "$as_me:$LINENO: checking client host instance" >&5
30893 $as_echo_n "checking client host instance... " >&6; }
30895 # Check whether --with-client-instance was given.
30896 if test "${with_client_instance+set}" = set; then
30897 withval=$with_client_instance;
30899 "" | y | ye | yes | n | no)
30900 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
30901 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
30902 { (exit 1); exit 1; }; }
30904 *) CLIENT_HOST_INSTANCE="$withval" ;;
30908 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
30912 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
30913 $as_echo "$CLIENT_HOST_INSTANCE" >&6; }
30915 { $as_echo "$as_me:$LINENO: checking client host key file" >&5
30916 $as_echo_n "checking client host key file... " >&6; }
30918 # Check whether --with-client-keyfile was given.
30919 if test "${with_client_keyfile+set}" = set; then
30920 withval=$with_client_keyfile;
30922 "" | y | ye | yes | n | no)
30923 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
30924 $as_echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
30925 { (exit 1); exit 1; }; }
30927 *) CLIENT_HOST_KEY_FILE="$withval" ;;
30931 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
30935 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
30936 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
30938 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
30940 { $as_echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
30941 $as_echo "$CLIENT_HOST_KEY_FILE" >&6; }
30943 { $as_echo "$as_me:$LINENO: checking ticket lifetime" >&5
30944 $as_echo_n "checking ticket lifetime... " >&6; }
30946 # Check whether --with-ticket-lifetime was given.
30947 if test "${with_ticket_lifetime+set}" = set; then
30948 withval=$with_ticket_lifetime;
30950 "" | y | ye | yes | n | no)
30951 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
30952 $as_echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
30953 { (exit 1); exit 1; }; }
30955 *) TICKET_LIFETIME="$withval" ;;
30959 : ${TICKET_LIFETIME=128}
30963 { $as_echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
30964 $as_echo "$TICKET_LIFETIME" >&6; }
30967 if test "x${KRB4_SECURITY}" = "xyes"; then
30968 { $as_echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
30969 $as_echo_n "checking for Kerberos and Amanda kerberos4 bits... " >&6; }
30971 for dir in $KRB4_SPOTS; do
30972 if test \( -f ${dir}/lib/libkrb.a -o -f ${dir}/lib/libkrb.so \) -a \( -f ${dir}/lib/libdes.a -o -f ${dir}/lib/libdes.so \) ; then
30974 # This is the original Kerberos 4.
30976 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
30977 $as_echo "found in $dir" >&6; }
30981 # This handles BSD/OS.
30983 if test -d $dir/include/kerberosIV ; then
30984 CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
30987 CPPFLAGS="$CPPFLAGS -I$dir/include"
30990 LDFLAGS="$LDFLAGS -L$dir/lib"
30992 LIBS="-lkrb -ldes $LIBS"
30994 if test -f ${dir}/lib/libcom_err.a; then
30995 LIBS="-lcom_err $LIBS"
30999 elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
31000 test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
31001 test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
31003 # This is Kerberos 5 with Kerberos 4 back-support.
31005 { $as_echo "$as_me:$LINENO: result: found in $dir" >&5
31006 $as_echo "found in $dir" >&6; }
31008 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
31010 LDFLAGS="$LDFLAGS -L$dir/lib"
31012 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
31013 test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
31014 LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
31017 LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
31024 if test "x$found" = "xno" ; then
31025 { $as_echo "$as_me:$LINENO: result: no libraries found" >&5
31026 $as_echo "no libraries found" >&6; }
31028 { $as_echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
31029 $as_echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
31032 cat <<AAW_EOF >>config.warnings
31033 No Kerberos IV libraries were found on your system; disabling krb4-security
31040 cat >>confdefs.h <<\_ACEOF
31041 #define KRB4_SECURITY 1
31045 cat >>confdefs.h <<_ACEOF
31046 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
31050 cat >>confdefs.h <<_ACEOF
31051 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
31055 cat >>confdefs.h <<_ACEOF
31056 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
31060 cat >>confdefs.h <<_ACEOF
31061 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
31065 cat >>confdefs.h <<_ACEOF
31066 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
31070 cat >>confdefs.h <<_ACEOF
31071 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
31075 cat >>confdefs.h <<_ACEOF
31076 #define TICKET_LIFETIME $TICKET_LIFETIME
31081 if test x"$KRB4_SECURITY" = x"yes"; then
31082 WANT_KRB4_SECURITY_TRUE=
31083 WANT_KRB4_SECURITY_FALSE='#'
31085 WANT_KRB4_SECURITY_TRUE='#'
31086 WANT_KRB4_SECURITY_FALSE=
31101 # Specify --with-krb5-security if Kerberos software is in somewhere
31102 # other than the listed KRB5_SPOTS. We only compile kerberos support in
31103 # if the right files are there.
31106 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
31109 # Check whether --with-krb5-security was given.
31110 if test "${with_krb5_security+set}" = set; then
31111 withval=$with_krb5_security;
31113 n | no) KRB5_SECURITY=no ;;
31114 y | ye | yes) KRB5_SECURITY=yes ;;
31115 *) KRB5_SPOTS="$KRB5_SECURITY"
31124 if test "x$KRB5_SECURITY" = "xyes"; then
31125 # if found, force the static versions of these libs (.a) by linking directly
31126 # with the .a files. I don't know how to get -R dependancies checked
31127 # in autoconf at this time. -kashmir
31128 { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
31129 $as_echo_n "checking for Kerberos V libraries... " >&6; }
31131 for dir in $KRB5_SPOTS; do
31132 for lib in lib lib64; do
31133 k5libdir=${dir}/${lib}
31134 if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
31135 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
31136 K5CRYPTO=-lk5crypto
31137 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
31142 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
31143 K5SUPPORT=-lkrb5support
31147 KRB5_DIR_FOUND=$dir
31148 KRB5_LIBDIR_FOUND=$k5libdir
31149 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
31152 elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
31153 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
31155 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
31162 if test "$KRB5_DIR_FOUND"; then
31163 { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
31164 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
31166 # some OS's, such as NetBSD, stick krb5 includes out of the way...
31167 # should probably just use autoconf to look for various include
31168 # options and set them, but don't quite want to do that until I've
31169 # dug into it a bit more.
31171 if test -d "$KRB5_DIR_FOUND/krb5" ; then
31172 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
31175 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
31179 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
31180 $as_echo_n "checking for main in -lkrb5support... " >&6; }
31181 if test "${ac_cv_lib_krb5support_main+set}" = set; then
31182 $as_echo_n "(cached) " >&6
31184 ac_check_lib_save_LIBS=$LIBS
31185 LIBS="-lkrb5support $LIBS"
31186 cat >conftest.$ac_ext <<_ACEOF
31189 cat confdefs.h >>conftest.$ac_ext
31190 cat >>conftest.$ac_ext <<_ACEOF
31191 /* end confdefs.h. */
31202 rm -f conftest.$ac_objext conftest$ac_exeext
31203 if { (ac_try="$ac_link"
31204 case "(($ac_try" in
31205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31206 *) ac_try_echo=$ac_try;;
31208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31209 $as_echo "$ac_try_echo") >&5
31210 (eval "$ac_link") 2>conftest.er1
31212 grep -v '^ *+' conftest.er1 >conftest.err
31214 cat conftest.err >&5
31215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } && {
31217 test -z "$ac_c_werror_flag" ||
31218 test ! -s conftest.err
31219 } && test -s conftest$ac_exeext && {
31220 test "$cross_compiling" = yes ||
31221 $as_test_x conftest$ac_exeext
31223 ac_cv_lib_krb5support_main=yes
31225 $as_echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31228 ac_cv_lib_krb5support_main=no
31231 rm -rf conftest.dSYM
31232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31233 conftest$ac_exeext conftest.$ac_ext
31234 LIBS=$ac_check_lib_save_LIBS
31236 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
31237 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
31238 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
31239 cat >>confdefs.h <<_ACEOF
31240 #define HAVE_LIBKRB5SUPPORT 1
31243 LIBS="-lkrb5support $LIBS"
31247 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
31251 cat >>confdefs.h <<\_ACEOF
31252 #define KRB5_SECURITY 1
31256 { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
31257 $as_echo "no krb5 system libraries found" >&6; }
31258 { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
31259 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
31260 { (exit 1); exit 1; }; }
31265 if test x"$KRB5_SECURITY" = x"yes"; then
31266 WANT_KRB5_SECURITY_TRUE=
31267 WANT_KRB5_SECURITY_FALSE='#'
31269 WANT_KRB5_SECURITY_TRUE='#'
31270 WANT_KRB5_SECURITY_FALSE=
31282 for ac_prog in xfsdump
31284 # Extract the first word of "$ac_prog", so it can be a program name with args.
31285 set dummy $ac_prog; ac_word=$2
31286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31287 $as_echo_n "checking for $ac_word... " >&6; }
31288 if test "${ac_cv_path_XFSDUMP+set}" = set; then
31289 $as_echo_n "(cached) " >&6
31293 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
31296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31297 for as_dir in $SYSLOCPATH
31300 test -z "$as_dir" && as_dir=.
31301 for ac_exec_ext in '' $ac_executable_extensions; do
31302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31303 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
31304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31314 XFSDUMP=$ac_cv_path_XFSDUMP
31315 if test -n "$XFSDUMP"; then
31316 { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
31317 $as_echo "$XFSDUMP" >&6; }
31319 { $as_echo "$as_me:$LINENO: result: no" >&5
31320 $as_echo "no" >&6; }
31324 test -n "$XFSDUMP" && break
31327 for ac_prog in xfsrestore
31329 # Extract the first word of "$ac_prog", so it can be a program name with args.
31330 set dummy $ac_prog; ac_word=$2
31331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31332 $as_echo_n "checking for $ac_word... " >&6; }
31333 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
31334 $as_echo_n "(cached) " >&6
31336 case $XFSRESTORE in
31338 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
31341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31342 for as_dir in $SYSLOCPATH
31345 test -z "$as_dir" && as_dir=.
31346 for ac_exec_ext in '' $ac_executable_extensions; do
31347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31348 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
31349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31359 XFSRESTORE=$ac_cv_path_XFSRESTORE
31360 if test -n "$XFSRESTORE"; then
31361 { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
31362 $as_echo "$XFSRESTORE" >&6; }
31364 { $as_echo "$as_me:$LINENO: result: no" >&5
31365 $as_echo "no" >&6; }
31369 test -n "$XFSRESTORE" && break
31372 if test "$XFSDUMP" -a "$XFSRESTORE"; then
31374 cat >>confdefs.h <<_ACEOF
31375 #define XFSDUMP "$XFSDUMP"
31379 cat >>confdefs.h <<_ACEOF
31380 #define XFSRESTORE "$XFSRESTORE"
31384 { $as_echo "$as_me:$LINENO: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&5
31385 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h" >&2;}
31388 cat <<AAW_EOF >>config.warnings
31389 xfsdump causes the setuid-root rundump program to be enabled. To disable it, just #undef XFSDUMP in config/config.h
31398 # Extract the first word of "vxdump", so it can be a program name with args.
31399 set dummy vxdump; ac_word=$2
31400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31401 $as_echo_n "checking for $ac_word... " >&6; }
31402 if test "${ac_cv_path_VXDUMP+set}" = set; then
31403 $as_echo_n "(cached) " >&6
31407 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
31410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31411 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31412 for as_dir in $as_dummy
31415 test -z "$as_dir" && as_dir=.
31416 for ac_exec_ext in '' $ac_executable_extensions; do
31417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31418 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
31419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31429 VXDUMP=$ac_cv_path_VXDUMP
31430 if test -n "$VXDUMP"; then
31431 { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
31432 $as_echo "$VXDUMP" >&6; }
31434 { $as_echo "$as_me:$LINENO: result: no" >&5
31435 $as_echo "no" >&6; }
31439 # Extract the first word of "vxrestore", so it can be a program name with args.
31440 set dummy vxrestore; ac_word=$2
31441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31442 $as_echo_n "checking for $ac_word... " >&6; }
31443 if test "${ac_cv_path_VXRESTORE+set}" = set; then
31444 $as_echo_n "(cached) " >&6
31448 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
31451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31452 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31453 for as_dir in $as_dummy
31456 test -z "$as_dir" && as_dir=.
31457 for ac_exec_ext in '' $ac_executable_extensions; do
31458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31459 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
31460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31470 VXRESTORE=$ac_cv_path_VXRESTORE
31471 if test -n "$VXRESTORE"; then
31472 { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
31473 $as_echo "$VXRESTORE" >&6; }
31475 { $as_echo "$as_me:$LINENO: result: no" >&5
31476 $as_echo "no" >&6; }
31480 if test "$VXDUMP" -a "$VXRESTORE"; then
31482 cat >>confdefs.h <<_ACEOF
31483 #define VXDUMP "$VXDUMP"
31487 cat >>confdefs.h <<_ACEOF
31488 #define VXRESTORE "$VXRESTORE"
31496 # Extract the first word of "vdump", so it can be a program name with args.
31497 set dummy vdump; ac_word=$2
31498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31499 $as_echo_n "checking for $ac_word... " >&6; }
31500 if test "${ac_cv_path_VDUMP+set}" = set; then
31501 $as_echo_n "(cached) " >&6
31505 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
31508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31509 for as_dir in $SYSLOCPATH
31512 test -z "$as_dir" && as_dir=.
31513 for ac_exec_ext in '' $ac_executable_extensions; do
31514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31515 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
31516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31526 VDUMP=$ac_cv_path_VDUMP
31527 if test -n "$VDUMP"; then
31528 { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
31529 $as_echo "$VDUMP" >&6; }
31531 { $as_echo "$as_me:$LINENO: result: no" >&5
31532 $as_echo "no" >&6; }
31536 # Extract the first word of "vrestore", so it can be a program name with args.
31537 set dummy vrestore; ac_word=$2
31538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31539 $as_echo_n "checking for $ac_word... " >&6; }
31540 if test "${ac_cv_path_VRESTORE+set}" = set; then
31541 $as_echo_n "(cached) " >&6
31545 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
31548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31549 for as_dir in $SYSLOCPATH
31552 test -z "$as_dir" && as_dir=.
31553 for ac_exec_ext in '' $ac_executable_extensions; do
31554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31555 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
31556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31566 VRESTORE=$ac_cv_path_VRESTORE
31567 if test -n "$VRESTORE"; then
31568 { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
31569 $as_echo "$VRESTORE" >&6; }
31571 { $as_echo "$as_me:$LINENO: result: no" >&5
31572 $as_echo "no" >&6; }
31576 if test "$VDUMP" -a "$VRESTORE"; then
31578 cat >>confdefs.h <<_ACEOF
31579 #define VDUMP "$VDUMP"
31583 cat >>confdefs.h <<_ACEOF
31584 #define VRESTORE "$VRESTORE"
31591 # Extract the first word of "grep", so it can be a program name with args.
31592 set dummy grep; ac_word=$2
31593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31594 $as_echo_n "checking for $ac_word... " >&6; }
31595 if test "${ac_cv_path_GREP+set}" = set; then
31596 $as_echo_n "(cached) " >&6
31600 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
31603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31604 for as_dir in $LOCSYSPATH
31607 test -z "$as_dir" && as_dir=.
31608 for ac_exec_ext in '' $ac_executable_extensions; do
31609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31610 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
31611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31618 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
31622 GREP=$ac_cv_path_GREP
31623 if test -n "$GREP"; then
31624 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
31625 $as_echo "$GREP" >&6; }
31627 { $as_echo "$as_me:$LINENO: result: no" >&5
31628 $as_echo "no" >&6; }
31633 cat >>confdefs.h <<_ACEOF
31634 #define GREP "$GREP"
31642 # Set the order of dump programs to look for. Finding the proper file
31643 # system dumping program is problematic. Some systems, notably HP-UX
31644 # and AIX, have both the backup and dump programs. HP-UX can't use the
31645 # the backup program while AIX systems can't use the dump program. So
31646 # a variable is set up here to specify the order of dump programs to
31647 # search for on the system.
31648 DUMP_PROGRAMS="ufsdump dump backup"
31653 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
31657 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
31660 cat >>confdefs.h <<\_ACEOF
31661 #define AIX_BACKUP 1
31670 if test -n "$DUMP_RETURNS_1"; then
31672 cat >>confdefs.h <<\_ACEOF
31673 #define DUMP_RETURNS_1 1
31678 for ac_prog in $DUMP_PROGRAMS
31680 # Extract the first word of "$ac_prog", so it can be a program name with args.
31681 set dummy $ac_prog; ac_word=$2
31682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31683 $as_echo_n "checking for $ac_word... " >&6; }
31684 if test "${ac_cv_path_DUMP+set}" = set; then
31685 $as_echo_n "(cached) " >&6
31689 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
31692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693 for as_dir in $SYSLOCPATH
31696 test -z "$as_dir" && as_dir=.
31697 for ac_exec_ext in '' $ac_executable_extensions; do
31698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31699 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
31700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31710 DUMP=$ac_cv_path_DUMP
31711 if test -n "$DUMP"; then
31712 { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
31713 $as_echo "$DUMP" >&6; }
31715 { $as_echo "$as_me:$LINENO: result: no" >&5
31716 $as_echo "no" >&6; }
31720 test -n "$DUMP" && break
31723 for ac_prog in ufsrestore restore
31725 # Extract the first word of "$ac_prog", so it can be a program name with args.
31726 set dummy $ac_prog; ac_word=$2
31727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31728 $as_echo_n "checking for $ac_word... " >&6; }
31729 if test "${ac_cv_path_RESTORE+set}" = set; then
31730 $as_echo_n "(cached) " >&6
31734 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
31737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31738 for as_dir in $SYSLOCPATH
31741 test -z "$as_dir" && as_dir=.
31742 for ac_exec_ext in '' $ac_executable_extensions; do
31743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31744 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
31745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31755 RESTORE=$ac_cv_path_RESTORE
31756 if test -n "$RESTORE"; then
31757 { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
31758 $as_echo "$RESTORE" >&6; }
31760 { $as_echo "$as_me:$LINENO: result: no" >&5
31761 $as_echo "no" >&6; }
31765 test -n "$RESTORE" && break
31769 # newer versions of GNU tar include a program named 'backup' which
31770 # does *not* implement the expected 'dump' interface. Detect that here
31771 # and pretend we never saw it.
31772 if test -n "$DUMP"; then
31773 if test "`basename $DUMP`" = "backup"; then
31774 backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
31775 if test $? -eq 0; then
31781 if test "$DUMP" -a "$RESTORE"; then
31783 cat >>confdefs.h <<_ACEOF
31784 #define DUMP "$DUMP"
31788 cat >>confdefs.h <<_ACEOF
31789 #define RESTORE "$RESTORE"
31793 # check for an estimate flag
31794 if test -x $DUMP; then
31795 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
31796 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
31797 if test "${amanda_cv_dump_estimate+set}" = set; then
31798 $as_echo_n "(cached) " >&6
31803 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
31806 | $GREP -v Label >conftest.d-E 2>&1'
31807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808 (eval $ac_try) 2>&5
31810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; }
31812 cat conftest.d-E >&5
31813 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
31816 | $GREP -v Label >conftest.d-S 2>&1'
31817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 (eval $ac_try) 2>&5
31820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; }
31822 cat conftest.d-S >&5
31823 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31826 | $GREP -v Label >conftest.d 2>&1'
31827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31828 (eval $ac_try) 2>&5
31830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); }; }
31833 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
31834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31835 (eval $ac_try) 2>&5
31837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
31839 amanda_cv_dump_estimate=E
31840 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; }; then
31846 amanda_cv_dump_estimate=S
31848 amanda_cv_dump_estimate=no
31850 rm -f conftest.d conftest.d-E conftest.d-S
31852 *) amanda_cv_dump_estimate=no
31857 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
31858 $as_echo "$amanda_cv_dump_estimate" >&6; }
31861 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
31862 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
31865 cat <<AAW_EOF >>config.warnings
31866 $DUMP is not executable, cannot run -E/-S test
31870 amanda_cv_dump_estimate=no
31872 if test "x$amanda_cv_dump_estimate" != xno; then
31874 cat >>confdefs.h <<_ACEOF
31875 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
31881 # Check whether --with-dump-honor-nodump was given.
31882 if test "${with_dump_honor_nodump+set}" = set; then
31883 withval=$with_dump_honor_nodump;
31884 if test -x $DUMP; then
31885 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
31886 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
31887 if test "${amanda_cv_honor_nodump+set}" = set; then
31888 $as_echo_n "(cached) " >&6
31893 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
31896 | $GREP -v Label >conftest.d-h 2>&1'
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; }
31902 cat conftest.d-h >&5
31903 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31906 | $GREP -v Label >conftest.d 2>&1'
31907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908 (eval $ac_try) 2>&5
31910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; }
31913 if { ac_try='diff conftest.d-h conftest.d 1>&2'
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
31919 amanda_cv_honor_nodump=yes
31921 amanda_cv_honor_nodump=no
31923 rm -f conftest.d conftest.d-h
31925 *) amanda_cv_honor_nodump=no
31930 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
31931 $as_echo "$amanda_cv_honor_nodump" >&6; }
31934 { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
31935 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
31938 cat <<AAW_EOF >>config.warnings
31939 $DUMP is not executable, cannot run -h test
31943 amanda_cv_honor_nodump=no
31945 if test "x$amanda_cv_honor_nodump" = xyes; then
31947 cat >>confdefs.h <<\_ACEOF
31948 #define HAVE_HONOR_NODUMP 1
31965 # Check whether --with-gnutar was given.
31966 if test "${with_gnutar+set}" = set; then
31967 withval=$with_gnutar;
31970 /*) GNUTAR="$withval";;
31973 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
31974 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
31975 { (exit 1); exit 1; }; };;
31983 if test "x$GNUTAR" = "xno"; then
31986 for gnutar_name in gtar gnutar tar; do
31987 for ac_prog in $gnutar_name
31989 # Extract the first word of "$ac_prog", so it can be a program name with args.
31990 set dummy $ac_prog; ac_word=$2
31991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31992 $as_echo_n "checking for $ac_word... " >&6; }
31993 if test "${ac_cv_path_GNUTAR+set}" = set; then
31994 $as_echo_n "(cached) " >&6
31998 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
32001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32002 for as_dir in $LOCSYSPATH
32005 test -z "$as_dir" && as_dir=.
32006 for ac_exec_ext in '' $ac_executable_extensions; do
32007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32008 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
32009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32019 GNUTAR=$ac_cv_path_GNUTAR
32020 if test -n "$GNUTAR"; then
32021 { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
32022 $as_echo "$GNUTAR" >&6; }
32024 { $as_echo "$as_me:$LINENO: result: no" >&5
32025 $as_echo "no" >&6; }
32029 test -n "$GNUTAR" && break
32032 if test -n "$GNUTAR"; then
32033 case "`\"$GNUTAR\" --version 2>&1`" in
32034 *GNU*tar* | *Free*paxutils* )
32035 # OK, it is GNU tar
32041 { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
32042 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
32045 cat <<AAW_EOF >>config.warnings
32046 $GNUTAR is not GNU tar, so it will not be used.
32050 # reset the cache for GNUTAR so AC_PATH_PROGS will search again
32052 unset ac_cv_path_GNUTAR
32059 if test "x$GNUTAR" != "x"; then
32062 cat >>confdefs.h <<_ACEOF
32063 #define GNUTAR "$GNUTAR"
32074 # Check whether --with-smbclient was given.
32075 if test "${with_smbclient+set}" = set; then
32076 withval=$with_smbclient;
32078 /*) SAMBA_CLIENT="$withval";;
32080 n|no) SAMBA_CLIENT=no ;;
32081 *) { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
32082 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
32083 { (exit 1); exit 1; }; };;
32091 # Check whether --with-samba-user was given.
32092 if test "${with_samba_user+set}" = set; then
32093 withval=$with_samba_user; { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
32094 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
32095 { (exit 1); exit 1; }; }
32100 if test "x$SAMBA_CLIENT" != "xno"; then
32101 # Extract the first word of "smbclient", so it can be a program name with args.
32102 set dummy smbclient; ac_word=$2
32103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32104 $as_echo_n "checking for $ac_word... " >&6; }
32105 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
32106 $as_echo_n "(cached) " >&6
32108 case $SAMBA_CLIENT in
32110 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
32113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 for as_dir in $LOCSYSPATH
32117 test -z "$as_dir" && as_dir=.
32118 for ac_exec_ext in '' $ac_executable_extensions; do
32119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32120 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
32121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32131 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
32132 if test -n "$SAMBA_CLIENT"; then
32133 { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
32134 $as_echo "$SAMBA_CLIENT" >&6; }
32136 { $as_echo "$as_me:$LINENO: result: no" >&5
32137 $as_echo "no" >&6; }
32142 if test ! -z "$SAMBA_CLIENT"; then
32143 case "`\"$SAMBA_CLIENT\" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
32147 *"Connection to nosuchhost.amanda.org failed"*)
32152 { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
32153 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
32156 cat <<AAW_EOF >>config.warnings
32157 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
32164 if test -n "$SAMBA_CLIENT"; then
32166 cat >>confdefs.h <<_ACEOF
32167 #define SAMBA_CLIENT "$SAMBA_CLIENT"
32171 cat >>confdefs.h <<_ACEOF
32172 #define SAMBA_VERSION $smbversion
32179 if test -n "$SAMBA_CLIENT"; then
32181 WANT_SAMBA_FALSE='#'
32183 WANT_SAMBA_TRUE='#'
32191 # some systems require rundump unconditionally
32193 *-ultrix*) USE_RUNDUMP=yes ;;
32194 *-dg-*) USE_RUNDUMP=yes ;;
32198 # Check whether --with-rundump was given.
32199 if test "${with_rundump+set}" = set; then
32200 withval=$with_rundump;
32202 n | no) USE_RUNDUMP=no ;;
32203 y | ye | yes) USE_RUNDUMP=yes ;;
32204 *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
32205 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
32206 { (exit 1); exit 1; }; };;
32212 if test x"$USE_RUNDUMP" = x"yes"; then
32215 cat >>confdefs.h <<\_ACEOF
32216 #define USE_RUNDUMP 1
32227 # Look for other programs Amanda will use
32231 # Extract the first word of "grep", so it can be a program name with args.
32232 set dummy grep; ac_word=$2
32233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32234 $as_echo_n "checking for $ac_word... " >&6; }
32235 if test "${ac_cv_path_GREP+set}" = set; then
32236 $as_echo_n "(cached) " >&6
32240 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
32243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32244 for as_dir in $LOCSYSPATH
32247 test -z "$as_dir" && as_dir=.
32248 for ac_exec_ext in '' $ac_executable_extensions; do
32249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32250 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
32251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32258 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
32262 GREP=$ac_cv_path_GREP
32263 if test -n "$GREP"; then
32264 { $as_echo "$as_me:$LINENO: result: $GREP" >&5
32265 $as_echo "$GREP" >&6; }
32267 { $as_echo "$as_me:$LINENO: result: no" >&5
32268 $as_echo "no" >&6; }
32273 cat >>confdefs.h <<_ACEOF
32274 #define GREP "$GREP"
32278 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
32279 $as_echo_n "checking for egrep... " >&6; }
32280 if test "${ac_cv_path_EGREP+set}" = set; then
32281 $as_echo_n "(cached) " >&6
32283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32284 then ac_cv_path_EGREP="$GREP -E"
32286 if test -z "$EGREP"; then
32287 ac_path_EGREP_found=false
32288 # Loop through the user's path and test for each of PROGNAME-LIST
32289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32293 test -z "$as_dir" && as_dir=.
32294 for ac_prog in egrep; do
32295 for ac_exec_ext in '' $ac_executable_extensions; do
32296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
32298 # Check for GNU ac_path_EGREP and select it if it is found.
32299 # Check for GNU $ac_path_EGREP
32300 case `"$ac_path_EGREP" --version 2>&1` in
32302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32305 $as_echo_n 0123456789 >"conftest.in"
32308 cat "conftest.in" "conftest.in" >"conftest.tmp"
32309 mv "conftest.tmp" "conftest.in"
32310 cp "conftest.in" "conftest.nl"
32311 $as_echo 'EGREP' >> "conftest.nl"
32312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32314 ac_count=`expr $ac_count + 1`
32315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32316 # Best one so far, save it but keep looking for a better one
32317 ac_cv_path_EGREP="$ac_path_EGREP"
32318 ac_path_EGREP_max=$ac_count
32320 # 10*(2^10) chars as input seems more than enough
32321 test $ac_count -gt 10 && break
32323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32326 $ac_path_EGREP_found && break 3
32331 if test -z "$ac_cv_path_EGREP"; then
32332 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
32333 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32334 { (exit 1); exit 1; }; }
32337 ac_cv_path_EGREP=$EGREP
32342 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
32343 $as_echo "$ac_cv_path_EGREP" >&6; }
32344 EGREP="$ac_cv_path_EGREP"
32351 # Extract the first word of "lint", so it can be a program name with args.
32352 set dummy lint; ac_word=$2
32353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32354 $as_echo_n "checking for $ac_word... " >&6; }
32355 if test "${ac_cv_path_AMLINT+set}" = set; then
32356 $as_echo_n "(cached) " >&6
32360 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32364 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
32365 for as_dir in $as_dummy
32368 test -z "$as_dir" && as_dir=.
32369 for ac_exec_ext in '' $ac_executable_extensions; do
32370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32371 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32382 AMLINT=$ac_cv_path_AMLINT
32383 if test -n "$AMLINT"; then
32384 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32385 $as_echo "$AMLINT" >&6; }
32387 { $as_echo "$as_me:$LINENO: result: no" >&5
32388 $as_echo "no" >&6; }
32392 if test ! -z "$AMLINT"; then
32393 $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
32394 if test $? -eq 0; then
32395 AMLINTFLAGS="-n -s -u -m -x"
32396 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
32397 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
32398 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
32399 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
32400 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
32401 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
32402 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
32403 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
32404 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
32405 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
32406 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
32407 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
32408 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
32409 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
32410 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
32411 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
32412 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
32413 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
32414 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
32415 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
32416 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
32417 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
32418 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
32419 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
32420 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
32421 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
32422 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
32423 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
32424 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
32425 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
32426 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
32427 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
32428 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
32429 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
32430 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
32431 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
32432 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
32433 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
32434 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
32435 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
32436 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
32437 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
32438 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
32439 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
32440 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
32441 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
32442 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
32443 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
32444 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
32445 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
32450 # Extract the first word of "splint", so it can be a program name with args.
32451 set dummy splint; ac_word=$2
32452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32453 $as_echo_n "checking for $ac_word... " >&6; }
32454 if test "${ac_cv_path_AMLINT+set}" = set; then
32455 $as_echo_n "(cached) " >&6
32459 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32463 for as_dir in $SYSLOCPATH
32466 test -z "$as_dir" && as_dir=.
32467 for ac_exec_ext in '' $ac_executable_extensions; do
32468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32469 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32480 AMLINT=$ac_cv_path_AMLINT
32481 if test -n "$AMLINT"; then
32482 { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
32483 $as_echo "$AMLINT" >&6; }
32485 { $as_echo "$as_me:$LINENO: result: no" >&5
32486 $as_echo "no" >&6; }
32490 if test ! -z "$AMLINT"; then
32492 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
32494 AMLINT='echo "Error: LINT is not installed" ; false'
32500 for ac_prog in flex lex
32502 # Extract the first word of "$ac_prog", so it can be a program name with args.
32503 set dummy $ac_prog; ac_word=$2
32504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32505 $as_echo_n "checking for $ac_word... " >&6; }
32506 if test "${ac_cv_prog_LEX+set}" = set; then
32507 $as_echo_n "(cached) " >&6
32509 if test -n "$LEX"; then
32510 ac_cv_prog_LEX="$LEX" # Let the user override the test.
32512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32513 for as_dir in $PATH
32516 test -z "$as_dir" && as_dir=.
32517 for ac_exec_ext in '' $ac_executable_extensions; do
32518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32519 ac_cv_prog_LEX="$ac_prog"
32520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32529 LEX=$ac_cv_prog_LEX
32530 if test -n "$LEX"; then
32531 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
32532 $as_echo "$LEX" >&6; }
32534 { $as_echo "$as_me:$LINENO: result: no" >&5
32535 $as_echo "no" >&6; }
32539 test -n "$LEX" && break
32541 test -n "$LEX" || LEX=":"
32543 if test "x$LEX" != "x:"; then
32544 cat >conftest.l <<_ACEOF
32550 e { yyless (input () != 0); }
32551 f { unput (yytext[0]); }
32552 . { BEGIN INITIAL; }
32554 #ifdef YYTEXT_POINTER
32555 extern char *yytext;
32560 return ! yylex () + ! yywrap ();
32563 { (ac_try="$LEX conftest.l"
32564 case "(($ac_try" in
32565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32566 *) ac_try_echo=$ac_try;;
32568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32569 $as_echo "$ac_try_echo") >&5
32570 (eval "$LEX conftest.l") 2>&5
32572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }
32574 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
32575 $as_echo_n "checking lex output file root... " >&6; }
32576 if test "${ac_cv_prog_lex_root+set}" = set; then
32577 $as_echo_n "(cached) " >&6
32580 if test -f lex.yy.c; then
32581 ac_cv_prog_lex_root=lex.yy
32582 elif test -f lexyy.c; then
32583 ac_cv_prog_lex_root=lexyy
32585 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
32586 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
32587 { (exit 1); exit 1; }; }
32590 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
32591 $as_echo "$ac_cv_prog_lex_root" >&6; }
32592 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
32594 if test -z "${LEXLIB+set}"; then
32595 { $as_echo "$as_me:$LINENO: checking lex library" >&5
32596 $as_echo_n "checking lex library... " >&6; }
32597 if test "${ac_cv_lib_lex+set}" = set; then
32598 $as_echo_n "(cached) " >&6
32602 ac_cv_lib_lex='none needed'
32603 for ac_lib in '' -lfl -ll; do
32604 LIBS="$ac_lib $ac_save_LIBS"
32605 cat >conftest.$ac_ext <<_ACEOF
32606 `cat $LEX_OUTPUT_ROOT.c`
32608 rm -f conftest.$ac_objext conftest$ac_exeext
32609 if { (ac_try="$ac_link"
32610 case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32615 $as_echo "$ac_try_echo") >&5
32616 (eval "$ac_link") 2>conftest.er1
32618 grep -v '^ *+' conftest.er1 >conftest.err
32620 cat conftest.err >&5
32621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } && {
32623 test -z "$ac_c_werror_flag" ||
32624 test ! -s conftest.err
32625 } && test -s conftest$ac_exeext && {
32626 test "$cross_compiling" = yes ||
32627 $as_test_x conftest$ac_exeext
32629 ac_cv_lib_lex=$ac_lib
32631 $as_echo "$as_me: failed program was:" >&5
32632 sed 's/^/| /' conftest.$ac_ext >&5
32637 rm -rf conftest.dSYM
32638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32639 conftest$ac_exeext conftest.$ac_ext
32640 test "$ac_cv_lib_lex" != 'none needed' && break
32645 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
32646 $as_echo "$ac_cv_lib_lex" >&6; }
32647 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
32651 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
32652 $as_echo_n "checking whether yytext is a pointer... " >&6; }
32653 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
32654 $as_echo_n "(cached) " >&6
32656 # POSIX says lex can declare yytext either as a pointer or an array; the
32657 # default is implementation-dependent. Figure out which it is, since
32658 # not all implementations provide the %pointer and %array declarations.
32659 ac_cv_prog_lex_yytext_pointer=no
32661 LIBS="$LEXLIB $ac_save_LIBS"
32662 cat >conftest.$ac_ext <<_ACEOF
32663 #define YYTEXT_POINTER 1
32664 `cat $LEX_OUTPUT_ROOT.c`
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (ac_try="$ac_link"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32673 $as_echo "$ac_try_echo") >&5
32674 (eval "$ac_link") 2>conftest.er1
32676 grep -v '^ *+' conftest.er1 >conftest.err
32678 cat conftest.err >&5
32679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } && {
32681 test -z "$ac_c_werror_flag" ||
32682 test ! -s conftest.err
32683 } && test -s conftest$ac_exeext && {
32684 test "$cross_compiling" = yes ||
32685 $as_test_x conftest$ac_exeext
32687 ac_cv_prog_lex_yytext_pointer=yes
32689 $as_echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32695 rm -rf conftest.dSYM
32696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32697 conftest$ac_exeext conftest.$ac_ext
32701 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
32702 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
32703 if test $ac_cv_prog_lex_yytext_pointer = yes; then
32705 cat >>confdefs.h <<\_ACEOF
32706 #define YYTEXT_POINTER 1
32710 rm -f conftest.l $LEX_OUTPUT_ROOT.c
32713 if test "$LEX" = :; then
32714 LEX=${am_missing_run}flex
32718 # Extract the first word of "ar", so it can be a program name with args.
32719 set dummy ar; ac_word=$2
32720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32721 $as_echo_n "checking for $ac_word... " >&6; }
32722 if test "${ac_cv_path_AR+set}" = set; then
32723 $as_echo_n "(cached) " >&6
32727 ac_cv_path_AR="$AR" # Let the user override the test with a path.
32730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731 for as_dir in $LOCSYSPATH
32734 test -z "$as_dir" && as_dir=.
32735 for ac_exec_ext in '' $ac_executable_extensions; do
32736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32737 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32749 if test -n "$AR"; then
32750 { $as_echo "$as_me:$LINENO: result: $AR" >&5
32751 $as_echo "$AR" >&6; }
32753 { $as_echo "$as_me:$LINENO: result: no" >&5
32754 $as_echo "no" >&6; }
32761 # Extract the first word of "gettext", so it can be a program name with args.
32762 set dummy gettext; ac_word=$2
32763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32764 $as_echo_n "checking for $ac_word... " >&6; }
32765 if test "${ac_cv_path_GETTEXT+set}" = set; then
32766 $as_echo_n "(cached) " >&6
32770 ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
32773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32774 for as_dir in $LOCSYSPATH
32777 test -z "$as_dir" && as_dir=.
32778 for ac_exec_ext in '' $ac_executable_extensions; do
32779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32780 ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
32781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32791 GETTEXT=$ac_cv_path_GETTEXT
32792 if test -n "$GETTEXT"; then
32793 { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
32794 $as_echo "$GETTEXT" >&6; }
32796 { $as_echo "$as_me:$LINENO: result: no" >&5
32797 $as_echo "no" >&6; }
32802 for ac_prog in gawk mawk nawk awk
32804 # Extract the first word of "$ac_prog", so it can be a program name with args.
32805 set dummy $ac_prog; ac_word=$2
32806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32807 $as_echo_n "checking for $ac_word... " >&6; }
32808 if test "${ac_cv_prog_AWK+set}" = set; then
32809 $as_echo_n "(cached) " >&6
32811 if test -n "$AWK"; then
32812 ac_cv_prog_AWK="$AWK" # Let the user override the test.
32814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32815 for as_dir in $PATH
32818 test -z "$as_dir" && as_dir=.
32819 for ac_exec_ext in '' $ac_executable_extensions; do
32820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32821 ac_cv_prog_AWK="$ac_prog"
32822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32831 AWK=$ac_cv_prog_AWK
32832 if test -n "$AWK"; then
32833 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
32834 $as_echo "$AWK" >&6; }
32836 { $as_echo "$as_me:$LINENO: result: no" >&5
32837 $as_echo "no" >&6; }
32841 test -n "$AWK" && break
32844 for ac_prog in 'bison -y' byacc
32846 # Extract the first word of "$ac_prog", so it can be a program name with args.
32847 set dummy $ac_prog; ac_word=$2
32848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32849 $as_echo_n "checking for $ac_word... " >&6; }
32850 if test "${ac_cv_prog_YACC+set}" = set; then
32851 $as_echo_n "(cached) " >&6
32853 if test -n "$YACC"; then
32854 ac_cv_prog_YACC="$YACC" # Let the user override the test.
32856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32857 for as_dir in $PATH
32860 test -z "$as_dir" && as_dir=.
32861 for ac_exec_ext in '' $ac_executable_extensions; do
32862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32863 ac_cv_prog_YACC="$ac_prog"
32864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32873 YACC=$ac_cv_prog_YACC
32874 if test -n "$YACC"; then
32875 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
32876 $as_echo "$YACC" >&6; }
32878 { $as_echo "$as_me:$LINENO: result: no" >&5
32879 $as_echo "no" >&6; }
32883 test -n "$YACC" && break
32885 test -n "$YACC" || YACC="yacc"
32887 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
32888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
32889 if test -z "$MKDIR_P"; then
32890 if test "${ac_cv_path_mkdir+set}" = set; then
32891 $as_echo_n "(cached) " >&6
32893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
32897 test -z "$as_dir" && as_dir=.
32898 for ac_prog in mkdir gmkdir; do
32899 for ac_exec_ext in '' $ac_executable_extensions; do
32900 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
32901 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
32902 'mkdir (GNU coreutils) '* | \
32903 'mkdir (coreutils) '* | \
32904 'mkdir (fileutils) '4.1*)
32905 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
32915 if test "${ac_cv_path_mkdir+set}" = set; then
32916 MKDIR_P="$ac_cv_path_mkdir -p"
32918 # As a last resort, use the slow shell script. Don't cache a
32919 # value for MKDIR_P within a source directory, because that will
32920 # break other packages using the cache if that directory is
32921 # removed, or if the value is a relative name.
32922 test -d ./--version && rmdir ./--version
32923 MKDIR_P="$ac_install_sh -d"
32926 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32927 $as_echo "$MKDIR_P" >&6; }
32931 # Extract the first word of "dd", so it can be a program name with args.
32932 set dummy dd; ac_word=$2
32933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32934 $as_echo_n "checking for $ac_word... " >&6; }
32935 if test "${ac_cv_path_DD+set}" = set; then
32936 $as_echo_n "(cached) " >&6
32940 ac_cv_path_DD="$DD" # Let the user override the test with a path.
32943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32944 for as_dir in $LOCSYSPATH
32947 test -z "$as_dir" && as_dir=.
32948 for ac_exec_ext in '' $ac_executable_extensions; do
32949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32950 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
32951 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32962 if test -n "$DD"; then
32963 { $as_echo "$as_me:$LINENO: result: $DD" >&5
32964 $as_echo "$DD" >&6; }
32966 { $as_echo "$as_me:$LINENO: result: no" >&5
32967 $as_echo "no" >&6; }
32974 # Extract the first word of "bash", so it can be a program name with args.
32975 set dummy bash; ac_word=$2
32976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32977 $as_echo_n "checking for $ac_word... " >&6; }
32978 if test "${ac_cv_path_BASH+set}" = set; then
32979 $as_echo_n "(cached) " >&6
32983 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
32986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32987 for as_dir in $SYSPATH
32990 test -z "$as_dir" && as_dir=.
32991 for ac_exec_ext in '' $ac_executable_extensions; do
32992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32993 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
32994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33004 BASH=$ac_cv_path_BASH
33005 if test -n "$BASH"; then
33006 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
33007 $as_echo "$BASH" >&6; }
33009 { $as_echo "$as_me:$LINENO: result: no" >&5
33010 $as_echo "no" >&6; }
33019 # Extract the first word of "sort", so it can be a program name with args.
33020 set dummy sort; ac_word=$2
33021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33022 $as_echo_n "checking for $ac_word... " >&6; }
33023 if test "${ac_cv_path_SORT+set}" = set; then
33024 $as_echo_n "(cached) " >&6
33028 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
33031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032 for as_dir in $LOCSYSPATH
33035 test -z "$as_dir" && as_dir=.
33036 for ac_exec_ext in '' $ac_executable_extensions; do
33037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33038 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
33039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33046 test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
33050 SORT=$ac_cv_path_SORT
33051 if test -n "$SORT"; then
33052 { $as_echo "$as_me:$LINENO: result: $SORT" >&5
33053 $as_echo "$SORT" >&6; }
33055 { $as_echo "$as_me:$LINENO: result: no" >&5
33056 $as_echo "no" >&6; }
33061 # sort is only needed in the server build
33062 if test x"$SORT" = x"NONE" && $WANT_SERVER; then
33063 { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
33064 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
33065 { (exit 1); exit 1; }; }
33069 cat >>confdefs.h <<_ACEOF
33070 #define SORT_PATH "$SORT"
33076 for ac_prog in Mail mailx mail
33078 # Extract the first word of "$ac_prog", so it can be a program name with args.
33079 set dummy $ac_prog; ac_word=$2
33080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33081 $as_echo_n "checking for $ac_word... " >&6; }
33082 if test "${ac_cv_path_MAILER+set}" = set; then
33083 $as_echo_n "(cached) " >&6
33087 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091 for as_dir in $PATH
33094 test -z "$as_dir" && as_dir=.
33095 for ac_exec_ext in '' $ac_executable_extensions; do
33096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33097 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
33098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33108 MAILER=$ac_cv_path_MAILER
33109 if test -n "$MAILER"; then
33110 { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
33111 $as_echo "$MAILER" >&6; }
33113 { $as_echo "$as_me:$LINENO: result: no" >&5
33114 $as_echo "no" >&6; }
33118 test -n "$MAILER" && break
33120 test -n "$MAILER" || MAILER="NONE"
33122 if test x"$MAILER" = x"NONE"; then
33124 { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
33125 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
33128 cat <<AAW_EOF >>config.warnings
33129 WARNING: Amanda cannot send mail reports without a mailer.
33135 DEFAULT_MAILER="$MAILER"
33138 cat >>confdefs.h <<_ACEOF
33139 #define DEFAULT_MAILER "$DEFAULT_MAILER"
33146 # Extract the first word of "mt", so it can be a program name with args.
33147 set dummy mt; ac_word=$2
33148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33149 $as_echo_n "checking for $ac_word... " >&6; }
33150 if test "${ac_cv_path_MT+set}" = set; then
33151 $as_echo_n "(cached) " >&6
33155 ac_cv_path_MT="$MT" # Let the user override the test with a path.
33158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33159 for as_dir in $LOCSYSPATH
33162 test -z "$as_dir" && as_dir=.
33163 for ac_exec_ext in '' $ac_executable_extensions; do
33164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33165 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
33166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33173 test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
33178 if test -n "$MT"; then
33179 { $as_echo "$as_me:$LINENO: result: $MT" >&5
33180 $as_echo "$MT" >&6; }
33182 { $as_echo "$as_me:$LINENO: result: no" >&5
33183 $as_echo "no" >&6; }
33189 *-hp-*) MT_FILE_FLAG="-t" ;;
33190 *) MT_FILE_FLAG="-f" ;;
33195 cat >>confdefs.h <<_ACEOF
33196 #define MT_FILE_FLAG "$MT_FILE_FLAG"
33203 for ac_prog in lpr lp
33205 # Extract the first word of "$ac_prog", so it can be a program name with args.
33206 set dummy $ac_prog; ac_word=$2
33207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33208 $as_echo_n "checking for $ac_word... " >&6; }
33209 if test "${ac_cv_path_PRINT+set}" = set; then
33210 $as_echo_n "(cached) " >&6
33214 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218 for as_dir in $PATH
33221 test -z "$as_dir" && as_dir=.
33222 for ac_exec_ext in '' $ac_executable_extensions; do
33223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33224 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
33225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33235 PRINT=$ac_cv_path_PRINT
33236 if test -n "$PRINT"; then
33237 { $as_echo "$as_me:$LINENO: result: $PRINT" >&5
33238 $as_echo "$PRINT" >&6; }
33240 { $as_echo "$as_me:$LINENO: result: no" >&5
33241 $as_echo "no" >&6; }
33245 test -n "$PRINT" && break
33248 if test ! -z "$PRINT"; then
33250 cat >>confdefs.h <<_ACEOF
33251 #define LPRCMD "$PRINT"
33255 { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
33256 $as_echo_n "checking which flag to use to select a printer... " >&6; }
33257 if test "${amanda_cv_printer_flag+set}" = set; then
33258 $as_echo_n "(cached) " >&6
33261 amanda_cv_printer_flag=$PRINTER_FLAG
33263 lpr|*/lpr) amanda_cv_printer_flag="-P";;
33264 lp|*/lp) amanda_cv_printer_flag="-d";;
33268 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
33269 $as_echo "$amanda_cv_printer_flag" >&6; }
33270 if test ! -z "$amanda_cv_printer_flag"; then
33272 cat >>confdefs.h <<_ACEOF
33273 #define LPRFLAG "$amanda_cv_printer_flag"
33278 { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
33279 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
33282 cat <<AAW_EOF >>config.warnings
33283 WARNING: amanda will always print to the default printer
33292 # Extract the first word of "pcat", so it can be a program name with args.
33293 set dummy pcat; ac_word=$2
33294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33295 $as_echo_n "checking for $ac_word... " >&6; }
33296 if test "${ac_cv_path_PCAT+set}" = set; then
33297 $as_echo_n "(cached) " >&6
33301 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
33304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33305 for as_dir in $LOCSYSPATH
33308 test -z "$as_dir" && as_dir=.
33309 for ac_exec_ext in '' $ac_executable_extensions; do
33310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33311 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
33312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33322 PCAT=$ac_cv_path_PCAT
33323 if test -n "$PCAT"; then
33324 { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
33325 $as_echo "$PCAT" >&6; }
33327 { $as_echo "$as_me:$LINENO: result: no" >&5
33328 $as_echo "no" >&6; }
33335 for ac_prog in perl5 perl
33337 # Extract the first word of "$ac_prog", so it can be a program name with args.
33338 set dummy $ac_prog; ac_word=$2
33339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33340 $as_echo_n "checking for $ac_word... " >&6; }
33341 if test "${ac_cv_path_PERL+set}" = set; then
33342 $as_echo_n "(cached) " >&6
33346 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33350 for as_dir in $LOCSYSPATH
33353 test -z "$as_dir" && as_dir=.
33354 for ac_exec_ext in '' $ac_executable_extensions; do
33355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33356 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33367 PERL=$ac_cv_path_PERL
33368 if test -n "$PERL"; then
33369 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33370 $as_echo "$PERL" >&6; }
33372 { $as_echo "$as_me:$LINENO: result: no" >&5
33373 $as_echo "no" >&6; }
33377 test -n "$PERL" && break
33381 # Make sure we have perl
33382 if test -z "$PERL"; then
33383 # Extract the first word of "perl", so it can be a program name with args.
33384 set dummy perl; ac_word=$2
33385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33386 $as_echo_n "checking for $ac_word... " >&6; }
33387 if test "${ac_cv_prog_PERL+set}" = set; then
33388 $as_echo_n "(cached) " >&6
33390 if test -n "$PERL"; then
33391 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33394 for as_dir in $PATH
33397 test -z "$as_dir" && as_dir=.
33398 for ac_exec_ext in '' $ac_executable_extensions; do
33399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33400 ac_cv_prog_PERL="perl"
33401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33410 PERL=$ac_cv_prog_PERL
33411 if test -n "$PERL"; then
33412 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
33413 $as_echo "$PERL" >&6; }
33415 { $as_echo "$as_me:$LINENO: result: no" >&5
33416 $as_echo "no" >&6; }
33422 # Check if version of Perl is sufficient
33423 ac_perl_version="5.6.0"
33425 if test "x$PERL" != "x"; then
33426 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
33427 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
33428 # NB: It would be nice to log the error if there is one, but we cannot rely
33429 # on autoconf internals
33430 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
33431 if test $? -ne 0; then
33432 { $as_echo "$as_me:$LINENO: result: no" >&5
33433 $as_echo "no" >&6; };
33435 { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
33436 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
33437 { (exit 1); exit 1; }; }
33440 { $as_echo "$as_me:$LINENO: result: ok" >&5
33441 $as_echo "ok" >&6; };
33445 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
33446 $as_echo "$as_me: WARNING: could not find perl" >&2;}
33452 for ac_prog in swig
33454 # Extract the first word of "$ac_prog", so it can be a program name with args.
33455 set dummy $ac_prog; ac_word=$2
33456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33457 $as_echo_n "checking for $ac_word... " >&6; }
33458 if test "${ac_cv_path_SWIG+set}" = set; then
33459 $as_echo_n "(cached) " >&6
33463 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467 for as_dir in $LOCSYSPATH
33470 test -z "$as_dir" && as_dir=.
33471 for ac_exec_ext in '' $ac_executable_extensions; do
33472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33473 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33484 SWIG=$ac_cv_path_SWIG
33485 if test -n "$SWIG"; then
33486 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33487 $as_echo "$SWIG" >&6; }
33489 { $as_echo "$as_me:$LINENO: result: no" >&5
33490 $as_echo "no" >&6; }
33494 test -n "$SWIG" && break
33499 # Extract the first word of "swig", so it can be a program name with args.
33500 set dummy swig; ac_word=$2
33501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33502 $as_echo_n "checking for $ac_word... " >&6; }
33503 if test "${ac_cv_path_SWIG+set}" = set; then
33504 $as_echo_n "(cached) " >&6
33508 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33512 for as_dir in $PATH
33515 test -z "$as_dir" && as_dir=.
33516 for ac_exec_ext in '' $ac_executable_extensions; do
33517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33518 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33529 SWIG=$ac_cv_path_SWIG
33530 if test -n "$SWIG"; then
33531 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
33532 $as_echo "$SWIG" >&6; }
33534 { $as_echo "$as_me:$LINENO: result: no" >&5
33535 $as_echo "no" >&6; }
33539 if test -z "$SWIG" ; then
33540 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
33541 elif test -n "1.3.28" ; then
33542 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
33543 $as_echo_n "checking for SWIG version... " >&6; }
33544 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
33545 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
33546 $as_echo "$swig_version" >&6; }
33547 if test -n "$swig_version" ; then
33548 # Calculate the required version number components
33550 required_major=`echo $required | sed 's/[^0-9].*//'`
33551 if test -z "$required_major" ; then
33554 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33555 required_minor=`echo $required | sed 's/[^0-9].*//'`
33556 if test -z "$required_minor" ; then
33559 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
33560 required_patch=`echo $required | sed 's/[^0-9].*//'`
33561 if test -z "$required_patch" ; then
33564 # Calculate the available version number components
33565 available=$swig_version
33566 available_major=`echo $available | sed 's/[^0-9].*//'`
33567 if test -z "$available_major" ; then
33570 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33571 available_minor=`echo $available | sed 's/[^0-9].*//'`
33572 if test -z "$available_minor" ; then
33575 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
33576 available_patch=`echo $available | sed 's/[^0-9].*//'`
33577 if test -z "$available_patch" ; then
33580 if test $available_major -ne $required_major \
33581 -o $available_minor -ne $required_minor \
33582 -o $available_patch -lt $required_patch ; then
33583 SWIG='echo "Error: SWIG version >= 1.3.28 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
33585 SWIG_LIB=`$SWIG -swiglib`
33588 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
33595 # Extract the first word of "ps", so it can be a program name with args.
33596 set dummy ps; ac_word=$2
33597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33598 $as_echo_n "checking for $ac_word... " >&6; }
33599 if test "${ac_cv_path_PS+set}" = set; then
33600 $as_echo_n "(cached) " >&6
33604 ac_cv_path_PS="$PS" # Let the user override the test with a path.
33607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33608 for as_dir in $PATH
33611 test -z "$as_dir" && as_dir=.
33612 for ac_exec_ext in '' $ac_executable_extensions; do
33613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33614 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
33615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33626 if test -n "$PS"; then
33627 { $as_echo "$as_me:$LINENO: result: $PS" >&5
33628 $as_echo "$PS" >&6; }
33630 { $as_echo "$as_me:$LINENO: result: no" >&5
33631 $as_echo "no" >&6; }
33635 { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
33636 $as_echo_n "checking ps argument to use... " >&6; }
33639 # ps is *very* non-portable, and across many systems, the same option
33640 # (e.g., -e) can mean different things. So this macro tries to
33641 # special-case most known systems, and makes an effort to detect unknown
33645 PS_ARGUMENT="-eo pid,ppid,comm"
33649 PS_ARGUMENT="-eo pid,ppid,command"
33653 PS_ARGUMENT="-axo pid,ppid,command"
33657 PS_ARGUMENT="-aAco pid,ppid,command"
33661 # Cygwin is special-cased in Amanda::Process
33666 # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
33668 PS_ARGUMENT="-eo pid,ppid,comm"
33673 "-axo pid,ppid,command" \
33674 "-aAco pid,ppid,command" \
33675 "-eo pid,ppid,comm"
33677 ps $try >/dev/null 2>/dev/null
33678 if test $? -eq 0; then
33683 if test -z "$PS_ARGUMENT"; then
33684 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
33685 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
33686 { (exit 1); exit 1; }; }
33691 { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
33692 $as_echo "$PS_ARGUMENT" >&6; }
33698 # Compiler / system characteristics
33704 if test $ac_cv_c_compiler_gnu = yes; then
33705 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
33706 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
33707 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
33708 $as_echo_n "(cached) " >&6
33710 ac_pattern="Autoconf.*'x'"
33711 cat >conftest.$ac_ext <<_ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h. */
33720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33721 $EGREP "$ac_pattern" >/dev/null 2>&1; then
33722 ac_cv_prog_gcc_traditional=yes
33724 ac_cv_prog_gcc_traditional=no
33729 if test $ac_cv_prog_gcc_traditional = no; then
33730 cat >conftest.$ac_ext <<_ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h. */
33736 #include <termio.h>
33739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33740 $EGREP "$ac_pattern" >/dev/null 2>&1; then
33741 ac_cv_prog_gcc_traditional=yes
33747 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
33748 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
33749 if test $ac_cv_prog_gcc_traditional = yes; then
33750 CC="$CC -traditional"
33754 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33755 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
33756 if test "${ac_cv_c_const+set}" = set; then
33757 $as_echo_n "(cached) " >&6
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33769 /* FIXME: Include the comments suggested by Paul. */
33770 #ifndef __cplusplus
33771 /* Ultrix mips cc rejects this. */
33772 typedef int charset[2];
33774 /* SunOS 4.1.1 cc rejects this. */
33775 char const *const *pcpcc;
33777 /* NEC SVR4.0.2 mips cc rejects this. */
33778 struct point {int x, y;};
33779 static struct point const zero = {0,0};
33780 /* AIX XL C 1.02.0.0 rejects this.
33781 It does not let you subtract one const X* pointer from another in
33782 an arm of an if-expression whose if-part is not a constant
33784 const char *g = "string";
33785 pcpcc = &g + (g ? g-g : 0);
33786 /* HPUX 7.0 cc rejects these. */
33788 ppc = (char**) pcpcc;
33789 pcpcc = (char const *const *) ppc;
33790 { /* SCO 3.2v4 cc rejects this. */
33792 char const *s = 0 ? (char *) 0 : (char const *) 0;
33797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33798 int x[] = {25, 17};
33799 const int *foo = &x[0];
33802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33803 typedef const int *iptr;
33807 { /* AIX XL C 1.02.0.0 rejects this saying
33808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33809 struct s { int j; const int *ap[3]; };
33810 struct s *b; b->j = 5;
33812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33813 const int foo = 10;
33814 if (!foo) return 0;
33816 return !cs[0] && !zero.x;
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33830 $as_echo "$ac_try_echo") >&5
33831 (eval "$ac_compile") 2>conftest.er1
33833 grep -v '^ *+' conftest.er1 >conftest.err
33835 cat conftest.err >&5
33836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); } && {
33838 test -z "$ac_c_werror_flag" ||
33839 test ! -s conftest.err
33840 } && test -s conftest.$ac_objext; then
33843 $as_echo "$as_me: failed program was:" >&5
33844 sed 's/^/| /' conftest.$ac_ext >&5
33849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33851 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33852 $as_echo "$ac_cv_c_const" >&6; }
33853 if test $ac_cv_c_const = no; then
33855 cat >>confdefs.h <<\_ACEOF
33862 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33864 if test "${ac_cv_c_bigendian+set}" = set; then
33865 $as_echo_n "(cached) " >&6
33867 ac_cv_c_bigendian=unknown
33868 # See if we're dealing with a universal compiler.
33869 cat >conftest.$ac_ext <<_ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h. */
33875 #ifndef __APPLE_CC__
33876 not a universal capable compiler
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885 *) ac_try_echo=$ac_try;;
33887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33888 $as_echo "$ac_try_echo") >&5
33889 (eval "$ac_compile") 2>conftest.er1
33891 grep -v '^ *+' conftest.er1 >conftest.err
33893 cat conftest.err >&5
33894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } && {
33896 test -z "$ac_c_werror_flag" ||
33897 test ! -s conftest.err
33898 } && test -s conftest.$ac_objext; then
33900 # Check for potential -arch flags. It is not universal unless
33901 # there are some -arch flags. Note that *ppc* also matches
33902 # ppc64. This check is also rather less than ideal.
33903 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
33904 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
33907 $as_echo "$as_me: failed program was:" >&5
33908 sed 's/^/| /' conftest.$ac_ext >&5
33913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33914 if test $ac_cv_c_bigendian = unknown; then
33915 # See if sys/param.h defines the BYTE_ORDER macro.
33916 cat >conftest.$ac_ext <<_ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h. */
33922 #include <sys/types.h>
33923 #include <sys/param.h>
33928 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33929 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33931 bogus endian macros
33938 rm -f conftest.$ac_objext
33939 if { (ac_try="$ac_compile"
33940 case "(($ac_try" in
33941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942 *) ac_try_echo=$ac_try;;
33944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33945 $as_echo "$ac_try_echo") >&5
33946 (eval "$ac_compile") 2>conftest.er1
33948 grep -v '^ *+' conftest.er1 >conftest.err
33950 cat conftest.err >&5
33951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); } && {
33953 test -z "$ac_c_werror_flag" ||
33954 test ! -s conftest.err
33955 } && test -s conftest.$ac_objext; then
33956 # It does; now see whether it defined to BIG_ENDIAN or not.
33957 cat >conftest.$ac_ext <<_ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h. */
33963 #include <sys/types.h>
33964 #include <sys/param.h>
33969 #if BYTE_ORDER != BIG_ENDIAN
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33984 $as_echo "$ac_try_echo") >&5
33985 (eval "$ac_compile") 2>conftest.er1
33987 grep -v '^ *+' conftest.er1 >conftest.err
33989 cat conftest.err >&5
33990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); } && {
33992 test -z "$ac_c_werror_flag" ||
33993 test ! -s conftest.err
33994 } && test -s conftest.$ac_objext; then
33995 ac_cv_c_bigendian=yes
33997 $as_echo "$as_me: failed program was:" >&5
33998 sed 's/^/| /' conftest.$ac_ext >&5
34000 ac_cv_c_bigendian=no
34003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34005 $as_echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.$ac_ext >&5
34011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34013 if test $ac_cv_c_bigendian = unknown; then
34014 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
34015 cat >conftest.$ac_ext <<_ACEOF
34018 cat confdefs.h >>conftest.$ac_ext
34019 cat >>conftest.$ac_ext <<_ACEOF
34020 /* end confdefs.h. */
34021 #include <limits.h>
34026 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
34027 bogus endian macros
34034 rm -f conftest.$ac_objext
34035 if { (ac_try="$ac_compile"
34036 case "(($ac_try" in
34037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34038 *) ac_try_echo=$ac_try;;
34040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34041 $as_echo "$ac_try_echo") >&5
34042 (eval "$ac_compile") 2>conftest.er1
34044 grep -v '^ *+' conftest.er1 >conftest.err
34046 cat conftest.err >&5
34047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048 (exit $ac_status); } && {
34049 test -z "$ac_c_werror_flag" ||
34050 test ! -s conftest.err
34051 } && test -s conftest.$ac_objext; then
34052 # It does; now see whether it defined to _BIG_ENDIAN or not.
34053 cat >conftest.$ac_ext <<_ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h. */
34059 #include <limits.h>
34064 #ifndef _BIG_ENDIAN
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34079 $as_echo "$ac_try_echo") >&5
34080 (eval "$ac_compile") 2>conftest.er1
34082 grep -v '^ *+' conftest.er1 >conftest.err
34084 cat conftest.err >&5
34085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086 (exit $ac_status); } && {
34087 test -z "$ac_c_werror_flag" ||
34088 test ! -s conftest.err
34089 } && test -s conftest.$ac_objext; then
34090 ac_cv_c_bigendian=yes
34092 $as_echo "$as_me: failed program was:" >&5
34093 sed 's/^/| /' conftest.$ac_ext >&5
34095 ac_cv_c_bigendian=no
34098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100 $as_echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.$ac_ext >&5
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 if test $ac_cv_c_bigendian = unknown; then
34109 # Compile a test program.
34110 if test "$cross_compiling" = yes; then
34111 # Try to guess by grepping values from an object file.
34112 cat >conftest.$ac_ext <<_ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h. */
34118 short int ascii_mm[] =
34119 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34120 short int ascii_ii[] =
34121 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34122 int use_ascii (int i) {
34123 return ascii_mm[i] + ascii_ii[i];
34125 short int ebcdic_ii[] =
34126 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34127 short int ebcdic_mm[] =
34128 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34129 int use_ebcdic (int i) {
34130 return ebcdic_mm[i] + ebcdic_ii[i];
34137 return use_ascii (foo) == use_ebcdic (foo);
34142 rm -f conftest.$ac_objext
34143 if { (ac_try="$ac_compile"
34144 case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34149 $as_echo "$ac_try_echo") >&5
34150 (eval "$ac_compile") 2>conftest.er1
34152 grep -v '^ *+' conftest.er1 >conftest.err
34154 cat conftest.err >&5
34155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } && {
34157 test -z "$ac_c_werror_flag" ||
34158 test ! -s conftest.err
34159 } && test -s conftest.$ac_objext; then
34160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34161 ac_cv_c_bigendian=yes
34163 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34164 if test "$ac_cv_c_bigendian" = unknown; then
34165 ac_cv_c_bigendian=no
34167 # finding both strings is unlikely to happen, but who knows?
34168 ac_cv_c_bigendian=unknown
34172 $as_echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34180 cat >conftest.$ac_ext <<_ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h. */
34186 $ac_includes_default
34191 /* Are we little or big endian? From Harbison&Steele. */
34195 char c[sizeof (long int)];
34198 return u.c[sizeof (long int) - 1] == 1;
34204 rm -f conftest$ac_exeext
34205 if { (ac_try="$ac_link"
34206 case "(($ac_try" in
34207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34208 *) ac_try_echo=$ac_try;;
34210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34211 $as_echo "$ac_try_echo") >&5
34212 (eval "$ac_link") 2>&5
34214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34216 { (case "(($ac_try" in
34217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34218 *) ac_try_echo=$ac_try;;
34220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34221 $as_echo "$ac_try_echo") >&5
34222 (eval "$ac_try") 2>&5
34224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34226 ac_cv_c_bigendian=no
34228 $as_echo "$as_me: program exited with status $ac_status" >&5
34229 $as_echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34232 ( exit $ac_status )
34233 ac_cv_c_bigendian=yes
34235 rm -rf conftest.dSYM
34236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34242 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34243 $as_echo "$ac_cv_c_bigendian" >&6; }
34244 case $ac_cv_c_bigendian in #(
34246 cat >>confdefs.h <<\_ACEOF
34247 #define WORDS_BIGENDIAN 1
34254 cat >>confdefs.h <<\_ACEOF
34255 #define AC_APPLE_UNIVERSAL_BUILD 1
34260 { { $as_echo "$as_me:$LINENO: error: unknown endianness
34261 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34262 $as_echo "$as_me: error: unknown endianness
34263 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34264 { (exit 1); exit 1; }; } ;;
34268 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
34269 if test "x$GCC" = "xyes"; then
34271 GCC_COMPILER_FALSE='#'
34273 GCC_COMPILER_TRUE='#'
34274 GCC_COMPILER_FALSE=
34285 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
34286 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
34287 if test "x$GCC" = "xyes"; then
34288 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34289 $CC -v --help 2>&1) |
34290 $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
34291 if test $? -eq 0; then
34293 { $as_echo "$as_me:$LINENO: result: yes" >&5
34294 $as_echo "yes" >&6; }
34297 { $as_echo "$as_me:$LINENO: result: no" >&5
34298 $as_echo "no" >&6; }
34302 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34303 $as_echo "no (not using gcc)" >&6; }
34306 if test x"$found_warning" = x"yes"; then
34307 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
34319 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
34320 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
34321 if test "x$GCC" = "xyes"; then
34322 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34323 $CC -v --help 2>&1) |
34324 $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
34325 if test $? -eq 0; then
34327 { $as_echo "$as_me:$LINENO: result: yes" >&5
34328 $as_echo "yes" >&6; }
34331 { $as_echo "$as_me:$LINENO: result: no" >&5
34332 $as_echo "no" >&6; }
34336 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34337 $as_echo "no (not using gcc)" >&6; }
34340 if test x"$found_warning" = x"yes"; then
34341 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
34353 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
34354 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
34355 if test "x$GCC" = "xyes"; then
34356 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34357 $CC -v --help 2>&1) |
34358 $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34359 if test $? -eq 0; then
34361 { $as_echo "$as_me:$LINENO: result: yes" >&5
34362 $as_echo "yes" >&6; }
34365 { $as_echo "$as_me:$LINENO: result: no" >&5
34366 $as_echo "no" >&6; }
34370 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34371 $as_echo "no (not using gcc)" >&6; }
34374 if test x"$found_warning" = x"yes"; then
34375 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
34387 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
34388 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
34389 if test "x$GCC" = "xyes"; then
34390 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34391 $CC -v --help 2>&1) |
34392 $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
34393 if test $? -eq 0; then
34395 { $as_echo "$as_me:$LINENO: result: yes" >&5
34396 $as_echo "yes" >&6; }
34399 { $as_echo "$as_me:$LINENO: result: no" >&5
34400 $as_echo "no" >&6; }
34404 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34405 $as_echo "no (not using gcc)" >&6; }
34408 if test x"$found_warning" = x"yes"; then
34409 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
34421 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
34422 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
34423 if test "x$GCC" = "xyes"; then
34424 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34425 $CC -v --help 2>&1) |
34426 $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
34427 if test $? -eq 0; then
34429 { $as_echo "$as_me:$LINENO: result: yes" >&5
34430 $as_echo "yes" >&6; }
34433 { $as_echo "$as_me:$LINENO: result: no" >&5
34434 $as_echo "no" >&6; }
34438 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34439 $as_echo "no (not using gcc)" >&6; }
34442 if test x"$found_warning" = x"yes"; then
34443 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
34455 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
34456 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
34457 if test "x$GCC" = "xyes"; then
34458 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34459 $CC -v --help 2>&1) |
34460 $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
34461 if test $? -eq 0; then
34463 { $as_echo "$as_me:$LINENO: result: yes" >&5
34464 $as_echo "yes" >&6; }
34467 { $as_echo "$as_me:$LINENO: result: no" >&5
34468 $as_echo "no" >&6; }
34472 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34473 $as_echo "no (not using gcc)" >&6; }
34476 if test x"$found_warning" = x"yes"; then
34477 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
34489 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
34490 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
34491 if test "x$GCC" = "xyes"; then
34492 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34493 $CC -v --help 2>&1) |
34494 $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
34495 if test $? -eq 0; then
34497 { $as_echo "$as_me:$LINENO: result: yes" >&5
34498 $as_echo "yes" >&6; }
34501 { $as_echo "$as_me:$LINENO: result: no" >&5
34502 $as_echo "no" >&6; }
34506 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34507 $as_echo "no (not using gcc)" >&6; }
34510 if test x"$found_warning" = x"yes"; then
34511 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
34523 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
34524 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
34525 if test "x$GCC" = "xyes"; then
34526 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34527 $CC -v --help 2>&1) |
34528 $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
34529 if test $? -eq 0; then
34531 { $as_echo "$as_me:$LINENO: result: yes" >&5
34532 $as_echo "yes" >&6; }
34535 { $as_echo "$as_me:$LINENO: result: no" >&5
34536 $as_echo "no" >&6; }
34540 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34541 $as_echo "no (not using gcc)" >&6; }
34544 if test x"$found_warning" = x"yes"; then
34545 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
34557 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
34558 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
34559 if test "x$GCC" = "xyes"; then
34560 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34561 $CC -v --help 2>&1) |
34562 $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
34563 if test $? -eq 0; then
34565 { $as_echo "$as_me:$LINENO: result: yes" >&5
34566 $as_echo "yes" >&6; }
34569 { $as_echo "$as_me:$LINENO: result: no" >&5
34570 $as_echo "no" >&6; }
34574 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34575 $as_echo "no (not using gcc)" >&6; }
34578 if test x"$found_warning" = x"yes"; then
34579 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
34591 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
34592 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
34593 if test "x$GCC" = "xyes"; then
34594 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34595 $CC -v --help 2>&1) |
34596 $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
34597 if test $? -eq 0; then
34599 { $as_echo "$as_me:$LINENO: result: yes" >&5
34600 $as_echo "yes" >&6; }
34603 { $as_echo "$as_me:$LINENO: result: no" >&5
34604 $as_echo "no" >&6; }
34608 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34609 $as_echo "no (not using gcc)" >&6; }
34612 if test x"$found_warning" = x"yes"; then
34613 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
34622 # test for -W'warning', then add the 'no-' version.
34626 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
34627 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
34628 if test "x$GCC" = "xyes"; then
34629 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34630 $CC -v --help 2>&1) |
34631 $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
34632 if test $? -eq 0; then
34634 { $as_echo "$as_me:$LINENO: result: yes" >&5
34635 $as_echo "yes" >&6; }
34638 { $as_echo "$as_me:$LINENO: result: no" >&5
34639 $as_echo "no" >&6; }
34643 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34644 $as_echo "no (not using gcc)" >&6; }
34647 if test x"$found_warning" = x"yes"; then
34648 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
34657 # test for -W'warning', then add the 'no-' version.
34661 { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
34662 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
34663 if test "x$GCC" = "xyes"; then
34664 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
34665 $CC -v --help 2>&1) |
34666 $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
34667 if test $? -eq 0; then
34669 { $as_echo "$as_me:$LINENO: result: yes" >&5
34670 $as_echo "yes" >&6; }
34673 { $as_echo "$as_me:$LINENO: result: no" >&5
34674 $as_echo "no" >&6; }
34678 { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
34679 $as_echo "no (not using gcc)" >&6; }
34682 if test x"$found_warning" = x"yes"; then
34683 AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
34696 # Check whether --enable-shared was given.
34697 if test "${enable_shared+set}" = set; then
34698 enableval=$enable_shared; p=${PACKAGE-default}
34700 yes) enable_shared=yes ;;
34701 no) enable_shared=no ;;
34704 # Look at the argument we got. We use all the common list separators.
34705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34706 for pkg in $enableval; do
34708 if test "X$pkg" = "X$p"; then
34720 # Check whether --enable-static was given.
34721 if test "${enable_static+set}" = set; then
34722 enableval=$enable_static; p=${PACKAGE-default}
34724 yes) enable_static=yes ;;
34725 no) enable_static=no ;;
34728 # Look at the argument we got. We use all the common list separators.
34729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34730 for pkg in $enableval; do
34732 if test "X$pkg" = "X$p"; then
34744 # Check whether --enable-fast-install was given.
34745 if test "${enable_fast_install+set}" = set; then
34746 enableval=$enable_fast_install; p=${PACKAGE-default}
34748 yes) enable_fast_install=yes ;;
34749 no) enable_fast_install=no ;;
34751 enable_fast_install=no
34752 # Look at the argument we got. We use all the common list separators.
34753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34754 for pkg in $enableval; do
34756 if test "X$pkg" = "X$p"; then
34757 enable_fast_install=yes
34764 enable_fast_install=yes
34768 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
34769 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
34770 if test "${lt_cv_path_SED+set}" = set; then
34771 $as_echo_n "(cached) " >&6
34773 # Loop through the user's path and test for sed and gsed.
34774 # Then use that list of sed's as ones to test for truncation.
34775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34776 for as_dir in $PATH
34779 test -z "$as_dir" && as_dir=.
34780 for lt_ac_prog in sed gsed; do
34781 for ac_exec_ext in '' $ac_executable_extensions; do
34782 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
34783 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
34790 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
34791 # along with /bin/sed that truncates output.
34792 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
34793 test ! -f $lt_ac_sed && continue
34794 cat /dev/null > conftest.in
34796 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
34797 # Check for GNU sed and select it if it is found.
34798 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
34799 lt_cv_path_SED=$lt_ac_sed
34803 cat conftest.in conftest.in >conftest.tmp
34804 mv conftest.tmp conftest.in
34805 cp conftest.in conftest.nl
34807 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
34808 cmp -s conftest.out conftest.nl || break
34809 # 10000 chars as input seems more than enough
34810 test $lt_ac_count -gt 10 && break
34811 lt_ac_count=`expr $lt_ac_count + 1`
34812 if test $lt_ac_count -gt $lt_ac_max; then
34813 lt_ac_max=$lt_ac_count
34814 lt_cv_path_SED=$lt_ac_sed
34821 SED=$lt_cv_path_SED
34822 { $as_echo "$as_me:$LINENO: result: $SED" >&5
34823 $as_echo "$SED" >&6; }
34826 # Check whether --with-gnu-ld was given.
34827 if test "${with_gnu_ld+set}" = set; then
34828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
34834 if test "$GCC" = yes; then
34835 # Check if gcc -print-prog-name=ld gives a path.
34836 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
34837 $as_echo_n "checking for ld used by $CC... " >&6; }
34840 # gcc leaves a trailing carriage return which upsets mingw
34841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34846 # Accept absolute paths.
34848 re_direlt='/[^/][^/]*/\.\./'
34849 # Canonicalize the pathname of ld
34850 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
34851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34852 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
34854 test -z "$LD" && LD="$ac_prog"
34857 # If it fails, then pretend we aren't using GCC.
34861 # If it is relative, then search for the first ld in PATH.
34862 with_gnu_ld=unknown
34865 elif test "$with_gnu_ld" = yes; then
34866 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
34867 $as_echo_n "checking for GNU ld... " >&6; }
34869 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34870 $as_echo_n "checking for non-GNU ld... " >&6; }
34872 if test "${lt_cv_path_LD+set}" = set; then
34873 $as_echo_n "(cached) " >&6
34875 if test -z "$LD"; then
34876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34877 for ac_dir in $PATH; do
34879 test -z "$ac_dir" && ac_dir=.
34880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34881 lt_cv_path_LD="$ac_dir/$ac_prog"
34882 # Check to see if the program is GNU ld. I'd rather use --version,
34883 # but apparently some variants of GNU ld only accept -v.
34884 # Break only if it was the GNU/non-GNU ld that we prefer.
34885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34886 *GNU* | *'with BFD'*)
34887 test "$with_gnu_ld" != no && break
34890 test "$with_gnu_ld" != yes && break
34897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
34901 LD="$lt_cv_path_LD"
34902 if test -n "$LD"; then
34903 { $as_echo "$as_me:$LINENO: result: $LD" >&5
34904 $as_echo "$LD" >&6; }
34906 { $as_echo "$as_me:$LINENO: result: no" >&5
34907 $as_echo "no" >&6; }
34909 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34910 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34911 { (exit 1); exit 1; }; }
34912 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
34914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
34915 $as_echo_n "(cached) " >&6
34917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
34918 case `$LD -v 2>&1 </dev/null` in
34919 *GNU* | *'with BFD'*)
34920 lt_cv_prog_gnu_ld=yes
34923 lt_cv_prog_gnu_ld=no
34927 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
34928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
34929 with_gnu_ld=$lt_cv_prog_gnu_ld
34932 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
34933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
34934 if test "${lt_cv_ld_reload_flag+set}" = set; then
34935 $as_echo_n "(cached) " >&6
34937 lt_cv_ld_reload_flag='-r'
34939 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
34940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
34941 reload_flag=$lt_cv_ld_reload_flag
34942 case $reload_flag in
34944 *) reload_flag=" $reload_flag" ;;
34946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34949 if test "$GCC" = yes; then
34950 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
34952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
34957 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
34958 $as_echo_n "checking for BSD-compatible nm... " >&6; }
34959 if test "${lt_cv_path_NM+set}" = set; then
34960 $as_echo_n "(cached) " >&6
34962 if test -n "$NM"; then
34963 # Let the user override the test.
34964 lt_cv_path_NM="$NM"
34966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34967 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
34969 test -z "$ac_dir" && ac_dir=.
34970 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
34971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
34972 # Check to see if the nm accepts a BSD-compat flag.
34973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
34974 # nm: unknown option "B" ignored
34975 # Tru64's nm complains that /dev/null is an invalid object file
34976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
34977 */dev/null* | *'Invalid file or object type'*)
34978 lt_cv_path_NM="$tmp_nm -B"
34982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34984 lt_cv_path_NM="$tmp_nm -p"
34988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34989 continue # so that we can try to find one that supports BSD flags
34996 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
34999 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
35000 $as_echo "$lt_cv_path_NM" >&6; }
35001 NM="$lt_cv_path_NM"
35003 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
35004 $as_echo_n "checking whether ln -s works... " >&6; }
35006 if test "$LN_S" = "ln -s"; then
35007 { $as_echo "$as_me:$LINENO: result: yes" >&5
35008 $as_echo "yes" >&6; }
35010 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35011 $as_echo "no, using $LN_S" >&6; }
35014 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
35015 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
35016 if test "${lt_cv_deplibs_check_method+set}" = set; then
35017 $as_echo_n "(cached) " >&6
35019 lt_cv_file_magic_cmd='$MAGIC_CMD'
35020 lt_cv_file_magic_test_file=
35021 lt_cv_deplibs_check_method='unknown'
35022 # Need to set the preceding variable on all platforms that support
35023 # interlibrary dependencies.
35024 # 'none' -- dependencies not supported.
35025 # `unknown' -- same as none, but documents that we really don't know.
35026 # 'pass_all' -- all dependencies passed with no checks.
35027 # 'test_compile' -- check by making test program.
35028 # 'file_magic [[regex]]' -- check by looking for files in library path
35029 # which responds to the $file_magic_cmd with a given extended regex.
35030 # If you have `file' or equivalent on your system and you're not sure
35031 # whether `pass_all' will *always* work, you probably want this one.
35035 lt_cv_deplibs_check_method=pass_all
35039 lt_cv_deplibs_check_method=pass_all
35043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
35044 lt_cv_file_magic_cmd='/usr/bin/file -L'
35045 lt_cv_file_magic_test_file=/shlib/libc.so
35049 # func_win32_libid is a shell function defined in ltmain.sh
35050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
35051 lt_cv_file_magic_cmd='func_win32_libid'
35055 # Base MSYS/MinGW do not provide the 'file' command needed by
35056 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
35057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
35058 lt_cv_file_magic_cmd='$OBJDUMP -f'
35061 darwin* | rhapsody*)
35062 lt_cv_deplibs_check_method=pass_all
35065 freebsd* | kfreebsd*-gnu | dragonfly*)
35066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35069 # Not sure whether the presence of OpenBSD here was a mistake.
35070 # Let's accept both of them until this is cleared up.
35071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
35072 lt_cv_file_magic_cmd=/usr/bin/file
35073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
35077 lt_cv_deplibs_check_method=pass_all
35082 lt_cv_deplibs_check_method=pass_all
35085 hpux10.20* | hpux11*)
35086 lt_cv_file_magic_cmd=/usr/bin/file
35089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
35090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
35093 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]'
35094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
35097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
35098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
35103 irix5* | irix6* | nonstopux*)
35105 *-32|*"-32 ") libmagic=32-bit;;
35106 *-n32|*"-n32 ") libmagic=N32;;
35107 *-64|*"-64 ") libmagic=64-bit;;
35108 *) libmagic=never-match;;
35110 lt_cv_deplibs_check_method=pass_all
35113 # This must be Linux ELF.
35115 lt_cv_deplibs_check_method=pass_all
35119 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
35120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
35127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
35128 lt_cv_file_magic_cmd=/usr/bin/file
35129 lt_cv_file_magic_test_file=/usr/lib/libnls.so
35133 lt_cv_deplibs_check_method=unknown
35137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
35140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
35144 osf3* | osf4* | osf5*)
35145 lt_cv_deplibs_check_method=pass_all
35149 lt_cv_deplibs_check_method=pass_all
35153 lt_cv_deplibs_check_method=pass_all
35156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35157 case $host_vendor in
35159 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]'
35160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
35163 lt_cv_deplibs_check_method=pass_all
35166 lt_cv_file_magic_cmd='/bin/file'
35167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
35170 lt_cv_file_magic_cmd='/bin/file'
35171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
35172 lt_cv_file_magic_test_file=/lib/libc.so
35175 lt_cv_deplibs_check_method=pass_all
35180 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
35181 lt_cv_deplibs_check_method=pass_all
35186 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
35187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
35188 file_magic_cmd=$lt_cv_file_magic_cmd
35189 deplibs_check_method=$lt_cv_deplibs_check_method
35190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
35193 # If no C compiler was specified, use CC.
35196 # Allow CC to be a program name with arguments.
35199 # Check whether --enable-libtool-lock was given.
35200 if test "${enable_libtool_lock+set}" = set; then
35201 enableval=$enable_libtool_lock;
35204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35206 # Some flags need to be propagated to the compiler or linker for good
35210 # Find out which ABI we are using.
35211 echo 'int i;' > conftest.$ac_ext
35212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35213 (eval $ac_compile) 2>&5
35215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); }; then
35217 case `/usr/bin/file conftest.$ac_objext` in
35219 HPUX_IA64_MODE="32"
35222 HPUX_IA64_MODE="64"
35229 # Find out which ABI we are using.
35230 echo '#line 35230 "configure"' > conftest.$ac_ext
35231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35232 (eval $ac_compile) 2>&5
35234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); }; then
35236 if test "$lt_cv_prog_gnu_ld" = yes; then
35237 case `/usr/bin/file conftest.$ac_objext` in
35239 LD="${LD-ld} -melf32bsmip"
35242 LD="${LD-ld} -melf32bmipn32"
35245 LD="${LD-ld} -melf64bmip"
35249 case `/usr/bin/file conftest.$ac_objext` in
35265 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
35266 # Find out which ABI we are using.
35267 echo 'int i;' > conftest.$ac_ext
35268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35269 (eval $ac_compile) 2>&5
35271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); }; then
35273 case `/usr/bin/file conftest.o` in
35277 LD="${LD-ld} -m elf_i386"
35279 ppc64-*linux*|powerpc64-*linux*)
35280 LD="${LD-ld} -m elf32ppclinux"
35283 LD="${LD-ld} -m elf_s390"
35286 LD="${LD-ld} -m elf32_sparc"
35293 LD="${LD-ld} -m elf_x86_64"
35295 ppc*-*linux*|powerpc*-*linux*)
35296 LD="${LD-ld} -m elf64ppc"
35299 LD="${LD-ld} -m elf64_s390"
35302 LD="${LD-ld} -m elf64_sparc"
35312 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
35313 SAVE_CFLAGS="$CFLAGS"
35314 CFLAGS="$CFLAGS -belf"
35315 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
35316 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
35317 if test "${lt_cv_cc_needs_belf+set}" = set; then
35318 $as_echo_n "(cached) " >&6
35321 ac_cpp='$CPP $CPPFLAGS'
35322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35326 cat >conftest.$ac_ext <<_ACEOF
35329 cat confdefs.h >>conftest.$ac_ext
35330 cat >>conftest.$ac_ext <<_ACEOF
35331 /* end confdefs.h. */
35341 rm -f conftest.$ac_objext conftest$ac_exeext
35342 if { (ac_try="$ac_link"
35343 case "(($ac_try" in
35344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345 *) ac_try_echo=$ac_try;;
35347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35348 $as_echo "$ac_try_echo") >&5
35349 (eval "$ac_link") 2>conftest.er1
35351 grep -v '^ *+' conftest.er1 >conftest.err
35353 cat conftest.err >&5
35354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); } && {
35356 test -z "$ac_c_werror_flag" ||
35357 test ! -s conftest.err
35358 } && test -s conftest$ac_exeext && {
35359 test "$cross_compiling" = yes ||
35360 $as_test_x conftest$ac_exeext
35362 lt_cv_cc_needs_belf=yes
35364 $as_echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35367 lt_cv_cc_needs_belf=no
35370 rm -rf conftest.dSYM
35371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35372 conftest$ac_exeext conftest.$ac_ext
35374 ac_cpp='$CPP $CPPFLAGS'
35375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35380 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
35381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
35382 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
35383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
35384 CFLAGS="$SAVE_CFLAGS"
35390 need_locks="$enable_libtool_lock"
35394 for ac_header in dlfcn.h
35396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35399 $as_echo_n "checking for $ac_header... " >&6; }
35400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35401 $as_echo_n "(cached) " >&6
35403 ac_res=`eval 'as_val=${'$as_ac_Header'}
35404 $as_echo "$as_val"'`
35405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35406 $as_echo "$ac_res" >&6; }
35408 # Is the header compilable?
35409 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35410 $as_echo_n "checking $ac_header usability... " >&6; }
35411 cat >conftest.$ac_ext <<_ACEOF
35414 cat confdefs.h >>conftest.$ac_ext
35415 cat >>conftest.$ac_ext <<_ACEOF
35416 /* end confdefs.h. */
35417 $ac_includes_default
35418 #include <$ac_header>
35420 rm -f conftest.$ac_objext
35421 if { (ac_try="$ac_compile"
35422 case "(($ac_try" in
35423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35424 *) ac_try_echo=$ac_try;;
35426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35427 $as_echo "$ac_try_echo") >&5
35428 (eval "$ac_compile") 2>conftest.er1
35430 grep -v '^ *+' conftest.er1 >conftest.err
35432 cat conftest.err >&5
35433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } && {
35435 test -z "$ac_c_werror_flag" ||
35436 test ! -s conftest.err
35437 } && test -s conftest.$ac_objext; then
35438 ac_header_compiler=yes
35440 $as_echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35443 ac_header_compiler=no
35446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35447 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35448 $as_echo "$ac_header_compiler" >&6; }
35450 # Is the header present?
35451 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35452 $as_echo_n "checking $ac_header presence... " >&6; }
35453 cat >conftest.$ac_ext <<_ACEOF
35456 cat confdefs.h >>conftest.$ac_ext
35457 cat >>conftest.$ac_ext <<_ACEOF
35458 /* end confdefs.h. */
35459 #include <$ac_header>
35461 if { (ac_try="$ac_cpp conftest.$ac_ext"
35462 case "(($ac_try" in
35463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464 *) ac_try_echo=$ac_try;;
35466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35467 $as_echo "$ac_try_echo") >&5
35468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35470 grep -v '^ *+' conftest.er1 >conftest.err
35472 cat conftest.err >&5
35473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); } >/dev/null && {
35475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35476 test ! -s conftest.err
35478 ac_header_preproc=yes
35480 $as_echo "$as_me: failed program was:" >&5
35481 sed 's/^/| /' conftest.$ac_ext >&5
35483 ac_header_preproc=no
35486 rm -f conftest.err conftest.$ac_ext
35487 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35488 $as_echo "$ac_header_preproc" >&6; }
35490 # So? What about this header?
35491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35494 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35496 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35497 ac_header_preproc=yes
35500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35501 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35503 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35505 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35507 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35511 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35516 $as_echo_n "checking for $ac_header... " >&6; }
35517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35518 $as_echo_n "(cached) " >&6
35520 eval "$as_ac_Header=\$ac_header_preproc"
35522 ac_res=`eval 'as_val=${'$as_ac_Header'}
35523 $as_echo "$as_val"'`
35524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35525 $as_echo "$ac_res" >&6; }
35528 as_val=`eval 'as_val=${'$as_ac_Header'}
35529 $as_echo "$as_val"'`
35530 if test "x$as_val" = x""yes; then
35531 cat >>confdefs.h <<_ACEOF
35532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35540 ac_cpp='$CXXCPP $CPPFLAGS'
35541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35544 if test -z "$CXX"; then
35545 if test -n "$CCC"; then
35548 if test -n "$ac_tool_prefix"; then
35549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35554 $as_echo_n "checking for $ac_word... " >&6; }
35555 if test "${ac_cv_prog_CXX+set}" = set; then
35556 $as_echo_n "(cached) " >&6
35558 if test -n "$CXX"; then
35559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
35561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35562 for as_dir in $PATH
35565 test -z "$as_dir" && as_dir=.
35566 for ac_exec_ext in '' $ac_executable_extensions; do
35567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
35569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35578 CXX=$ac_cv_prog_CXX
35579 if test -n "$CXX"; then
35580 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
35581 $as_echo "$CXX" >&6; }
35583 { $as_echo "$as_me:$LINENO: result: no" >&5
35584 $as_echo "no" >&6; }
35588 test -n "$CXX" && break
35591 if test -z "$CXX"; then
35593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35595 # Extract the first word of "$ac_prog", so it can be a program name with args.
35596 set dummy $ac_prog; ac_word=$2
35597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35598 $as_echo_n "checking for $ac_word... " >&6; }
35599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
35600 $as_echo_n "(cached) " >&6
35602 if test -n "$ac_ct_CXX"; then
35603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35606 for as_dir in $PATH
35609 test -z "$as_dir" && as_dir=.
35610 for ac_exec_ext in '' $ac_executable_extensions; do
35611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35612 ac_cv_prog_ac_ct_CXX="$ac_prog"
35613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
35623 if test -n "$ac_ct_CXX"; then
35624 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
35625 $as_echo "$ac_ct_CXX" >&6; }
35627 { $as_echo "$as_me:$LINENO: result: no" >&5
35628 $as_echo "no" >&6; }
35632 test -n "$ac_ct_CXX" && break
35635 if test "x$ac_ct_CXX" = x; then
35638 case $cross_compiling:$ac_tool_warned in
35640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
35641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35642 ac_tool_warned=yes ;;
35650 # Provide some information about the compiler.
35651 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
35654 { (ac_try="$ac_compiler --version >&5"
35655 case "(($ac_try" in
35656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657 *) ac_try_echo=$ac_try;;
35659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35660 $as_echo "$ac_try_echo") >&5
35661 (eval "$ac_compiler --version >&5") 2>&5
35663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }
35665 { (ac_try="$ac_compiler -v >&5"
35666 case "(($ac_try" in
35667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35668 *) ac_try_echo=$ac_try;;
35670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35671 $as_echo "$ac_try_echo") >&5
35672 (eval "$ac_compiler -v >&5") 2>&5
35674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); }
35676 { (ac_try="$ac_compiler -V >&5"
35677 case "(($ac_try" in
35678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35679 *) ac_try_echo=$ac_try;;
35681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35682 $as_echo "$ac_try_echo") >&5
35683 (eval "$ac_compiler -V >&5") 2>&5
35685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }
35688 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
35689 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
35690 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
35691 $as_echo_n "(cached) " >&6
35693 cat >conftest.$ac_ext <<_ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h. */
35711 rm -f conftest.$ac_objext
35712 if { (ac_try="$ac_compile"
35713 case "(($ac_try" in
35714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715 *) ac_try_echo=$ac_try;;
35717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35718 $as_echo "$ac_try_echo") >&5
35719 (eval "$ac_compile") 2>conftest.er1
35721 grep -v '^ *+' conftest.er1 >conftest.err
35723 cat conftest.err >&5
35724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); } && {
35726 test -z "$ac_cxx_werror_flag" ||
35727 test ! -s conftest.err
35728 } && test -s conftest.$ac_objext; then
35729 ac_compiler_gnu=yes
35731 $as_echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35741 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
35742 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35743 if test $ac_compiler_gnu = yes; then
35748 ac_test_CXXFLAGS=${CXXFLAGS+set}
35749 ac_save_CXXFLAGS=$CXXFLAGS
35750 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
35751 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
35752 if test "${ac_cv_prog_cxx_g+set}" = set; then
35753 $as_echo_n "(cached) " >&6
35755 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
35756 ac_cxx_werror_flag=yes
35757 ac_cv_prog_cxx_g=no
35759 cat >conftest.$ac_ext <<_ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35774 rm -f conftest.$ac_objext
35775 if { (ac_try="$ac_compile"
35776 case "(($ac_try" in
35777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35778 *) ac_try_echo=$ac_try;;
35780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35781 $as_echo "$ac_try_echo") >&5
35782 (eval "$ac_compile") 2>conftest.er1
35784 grep -v '^ *+' conftest.er1 >conftest.err
35786 cat conftest.err >&5
35787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } && {
35789 test -z "$ac_cxx_werror_flag" ||
35790 test ! -s conftest.err
35791 } && test -s conftest.$ac_objext; then
35792 ac_cv_prog_cxx_g=yes
35794 $as_echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35798 cat >conftest.$ac_ext <<_ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h. */
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817 *) ac_try_echo=$ac_try;;
35819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35820 $as_echo "$ac_try_echo") >&5
35821 (eval "$ac_compile") 2>conftest.er1
35823 grep -v '^ *+' conftest.er1 >conftest.err
35825 cat conftest.err >&5
35826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827 (exit $ac_status); } && {
35828 test -z "$ac_cxx_werror_flag" ||
35829 test ! -s conftest.err
35830 } && test -s conftest.$ac_objext; then
35833 $as_echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35836 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35838 cat >conftest.$ac_ext <<_ACEOF
35841 cat confdefs.h >>conftest.$ac_ext
35842 cat >>conftest.$ac_ext <<_ACEOF
35843 /* end confdefs.h. */
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857 *) ac_try_echo=$ac_try;;
35859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35860 $as_echo "$ac_try_echo") >&5
35861 (eval "$ac_compile") 2>conftest.er1
35863 grep -v '^ *+' conftest.er1 >conftest.err
35865 cat conftest.err >&5
35866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); } && {
35868 test -z "$ac_cxx_werror_flag" ||
35869 test ! -s conftest.err
35870 } && test -s conftest.$ac_objext; then
35871 ac_cv_prog_cxx_g=yes
35873 $as_echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35888 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
35889 $as_echo "$ac_cv_prog_cxx_g" >&6; }
35890 if test "$ac_test_CXXFLAGS" = set; then
35891 CXXFLAGS=$ac_save_CXXFLAGS
35892 elif test $ac_cv_prog_cxx_g = yes; then
35893 if test "$GXX" = yes; then
35899 if test "$GXX" = yes; then
35906 ac_cpp='$CXXCPP $CPPFLAGS'
35907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35911 depcc="$CXX" am_compiler_list=
35913 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
35914 $as_echo_n "checking dependency style of $depcc... " >&6; }
35915 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
35916 $as_echo_n "(cached) " >&6
35918 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35919 # We make a subdir and do the tests there. Otherwise we can end up
35920 # making bogus files that we don't know about and never remove. For
35921 # instance it was reported that on HP-UX the gcc test will end up
35922 # making a dummy file named `D' -- because `-MD' means `put the output
35925 # Copy depcomp to subdir because otherwise we won't find it if we're
35926 # using a relative directory.
35927 cp "$am_depcomp" conftest.dir
35929 # We will build objects and dependencies in a subdirectory because
35930 # it helps to detect inapplicable dependency modes. For instance
35931 # both Tru64's cc and ICC support -MD to output dependencies as a
35932 # side effect of compilation, but ICC will put the dependencies in
35933 # the current directory while Tru64 will put them in the object
35937 am_cv_CXX_dependencies_compiler_type=none
35938 if test "$am_compiler_list" = ""; then
35939 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35941 am__universal=false
35942 case " $depcc " in #(
35943 *\ -arch\ *\ -arch\ *) am__universal=true ;;
35946 for depmode in $am_compiler_list; do
35947 # Setup a source with many dependencies, because some compilers
35948 # like to wrap large dependency lists on column 80 (with \), and
35949 # we should not choose a depcomp mode which is confused by this.
35951 # We need to recreate these files for each test, as the compiler may
35952 # overwrite some of them when testing with obscure command lines.
35953 # This happens at least with the AIX C compiler.
35955 for i in 1 2 3 4 5 6; do
35956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
35957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35958 # Solaris 8's {/usr,}/bin/sh.
35959 touch sub/conftst$i.h
35961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
35964 # mode. It turns out that the SunPro C++ compiler does not properly
35965 # handle `-M -o', and we need to detect this. Also, some Intel
35966 # versions had trouble with output in subdirs
35967 am__obj=sub/conftest.${OBJEXT-o}
35968 am__minus_obj="-o $am__obj"
35971 # This depmode causes a compiler race in universal mode.
35972 test "$am__universal" = false || continue
35975 # after this tag, mechanisms are not by side-effect, so they'll
35976 # only be used when explicitly requested
35977 if test "x$enable_dependency_tracking" = xyes; then
35983 msvisualcpp | msvcmsys)
35984 # This compiler won't grok `-c -o', but also, the minuso test has
35985 # not run yet. These depmodes are late enough in the game, and
35986 # so weak that their functioning should not be impacted.
35987 am__obj=conftest.${OBJEXT-o}
35992 if depmode=$depmode \
35993 source=sub/conftest.c object=$am__obj \
35994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
35995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35996 >/dev/null 2>conftest.err &&
35997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
35999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36001 # icc doesn't choke on unknown options, it will just issue warnings
36002 # or remarks (even with -Werror). So we grep stderr for any message
36003 # that says an option was ignored or not supported.
36004 # When given -MP, icc 7.0 and 7.1 complain thusly:
36005 # icc: Command line warning: ignoring option '-M'; no argument required
36006 # The diagnosis changed in icc 8.0:
36007 # icc: Command line remark: option '-MP' not supported
36008 if (grep 'ignoring option' conftest.err ||
36009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
36010 am_cv_CXX_dependencies_compiler_type=$depmode
36017 rm -rf conftest.dir
36019 am_cv_CXX_dependencies_compiler_type=none
36023 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
36024 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
36025 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
36028 test "x$enable_dependency_tracking" != xno \
36029 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
36030 am__fastdepCXX_TRUE=
36031 am__fastdepCXX_FALSE='#'
36033 am__fastdepCXX_TRUE='#'
36034 am__fastdepCXX_FALSE=
36040 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
36041 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
36042 (test "X$CXX" != "Xg++"))) ; then
36044 ac_cpp='$CXXCPP $CPPFLAGS'
36045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36048 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
36049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
36050 if test -z "$CXXCPP"; then
36051 if test "${ac_cv_prog_CXXCPP+set}" = set; then
36052 $as_echo_n "(cached) " >&6
36054 # Double quotes because CXXCPP needs to be expanded
36055 for CXXCPP in "$CXX -E" "/lib/cpp"
36057 ac_preproc_ok=false
36058 for ac_cxx_preproc_warn_flag in '' yes
36060 # Use a header file that comes with gcc, so configuring glibc
36061 # with a fresh cross-compiler works.
36062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36063 # <limits.h> exists even on freestanding compilers.
36064 # On the NeXT, cc -E runs the code through the compiler's parser,
36065 # not just through cpp. "Syntax error" is here to catch this case.
36066 cat >conftest.$ac_ext <<_ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h. */
36073 # include <limits.h>
36075 # include <assert.h>
36079 if { (ac_try="$ac_cpp conftest.$ac_ext"
36080 case "(($ac_try" in
36081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082 *) ac_try_echo=$ac_try;;
36084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36085 $as_echo "$ac_try_echo") >&5
36086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36088 grep -v '^ *+' conftest.er1 >conftest.err
36090 cat conftest.err >&5
36091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } >/dev/null && {
36093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36094 test ! -s conftest.err
36098 $as_echo "$as_me: failed program was:" >&5
36099 sed 's/^/| /' conftest.$ac_ext >&5
36101 # Broken: fails on valid input.
36105 rm -f conftest.err conftest.$ac_ext
36107 # OK, works on sane cases. Now check whether nonexistent headers
36108 # can be detected and how.
36109 cat >conftest.$ac_ext <<_ACEOF
36112 cat confdefs.h >>conftest.$ac_ext
36113 cat >>conftest.$ac_ext <<_ACEOF
36114 /* end confdefs.h. */
36115 #include <ac_nonexistent.h>
36117 if { (ac_try="$ac_cpp conftest.$ac_ext"
36118 case "(($ac_try" in
36119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120 *) ac_try_echo=$ac_try;;
36122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36123 $as_echo "$ac_try_echo") >&5
36124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36126 grep -v '^ *+' conftest.er1 >conftest.err
36128 cat conftest.err >&5
36129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130 (exit $ac_status); } >/dev/null && {
36131 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36132 test ! -s conftest.err
36134 # Broken: success on invalid input.
36137 $as_echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36140 # Passes both tests.
36145 rm -f conftest.err conftest.$ac_ext
36148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36149 rm -f conftest.err conftest.$ac_ext
36150 if $ac_preproc_ok; then
36155 ac_cv_prog_CXXCPP=$CXXCPP
36158 CXXCPP=$ac_cv_prog_CXXCPP
36160 ac_cv_prog_CXXCPP=$CXXCPP
36162 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
36163 $as_echo "$CXXCPP" >&6; }
36164 ac_preproc_ok=false
36165 for ac_cxx_preproc_warn_flag in '' yes
36167 # Use a header file that comes with gcc, so configuring glibc
36168 # with a fresh cross-compiler works.
36169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36170 # <limits.h> exists even on freestanding compilers.
36171 # On the NeXT, cc -E runs the code through the compiler's parser,
36172 # not just through cpp. "Syntax error" is here to catch this case.
36173 cat >conftest.$ac_ext <<_ACEOF
36176 cat confdefs.h >>conftest.$ac_ext
36177 cat >>conftest.$ac_ext <<_ACEOF
36178 /* end confdefs.h. */
36180 # include <limits.h>
36182 # include <assert.h>
36186 if { (ac_try="$ac_cpp conftest.$ac_ext"
36187 case "(($ac_try" in
36188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36189 *) ac_try_echo=$ac_try;;
36191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36192 $as_echo "$ac_try_echo") >&5
36193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36195 grep -v '^ *+' conftest.er1 >conftest.err
36197 cat conftest.err >&5
36198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199 (exit $ac_status); } >/dev/null && {
36200 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36201 test ! -s conftest.err
36205 $as_echo "$as_me: failed program was:" >&5
36206 sed 's/^/| /' conftest.$ac_ext >&5
36208 # Broken: fails on valid input.
36212 rm -f conftest.err conftest.$ac_ext
36214 # OK, works on sane cases. Now check whether nonexistent headers
36215 # can be detected and how.
36216 cat >conftest.$ac_ext <<_ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h. */
36222 #include <ac_nonexistent.h>
36224 if { (ac_try="$ac_cpp conftest.$ac_ext"
36225 case "(($ac_try" in
36226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36227 *) ac_try_echo=$ac_try;;
36229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36230 $as_echo "$ac_try_echo") >&5
36231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36233 grep -v '^ *+' conftest.er1 >conftest.err
36235 cat conftest.err >&5
36236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } >/dev/null && {
36238 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
36239 test ! -s conftest.err
36241 # Broken: success on invalid input.
36244 $as_echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36247 # Passes both tests.
36252 rm -f conftest.err conftest.$ac_ext
36255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36256 rm -f conftest.err conftest.$ac_ext
36257 if $ac_preproc_ok; then
36260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36262 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36263 See \`config.log' for more details." >&5
36264 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
36265 See \`config.log' for more details." >&2;}
36266 { (exit 1); exit 1; }; }; }
36270 ac_cpp='$CXXCPP $CPPFLAGS'
36271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36279 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
36280 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36281 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
36282 if test -n "$ac_tool_prefix"; then
36283 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
36285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36288 $as_echo_n "checking for $ac_word... " >&6; }
36289 if test "${ac_cv_prog_F77+set}" = set; then
36290 $as_echo_n "(cached) " >&6
36292 if test -n "$F77"; then
36293 ac_cv_prog_F77="$F77" # Let the user override the test.
36295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36296 for as_dir in $PATH
36299 test -z "$as_dir" && as_dir=.
36300 for ac_exec_ext in '' $ac_executable_extensions; do
36301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36302 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
36303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36312 F77=$ac_cv_prog_F77
36313 if test -n "$F77"; then
36314 { $as_echo "$as_me:$LINENO: result: $F77" >&5
36315 $as_echo "$F77" >&6; }
36317 { $as_echo "$as_me:$LINENO: result: no" >&5
36318 $as_echo "no" >&6; }
36322 test -n "$F77" && break
36325 if test -z "$F77"; then
36327 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
36329 # Extract the first word of "$ac_prog", so it can be a program name with args.
36330 set dummy $ac_prog; ac_word=$2
36331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36332 $as_echo_n "checking for $ac_word... " >&6; }
36333 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
36334 $as_echo_n "(cached) " >&6
36336 if test -n "$ac_ct_F77"; then
36337 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
36339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36340 for as_dir in $PATH
36343 test -z "$as_dir" && as_dir=.
36344 for ac_exec_ext in '' $ac_executable_extensions; do
36345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36346 ac_cv_prog_ac_ct_F77="$ac_prog"
36347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36356 ac_ct_F77=$ac_cv_prog_ac_ct_F77
36357 if test -n "$ac_ct_F77"; then
36358 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
36359 $as_echo "$ac_ct_F77" >&6; }
36361 { $as_echo "$as_me:$LINENO: result: no" >&5
36362 $as_echo "no" >&6; }
36366 test -n "$ac_ct_F77" && break
36369 if test "x$ac_ct_F77" = x; then
36372 case $cross_compiling:$ac_tool_warned in
36374 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
36375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36376 ac_tool_warned=yes ;;
36383 # Provide some information about the compiler.
36384 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
36387 { (ac_try="$ac_compiler --version >&5"
36388 case "(($ac_try" in
36389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36390 *) ac_try_echo=$ac_try;;
36392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36393 $as_echo "$ac_try_echo") >&5
36394 (eval "$ac_compiler --version >&5") 2>&5
36396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); }
36398 { (ac_try="$ac_compiler -v >&5"
36399 case "(($ac_try" in
36400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36401 *) ac_try_echo=$ac_try;;
36403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36404 $as_echo "$ac_try_echo") >&5
36405 (eval "$ac_compiler -v >&5") 2>&5
36407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408 (exit $ac_status); }
36409 { (ac_try="$ac_compiler -V >&5"
36410 case "(($ac_try" in
36411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36412 *) ac_try_echo=$ac_try;;
36414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36415 $as_echo "$ac_try_echo") >&5
36416 (eval "$ac_compiler -V >&5") 2>&5
36418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); }
36422 # If we don't use `.F' as extension, the preprocessor is not run on the
36423 # input file. (Note that this only needs to work for GNU compilers.)
36424 ac_save_ext=$ac_ext
36426 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
36427 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
36428 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
36429 $as_echo_n "(cached) " >&6
36431 cat >conftest.$ac_ext <<_ACEOF
36439 rm -f conftest.$ac_objext
36440 if { (ac_try="$ac_compile"
36441 case "(($ac_try" in
36442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36443 *) ac_try_echo=$ac_try;;
36445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36446 $as_echo "$ac_try_echo") >&5
36447 (eval "$ac_compile") 2>conftest.er1
36449 grep -v '^ *+' conftest.er1 >conftest.err
36451 cat conftest.err >&5
36452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453 (exit $ac_status); } && {
36454 test -z "$ac_f77_werror_flag" ||
36455 test ! -s conftest.err
36456 } && test -s conftest.$ac_objext; then
36457 ac_compiler_gnu=yes
36459 $as_echo "$as_me: failed program was:" >&5
36460 sed 's/^/| /' conftest.$ac_ext >&5
36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36466 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
36469 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
36470 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
36471 ac_ext=$ac_save_ext
36472 ac_test_FFLAGS=${FFLAGS+set}
36473 ac_save_FFLAGS=$FFLAGS
36475 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
36476 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
36477 if test "${ac_cv_prog_f77_g+set}" = set; then
36478 $as_echo_n "(cached) " >&6
36481 cat >conftest.$ac_ext <<_ACEOF
36486 rm -f conftest.$ac_objext
36487 if { (ac_try="$ac_compile"
36488 case "(($ac_try" in
36489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36490 *) ac_try_echo=$ac_try;;
36492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36493 $as_echo "$ac_try_echo") >&5
36494 (eval "$ac_compile") 2>conftest.er1
36496 grep -v '^ *+' conftest.er1 >conftest.err
36498 cat conftest.err >&5
36499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); } && {
36501 test -z "$ac_f77_werror_flag" ||
36502 test ! -s conftest.err
36503 } && test -s conftest.$ac_objext; then
36504 ac_cv_prog_f77_g=yes
36506 $as_echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36509 ac_cv_prog_f77_g=no
36512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36515 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
36516 $as_echo "$ac_cv_prog_f77_g" >&6; }
36517 if test "$ac_test_FFLAGS" = set; then
36518 FFLAGS=$ac_save_FFLAGS
36519 elif test $ac_cv_prog_f77_g = yes; then
36520 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
36533 if test $ac_compiler_gnu = yes; then
36539 ac_cpp='$CPP $CPPFLAGS'
36540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36546 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
36548 # find the maximum length of command line arguments
36549 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
36550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
36552 $as_echo_n "(cached) " >&6
36559 # On DJGPP, this test can blow up pretty badly due to problems in libc
36560 # (any single argument exceeding 2000 bytes causes a buffer overrun
36561 # during glob expansion). Even if it were fixed, the result of this
36562 # check would be larger than it should be.
36563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
36567 # Under GNU Hurd, this test is not required because there is
36568 # no limit to the length of command line arguments.
36569 # Libtool will interpret -1 as no limit whatsoever
36570 lt_cv_sys_max_cmd_len=-1;
36574 # On Win9x/ME, this test blows up -- it succeeds, but takes
36575 # about 5 minutes as the teststring grows exponentially.
36576 # Worse, since 9x/ME are not pre-emptively multitasking,
36577 # you end up with a "frozen" computer, even though with patience
36578 # the test eventually succeeds (with a max line length of 256k).
36579 # Instead, let's just punt: use the minimum linelength reported by
36580 # all of the supported platforms: 8192 (on NT/2K/XP).
36581 lt_cv_sys_max_cmd_len=8192;
36585 # On AmigaOS with pdksh, this test takes hours, literally.
36586 # So we just punt and use a minimum line length of 8192.
36587 lt_cv_sys_max_cmd_len=8192;
36590 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36591 # This has been around since 386BSD, at least. Likely further.
36592 if test -x /sbin/sysctl; then
36593 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36594 elif test -x /usr/sbin/sysctl; then
36595 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36597 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
36599 # And add a safety zone
36600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36606 # nice to cause kernel panics so lets avoid the loop below.
36607 # First set a reasonable default.
36608 lt_cv_sys_max_cmd_len=16384
36610 if test -x /sbin/sysconfig; then
36611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
36617 # If test is not a shell built-in, we'll probably end up computing a
36618 # maximum length that is only half of the actual maximum length, but
36620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36621 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
36622 = "XX$teststring") >/dev/null 2>&1 &&
36623 new_result=`expr "X$teststring" : ".*" 2>&1` &&
36624 lt_cv_sys_max_cmd_len=$new_result &&
36625 test $i != 17 # 1/2 MB should be enough
36628 teststring=$teststring$teststring
36631 # Add a significant safety factor because C++ compilers can tack on massive
36632 # amounts of additional arguments before passing them to the linker.
36633 # It appears as though 1/2 is a usable value.
36634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36640 if test -n $lt_cv_sys_max_cmd_len ; then
36641 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
36642 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36644 { $as_echo "$as_me:$LINENO: result: none" >&5
36645 $as_echo "none" >&6; }
36651 # Check for command to grab the raw symbol name followed by C symbol from nm.
36652 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
36653 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36654 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
36655 $as_echo_n "(cached) " >&6
36658 # These are sane defaults that work on at least a few old systems.
36659 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
36661 # Character class describing NM global symbol codes.
36662 symcode='[BCDEGRST]'
36664 # Regexp to match symbols that can be accessed directly from C.
36665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
36667 # Transform an extracted symbol line into a proper C declaration
36668 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
36670 # Transform an extracted symbol line into symbol name and symbol address
36671 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'"
36673 # Define system-specific variables.
36678 cygwin* | mingw* | pw32*)
36679 symcode='[ABCDGISTW]'
36681 hpux*) # Its linker distinguishes data from code symbols
36682 if test "$host_cpu" = ia64; then
36683 symcode='[ABCDEGRST]'
36685 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36686 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'"
36689 if test "$host_cpu" = ia64; then
36690 symcode='[ABCDGIRSTW]'
36691 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
36692 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'"
36695 irix* | nonstopux*)
36696 symcode='[BCDEGRST]'
36699 symcode='[BCDEGQRST]'
36709 # Handle CRLF in mingw tool chain
36713 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
36717 # If we're using GNU nm, then use its standard symbol codes.
36718 case `$NM -V 2>&1` in
36719 *GNU* | *'with BFD'*)
36720 symcode='[ABCDGIRSTW]' ;;
36723 # Try without a prefix undercore, then with it.
36724 for ac_symprfx in "" "_"; do
36726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
36727 symxfrm="\\1 $ac_symprfx\\2 \\2"
36729 # Write the raw and C identifiers.
36730 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
36732 # Check to see that the pipe works correctly.
36736 cat > conftest.$ac_ext <<EOF
36741 void nm_test_func(){}
36745 int main(){nm_test_var='a';nm_test_func();return(0);}
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>&5
36751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); }; then
36753 # Now try to grab the symbols.
36755 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
36756 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
36758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && test -s "$nlist"; then
36760 # Try sorting and uniquifying the output.
36761 if sort "$nlist" | uniq > "$nlist"T; then
36762 mv -f "$nlist"T "$nlist"
36767 # Make sure that we snagged all the symbols we need.
36768 if grep ' nm_test_var$' "$nlist" >/dev/null; then
36769 if grep ' nm_test_func$' "$nlist" >/dev/null; then
36770 cat <<EOF > conftest.$ac_ext
36776 # Now generate the symbol file.
36777 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
36779 cat <<EOF >> conftest.$ac_ext
36780 #if defined (__STDC__) && __STDC__
36781 # define lt_ptr_t void *
36783 # define lt_ptr_t char *
36787 /* The mapping between symbol names and symbols. */
36792 lt_preloaded_symbols[] =
36795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
36796 cat <<\EOF >> conftest.$ac_ext
36804 # Now try linking the two files.
36805 mv conftest.$ac_objext conftstm.$ac_objext
36806 lt_save_LIBS="$LIBS"
36807 lt_save_CFLAGS="$CFLAGS"
36808 LIBS="conftstm.$ac_objext"
36809 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
36810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36811 (eval $ac_link) 2>&5
36813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } && test -s conftest${ac_exeext}; then
36817 LIBS="$lt_save_LIBS"
36818 CFLAGS="$lt_save_CFLAGS"
36820 echo "cannot find nm_test_func in $nlist" >&5
36823 echo "cannot find nm_test_var in $nlist" >&5
36826 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
36829 echo "$progname: failed program was:" >&5
36830 cat conftest.$ac_ext >&5
36832 rm -f conftest* conftst*
36834 # Do not use the global_symbol_pipe unless it works.
36835 if test "$pipe_works" = yes; then
36838 lt_cv_sys_global_symbol_pipe=
36844 if test -z "$lt_cv_sys_global_symbol_pipe"; then
36845 lt_cv_sys_global_symbol_to_cdecl=
36847 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
36848 { $as_echo "$as_me:$LINENO: result: failed" >&5
36849 $as_echo "failed" >&6; }
36851 { $as_echo "$as_me:$LINENO: result: ok" >&5
36852 $as_echo "ok" >&6; }
36855 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
36856 $as_echo_n "checking for objdir... " >&6; }
36857 if test "${lt_cv_objdir+set}" = set; then
36858 $as_echo_n "(cached) " >&6
36860 rm -f .libs 2>/dev/null
36861 mkdir .libs 2>/dev/null
36862 if test -d .libs; then
36865 # MS-DOS does not allow filenames that begin with a dot.
36868 rmdir .libs 2>/dev/null
36870 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
36871 $as_echo "$lt_cv_objdir" >&6; }
36872 objdir=$lt_cv_objdir
36880 # AIX sometimes has problems with the GCC collect2 program. For some
36881 # reason, if we set the COLLECT_NAMES environment variable, the problems
36882 # vanish in a puff of smoke.
36883 if test "X${COLLECT_NAMES+set}" != Xset; then
36885 export COLLECT_NAMES
36890 # Sed substitution that helps us do robust quoting. It backslashifies
36891 # metacharacters that are still active within double-quoted strings.
36892 Xsed='sed -e 1s/^X//'
36893 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
36895 # Same as above, but do not quote variable references.
36896 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
36898 # Sed substitution to delay expansion of an escaped shell variable in a
36899 # double_quote_subst'ed string.
36900 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36902 # Sed substitution to avoid accidental globbing in evaled expressions
36903 no_glob_subst='s/\*/\\\*/g'
36908 # Global variables:
36909 default_ofile=libtool
36910 can_build_shared=yes
36912 # All known linkers require a `.a' archive for static linking (except MSVC,
36913 # which needs '.lib').
36915 ltmain="$ac_aux_dir/ltmain.sh"
36916 ofile="$default_ofile"
36917 with_gnu_ld="$lt_cv_prog_gnu_ld"
36919 if test -n "$ac_tool_prefix"; then
36920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36921 set dummy ${ac_tool_prefix}ar; ac_word=$2
36922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36923 $as_echo_n "checking for $ac_word... " >&6; }
36924 if test "${ac_cv_prog_AR+set}" = set; then
36925 $as_echo_n "(cached) " >&6
36927 if test -n "$AR"; then
36928 ac_cv_prog_AR="$AR" # Let the user override the test.
36930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36931 for as_dir in $PATH
36934 test -z "$as_dir" && as_dir=.
36935 for ac_exec_ext in '' $ac_executable_extensions; do
36936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36937 ac_cv_prog_AR="${ac_tool_prefix}ar"
36938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36948 if test -n "$AR"; then
36949 { $as_echo "$as_me:$LINENO: result: $AR" >&5
36950 $as_echo "$AR" >&6; }
36952 { $as_echo "$as_me:$LINENO: result: no" >&5
36953 $as_echo "no" >&6; }
36958 if test -z "$ac_cv_prog_AR"; then
36960 # Extract the first word of "ar", so it can be a program name with args.
36961 set dummy ar; ac_word=$2
36962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36963 $as_echo_n "checking for $ac_word... " >&6; }
36964 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36965 $as_echo_n "(cached) " >&6
36967 if test -n "$ac_ct_AR"; then
36968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36971 for as_dir in $PATH
36974 test -z "$as_dir" && as_dir=.
36975 for ac_exec_ext in '' $ac_executable_extensions; do
36976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36977 ac_cv_prog_ac_ct_AR="ar"
36978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36988 if test -n "$ac_ct_AR"; then
36989 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
36990 $as_echo "$ac_ct_AR" >&6; }
36992 { $as_echo "$as_me:$LINENO: result: no" >&5
36993 $as_echo "no" >&6; }
36996 if test "x$ac_ct_AR" = x; then
36999 case $cross_compiling:$ac_tool_warned in
37001 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37003 ac_tool_warned=yes ;;
37008 AR="$ac_cv_prog_AR"
37011 if test -n "$ac_tool_prefix"; then
37012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37015 $as_echo_n "checking for $ac_word... " >&6; }
37016 if test "${ac_cv_prog_RANLIB+set}" = set; then
37017 $as_echo_n "(cached) " >&6
37019 if test -n "$RANLIB"; then
37020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37023 for as_dir in $PATH
37026 test -z "$as_dir" && as_dir=.
37027 for ac_exec_ext in '' $ac_executable_extensions; do
37028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37039 RANLIB=$ac_cv_prog_RANLIB
37040 if test -n "$RANLIB"; then
37041 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
37042 $as_echo "$RANLIB" >&6; }
37044 { $as_echo "$as_me:$LINENO: result: no" >&5
37045 $as_echo "no" >&6; }
37050 if test -z "$ac_cv_prog_RANLIB"; then
37051 ac_ct_RANLIB=$RANLIB
37052 # Extract the first word of "ranlib", so it can be a program name with args.
37053 set dummy ranlib; ac_word=$2
37054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37055 $as_echo_n "checking for $ac_word... " >&6; }
37056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37057 $as_echo_n "(cached) " >&6
37059 if test -n "$ac_ct_RANLIB"; then
37060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37063 for as_dir in $PATH
37066 test -z "$as_dir" && as_dir=.
37067 for ac_exec_ext in '' $ac_executable_extensions; do
37068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37069 ac_cv_prog_ac_ct_RANLIB="ranlib"
37070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37080 if test -n "$ac_ct_RANLIB"; then
37081 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37082 $as_echo "$ac_ct_RANLIB" >&6; }
37084 { $as_echo "$as_me:$LINENO: result: no" >&5
37085 $as_echo "no" >&6; }
37088 if test "x$ac_ct_RANLIB" = x; then
37091 case $cross_compiling:$ac_tool_warned in
37093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37095 ac_tool_warned=yes ;;
37097 RANLIB=$ac_ct_RANLIB
37100 RANLIB="$ac_cv_prog_RANLIB"
37103 if test -n "$ac_tool_prefix"; then
37104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37105 set dummy ${ac_tool_prefix}strip; ac_word=$2
37106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37107 $as_echo_n "checking for $ac_word... " >&6; }
37108 if test "${ac_cv_prog_STRIP+set}" = set; then
37109 $as_echo_n "(cached) " >&6
37111 if test -n "$STRIP"; then
37112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37115 for as_dir in $PATH
37118 test -z "$as_dir" && as_dir=.
37119 for ac_exec_ext in '' $ac_executable_extensions; do
37120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37131 STRIP=$ac_cv_prog_STRIP
37132 if test -n "$STRIP"; then
37133 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
37134 $as_echo "$STRIP" >&6; }
37136 { $as_echo "$as_me:$LINENO: result: no" >&5
37137 $as_echo "no" >&6; }
37142 if test -z "$ac_cv_prog_STRIP"; then
37144 # Extract the first word of "strip", so it can be a program name with args.
37145 set dummy strip; ac_word=$2
37146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37147 $as_echo_n "checking for $ac_word... " >&6; }
37148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37149 $as_echo_n "(cached) " >&6
37151 if test -n "$ac_ct_STRIP"; then
37152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37155 for as_dir in $PATH
37158 test -z "$as_dir" && as_dir=.
37159 for ac_exec_ext in '' $ac_executable_extensions; do
37160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37161 ac_cv_prog_ac_ct_STRIP="strip"
37162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37172 if test -n "$ac_ct_STRIP"; then
37173 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37174 $as_echo "$ac_ct_STRIP" >&6; }
37176 { $as_echo "$as_me:$LINENO: result: no" >&5
37177 $as_echo "no" >&6; }
37180 if test "x$ac_ct_STRIP" = x; then
37183 case $cross_compiling:$ac_tool_warned in
37185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37187 ac_tool_warned=yes ;;
37192 STRIP="$ac_cv_prog_STRIP"
37197 old_CFLAGS="$CFLAGS"
37199 # Set sane defaults for various variables
37200 test -z "$AR" && AR=ar
37201 test -z "$AR_FLAGS" && AR_FLAGS=cru
37202 test -z "$AS" && AS=as
37203 test -z "$CC" && CC=cc
37204 test -z "$LTCC" && LTCC=$CC
37205 test -z "$DLLTOOL" && DLLTOOL=dlltool
37206 test -z "$LD" && LD=ld
37207 test -z "$LN_S" && LN_S="ln -s"
37208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
37209 test -z "$NM" && NM=nm
37210 test -z "$SED" && SED=sed
37211 test -z "$OBJDUMP" && OBJDUMP=objdump
37212 test -z "$RANLIB" && RANLIB=:
37213 test -z "$STRIP" && STRIP=:
37214 test -z "$ac_objext" && ac_objext=o
37216 # Determine commands to create old-style static archives.
37217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
37218 old_postinstall_cmds='chmod 644 $oldlib'
37219 old_postuninstall_cmds=
37221 if test -n "$RANLIB"; then
37224 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
37227 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
37230 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
37233 for cc_temp in $compiler""; do
37235 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37236 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37244 # Only perform the check for file, if the check method requires it
37245 case $deplibs_check_method in
37247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
37248 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
37249 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
37250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37251 $as_echo_n "(cached) " >&6
37255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37258 lt_save_MAGIC_CMD="$MAGIC_CMD"
37259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37261 for ac_dir in $ac_dummy; do
37263 test -z "$ac_dir" && ac_dir=.
37264 if test -f $ac_dir/${ac_tool_prefix}file; then
37265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
37266 if test -n "$file_magic_test_file"; then
37267 case $deplibs_check_method in
37269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37272 $EGREP "$file_magic_regex" > /dev/null; then
37277 *** Warning: the command libtool uses to detect shared libraries,
37278 *** $file_magic_cmd, produces output that libtool cannot recognize.
37279 *** The result is that libtool may fail to recognize shared libraries
37280 *** as such. This will affect the creation of libtool libraries that
37281 *** depend on shared libraries, but programs linked with such libtool
37282 *** libraries will work regardless of this problem. Nevertheless, you
37283 *** may want to report the problem to your system manager and/or to
37284 *** bug-libtool@gnu.org
37294 MAGIC_CMD="$lt_save_MAGIC_CMD"
37299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37300 if test -n "$MAGIC_CMD"; then
37301 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37302 $as_echo "$MAGIC_CMD" >&6; }
37304 { $as_echo "$as_me:$LINENO: result: no" >&5
37305 $as_echo "no" >&6; }
37308 if test -z "$lt_cv_path_MAGIC_CMD"; then
37309 if test -n "$ac_tool_prefix"; then
37310 { $as_echo "$as_me:$LINENO: checking for file" >&5
37311 $as_echo_n "checking for file... " >&6; }
37312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
37313 $as_echo_n "(cached) " >&6
37317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
37320 lt_save_MAGIC_CMD="$MAGIC_CMD"
37321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
37323 for ac_dir in $ac_dummy; do
37325 test -z "$ac_dir" && ac_dir=.
37326 if test -f $ac_dir/file; then
37327 lt_cv_path_MAGIC_CMD="$ac_dir/file"
37328 if test -n "$file_magic_test_file"; then
37329 case $deplibs_check_method in
37331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
37332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
37334 $EGREP "$file_magic_regex" > /dev/null; then
37339 *** Warning: the command libtool uses to detect shared libraries,
37340 *** $file_magic_cmd, produces output that libtool cannot recognize.
37341 *** The result is that libtool may fail to recognize shared libraries
37342 *** as such. This will affect the creation of libtool libraries that
37343 *** depend on shared libraries, but programs linked with such libtool
37344 *** libraries will work regardless of this problem. Nevertheless, you
37345 *** may want to report the problem to your system manager and/or to
37346 *** bug-libtool@gnu.org
37356 MAGIC_CMD="$lt_save_MAGIC_CMD"
37361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
37362 if test -n "$MAGIC_CMD"; then
37363 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
37364 $as_echo "$MAGIC_CMD" >&6; }
37366 { $as_echo "$as_me:$LINENO: result: no" >&5
37367 $as_echo "no" >&6; }
37380 enable_win32_dll=no
37382 # Check whether --enable-libtool-lock was given.
37383 if test "${enable_libtool_lock+set}" = set; then
37384 enableval=$enable_libtool_lock;
37387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37390 # Check whether --with-pic was given.
37391 if test "${with_pic+set}" = set; then
37392 withval=$with_pic; pic_mode="$withval"
37397 test -z "$pic_mode" && pic_mode=default
37399 # Use C for the default configuration in the libtool script
37403 ac_cpp='$CPP $CPPFLAGS'
37404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37409 # Source file extension for C test sources.
37412 # Object file extension for compiled C test sources.
37416 # Code to be used in simple compile tests
37417 lt_simple_compile_test_code="int some_variable = 0;\n"
37419 # Code to be used in simple link tests
37420 lt_simple_link_test_code='int main(){return(0);}\n'
37423 # If no C compiler was specified, use CC.
37426 # Allow CC to be a program name with arguments.
37430 # save warnings/boilerplate of simple test code
37431 ac_outfile=conftest.$ac_objext
37432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
37433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37434 _lt_compiler_boilerplate=`cat conftest.err`
37437 ac_outfile=conftest.$ac_objext
37438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
37439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
37440 _lt_linker_boilerplate=`cat conftest.err`
37445 # Check for any special shared library compilation flags.
37448 if test "$GCC" = no; then
37451 lt_prog_cc_shlib='-belf'
37455 if test -n "$lt_prog_cc_shlib"; then
37457 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
37458 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
37461 cat <<AAW_EOF >>config.warnings
37462 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
37466 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
37469 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
37470 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
37473 cat <<AAW_EOF >>config.warnings
37474 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
37478 lt_cv_prog_cc_can_build_shared=no
37484 # Check to make sure the static flag actually works.
37486 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
37487 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
37488 if test "${lt_prog_compiler_static_works+set}" = set; then
37489 $as_echo_n "(cached) " >&6
37491 lt_prog_compiler_static_works=no
37492 save_LDFLAGS="$LDFLAGS"
37493 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
37494 printf "$lt_simple_link_test_code" > conftest.$ac_ext
37495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
37496 # The linker can only warn and ignore the option if not recognized
37497 # So say no if there are warnings
37498 if test -s conftest.err; then
37499 # Append any errors to the config.log.
37500 cat conftest.err 1>&5
37501 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
37502 $SED '/^$/d' conftest.err >conftest.er2
37503 if diff conftest.exp conftest.er2 >/dev/null; then
37504 lt_prog_compiler_static_works=yes
37507 lt_prog_compiler_static_works=yes
37511 LDFLAGS="$save_LDFLAGS"
37514 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
37515 $as_echo "$lt_prog_compiler_static_works" >&6; }
37517 if test x"$lt_prog_compiler_static_works" = xyes; then
37520 lt_prog_compiler_static=
37526 ## There is no encapsulation within the following macros, do not change
37527 ## the running order or otherwise move them around unless you know exactly
37528 ## what you are doing...
37530 lt_prog_compiler_no_builtin_flag=
37532 if test "$GCC" = yes; then
37533 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
37536 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
37537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
37538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
37539 $as_echo_n "(cached) " >&6
37541 lt_cv_prog_compiler_rtti_exceptions=no
37542 ac_outfile=conftest.$ac_objext
37543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37544 lt_compiler_flag="-fno-rtti -fno-exceptions"
37545 # Insert the option either (1) after the last *FLAGS variable, or
37546 # (2) before a word containing "conftest.", or (3) at the end.
37547 # Note that $ac_compile itself does not contain backslashes and begins
37548 # with a dollar sign (not a hyphen), so the echo should work correctly.
37549 # The option is referenced via a variable to avoid confusing sed.
37550 lt_compile=`echo "$ac_compile" | $SED \
37551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37553 -e 's:$: $lt_compiler_flag:'`
37554 (eval echo "\"\$as_me:37554: $lt_compile\"" >&5)
37555 (eval "$lt_compile" 2>conftest.err)
37557 cat conftest.err >&5
37558 echo "$as_me:37558: \$? = $ac_status" >&5
37559 if (exit $ac_status) && test -s "$ac_outfile"; then
37560 # The compiler can only warn and ignore the option if not recognized
37561 # So say no if there are warnings other than the usual output.
37562 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37563 $SED '/^$/d' conftest.err >conftest.er2
37564 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37565 lt_cv_prog_compiler_rtti_exceptions=yes
37571 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
37572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
37574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
37575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
37582 lt_prog_compiler_wl=
37583 lt_prog_compiler_pic=
37584 lt_prog_compiler_static=
37586 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
37587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
37589 if test "$GCC" = yes; then
37590 lt_prog_compiler_wl='-Wl,'
37591 lt_prog_compiler_static='-static'
37595 # All AIX code is PIC.
37596 if test "$host_cpu" = ia64; then
37597 # AIX 5 now supports IA64 processor
37598 lt_prog_compiler_static='-Bstatic'
37603 # FIXME: we need at least 68020 code to build shared libraries, but
37604 # adding the `-m68020' flag to GCC prevents building anything better,
37606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
37609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37610 # PIC is the default for these OSes.
37613 mingw* | pw32* | os2*)
37614 # This hack is so that the source file can tell whether it is being
37615 # built for inclusion in a dll (and should export symbols for example).
37616 lt_prog_compiler_pic='-DDLL_EXPORT'
37619 darwin* | rhapsody*)
37620 # PIC is the default on this platform
37621 # Common symbols not allowed in MH_DYLIB files
37622 lt_prog_compiler_pic='-fno-common'
37626 # Just because we use GCC doesn't mean we suddenly get shared libraries
37627 # on systems that don't support them.
37628 lt_prog_compiler_can_build_shared=no
37633 if test -d /usr/nec; then
37634 lt_prog_compiler_pic=-Kconform_pic
37639 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37640 # not for PA HP-UX.
37646 lt_prog_compiler_pic='-fPIC'
37652 lt_prog_compiler_pic='-fPIC'
37656 # PORTME Check for flag to pass linker flags through the system compiler.
37659 lt_prog_compiler_wl='-Wl,'
37660 if test "$host_cpu" = ia64; then
37661 # AIX 5 now supports IA64 processor
37662 lt_prog_compiler_static='-Bstatic'
37664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
37668 # PIC is the default on this platform
37669 # Common symbols not allowed in MH_DYLIB files
37670 case $cc_basename in
37672 lt_prog_compiler_pic='-qnocommon'
37673 lt_prog_compiler_wl='-Wl,'
37678 mingw* | pw32* | os2*)
37679 # This hack is so that the source file can tell whether it is being
37680 # built for inclusion in a dll (and should export symbols for example).
37681 lt_prog_compiler_pic='-DDLL_EXPORT'
37684 hpux9* | hpux10* | hpux11*)
37685 lt_prog_compiler_wl='-Wl,'
37686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37687 # not for PA HP-UX.
37693 lt_prog_compiler_pic='+Z'
37696 # Is there a better lt_prog_compiler_static that works with the bundled CC?
37697 lt_prog_compiler_static='${wl}-a ${wl}archive'
37700 irix5* | irix6* | nonstopux*)
37701 lt_prog_compiler_wl='-Wl,'
37702 # PIC (with -KPIC) is the default.
37703 lt_prog_compiler_static='-non_shared'
37707 lt_prog_compiler_pic='-KPIC'
37708 lt_prog_compiler_static='-Bstatic'
37712 case $cc_basename in
37714 lt_prog_compiler_wl='-Wl,'
37715 lt_prog_compiler_pic='-KPIC'
37716 lt_prog_compiler_static='-static'
37718 pgcc* | pgf77* | pgf90* | pgf95*)
37719 # Portland Group compilers (*not* the Pentium gcc compiler,
37720 # which looks to be a dead project)
37721 lt_prog_compiler_wl='-Wl,'
37722 lt_prog_compiler_pic='-fpic'
37723 lt_prog_compiler_static='-Bstatic'
37726 lt_prog_compiler_wl='-Wl,'
37727 # All Alpha code is PIC.
37728 lt_prog_compiler_static='-non_shared'
37733 osf3* | osf4* | osf5*)
37734 lt_prog_compiler_wl='-Wl,'
37735 # All OSF/1 code is PIC.
37736 lt_prog_compiler_static='-non_shared'
37740 lt_prog_compiler_pic='-Kpic'
37741 lt_prog_compiler_static='-dn'
37745 lt_prog_compiler_pic='-KPIC'
37746 lt_prog_compiler_static='-Bstatic'
37747 case $cc_basename in
37748 f77* | f90* | f95*)
37749 lt_prog_compiler_wl='-Qoption ld ';;
37751 lt_prog_compiler_wl='-Wl,';;
37756 lt_prog_compiler_wl='-Qoption ld '
37757 lt_prog_compiler_pic='-PIC'
37758 lt_prog_compiler_static='-Bstatic'
37761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37762 lt_prog_compiler_wl='-Wl,'
37763 lt_prog_compiler_pic='-KPIC'
37764 lt_prog_compiler_static='-Bstatic'
37768 if test -d /usr/nec ;then
37769 lt_prog_compiler_pic='-Kconform_pic'
37770 lt_prog_compiler_static='-Bstatic'
37775 lt_prog_compiler_wl='-Wl,'
37776 lt_prog_compiler_can_build_shared=no
37780 lt_prog_compiler_pic='-pic'
37781 lt_prog_compiler_static='-Bstatic'
37785 lt_prog_compiler_can_build_shared=no
37790 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
37791 $as_echo "$lt_prog_compiler_pic" >&6; }
37794 # Check to make sure the PIC flag actually works.
37796 if test -n "$lt_prog_compiler_pic"; then
37798 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
37799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
37800 if test "${lt_prog_compiler_pic_works+set}" = set; then
37801 $as_echo_n "(cached) " >&6
37803 lt_prog_compiler_pic_works=no
37804 ac_outfile=conftest.$ac_objext
37805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
37807 # Insert the option either (1) after the last *FLAGS variable, or
37808 # (2) before a word containing "conftest.", or (3) at the end.
37809 # Note that $ac_compile itself does not contain backslashes and begins
37810 # with a dollar sign (not a hyphen), so the echo should work correctly.
37811 # The option is referenced via a variable to avoid confusing sed.
37812 lt_compile=`echo "$ac_compile" | $SED \
37813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37815 -e 's:$: $lt_compiler_flag:'`
37816 (eval echo "\"\$as_me:37816: $lt_compile\"" >&5)
37817 (eval "$lt_compile" 2>conftest.err)
37819 cat conftest.err >&5
37820 echo "$as_me:37820: \$? = $ac_status" >&5
37821 if (exit $ac_status) && test -s "$ac_outfile"; then
37822 # The compiler can only warn and ignore the option if not recognized
37823 # So say no if there are warnings other than the usual output.
37824 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
37825 $SED '/^$/d' conftest.err >conftest.er2
37826 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
37827 lt_prog_compiler_pic_works=yes
37833 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
37834 $as_echo "$lt_prog_compiler_pic_works" >&6; }
37836 if test x"$lt_prog_compiler_pic_works" = xyes; then
37837 case $lt_prog_compiler_pic in
37839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
37842 lt_prog_compiler_pic=
37843 lt_prog_compiler_can_build_shared=no
37848 # For platforms which do not support PIC, -DPIC is meaningless:
37850 lt_prog_compiler_pic=
37853 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
37857 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
37858 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
37859 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
37860 $as_echo_n "(cached) " >&6
37862 lt_cv_prog_compiler_c_o=no
37863 $rm -r conftest 2>/dev/null
37867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37869 lt_compiler_flag="-o out/conftest2.$ac_objext"
37870 # Insert the option either (1) after the last *FLAGS variable, or
37871 # (2) before a word containing "conftest.", or (3) at the end.
37872 # Note that $ac_compile itself does not contain backslashes and begins
37873 # with a dollar sign (not a hyphen), so the echo should work correctly.
37874 lt_compile=`echo "$ac_compile" | $SED \
37875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37877 -e 's:$: $lt_compiler_flag:'`
37878 (eval echo "\"\$as_me:37878: $lt_compile\"" >&5)
37879 (eval "$lt_compile" 2>out/conftest.err)
37881 cat out/conftest.err >&5
37882 echo "$as_me:37882: \$? = $ac_status" >&5
37883 if (exit $ac_status) && test -s out/conftest2.$ac_objext
37885 # The compiler can only warn and ignore the option if not recognized
37886 # So say no if there are warnings
37887 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
37888 $SED '/^$/d' out/conftest.err >out/conftest.er2
37889 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
37890 lt_cv_prog_compiler_c_o=yes
37895 # SGI C++ compiler will create directory out/ii_files/ for
37896 # template instantiation
37897 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
37898 $rm out/* && rmdir out
37904 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
37905 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
37908 hard_links="nottested"
37909 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
37910 # do not overwrite the value of need_locks provided by the user
37911 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
37912 $as_echo_n "checking if we can lock with hard links... " >&6; }
37915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
37917 ln conftest.a conftest.b 2>&5 || hard_links=no
37918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
37919 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
37920 $as_echo "$hard_links" >&6; }
37921 if test "$hard_links" = no; then
37923 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
37924 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
37927 cat <<AAW_EOF >>config.warnings
37928 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
37938 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
37939 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
37942 allow_undefined_flag=
37943 enable_shared_with_static_runtimes=no
37945 archive_expsym_cmds=
37946 old_archive_From_new_cmds=
37947 old_archive_from_expsyms_cmds=
37948 export_dynamic_flag_spec=
37949 whole_archive_flag_spec=
37950 thread_safe_flag_spec=
37951 hardcode_libdir_flag_spec=
37952 hardcode_libdir_flag_spec_ld=
37953 hardcode_libdir_separator=
37955 hardcode_minus_L=no
37956 hardcode_shlibpath_var=unsupported
37957 link_all_deplibs=unknown
37958 hardcode_automatic=no
37960 module_expsym_cmds=
37961 always_export_symbols=no
37962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
37963 # include_expsyms should be a list of space-separated symbols to be *always*
37964 # included in the symbol list
37966 # exclude_expsyms can be an extended regexp of symbols to exclude
37967 # it will be wrapped by ` (' and `)$', so one must not match beginning or
37968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
37969 # as well as any symbol that contains `d'.
37970 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
37971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
37972 # platforms (ab)use it in PIC code, but their linkers get confused if
37973 # the symbol is explicitly referenced. Since portable code cannot
37974 # rely on this symbol name, it's probably fine to never include it in
37975 # preloaded symbol tables.
37976 extract_expsyms_cmds=
37977 # Just being paranoid about ensuring that cc_basename is set.
37978 for cc_temp in $compiler""; do
37980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37986 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37989 cygwin* | mingw* | pw32*)
37990 # FIXME: the MSVC++ port hasn't been tested in a loooong time
37991 # When not using gcc, we currently assume that we are using
37992 # Microsoft Visual C++.
37993 if test "$GCC" != yes; then
38003 if test "$with_gnu_ld" = yes; then
38004 # If archive_cmds runs LD, not CC, wlarc should be empty
38007 # Set some defaults for GNU ld with shared library support. These
38008 # are reset later if shared libraries are not supported. Putting them
38009 # here allows them to be overridden if necessary.
38010 runpath_var=LD_RUN_PATH
38011 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
38012 export_dynamic_flag_spec='${wl}--export-dynamic'
38013 # ancient GNU ld didn't support --whole-archive et. al.
38014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
38015 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38017 whole_archive_flag_spec=
38019 supports_anon_versioning=no
38020 case `$LD -v 2>/dev/null` in
38021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
38022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
38023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
38024 *\ 2.11.*) ;; # other 2.11 versions
38025 *) supports_anon_versioning=yes ;;
38028 # See if GNU ld supports shared libraries.
38030 aix3* | aix4* | aix5*)
38031 # On AIX/PPC, the GNU linker is very broken
38032 if test "$host_cpu" != ia64; then
38036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
38037 *** to be unable to reliably create shared libraries on AIX.
38038 *** Therefore, libtool is disabling shared libraries support. If you
38039 *** really care for shared libraries, you may want to modify your PATH
38040 *** so that a non-GNU linker is found, and then restart.
38047 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)'
38048 hardcode_libdir_flag_spec='-L$libdir'
38049 hardcode_minus_L=yes
38051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
38052 # that the semantics of dynamic libraries on AmigaOS, at least up
38053 # to version 4, is to share data among multiple programs linked
38054 # with the same dynamic library. Since this doesn't match the
38055 # behavior of shared libraries on other platforms, we can't use
38061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38062 allow_undefined_flag=unsupported
38063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
38064 # support --undefined. This deserves some investigation. FIXME
38065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38071 cygwin* | mingw* | pw32*)
38072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
38073 # as there is no search path for DLLs.
38074 hardcode_libdir_flag_spec='-L$libdir'
38075 allow_undefined_flag=unsupported
38076 always_export_symbols=no
38077 enable_shared_with_static_runtimes=yes
38078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
38080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
38081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
38082 # If the export-symbols file already is a .def file (1st line
38083 # is EXPORTS), use it as is; otherwise, prepend...
38084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
38085 cp $export_symbols $output_objdir/$soname.def;
38087 echo EXPORTS > $output_objdir/$soname.def;
38088 cat $export_symbols >> $output_objdir/$soname.def;
38090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
38097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38099 case $cc_basename,$host_cpu in
38100 pgcc*) # Portland Group C compiler
38101 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'
38102 tmp_addflag=' $pic_flag'
38104 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
38105 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'
38106 tmp_addflag=' $pic_flag -Mnomain' ;;
38107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
38108 tmp_addflag=' -i_dynamic' ;;
38109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
38110 tmp_addflag=' -i_dynamic -nofor_main' ;;
38111 ifc* | ifort*) # Intel Fortran compiler
38112 tmp_addflag=' -nofor_main' ;;
38114 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38116 if test $supports_anon_versioning = yes; then
38117 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
38118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
38119 $echo "local: *; };" >> $output_objdir/$libname.ver~
38120 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
38128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
38132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
38142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
38143 *** create shared libraries on Solaris systems. Therefore, libtool
38144 *** is disabling shared libraries support. We urge you to upgrade GNU
38145 *** binutils to release 2.9.1 or newer. Another option is to modify
38146 *** your PATH or compiler configuration so that the native linker is
38147 *** used, and then restart.
38150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38159 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38161 hardcode_direct=yes
38162 hardcode_shlibpath_var=no
38166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
38167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
38168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
38175 if test "$ld_shlibs" = no; then
38177 hardcode_libdir_flag_spec=
38178 export_dynamic_flag_spec=
38179 whole_archive_flag_spec=
38182 # PORTME fill in a description of your system's linker (not GNU ld)
38185 allow_undefined_flag=unsupported
38186 always_export_symbols=yes
38187 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'
38188 # Note: this linker hardcodes the directories in LIBPATH if there
38189 # are no directories specified by -L.
38190 hardcode_minus_L=yes
38191 if test "$GCC" = yes && test -z "$link_static_flag"; then
38192 # Neither direct hardcoding nor static linking is supported with a
38194 hardcode_direct=unsupported
38199 if test "$host_cpu" = ia64; then
38200 # On IA64, the linker does run time linking by default, so we don't
38201 # have to do anything special.
38202 aix_use_runtimelinking=no
38203 exp_sym_flag='-Bexport'
38206 # If we're using GNU nm, then we don't want the "-C" option.
38207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
38208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
38209 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'
38211 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'
38213 aix_use_runtimelinking=no
38215 # Test if we are trying to use run time linking or normal
38216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38217 # need to do runtime linking.
38218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38219 for ld_flag in $LDFLAGS; do
38220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
38221 aix_use_runtimelinking=yes
38227 exp_sym_flag='-bexport'
38228 no_entry_flag='-bnoentry'
38231 # When large executables or shared objects are built, AIX ld can
38232 # have problems creating the table of contents. If linking a library
38233 # or program results in "error TOC overflow" add -mminimal-toc to
38234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
38235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38238 hardcode_direct=yes
38239 hardcode_libdir_separator=':'
38240 link_all_deplibs=yes
38242 if test "$GCC" = yes; then
38243 case $host_os in aix4.[012]|aix4.[012].*)
38244 # We only want to do this on AIX 4.2 and lower, the check
38245 # below for broken collect2 doesn't work under 4.3+
38246 collect2name=`${CC} -print-prog-name=collect2`
38247 if test -f "$collect2name" && \
38248 strings "$collect2name" | grep resolve_lib_name >/dev/null
38250 # We have reworked collect2
38251 hardcode_direct=yes
38253 # We have old collect2
38254 hardcode_direct=unsupported
38255 # It fails to find uninstalled libraries when the uninstalled
38256 # path is not listed in the libpath. Setting hardcode_minus_L
38257 # to unsupported forces relinking
38258 hardcode_minus_L=yes
38259 hardcode_libdir_flag_spec='-L$libdir'
38260 hardcode_libdir_separator=
38263 shared_flag='-shared'
38264 if test "$aix_use_runtimelinking" = yes; then
38265 shared_flag="$shared_flag "'${wl}-G'
38269 if test "$host_cpu" = ia64; then
38270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38271 # chokes on -Wl,-G. The following line is correct:
38274 if test "$aix_use_runtimelinking" = yes; then
38275 shared_flag='${wl}-G'
38277 shared_flag='${wl}-bM:SRE'
38282 # It seems that -bexpall does not export symbols beginning with
38283 # underscore (_), so it is better to generate a list of symbols to export.
38284 always_export_symbols=yes
38285 if test "$aix_use_runtimelinking" = yes; then
38286 # Warning - without using the other runtime loading flags (-brtl),
38287 # -berok will link without error, but may produce a broken library.
38288 allow_undefined_flag='-berok'
38289 # Determine the default libpath from the value encoded in an empty executable.
38290 cat >conftest.$ac_ext <<_ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h. */
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (ac_try="$ac_link"
38307 case "(($ac_try" in
38308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38309 *) ac_try_echo=$ac_try;;
38311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38312 $as_echo "$ac_try_echo") >&5
38313 (eval "$ac_link") 2>conftest.er1
38315 grep -v '^ *+' conftest.er1 >conftest.err
38317 cat conftest.err >&5
38318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); } && {
38320 test -z "$ac_c_werror_flag" ||
38321 test ! -s conftest.err
38322 } && test -s conftest$ac_exeext && {
38323 test "$cross_compiling" = yes ||
38324 $as_test_x conftest$ac_exeext
38327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38329 # Check for a 64-bit object if we didn't find anything.
38330 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; }
38333 $as_echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38339 rm -rf conftest.dSYM
38340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38341 conftest$ac_exeext conftest.$ac_ext
38342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38345 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38347 if test "$host_cpu" = ia64; then
38348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
38349 allow_undefined_flag="-z nodefs"
38350 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
38352 # Determine the default libpath from the value encoded in an empty executable.
38353 cat >conftest.$ac_ext <<_ACEOF
38356 cat confdefs.h >>conftest.$ac_ext
38357 cat >>conftest.$ac_ext <<_ACEOF
38358 /* end confdefs.h. */
38368 rm -f conftest.$ac_objext conftest$ac_exeext
38369 if { (ac_try="$ac_link"
38370 case "(($ac_try" in
38371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38372 *) ac_try_echo=$ac_try;;
38374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38375 $as_echo "$ac_try_echo") >&5
38376 (eval "$ac_link") 2>conftest.er1
38378 grep -v '^ *+' conftest.er1 >conftest.err
38380 cat conftest.err >&5
38381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); } && {
38383 test -z "$ac_c_werror_flag" ||
38384 test ! -s conftest.err
38385 } && test -s conftest$ac_exeext && {
38386 test "$cross_compiling" = yes ||
38387 $as_test_x conftest$ac_exeext
38390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38392 # Check for a 64-bit object if we didn't find anything.
38393 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; }
38396 $as_echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38402 rm -rf conftest.dSYM
38403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38404 conftest$ac_exeext conftest.$ac_ext
38405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
38408 # Warning - without using the other run time loading flags,
38409 # -berok will link without error, but may produce a broken library.
38410 no_undefined_flag=' ${wl}-bernotok'
38411 allow_undefined_flag=' ${wl}-berok'
38412 # -bexpall does not export symbols beginning with underscore (_)
38413 always_export_symbols=yes
38414 # Exported symbols can be pulled into shared objects from archives
38415 whole_archive_flag_spec=' '
38416 archive_cmds_need_lc=yes
38417 # This is similar to how AIX traditionally builds its shared libraries.
38418 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
38424 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)'
38425 hardcode_libdir_flag_spec='-L$libdir'
38426 hardcode_minus_L=yes
38427 # see comment about different semantics on the GNU ld section
38432 export_dynamic_flag_spec=-rdynamic
38435 cygwin* | mingw* | pw32*)
38436 # When not using gcc, we currently assume that we are using
38437 # Microsoft Visual C++.
38438 # hardcode_libdir_flag_spec is actually meaningless, as there is
38439 # no search path for DLLs.
38440 hardcode_libdir_flag_spec=' '
38441 allow_undefined_flag=unsupported
38442 # Tell ltmain to make .lib files, not .a files.
38444 # Tell ltmain to make .dll files, not .so files.
38446 # FIXME: Setting linknames here is a bad hack.
38447 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
38448 # The linker will automatically build a .lib file if we build a DLL.
38449 old_archive_From_new_cmds='true'
38450 # FIXME: Should let the user specify the lib program.
38451 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
38452 fix_srcfile_path='`cygpath -w "$srcfile"`'
38453 enable_shared_with_static_runtimes=yes
38456 darwin* | rhapsody*)
38458 rhapsody* | darwin1.[012])
38459 allow_undefined_flag='${wl}-undefined ${wl}suppress'
38462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
38463 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38465 case ${MACOSX_DEPLOYMENT_TARGET} in
38467 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38470 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
38476 archive_cmds_need_lc=no
38478 hardcode_automatic=yes
38479 hardcode_shlibpath_var=unsupported
38480 whole_archive_flag_spec=''
38481 link_all_deplibs=yes
38482 if test "$GCC" = yes ; then
38483 output_verbose_link_cmd='echo'
38484 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
38485 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38487 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}'
38488 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}'
38490 case $cc_basename in
38492 output_verbose_link_cmd='echo'
38493 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
38494 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38496 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}'
38497 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}'
38507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38508 hardcode_libdir_flag_spec='-L$libdir'
38509 hardcode_shlibpath_var=no
38516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38517 # support. Future versions do this automatically, but an explicit c++rt0.o
38518 # does not break anything, and helps significantly (at the cost of a little
38521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38522 hardcode_libdir_flag_spec='-R$libdir'
38523 hardcode_direct=yes
38524 hardcode_shlibpath_var=no
38527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38530 hardcode_direct=yes
38531 hardcode_minus_L=yes
38532 hardcode_shlibpath_var=no
38535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38536 freebsd* | kfreebsd*-gnu | dragonfly*)
38537 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38538 hardcode_libdir_flag_spec='-R$libdir'
38539 hardcode_direct=yes
38540 hardcode_shlibpath_var=no
38544 if test "$GCC" = yes; then
38545 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'
38547 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'
38549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38550 hardcode_libdir_separator=:
38551 hardcode_direct=yes
38553 # hardcode_minus_L: Not really in the search PATH,
38554 # but as the default location of the library.
38555 hardcode_minus_L=yes
38556 export_dynamic_flag_spec='${wl}-E'
38560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38563 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38572 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
38575 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38579 if test "$with_gnu_ld" = no; then
38582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38583 hardcode_libdir_flag_spec_ld='+b $libdir'
38584 hardcode_libdir_separator=:
38586 hardcode_shlibpath_var=no
38589 hardcode_libdir_flag_spec='-L$libdir'
38591 hardcode_shlibpath_var=no
38593 # hardcode_minus_L: Not really in the search PATH,
38594 # but as the default location of the library.
38595 hardcode_minus_L=yes
38598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
38599 hardcode_libdir_separator=:
38600 hardcode_direct=yes
38601 export_dynamic_flag_spec='${wl}-E'
38603 # hardcode_minus_L: Not really in the search PATH,
38604 # but as the default location of the library.
38605 hardcode_minus_L=yes
38611 irix5* | irix6* | nonstopux*)
38612 if test "$GCC" = yes; then
38613 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'
38615 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'
38616 hardcode_libdir_flag_spec_ld='-rpath $libdir'
38618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38619 hardcode_libdir_separator=:
38620 link_all_deplibs=yes
38624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
38627 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
38629 hardcode_libdir_flag_spec='-R$libdir'
38630 hardcode_direct=yes
38631 hardcode_shlibpath_var=no
38635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38636 hardcode_direct=yes
38637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38638 hardcode_libdir_separator=:
38639 hardcode_shlibpath_var=no
38643 hardcode_direct=yes
38644 hardcode_shlibpath_var=no
38645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38647 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38649 export_dynamic_flag_spec='${wl}-E'
38652 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
38653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38654 hardcode_libdir_flag_spec='-R$libdir'
38657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
38665 hardcode_libdir_flag_spec='-L$libdir'
38666 hardcode_minus_L=yes
38667 allow_undefined_flag=unsupported
38668 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'
38669 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38673 if test "$GCC" = yes; then
38674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38675 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'
38677 allow_undefined_flag=' -expect_unresolved \*'
38678 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'
38680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38681 hardcode_libdir_separator=:
38684 osf4* | osf5*) # as osf3* with the addition of -msym flag
38685 if test "$GCC" = yes; then
38686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
38687 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'
38688 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
38690 allow_undefined_flag=' -expect_unresolved \*'
38691 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'
38692 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
38693 $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'
38695 # Both c and cxx compiler support -rpath directly
38696 hardcode_libdir_flag_spec='-rpath $libdir'
38698 hardcode_libdir_separator=:
38702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38703 hardcode_shlibpath_var=no
38704 export_dynamic_flag_spec='${wl}-Bexport'
38705 runpath_var=LD_RUN_PATH
38706 hardcode_runpath_var=yes
38710 no_undefined_flag=' -z text'
38711 if test "x$archive_cmds" = "x"; then
38712 if test "$GCC" = yes; then
38714 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
38715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38719 archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38720 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38721 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38725 lt_prog_compiler_static='-static'
38726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38727 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38729 lt_prog_compiler_static='-static'
38732 hardcode_libdir_flag_spec='-R$libdir'
38733 hardcode_shlibpath_var=no
38735 solaris2.[0-5] | solaris2.[0-5].*) ;;
38737 # The compiler driver will combine linker options so we
38738 # cannot just pass the convience library names through
38739 # without $wl, iff we do not link with $LD.
38740 # Luckily, gcc supports the same syntax we need for Sun Studio.
38741 # Supported since Solaris 2.6 (maybe 2.5.1?)
38744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
38746 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' ;;
38749 link_all_deplibs=yes
38753 if test "x$host_vendor" = xsequent; then
38754 # Use $CC to link under sequent, because it throws in some extra .o
38755 # files that make .init and .fini sections work.
38756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38760 hardcode_libdir_flag_spec='-L$libdir'
38761 hardcode_direct=yes
38762 hardcode_minus_L=yes
38763 hardcode_shlibpath_var=no
38767 case $host_vendor in
38769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38770 hardcode_direct=yes # is this really true???
38773 ## LD is ld it makes a PLAMLIB
38774 ## CC just makes a GrossModule.
38775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38776 reload_cmds='$CC -r -o $output$reload_objs'
38780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
38784 runpath_var='LD_RUN_PATH'
38785 hardcode_shlibpath_var=no
38789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38790 hardcode_shlibpath_var=no
38791 export_dynamic_flag_spec='-Bexport'
38795 if test -d /usr/nec; then
38796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38797 hardcode_shlibpath_var=no
38798 runpath_var=LD_RUN_PATH
38799 hardcode_runpath_var=yes
38805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38806 hardcode_direct=yes
38807 hardcode_minus_L=no
38808 hardcode_shlibpath_var=no
38809 hardcode_runpath_var=yes
38810 runpath_var=LD_RUN_PATH
38813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
38814 no_undefined_flag='${wl}-z ${wl}text'
38815 if test "$GCC" = yes; then
38816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38818 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38820 runpath_var='LD_RUN_PATH'
38821 hardcode_shlibpath_var=no
38825 no_undefined_flag=' -z text'
38826 # $CC -shared without GNU ld will not create a library from C++
38827 # object files and a static libstdc++, better avoid it by now
38828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38829 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38831 hardcode_libdir_flag_spec=
38832 hardcode_shlibpath_var=no
38833 runpath_var='LD_RUN_PATH'
38837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38838 hardcode_libdir_flag_spec='-L$libdir'
38839 hardcode_shlibpath_var=no
38848 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
38849 $as_echo "$ld_shlibs" >&6; }
38850 test "$ld_shlibs" = no && can_build_shared=no
38852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
38853 if test "$GCC" = yes; then
38854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
38858 # Do we need to explicitly link libc?
38860 case "x$archive_cmds_need_lc" in
38862 # Assume -lc should be added
38863 archive_cmds_need_lc=yes
38865 if test "$enable_shared" = yes && test "$GCC" = yes; then
38866 case $archive_cmds in
38868 # FIXME: we may have to deal with multi-command sequences.
38871 # Test whether the compiler implicitly links with -lc since on some
38872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
38873 # to ld, don't add -lc before -lgcc.
38874 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
38875 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
38877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880 (eval $ac_compile) 2>&5
38882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); } 2>conftest.err; then
38886 libobjs=conftest.$ac_objext
38888 wl=$lt_prog_compiler_wl
38894 lt_save_allow_undefined_flag=$allow_undefined_flag
38895 allow_undefined_flag=
38896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
38897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
38899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); }
38902 archive_cmds_need_lc=no
38904 archive_cmds_need_lc=yes
38906 allow_undefined_flag=$lt_save_allow_undefined_flag
38908 cat conftest.err 1>&5
38911 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
38912 $as_echo "$archive_cmds_need_lc" >&6; }
38919 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
38920 $as_echo_n "checking dynamic linker characteristics... " >&6; }
38921 library_names_spec=
38922 libname_spec='lib$name'
38926 postuninstall_cmds=
38930 shlibpath_overrides_runpath=unknown
38932 dynamic_linker="$host_os ld.so"
38933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
38934 if test "$GCC" = yes; then
38935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
38937 # if the path contains ";" then we assume it to be the separator
38938 # otherwise default to the standard path separator (i.e. ":") - it is
38939 # assumed that no part of a normal pathname contains ";" but that should
38940 # okay in the real world where ";" in dirpaths is itself problematic.
38941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
38946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38948 need_lib_prefix=unknown
38949 hardcode_into_libs=no
38951 # when you set need_version to no, make sure it does not cause -set_version
38952 # flags to be left without arguments
38953 need_version=unknown
38958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38959 shlibpath_var=LIBPATH
38961 # AIX 3 has no versioning support, so we append a major version to the name.
38962 soname_spec='${libname}${release}${shared_ext}$major'
38969 hardcode_into_libs=yes
38970 if test "$host_cpu" = ia64; then
38971 # AIX 5 supports IA64
38972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38973 shlibpath_var=LD_LIBRARY_PATH
38975 # With GCC up to 2.95.x, collect2 would create an import file
38976 # for dependence libraries. The import file would start with
38977 # the line `#! .'. This would cause the generated library to
38978 # depend on `.', always an invalid library. This was fixed in
38979 # development snapshots of GCC prior to 3.0.
38981 aix4 | aix4.[01] | aix4.[01].*)
38982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38987 can_build_shared=no
38991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38992 # soname into executable. Probably we can add versioning support to
38993 # collect2, so additional links can be useful in future.
38994 if test "$aix_use_runtimelinking" = yes; then
38995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38996 # instead of lib<name>.a to let people know that these are not
38997 # typical AIX shared libraries.
38998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39000 # We preserve .a as extension for shared libraries through AIX4.2
39001 # and later when we are not doing run time linking.
39002 library_names_spec='${libname}${release}.a $libname.a'
39003 soname_spec='${libname}${release}${shared_ext}$major'
39005 shlibpath_var=LIBPATH
39010 library_names_spec='$libname.ixlibrary $libname.a'
39011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
39012 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'
39016 library_names_spec='${libname}${shared_ext}'
39017 dynamic_linker="$host_os ld.so"
39018 shlibpath_var=LIBRARY_PATH
39024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39025 soname_spec='${libname}${release}${shared_ext}$major'
39026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
39027 shlibpath_var=LD_LIBRARY_PATH
39028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
39029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
39030 # the default ld.so.conf also contains /usr/contrib/lib and
39031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
39032 # libtool to hard-code these into programs
39035 cygwin* | mingw* | pw32*)
39036 version_type=windows
39041 case $GCC,$host_os in
39042 yes,cygwin* | yes,mingw* | yes,pw32*)
39043 library_names_spec='$libname.dll.a'
39044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
39045 postinstall_cmds='base_file=`basename \${file}`~
39046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
39047 dldir=$destdir/`dirname \$dlpath`~
39048 test -d \$dldir || mkdir -p \$dldir~
39049 $install_prog $dir/$dlname \$dldir/$dlname~
39050 chmod a+x \$dldir/$dlname'
39051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
39052 dlpath=$dir/\$dldll~
39054 shlibpath_overrides_runpath=yes
39058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
39059 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39060 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
39063 # MinGW DLLs use traditional 'lib' prefix
39064 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
39066 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
39067 # It is most probably a Windows format PATH printed by
39068 # mingw gcc, but we are running on Cygwin. Gcc prints its search
39069 # path with ; separators, and with drive letters. We can handle the
39070 # drive letters (cygwin fileutils understands them), so leave them,
39071 # especially as we might pass files found there to a mingw objdump,
39072 # which wouldn't understand a cygwinified path. Ahh.
39073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
39075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
39079 # pw32 DLLs use 'pw' prefix rather than 'lib'
39080 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
39086 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
39089 dynamic_linker='Win32 ld.exe'
39090 # FIXME: first we should search . and the directory the executable is in
39094 darwin* | rhapsody*)
39095 dynamic_linker="$host_os dyld"
39096 version_type=darwin
39099 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
39100 soname_spec='${libname}${release}${major}$shared_ext'
39101 shlibpath_overrides_runpath=yes
39102 shlibpath_var=DYLD_LIBRARY_PATH
39103 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
39104 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
39105 if test "$GCC" = yes; then
39106 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"`
39108 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
39110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
39117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
39118 soname_spec='${libname}${release}${shared_ext}$major'
39119 shlibpath_var=LD_LIBRARY_PATH
39130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39131 soname_spec='${libname}${release}${shared_ext}$major'
39132 shlibpath_var=LD_LIBRARY_PATH
39133 shlibpath_overrides_runpath=no
39134 hardcode_into_libs=yes
39135 dynamic_linker='GNU ld.so'
39138 freebsd* | dragonfly*)
39139 # DragonFly does not have aout. When/if they implement a new
39140 # versioning mechanism, adjust this.
39141 if test -x /usr/bin/objformat; then
39142 objformat=`/usr/bin/objformat`
39145 freebsd[123]*) objformat=aout ;;
39146 *) objformat=elf ;;
39149 version_type=freebsd-$objformat
39150 case $version_type in
39152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
39157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
39161 shlibpath_var=LD_LIBRARY_PATH
39164 shlibpath_overrides_runpath=yes
39166 freebsd3.[01]* | freebsdelf3.[01]*)
39167 shlibpath_overrides_runpath=yes
39168 hardcode_into_libs=yes
39171 shlibpath_overrides_runpath=no
39172 hardcode_into_libs=yes
39181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
39182 soname_spec='${libname}${release}${shared_ext}$major'
39183 shlibpath_var=LD_LIBRARY_PATH
39184 hardcode_into_libs=yes
39187 hpux9* | hpux10* | hpux11*)
39188 # Give a soname corresponding to the major version so that dld.sl refuses to
39189 # link against other versions.
39196 hardcode_into_libs=yes
39197 dynamic_linker="$host_os dld.so"
39198 shlibpath_var=LD_LIBRARY_PATH
39199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39201 soname_spec='${libname}${release}${shared_ext}$major'
39202 if test "X$HPUX_IA64_MODE" = X32; then
39203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
39205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
39207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39211 hardcode_into_libs=yes
39212 dynamic_linker="$host_os dld.sl"
39213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
39214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
39215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39216 soname_spec='${libname}${release}${shared_ext}$major'
39217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
39218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
39222 dynamic_linker="$host_os dld.sl"
39223 shlibpath_var=SHLIB_PATH
39224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
39225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39226 soname_spec='${libname}${release}${shared_ext}$major'
39229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
39230 postinstall_cmds='chmod 555 $lib'
39233 irix5* | irix6* | nonstopux*)
39235 nonstopux*) version_type=nonstopux ;;
39237 if test "$lt_cv_prog_gnu_ld" = yes; then
39245 soname_spec='${libname}${release}${shared_ext}$major'
39246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
39248 irix5* | nonstopux*)
39249 libsuff= shlibsuff=
39252 case $LD in # libtool.m4 will add one of these switches to LD
39253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
39254 libsuff= shlibsuff= libmagic=32-bit;;
39255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
39256 libsuff=32 shlibsuff=N32 libmagic=N32;;
39257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
39258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
39259 *) libsuff= shlibsuff= libmagic=never-match;;
39263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
39264 shlibpath_overrides_runpath=no
39265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
39266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
39267 hardcode_into_libs=yes
39270 # No shared lib support for Linux oldld, aout, or coff.
39271 linux*oldld* | linux*aout* | linux*coff*)
39275 # This must be Linux ELF.
39280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39281 soname_spec='${libname}${release}${shared_ext}$major'
39282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
39283 shlibpath_var=LD_LIBRARY_PATH
39284 shlibpath_overrides_runpath=no
39285 # This implies no fast_install, which is unacceptable.
39286 # Some rework will be needed to allow for fast_install
39287 # before this can be enabled.
39288 hardcode_into_libs=yes
39290 # Append ld.so.conf contents to the search path
39291 if test -f /etc/ld.so.conf; then
39292 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' ' '`
39293 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
39296 # We used to test for /lib/ld.so.1 and disable shared libraries on
39297 # powerpc, because MkLinux only supported shared libraries with the
39298 # GNU dynamic linker. Since this was broken with cross compilers,
39299 # most powerpc-linux boxes support dynamic linking these days and
39300 # people can always --disable-shared, the test was removed, and we
39301 # assume the GNU/Linux dynamic linker is in use.
39302 dynamic_linker='GNU/Linux ld.so'
39309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39310 soname_spec='${libname}${release}${shared_ext}$major'
39311 shlibpath_var=LD_LIBRARY_PATH
39312 shlibpath_overrides_runpath=no
39313 hardcode_into_libs=yes
39314 dynamic_linker='GNU ld.so'
39321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39324 dynamic_linker='NetBSD (a.out) ld.so'
39326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39327 soname_spec='${libname}${release}${shared_ext}$major'
39328 dynamic_linker='NetBSD ld.elf_so'
39330 shlibpath_var=LD_LIBRARY_PATH
39331 shlibpath_overrides_runpath=yes
39332 hardcode_into_libs=yes
39337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39338 shlibpath_var=LD_LIBRARY_PATH
39339 shlibpath_overrides_runpath=yes
39346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39347 soname_spec='${libname}${release}${shared_ext}$major'
39348 shlibpath_var=LD_LIBRARY_PATH
39349 shlibpath_overrides_runpath=yes
39355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
39357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39358 *) need_version=no ;;
39360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39362 shlibpath_var=LD_LIBRARY_PATH
39363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39365 openbsd2.[89] | openbsd2.[89].*)
39366 shlibpath_overrides_runpath=no
39369 shlibpath_overrides_runpath=yes
39373 shlibpath_overrides_runpath=yes
39378 libname_spec='$name'
39381 library_names_spec='$libname${shared_ext} $libname.a'
39382 dynamic_linker='OS/2 ld.exe'
39383 shlibpath_var=LIBPATH
39386 osf3* | osf4* | osf5*)
39390 soname_spec='${libname}${release}${shared_ext}$major'
39391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39392 shlibpath_var=LD_LIBRARY_PATH
39393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
39394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
39399 soname_spec='${libname}${release}${shared_ext}$major'
39400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39401 shlibpath_var=LD_LIBRARY_PATH
39408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39409 soname_spec='${libname}${release}${shared_ext}$major'
39410 shlibpath_var=LD_LIBRARY_PATH
39411 shlibpath_overrides_runpath=yes
39412 hardcode_into_libs=yes
39413 # ldd complains unless libraries are executable
39414 postinstall_cmds='chmod +x $lib'
39419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
39421 shlibpath_var=LD_LIBRARY_PATH
39422 shlibpath_overrides_runpath=yes
39423 if test "$with_gnu_ld" = yes; then
39429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
39431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39432 soname_spec='${libname}${release}${shared_ext}$major'
39433 shlibpath_var=LD_LIBRARY_PATH
39434 case $host_vendor in
39436 shlibpath_overrides_runpath=no
39438 export_dynamic_flag_spec='${wl}-Blargedynsym'
39439 runpath_var=LD_RUN_PATH
39447 shlibpath_overrides_runpath=no
39448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
39454 if test -d /usr/nec ;then
39456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
39457 soname_spec='$libname${shared_ext}.$major'
39458 shlibpath_var=LD_LIBRARY_PATH
39464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39465 soname_spec='${libname}${release}${shared_ext}$major'
39466 shlibpath_var=LD_LIBRARY_PATH
39473 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
39474 $as_echo "$dynamic_linker" >&6; }
39475 test "$dynamic_linker" = no && can_build_shared=no
39477 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
39478 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
39480 if test -n "$hardcode_libdir_flag_spec" || \
39481 test -n "$runpath_var" || \
39482 test "X$hardcode_automatic" = "Xyes" ; then
39484 # We can hardcode non-existant directories.
39485 if test "$hardcode_direct" != no &&
39486 # If the only mechanism to avoid hardcoding is shlibpath_var, we
39487 # have to relink, otherwise we might link with an installed library
39488 # when we should be linking with a yet-to-be-installed one
39489 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
39490 test "$hardcode_minus_L" != no; then
39491 # Linking always hardcodes the temporary library directory.
39492 hardcode_action=relink
39494 # We can link without hardcoding, and we can hardcode nonexisting dirs.
39495 hardcode_action=immediate
39498 # We cannot hardcode anything, or else we can only hardcode existing
39500 hardcode_action=unsupported
39502 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
39503 $as_echo "$hardcode_action" >&6; }
39505 if test "$hardcode_action" = relink; then
39506 # Fast installation is not supported
39507 enable_fast_install=no
39508 elif test "$shlibpath_overrides_runpath" = yes ||
39509 test "$enable_shared" = no; then
39510 # Fast installation is not necessary
39511 enable_fast_install=needless
39516 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
39517 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
39518 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
39519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
39520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
39521 { $as_echo "$as_me:$LINENO: result: yes" >&5
39522 $as_echo "yes" >&6; }
39524 # FIXME - insert some real tests, host_os isn't really good enough
39527 if test -n "$STRIP" ; then
39528 striplib="$STRIP -x"
39529 { $as_echo "$as_me:$LINENO: result: yes" >&5
39530 $as_echo "yes" >&6; }
39532 { $as_echo "$as_me:$LINENO: result: no" >&5
39533 $as_echo "no" >&6; }
39537 { $as_echo "$as_me:$LINENO: result: no" >&5
39538 $as_echo "no" >&6; }
39543 if test "x$enable_dlopen" != xyes; then
39544 enable_dlopen=unknown
39545 enable_dlopen_self=unknown
39546 enable_dlopen_self_static=unknown
39553 lt_cv_dlopen="load_add_on"
39555 lt_cv_dlopen_self=yes
39559 lt_cv_dlopen="LoadLibrary"
39564 lt_cv_dlopen="dlopen"
39569 # if libdl is installed we need to link against it
39570 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39571 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39573 $as_echo_n "(cached) " >&6
39575 ac_check_lib_save_LIBS=$LIBS
39577 cat >conftest.$ac_ext <<_ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h. */
39584 /* Override any GCC internal prototype to avoid an error.
39585 Use char because int might match the return type of a GCC
39586 builtin and then its argument prototype would still apply. */
39599 rm -f conftest.$ac_objext conftest$ac_exeext
39600 if { (ac_try="$ac_link"
39601 case "(($ac_try" in
39602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603 *) ac_try_echo=$ac_try;;
39605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39606 $as_echo "$ac_try_echo") >&5
39607 (eval "$ac_link") 2>conftest.er1
39609 grep -v '^ *+' conftest.er1 >conftest.err
39611 cat conftest.err >&5
39612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); } && {
39614 test -z "$ac_c_werror_flag" ||
39615 test ! -s conftest.err
39616 } && test -s conftest$ac_exeext && {
39617 test "$cross_compiling" = yes ||
39618 $as_test_x conftest$ac_exeext
39620 ac_cv_lib_dl_dlopen=yes
39622 $as_echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39625 ac_cv_lib_dl_dlopen=no
39628 rm -rf conftest.dSYM
39629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39630 conftest$ac_exeext conftest.$ac_ext
39631 LIBS=$ac_check_lib_save_LIBS
39633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39634 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39635 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39636 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39639 lt_cv_dlopen="dyld"
39641 lt_cv_dlopen_self=yes
39648 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
39649 $as_echo_n "checking for shl_load... " >&6; }
39650 if test "${ac_cv_func_shl_load+set}" = set; then
39651 $as_echo_n "(cached) " >&6
39653 cat >conftest.$ac_ext <<_ACEOF
39656 cat confdefs.h >>conftest.$ac_ext
39657 cat >>conftest.$ac_ext <<_ACEOF
39658 /* end confdefs.h. */
39659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
39660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39661 #define shl_load innocuous_shl_load
39663 /* System header to define __stub macros and hopefully few prototypes,
39664 which can conflict with char shl_load (); below.
39665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39666 <limits.h> exists even on freestanding compilers. */
39669 # include <limits.h>
39671 # include <assert.h>
39676 /* Override any GCC internal prototype to avoid an error.
39677 Use char because int might match the return type of a GCC
39678 builtin and then its argument prototype would still apply. */
39683 /* The GNU C library defines this for functions which it implements
39684 to always fail with ENOSYS. Some functions are actually named
39685 something starting with __ and the normal name is an alias. */
39686 #if defined __stub_shl_load || defined __stub___shl_load
39693 return shl_load ();
39698 rm -f conftest.$ac_objext conftest$ac_exeext
39699 if { (ac_try="$ac_link"
39700 case "(($ac_try" in
39701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39702 *) ac_try_echo=$ac_try;;
39704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39705 $as_echo "$ac_try_echo") >&5
39706 (eval "$ac_link") 2>conftest.er1
39708 grep -v '^ *+' conftest.er1 >conftest.err
39710 cat conftest.err >&5
39711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); } && {
39713 test -z "$ac_c_werror_flag" ||
39714 test ! -s conftest.err
39715 } && test -s conftest$ac_exeext && {
39716 test "$cross_compiling" = yes ||
39717 $as_test_x conftest$ac_exeext
39719 ac_cv_func_shl_load=yes
39721 $as_echo "$as_me: failed program was:" >&5
39722 sed 's/^/| /' conftest.$ac_ext >&5
39724 ac_cv_func_shl_load=no
39727 rm -rf conftest.dSYM
39728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39729 conftest$ac_exeext conftest.$ac_ext
39731 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
39732 $as_echo "$ac_cv_func_shl_load" >&6; }
39733 if test "x$ac_cv_func_shl_load" = x""yes; then
39734 lt_cv_dlopen="shl_load"
39736 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
39737 $as_echo_n "checking for shl_load in -ldld... " >&6; }
39738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
39739 $as_echo_n "(cached) " >&6
39741 ac_check_lib_save_LIBS=$LIBS
39743 cat >conftest.$ac_ext <<_ACEOF
39746 cat confdefs.h >>conftest.$ac_ext
39747 cat >>conftest.$ac_ext <<_ACEOF
39748 /* end confdefs.h. */
39750 /* Override any GCC internal prototype to avoid an error.
39751 Use char because int might match the return type of a GCC
39752 builtin and then its argument prototype would still apply. */
39760 return shl_load ();
39765 rm -f conftest.$ac_objext conftest$ac_exeext
39766 if { (ac_try="$ac_link"
39767 case "(($ac_try" in
39768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39769 *) ac_try_echo=$ac_try;;
39771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39772 $as_echo "$ac_try_echo") >&5
39773 (eval "$ac_link") 2>conftest.er1
39775 grep -v '^ *+' conftest.er1 >conftest.err
39777 cat conftest.err >&5
39778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); } && {
39780 test -z "$ac_c_werror_flag" ||
39781 test ! -s conftest.err
39782 } && test -s conftest$ac_exeext && {
39783 test "$cross_compiling" = yes ||
39784 $as_test_x conftest$ac_exeext
39786 ac_cv_lib_dld_shl_load=yes
39788 $as_echo "$as_me: failed program was:" >&5
39789 sed 's/^/| /' conftest.$ac_ext >&5
39791 ac_cv_lib_dld_shl_load=no
39794 rm -rf conftest.dSYM
39795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39796 conftest$ac_exeext conftest.$ac_ext
39797 LIBS=$ac_check_lib_save_LIBS
39799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
39800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
39801 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
39802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
39804 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
39805 $as_echo_n "checking for dlopen... " >&6; }
39806 if test "${ac_cv_func_dlopen+set}" = set; then
39807 $as_echo_n "(cached) " >&6
39809 cat >conftest.$ac_ext <<_ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h. */
39815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
39816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39817 #define dlopen innocuous_dlopen
39819 /* System header to define __stub macros and hopefully few prototypes,
39820 which can conflict with char dlopen (); below.
39821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39822 <limits.h> exists even on freestanding compilers. */
39825 # include <limits.h>
39827 # include <assert.h>
39832 /* Override any GCC internal prototype to avoid an error.
39833 Use char because int might match the return type of a GCC
39834 builtin and then its argument prototype would still apply. */
39839 /* The GNU C library defines this for functions which it implements
39840 to always fail with ENOSYS. Some functions are actually named
39841 something starting with __ and the normal name is an alias. */
39842 #if defined __stub_dlopen || defined __stub___dlopen
39854 rm -f conftest.$ac_objext conftest$ac_exeext
39855 if { (ac_try="$ac_link"
39856 case "(($ac_try" in
39857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39858 *) ac_try_echo=$ac_try;;
39860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39861 $as_echo "$ac_try_echo") >&5
39862 (eval "$ac_link") 2>conftest.er1
39864 grep -v '^ *+' conftest.er1 >conftest.err
39866 cat conftest.err >&5
39867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39868 (exit $ac_status); } && {
39869 test -z "$ac_c_werror_flag" ||
39870 test ! -s conftest.err
39871 } && test -s conftest$ac_exeext && {
39872 test "$cross_compiling" = yes ||
39873 $as_test_x conftest$ac_exeext
39875 ac_cv_func_dlopen=yes
39877 $as_echo "$as_me: failed program was:" >&5
39878 sed 's/^/| /' conftest.$ac_ext >&5
39880 ac_cv_func_dlopen=no
39883 rm -rf conftest.dSYM
39884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39885 conftest$ac_exeext conftest.$ac_ext
39887 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
39888 $as_echo "$ac_cv_func_dlopen" >&6; }
39889 if test "x$ac_cv_func_dlopen" = x""yes; then
39890 lt_cv_dlopen="dlopen"
39892 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39893 $as_echo_n "checking for dlopen in -ldl... " >&6; }
39894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39895 $as_echo_n "(cached) " >&6
39897 ac_check_lib_save_LIBS=$LIBS
39899 cat >conftest.$ac_ext <<_ACEOF
39902 cat confdefs.h >>conftest.$ac_ext
39903 cat >>conftest.$ac_ext <<_ACEOF
39904 /* end confdefs.h. */
39906 /* Override any GCC internal prototype to avoid an error.
39907 Use char because int might match the return type of a GCC
39908 builtin and then its argument prototype would still apply. */
39921 rm -f conftest.$ac_objext conftest$ac_exeext
39922 if { (ac_try="$ac_link"
39923 case "(($ac_try" in
39924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39925 *) ac_try_echo=$ac_try;;
39927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39928 $as_echo "$ac_try_echo") >&5
39929 (eval "$ac_link") 2>conftest.er1
39931 grep -v '^ *+' conftest.er1 >conftest.err
39933 cat conftest.err >&5
39934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); } && {
39936 test -z "$ac_c_werror_flag" ||
39937 test ! -s conftest.err
39938 } && test -s conftest$ac_exeext && {
39939 test "$cross_compiling" = yes ||
39940 $as_test_x conftest$ac_exeext
39942 ac_cv_lib_dl_dlopen=yes
39944 $as_echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.$ac_ext >&5
39947 ac_cv_lib_dl_dlopen=no
39950 rm -rf conftest.dSYM
39951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39952 conftest$ac_exeext conftest.$ac_ext
39953 LIBS=$ac_check_lib_save_LIBS
39955 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
39957 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
39958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
39960 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
39961 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
39962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
39963 $as_echo_n "(cached) " >&6
39965 ac_check_lib_save_LIBS=$LIBS
39966 LIBS="-lsvld $LIBS"
39967 cat >conftest.$ac_ext <<_ACEOF
39970 cat confdefs.h >>conftest.$ac_ext
39971 cat >>conftest.$ac_ext <<_ACEOF
39972 /* end confdefs.h. */
39974 /* Override any GCC internal prototype to avoid an error.
39975 Use char because int might match the return type of a GCC
39976 builtin and then its argument prototype would still apply. */
39989 rm -f conftest.$ac_objext conftest$ac_exeext
39990 if { (ac_try="$ac_link"
39991 case "(($ac_try" in
39992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39993 *) ac_try_echo=$ac_try;;
39995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39996 $as_echo "$ac_try_echo") >&5
39997 (eval "$ac_link") 2>conftest.er1
39999 grep -v '^ *+' conftest.er1 >conftest.err
40001 cat conftest.err >&5
40002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); } && {
40004 test -z "$ac_c_werror_flag" ||
40005 test ! -s conftest.err
40006 } && test -s conftest$ac_exeext && {
40007 test "$cross_compiling" = yes ||
40008 $as_test_x conftest$ac_exeext
40010 ac_cv_lib_svld_dlopen=yes
40012 $as_echo "$as_me: failed program was:" >&5
40013 sed 's/^/| /' conftest.$ac_ext >&5
40015 ac_cv_lib_svld_dlopen=no
40018 rm -rf conftest.dSYM
40019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40020 conftest$ac_exeext conftest.$ac_ext
40021 LIBS=$ac_check_lib_save_LIBS
40023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
40024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
40025 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
40026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
40028 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
40029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
40030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
40031 $as_echo_n "(cached) " >&6
40033 ac_check_lib_save_LIBS=$LIBS
40035 cat >conftest.$ac_ext <<_ACEOF
40038 cat confdefs.h >>conftest.$ac_ext
40039 cat >>conftest.$ac_ext <<_ACEOF
40040 /* end confdefs.h. */
40042 /* Override any GCC internal prototype to avoid an error.
40043 Use char because int might match the return type of a GCC
40044 builtin and then its argument prototype would still apply. */
40052 return dld_link ();
40057 rm -f conftest.$ac_objext conftest$ac_exeext
40058 if { (ac_try="$ac_link"
40059 case "(($ac_try" in
40060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40061 *) ac_try_echo=$ac_try;;
40063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40064 $as_echo "$ac_try_echo") >&5
40065 (eval "$ac_link") 2>conftest.er1
40067 grep -v '^ *+' conftest.er1 >conftest.err
40069 cat conftest.err >&5
40070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40071 (exit $ac_status); } && {
40072 test -z "$ac_c_werror_flag" ||
40073 test ! -s conftest.err
40074 } && test -s conftest$ac_exeext && {
40075 test "$cross_compiling" = yes ||
40076 $as_test_x conftest$ac_exeext
40078 ac_cv_lib_dld_dld_link=yes
40080 $as_echo "$as_me: failed program was:" >&5
40081 sed 's/^/| /' conftest.$ac_ext >&5
40083 ac_cv_lib_dld_dld_link=no
40086 rm -rf conftest.dSYM
40087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40088 conftest$ac_exeext conftest.$ac_ext
40089 LIBS=$ac_check_lib_save_LIBS
40091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
40092 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
40093 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
40094 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
40115 if test "x$lt_cv_dlopen" != xno; then
40121 case $lt_cv_dlopen in
40123 save_CPPFLAGS="$CPPFLAGS"
40124 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
40126 save_LDFLAGS="$LDFLAGS"
40127 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
40130 LIBS="$lt_cv_dlopen_libs $LIBS"
40132 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
40133 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
40134 if test "${lt_cv_dlopen_self+set}" = set; then
40135 $as_echo_n "(cached) " >&6
40137 if test "$cross_compiling" = yes; then :
40138 lt_cv_dlopen_self=cross
40140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40141 lt_status=$lt_dlunknown
40142 cat > conftest.$ac_ext <<EOF
40143 #line 40143 "configure"
40144 #include "confdefs.h"
40153 # define LT_DLGLOBAL RTLD_GLOBAL
40156 # define LT_DLGLOBAL DL_GLOBAL
40158 # define LT_DLGLOBAL 0
40162 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40163 find out it does not work in some platform. */
40164 #ifndef LT_DLLAZY_OR_NOW
40166 # define LT_DLLAZY_OR_NOW RTLD_LAZY
40169 # define LT_DLLAZY_OR_NOW DL_LAZY
40172 # define LT_DLLAZY_OR_NOW RTLD_NOW
40175 # define LT_DLLAZY_OR_NOW DL_NOW
40177 # define LT_DLLAZY_OR_NOW 0
40185 extern "C" void exit (int);
40188 void fnord() { int i=42;}
40191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40192 int status = $lt_dlunknown;
40196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
40197 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40198 /* dlclose (self); */
40204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40205 (eval $ac_link) 2>&5
40207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40209 (./conftest; exit; ) >&5 2>/dev/null
40211 case x$lt_status in
40212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
40213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
40214 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
40217 # compilation failed
40218 lt_cv_dlopen_self=no
40225 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
40226 $as_echo "$lt_cv_dlopen_self" >&6; }
40228 if test "x$lt_cv_dlopen_self" = xyes; then
40229 LDFLAGS="$LDFLAGS $link_static_flag"
40230 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
40231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
40232 if test "${lt_cv_dlopen_self_static+set}" = set; then
40233 $as_echo_n "(cached) " >&6
40235 if test "$cross_compiling" = yes; then :
40236 lt_cv_dlopen_self_static=cross
40238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
40239 lt_status=$lt_dlunknown
40240 cat > conftest.$ac_ext <<EOF
40241 #line 40241 "configure"
40242 #include "confdefs.h"
40251 # define LT_DLGLOBAL RTLD_GLOBAL
40254 # define LT_DLGLOBAL DL_GLOBAL
40256 # define LT_DLGLOBAL 0
40260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
40261 find out it does not work in some platform. */
40262 #ifndef LT_DLLAZY_OR_NOW
40264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
40267 # define LT_DLLAZY_OR_NOW DL_LAZY
40270 # define LT_DLLAZY_OR_NOW RTLD_NOW
40273 # define LT_DLLAZY_OR_NOW DL_NOW
40275 # define LT_DLLAZY_OR_NOW 0
40283 extern "C" void exit (int);
40286 void fnord() { int i=42;}
40289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
40290 int status = $lt_dlunknown;
40294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
40295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
40296 /* dlclose (self); */
40302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40303 (eval $ac_link) 2>&5
40305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
40307 (./conftest; exit; ) >&5 2>/dev/null
40309 case x$lt_status in
40310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
40311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
40312 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
40315 # compilation failed
40316 lt_cv_dlopen_self_static=no
40323 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
40324 $as_echo "$lt_cv_dlopen_self_static" >&6; }
40327 CPPFLAGS="$save_CPPFLAGS"
40328 LDFLAGS="$save_LDFLAGS"
40333 case $lt_cv_dlopen_self in
40334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
40335 *) enable_dlopen_self=unknown ;;
40338 case $lt_cv_dlopen_self_static in
40339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
40340 *) enable_dlopen_self_static=unknown ;;
40345 # Report which librarie types wil actually be built
40346 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
40347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
40348 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
40349 $as_echo "$can_build_shared" >&6; }
40351 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
40352 $as_echo_n "checking whether to build shared libraries... " >&6; }
40353 test "$can_build_shared" = "no" && enable_shared=no
40355 # On AIX, shared libraries and static libraries use the same namespace, and
40356 # are all built from PIC.
40359 test "$enable_shared" = yes && enable_static=no
40360 if test -n "$RANLIB"; then
40361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
40362 postinstall_cmds='$RANLIB $lib'
40367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
40368 test "$enable_shared" = yes && enable_static=no
40372 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
40373 $as_echo "$enable_shared" >&6; }
40375 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
40376 $as_echo_n "checking whether to build static libraries... " >&6; }
40377 # Make sure either enable_shared or enable_static is yes.
40378 test "$enable_shared" = yes || enable_static=yes
40379 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
40380 $as_echo "$enable_static" >&6; }
40382 # The else clause should only fire when bootstrapping the
40383 # libtool distribution, otherwise you forgot to ship ltmain.sh
40384 # with your package, and you will get complaints that there are
40385 # no rules to generate ltmain.sh.
40386 if test -f "$ltmain"; then
40387 # See if we are running on zsh, and set the options which allow our commands through
40388 # without removal of \ escapes.
40389 if test -n "${ZSH_VERSION+set}" ; then
40390 setopt NO_GLOB_SUBST
40392 # Now quote all the things that may contain metacharacters while being
40393 # careful not to overquote the AC_SUBSTed values. We take copies of the
40394 # variables and quote the copies for generation of the libtool script.
40395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
40397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
40398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
40399 deplibs_check_method reload_flag reload_cmds need_locks \
40400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
40401 lt_cv_sys_global_symbol_to_c_name_address \
40402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
40403 old_postinstall_cmds old_postuninstall_cmds \
40407 lt_prog_compiler_wl \
40408 lt_prog_compiler_pic \
40409 lt_prog_compiler_static \
40410 lt_prog_compiler_no_builtin_flag \
40411 export_dynamic_flag_spec \
40412 thread_safe_flag_spec \
40413 whole_archive_flag_spec \
40414 enable_shared_with_static_runtimes \
40416 old_archive_from_new_cmds \
40421 compiler_lib_search_path \
40423 archive_expsym_cmds \
40425 postuninstall_cmds \
40426 old_archive_from_expsyms_cmds \
40427 allow_undefined_flag \
40428 no_undefined_flag \
40429 export_symbols_cmds \
40430 hardcode_libdir_flag_spec \
40431 hardcode_libdir_flag_spec_ld \
40432 hardcode_libdir_separator \
40433 hardcode_automatic \
40435 module_expsym_cmds \
40436 lt_cv_prog_compiler_c_o \
40438 include_expsyms; do
40441 old_archive_cmds | \
40442 old_archive_from_new_cmds | \
40444 archive_expsym_cmds | \
40446 module_expsym_cmds | \
40447 old_archive_from_expsyms_cmds | \
40448 export_symbols_cmds | \
40449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
40450 postinstall_cmds | postuninstall_cmds | \
40451 old_postinstall_cmds | old_postuninstall_cmds | \
40452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
40453 # Double-quote double-evaled strings.
40454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
40457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
40463 *'\$0 --fallback-echo"')
40464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
40468 cfgfile="${ofile}T"
40469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
40471 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
40472 $as_echo "$as_me: creating $ofile" >&6;}
40474 cat <<__EOF__ >> "$cfgfile"
40477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
40478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
40479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
40481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
40482 # Free Software Foundation, Inc.
40484 # This file is part of GNU Libtool:
40485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40487 # This program is free software; you can redistribute it and/or modify
40488 # it under the terms of the GNU General Public License as published by
40489 # the Free Software Foundation; either version 2 of the License, or
40490 # (at your option) any later version.
40492 # This program is distributed in the hope that it will be useful, but
40493 # WITHOUT ANY WARRANTY; without even the implied warranty of
40494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40495 # General Public License for more details.
40497 # You should have received a copy of the GNU General Public License
40498 # along with this program; if not, write to the Free Software
40499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40501 # As a special exception to the GNU General Public License, if you
40502 # distribute this file as part of a program that contains a
40503 # configuration script generated by Autoconf, you may include it under
40504 # the same distribution terms that you use for the rest of that program.
40506 # A sed program that does not truncate output.
40509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
40510 Xsed="$SED -e 1s/^X//"
40512 # The HP-UX ksh and POSIX shell print the target directory to stdout
40513 # if CDPATH is set.
40514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40516 # The names of the tagged configurations supported by this script.
40519 # ### BEGIN LIBTOOL CONFIG
40521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40523 # Shell to use when invoking shell scripts.
40526 # Whether or not to build shared libraries.
40527 build_libtool_libs=$enable_shared
40529 # Whether or not to build static libraries.
40530 build_old_libs=$enable_static
40532 # Whether or not to add -lc for building shared libraries.
40533 build_libtool_need_lc=$archive_cmds_need_lc
40535 # Whether or not to disallow shared libs when runtime libs are static
40536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40538 # Whether or not to optimize for fast installation.
40539 fast_install=$enable_fast_install
40542 host_alias=$host_alias
40546 # The build system.
40547 build_alias=$build_alias
40551 # An echo program that does not interpret backslashes.
40556 AR_FLAGS=$lt_AR_FLAGS
40561 # A language-specific compiler.
40564 # Is the compiler the GNU C compiler?
40570 # The linker used to build libraries.
40573 # Whether we need hard or soft links.
40576 # A BSD-compatible nm program.
40579 # A symbol stripping program
40582 # Used to examine libraries when file_magic_cmd begins "file"
40583 MAGIC_CMD=$MAGIC_CMD
40585 # Used on cygwin: DLL creation program.
40588 # Used on cygwin: object dumper.
40591 # Used on cygwin: assembler.
40594 # The name of the directory that contains temporary libtool files.
40597 # How to create reloadable object files.
40598 reload_flag=$lt_reload_flag
40599 reload_cmds=$lt_reload_cmds
40601 # How to pass a linker flag through the compiler.
40602 wl=$lt_lt_prog_compiler_wl
40604 # Object file suffix (normally "o").
40605 objext="$ac_objext"
40607 # Old archive suffix (normally "a").
40610 # Shared library suffix (normally ".so").
40611 shrext_cmds='$shrext_cmds'
40613 # Executable file suffix (normally "").
40616 # Additional compiler flags for building library objects.
40617 pic_flag=$lt_lt_prog_compiler_pic
40620 # What is the maximum length of a command?
40621 max_cmd_len=$lt_cv_sys_max_cmd_len
40623 # Does compiler simultaneously support -c and -o options?
40624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40626 # Must we lock files when doing compilation?
40627 need_locks=$lt_need_locks
40629 # Do we need the lib prefix for modules?
40630 need_lib_prefix=$need_lib_prefix
40632 # Do we need a version for libraries?
40633 need_version=$need_version
40635 # Whether dlopen is supported.
40636 dlopen_support=$enable_dlopen
40638 # Whether dlopen of programs is supported.
40639 dlopen_self=$enable_dlopen_self
40641 # Whether dlopen of statically linked programs is supported.
40642 dlopen_self_static=$enable_dlopen_self_static
40644 # Compiler flag to prevent dynamic linking.
40645 link_static_flag=$lt_lt_prog_compiler_static
40647 # Compiler flag to turn off builtin functions.
40648 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40650 # Compiler flag to allow reflexive dlopens.
40651 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40653 # Compiler flag to generate shared objects directly from archives.
40654 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40656 # Compiler flag to generate thread-safe objects.
40657 thread_safe_flag_spec=$lt_thread_safe_flag_spec
40659 # Library versioning type.
40660 version_type=$version_type
40662 # Format of library name prefix.
40663 libname_spec=$lt_libname_spec
40665 # List of archive names. First name is the real one, the rest are links.
40666 # The last name is the one that the linker finds with -lNAME.
40667 library_names_spec=$lt_library_names_spec
40669 # The coded name of the library, if different from the real name.
40670 soname_spec=$lt_soname_spec
40672 # Commands used to build and install an old-style archive.
40674 old_archive_cmds=$lt_old_archive_cmds
40675 old_postinstall_cmds=$lt_old_postinstall_cmds
40676 old_postuninstall_cmds=$lt_old_postuninstall_cmds
40678 # Create an old-style archive from a shared archive.
40679 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40681 # Create a temporary old-style archive to link instead of a shared archive.
40682 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40684 # Commands used to build and install a shared archive.
40685 archive_cmds=$lt_archive_cmds
40686 archive_expsym_cmds=$lt_archive_expsym_cmds
40687 postinstall_cmds=$lt_postinstall_cmds
40688 postuninstall_cmds=$lt_postuninstall_cmds
40690 # Commands used to build a loadable module (assumed same as above if empty)
40691 module_cmds=$lt_module_cmds
40692 module_expsym_cmds=$lt_module_expsym_cmds
40694 # Commands to strip libraries.
40695 old_striplib=$lt_old_striplib
40696 striplib=$lt_striplib
40698 # Dependencies to place before the objects being linked to create a
40700 predep_objects=$lt_predep_objects
40702 # Dependencies to place after the objects being linked to create a
40704 postdep_objects=$lt_postdep_objects
40706 # Dependencies to place before the objects being linked to create a
40708 predeps=$lt_predeps
40710 # Dependencies to place after the objects being linked to create a
40712 postdeps=$lt_postdeps
40714 # The library search path used internally by the compiler when linking
40715 # a shared library.
40716 compiler_lib_search_path=$lt_compiler_lib_search_path
40718 # Method to check whether dependent libraries are shared objects.
40719 deplibs_check_method=$lt_deplibs_check_method
40721 # Command to use when deplibs_check_method == file_magic.
40722 file_magic_cmd=$lt_file_magic_cmd
40724 # Flag that allows shared libraries with undefined symbols to be built.
40725 allow_undefined_flag=$lt_allow_undefined_flag
40727 # Flag that forces no undefined symbols.
40728 no_undefined_flag=$lt_no_undefined_flag
40730 # Commands used to finish a libtool library installation in a directory.
40731 finish_cmds=$lt_finish_cmds
40733 # Same as above, but a single script fragment to be evaled but not shown.
40734 finish_eval=$lt_finish_eval
40736 # Take the output of nm and produce a listing of raw symbols and C names.
40737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40739 # Transform the output of nm in a proper C declaration
40740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40742 # Transform the output of nm in a C name address pair
40743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40745 # This is the shared library runtime path variable.
40746 runpath_var=$runpath_var
40748 # This is the shared library path variable.
40749 shlibpath_var=$shlibpath_var
40751 # Is shlibpath searched before the hard-coded library search path?
40752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40754 # How to hardcode a shared library path into an executable.
40755 hardcode_action=$hardcode_action
40757 # Whether we should hardcode library paths into libraries.
40758 hardcode_into_libs=$hardcode_into_libs
40760 # Flag to hardcode \$libdir into a binary during linking.
40761 # This must work even if \$libdir does not exist.
40762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40764 # If ld is used when linking, flag to hardcode \$libdir into
40765 # a binary during linking. This must work even if \$libdir does
40767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
40769 # Whether we need a single -rpath flag with a separated argument.
40770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40772 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
40773 # resulting binary.
40774 hardcode_direct=$hardcode_direct
40776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
40777 # resulting binary.
40778 hardcode_minus_L=$hardcode_minus_L
40780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
40781 # the resulting binary.
40782 hardcode_shlibpath_var=$hardcode_shlibpath_var
40784 # Set to yes if building a shared library automatically hardcodes DIR into the library
40785 # and all subsequent libraries and executables linked against it.
40786 hardcode_automatic=$hardcode_automatic
40788 # Variables whose values should be saved in libtool wrapper scripts and
40789 # restored at relink time.
40790 variables_saved_for_relink="$variables_saved_for_relink"
40792 # Whether libtool must link a program against all its dependency libraries.
40793 link_all_deplibs=$link_all_deplibs
40795 # Compile-time system search path for libraries
40796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40798 # Run-time system search path for libraries
40799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
40801 # Fix the shell variable \$srcfile for the compiler.
40802 fix_srcfile_path="$fix_srcfile_path"
40804 # Set to yes if exported symbols are required.
40805 always_export_symbols=$always_export_symbols
40807 # The commands to list exported symbols.
40808 export_symbols_cmds=$lt_export_symbols_cmds
40810 # The commands to extract the exported symbol list from a shared archive.
40811 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40813 # Symbols that should not be listed in the preloaded symbols.
40814 exclude_expsyms=$lt_exclude_expsyms
40816 # Symbols that must always be exported.
40817 include_expsyms=$lt_include_expsyms
40819 # ### END LIBTOOL CONFIG
40826 cat <<\EOF >> "$cfgfile"
40828 # AIX sometimes has problems with the GCC collect2 program. For some
40829 # reason, if we set the COLLECT_NAMES environment variable, the problems
40830 # vanish in a puff of smoke.
40831 if test "X${COLLECT_NAMES+set}" != Xset; then
40833 export COLLECT_NAMES
40839 # We use sed instead of cat because bash on DJGPP gets confused if
40840 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40841 # text mode, it properly converts lines to CR/LF. This bash problem
40842 # is reportedly fixed, but why not run on old versions too?
40843 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
40845 mv -f "$cfgfile" "$ofile" || \
40846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40850 # If there is no Makefile yet, we rely on a make rule to execute
40851 # `config.status --recheck' to rerun these tests and create the
40852 # libtool script then.
40853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
40854 if test -f "$ltmain_in"; then
40855 test -f Makefile && make "$ltmain"
40861 ac_cpp='$CPP $CPPFLAGS'
40862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40869 # Check whether --with-tags was given.
40870 if test "${with_tags+set}" = set; then
40871 withval=$with_tags; tagnames="$withval"
40875 if test -f "$ltmain" && test -n "$tagnames"; then
40876 if test ! -f "${ofile}"; then
40878 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
40879 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
40882 cat <<AAW_EOF >>config.warnings
40883 output file \`$ofile' does not exist
40889 if test -z "$LTCC"; then
40890 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
40891 if test -z "$LTCC"; then
40893 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
40894 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
40897 cat <<AAW_EOF >>config.warnings
40898 output file \`$ofile' does not look like a libtool script
40904 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
40905 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
40908 cat <<AAW_EOF >>config.warnings
40909 using \`LTCC=$LTCC', extracted from \`$ofile'
40916 # Extract list of available tagged configurations in $ofile.
40917 # Note that this assumes the entire list is on one line.
40918 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
40920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
40921 for tagname in $tagnames; do
40923 # Check whether tagname contains only valid characters
40924 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
40926 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
40927 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
40928 { (exit 1); exit 1; }; }
40932 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
40934 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
40935 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
40936 { (exit 1); exit 1; }; }
40939 # Update the list of available tags.
40940 if test -n "$tagname"; then
40941 echo appending configuration tag \"$tagname\" to $ofile
40945 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
40946 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
40947 (test "X$CXX" != "Xg++"))) ; then
40949 ac_cpp='$CXXCPP $CPPFLAGS'
40950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40957 archive_cmds_need_lc_CXX=no
40958 allow_undefined_flag_CXX=
40959 always_export_symbols_CXX=no
40960 archive_expsym_cmds_CXX=
40961 export_dynamic_flag_spec_CXX=
40962 hardcode_direct_CXX=no
40963 hardcode_libdir_flag_spec_CXX=
40964 hardcode_libdir_flag_spec_ld_CXX=
40965 hardcode_libdir_separator_CXX=
40966 hardcode_minus_L_CXX=no
40967 hardcode_automatic_CXX=no
40969 module_expsym_cmds_CXX=
40970 link_all_deplibs_CXX=unknown
40971 old_archive_cmds_CXX=$old_archive_cmds
40972 no_undefined_flag_CXX=
40973 whole_archive_flag_spec_CXX=
40974 enable_shared_with_static_runtimes_CXX=no
40976 # Dependencies to place before and after the object being linked:
40977 predep_objects_CXX=
40978 postdep_objects_CXX=
40981 compiler_lib_search_path_CXX=
40983 # Source file extension for C++ test sources.
40986 # Object file extension for compiled C++ test sources.
40990 # Code to be used in simple compile tests
40991 lt_simple_compile_test_code="int some_variable = 0;\n"
40993 # Code to be used in simple link tests
40994 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
40996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
40998 # If no C compiler was specified, use CC.
41001 # Allow CC to be a program name with arguments.
41005 # save warnings/boilerplate of simple test code
41006 ac_outfile=conftest.$ac_objext
41007 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
41008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
41009 _lt_compiler_boilerplate=`cat conftest.err`
41012 ac_outfile=conftest.$ac_objext
41013 printf "$lt_simple_link_test_code" >conftest.$ac_ext
41014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
41015 _lt_linker_boilerplate=`cat conftest.err`
41019 # Allow CC to be a program name with arguments.
41024 lt_save_with_gnu_ld=$with_gnu_ld
41025 lt_save_path_LD=$lt_cv_path_LD
41026 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
41027 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
41029 unset lt_cv_prog_gnu_ld
41031 if test -n "${lt_cv_path_LDCXX+set}"; then
41032 lt_cv_path_LD=$lt_cv_path_LDCXX
41034 unset lt_cv_path_LD
41036 test -z "${LDCXX+set}" || LD=$LDCXX
41040 for cc_temp in $compiler""; do
41042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
41043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
41048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
41051 # We don't want -fno-exception wen compiling C++ code, so set the
41052 # no_builtin_flag separately
41053 if test "$GXX" = yes; then
41054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
41056 lt_prog_compiler_no_builtin_flag_CXX=
41059 if test "$GXX" = yes; then
41060 # Set up default GNU C++ configuration
41063 # Check whether --with-gnu-ld was given.
41064 if test "${with_gnu_ld+set}" = set; then
41065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
41071 if test "$GCC" = yes; then
41072 # Check if gcc -print-prog-name=ld gives a path.
41073 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
41074 $as_echo_n "checking for ld used by $CC... " >&6; }
41077 # gcc leaves a trailing carriage return which upsets mingw
41078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
41080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
41083 # Accept absolute paths.
41085 re_direlt='/[^/][^/]*/\.\./'
41086 # Canonicalize the pathname of ld
41087 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
41088 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
41089 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
41091 test -z "$LD" && LD="$ac_prog"
41094 # If it fails, then pretend we aren't using GCC.
41098 # If it is relative, then search for the first ld in PATH.
41099 with_gnu_ld=unknown
41102 elif test "$with_gnu_ld" = yes; then
41103 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
41104 $as_echo_n "checking for GNU ld... " >&6; }
41106 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
41107 $as_echo_n "checking for non-GNU ld... " >&6; }
41109 if test "${lt_cv_path_LD+set}" = set; then
41110 $as_echo_n "(cached) " >&6
41112 if test -z "$LD"; then
41113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
41114 for ac_dir in $PATH; do
41116 test -z "$ac_dir" && ac_dir=.
41117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
41118 lt_cv_path_LD="$ac_dir/$ac_prog"
41119 # Check to see if the program is GNU ld. I'd rather use --version,
41120 # but apparently some variants of GNU ld only accept -v.
41121 # Break only if it was the GNU/non-GNU ld that we prefer.
41122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
41123 *GNU* | *'with BFD'*)
41124 test "$with_gnu_ld" != no && break
41127 test "$with_gnu_ld" != yes && break
41134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
41138 LD="$lt_cv_path_LD"
41139 if test -n "$LD"; then
41140 { $as_echo "$as_me:$LINENO: result: $LD" >&5
41141 $as_echo "$LD" >&6; }
41143 { $as_echo "$as_me:$LINENO: result: no" >&5
41144 $as_echo "no" >&6; }
41146 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
41147 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
41148 { (exit 1); exit 1; }; }
41149 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
41150 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
41151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
41152 $as_echo_n "(cached) " >&6
41154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
41155 case `$LD -v 2>&1 </dev/null` in
41156 *GNU* | *'with BFD'*)
41157 lt_cv_prog_gnu_ld=yes
41160 lt_cv_prog_gnu_ld=no
41164 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
41165 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
41166 with_gnu_ld=$lt_cv_prog_gnu_ld
41170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
41171 # archiving commands below assume that GNU ld is being used.
41172 if test "$with_gnu_ld" = yes; then
41173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41174 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'
41176 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41179 # If archive_cmds runs LD, not CC, wlarc should be empty
41180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
41181 # investigate it a little bit more. (MM)
41184 # ancient GNU ld didn't support --whole-archive et. al.
41185 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
41186 grep 'no-whole-archive' > /dev/null; then
41187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41189 whole_archive_flag_spec_CXX=
41195 # A generic and very simple default shared library creation
41196 # command for GNU C++ for the case where it uses the native
41197 # linker, instead of GNU ld. If possible, this setting should
41198 # overridden to take advantage of the native linker features on
41199 # the platform it is being used on.
41200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41203 # Commands to make compiler produce verbose output that lists
41204 # what "hidden" libraries, object files and flags are used when
41205 # linking a shared library.
41206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41214 # PORTME: fill in a description of your system's C++ link characteristics
41215 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
41216 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
41220 # FIXME: insert proper C++ library support
41224 if test "$host_cpu" = ia64; then
41225 # On IA64, the linker does run time linking by default, so we don't
41226 # have to do anything special.
41227 aix_use_runtimelinking=no
41228 exp_sym_flag='-Bexport'
41231 aix_use_runtimelinking=no
41233 # Test if we are trying to use run time linking or normal
41234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
41235 # need to do runtime linking.
41236 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
41237 for ld_flag in $LDFLAGS; do
41240 aix_use_runtimelinking=yes
41247 exp_sym_flag='-bexport'
41248 no_entry_flag='-bnoentry'
41251 # When large executables or shared objects are built, AIX ld can
41252 # have problems creating the table of contents. If linking a library
41253 # or program results in "error TOC overflow" add -mminimal-toc to
41254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
41255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
41257 archive_cmds_CXX=''
41258 hardcode_direct_CXX=yes
41259 hardcode_libdir_separator_CXX=':'
41260 link_all_deplibs_CXX=yes
41262 if test "$GXX" = yes; then
41263 case $host_os in aix4.[012]|aix4.[012].*)
41264 # We only want to do this on AIX 4.2 and lower, the check
41265 # below for broken collect2 doesn't work under 4.3+
41266 collect2name=`${CC} -print-prog-name=collect2`
41267 if test -f "$collect2name" && \
41268 strings "$collect2name" | grep resolve_lib_name >/dev/null
41270 # We have reworked collect2
41271 hardcode_direct_CXX=yes
41273 # We have old collect2
41274 hardcode_direct_CXX=unsupported
41275 # It fails to find uninstalled libraries when the uninstalled
41276 # path is not listed in the libpath. Setting hardcode_minus_L
41277 # to unsupported forces relinking
41278 hardcode_minus_L_CXX=yes
41279 hardcode_libdir_flag_spec_CXX='-L$libdir'
41280 hardcode_libdir_separator_CXX=
41283 shared_flag='-shared'
41284 if test "$aix_use_runtimelinking" = yes; then
41285 shared_flag="$shared_flag "'${wl}-G'
41289 if test "$host_cpu" = ia64; then
41290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
41291 # chokes on -Wl,-G. The following line is correct:
41294 if test "$aix_use_runtimelinking" = yes; then
41295 shared_flag='${wl}-G'
41297 shared_flag='${wl}-bM:SRE'
41302 # It seems that -bexpall does not export symbols beginning with
41303 # underscore (_), so it is better to generate a list of symbols to export.
41304 always_export_symbols_CXX=yes
41305 if test "$aix_use_runtimelinking" = yes; then
41306 # Warning - without using the other runtime loading flags (-brtl),
41307 # -berok will link without error, but may produce a broken library.
41308 allow_undefined_flag_CXX='-berok'
41309 # Determine the default libpath from the value encoded in an empty executable.
41310 cat >conftest.$ac_ext <<_ACEOF
41313 cat confdefs.h >>conftest.$ac_ext
41314 cat >>conftest.$ac_ext <<_ACEOF
41315 /* end confdefs.h. */
41325 rm -f conftest.$ac_objext conftest$ac_exeext
41326 if { (ac_try="$ac_link"
41327 case "(($ac_try" in
41328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41329 *) ac_try_echo=$ac_try;;
41331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41332 $as_echo "$ac_try_echo") >&5
41333 (eval "$ac_link") 2>conftest.er1
41335 grep -v '^ *+' conftest.er1 >conftest.err
41337 cat conftest.err >&5
41338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); } && {
41340 test -z "$ac_cxx_werror_flag" ||
41341 test ! -s conftest.err
41342 } && test -s conftest$ac_exeext && {
41343 test "$cross_compiling" = yes ||
41344 $as_test_x conftest$ac_exeext
41347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41349 # Check for a 64-bit object if we didn't find anything.
41350 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; }
41353 $as_echo "$as_me: failed program was:" >&5
41354 sed 's/^/| /' conftest.$ac_ext >&5
41359 rm -rf conftest.dSYM
41360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41361 conftest$ac_exeext conftest.$ac_ext
41362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41366 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
41368 if test "$host_cpu" = ia64; then
41369 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
41370 allow_undefined_flag_CXX="-z nodefs"
41371 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
41373 # Determine the default libpath from the value encoded in an empty executable.
41374 cat >conftest.$ac_ext <<_ACEOF
41377 cat confdefs.h >>conftest.$ac_ext
41378 cat >>conftest.$ac_ext <<_ACEOF
41379 /* end confdefs.h. */
41389 rm -f conftest.$ac_objext conftest$ac_exeext
41390 if { (ac_try="$ac_link"
41391 case "(($ac_try" in
41392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41393 *) ac_try_echo=$ac_try;;
41395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41396 $as_echo "$ac_try_echo") >&5
41397 (eval "$ac_link") 2>conftest.er1
41399 grep -v '^ *+' conftest.er1 >conftest.err
41401 cat conftest.err >&5
41402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); } && {
41404 test -z "$ac_cxx_werror_flag" ||
41405 test ! -s conftest.err
41406 } && test -s conftest$ac_exeext && {
41407 test "$cross_compiling" = yes ||
41408 $as_test_x conftest$ac_exeext
41411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
41413 # Check for a 64-bit object if we didn't find anything.
41414 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; }
41417 $as_echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41423 rm -rf conftest.dSYM
41424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41425 conftest$ac_exeext conftest.$ac_ext
41426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
41428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
41429 # Warning - without using the other run time loading flags,
41430 # -berok will link without error, but may produce a broken library.
41431 no_undefined_flag_CXX=' ${wl}-bernotok'
41432 allow_undefined_flag_CXX=' ${wl}-berok'
41433 # -bexpall does not export symbols beginning with underscore (_)
41434 always_export_symbols_CXX=yes
41435 # Exported symbols can be pulled into shared objects from archives
41436 whole_archive_flag_spec_CXX=' '
41437 archive_cmds_need_lc_CXX=yes
41438 # This is similar to how AIX traditionally builds its shared libraries.
41439 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
41444 case $cc_basename in
41446 # FIXME: insert proper C++ library support
41453 cygwin* | mingw* | pw32*)
41454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
41455 # as there is no search path for DLLs.
41456 hardcode_libdir_flag_spec_CXX='-L$libdir'
41457 allow_undefined_flag_CXX=unsupported
41458 always_export_symbols_CXX=no
41459 enable_shared_with_static_runtimes_CXX=yes
41461 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
41462 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41463 # If the export-symbols file already is a .def file (1st line
41464 # is EXPORTS), use it as is; otherwise, prepend...
41465 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
41466 cp $export_symbols $output_objdir/$soname.def;
41468 echo EXPORTS > $output_objdir/$soname.def;
41469 cat $export_symbols >> $output_objdir/$soname.def;
41471 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
41476 darwin* | rhapsody*)
41478 rhapsody* | darwin1.[012])
41479 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
41482 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
41483 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41485 case ${MACOSX_DEPLOYMENT_TARGET} in
41487 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
41490 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
41496 archive_cmds_need_lc_CXX=no
41497 hardcode_direct_CXX=no
41498 hardcode_automatic_CXX=yes
41499 hardcode_shlibpath_var_CXX=unsupported
41500 whole_archive_flag_spec_CXX=''
41501 link_all_deplibs_CXX=yes
41503 if test "$GXX" = yes ; then
41504 lt_int_apple_cc_single_mod=no
41505 output_verbose_link_cmd='echo'
41506 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
41507 lt_int_apple_cc_single_mod=yes
41509 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41510 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
41512 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'
41514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41516 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
41517 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}'
41519 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}'
41521 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}'
41523 case $cc_basename in
41525 output_verbose_link_cmd='echo'
41526 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'
41527 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
41528 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
41529 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}'
41530 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}'
41540 case $cc_basename in
41542 # FIXME: insert proper C++ library support
41546 # Green Hills C++ Compiler
41547 # FIXME: insert proper C++ library support
41551 # FIXME: insert proper C++ library support
41557 # C++ shared libraries reported to be fairly broken before switch to ELF
41561 archive_cmds_need_lc_CXX=no
41563 freebsd* | kfreebsd*-gnu | dragonfly*)
41564 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
41571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41572 hardcode_libdir_separator_CXX=:
41573 export_dynamic_flag_spec_CXX='${wl}-E'
41574 hardcode_direct_CXX=yes
41575 hardcode_minus_L_CXX=yes # Not in the search PATH,
41576 # but as the default
41577 # location of the library.
41579 case $cc_basename in
41581 # FIXME: insert proper C++ library support
41585 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'
41586 # Commands to make compiler produce verbose output that lists
41587 # what "hidden" libraries, object files and flags are used when
41588 # linking a shared library.
41590 # There doesn't appear to be a way to prevent this compiler from
41591 # explicitly linking system object files so we need to strip them
41592 # from the output so that they don't get included in the library
41594 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'
41597 if test "$GXX" = yes; then
41598 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'
41600 # FIXME: insert proper C++ library support
41607 if test $with_gnu_ld = no; then
41610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41611 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
41612 hardcode_libdir_separator_CXX=:
41615 hardcode_libdir_flag_spec_CXX='-L$libdir'
41618 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
41619 hardcode_libdir_separator_CXX=:
41620 export_dynamic_flag_spec_CXX='${wl}-E'
41626 hardcode_direct_CXX=no
41627 hardcode_shlibpath_var_CXX=no
41630 hardcode_direct_CXX=no
41631 hardcode_shlibpath_var_CXX=no
41632 hardcode_minus_L_CXX=yes # Not in the search PATH,
41633 # but as the default
41634 # location of the library.
41637 hardcode_direct_CXX=yes
41638 hardcode_minus_L_CXX=yes # Not in the search PATH,
41639 # but as the default
41640 # location of the library.
41644 case $cc_basename in
41646 # FIXME: insert proper C++ library support
41652 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41655 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
41658 # Commands to make compiler produce verbose output that lists
41659 # what "hidden" libraries, object files and flags are used when
41660 # linking a shared library.
41662 # There doesn't appear to be a way to prevent this compiler from
41663 # explicitly linking system object files so we need to strip them
41664 # from the output so that they don't get included in the library
41666 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'
41669 if test "$GXX" = yes; then
41670 if test $with_gnu_ld = no; then
41673 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
41676 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'
41681 # FIXME: insert proper C++ library support
41688 case $cc_basename in
41691 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'
41693 # Archives containing C++ object files must be created using
41694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
41695 # necessary to make sure instantiated templates are included
41697 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
41700 if test "$GXX" = yes; then
41701 if test "$with_gnu_ld" = no; then
41702 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'
41704 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'
41707 link_all_deplibs_CXX=yes
41710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41711 hardcode_libdir_separator_CXX=:
41714 case $cc_basename in
41716 # Kuck and Associates, Inc. (KAI) C++ Compiler
41718 # KCC will only create a shared library if the output file
41719 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41720 # to its proper name (with version) after linking.
41721 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'
41722 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'
41723 # Commands to make compiler produce verbose output that lists
41724 # what "hidden" libraries, object files and flags are used when
41725 # linking a shared library.
41727 # There doesn't appear to be a way to prevent this compiler from
41728 # explicitly linking system object files so we need to strip them
41729 # from the output so that they don't get included in the library
41731 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'
41733 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
41734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41736 # Archives containing C++ object files must be created using
41737 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41743 # version 8.0 and above of icpc choke on multiply defined symbols
41744 # if we add $predep_objects and $postdep_objects, however 7.1 and
41745 # earlier do not add the objects themselves.
41746 case `$CC -V 2>&1` in
41748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41749 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'
41751 *) # Version 8.0 or newer
41754 ia64*) tmp_idyn=' -i_dynamic';;
41756 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
41757 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'
41760 archive_cmds_need_lc_CXX=no
41761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41763 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
41766 # Portland Group C++ compiler
41767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
41768 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'
41770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
41771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
41772 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'
41776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
41777 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'
41779 runpath_var=LD_RUN_PATH
41780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41781 hardcode_libdir_separator_CXX=:
41783 # Commands to make compiler produce verbose output that lists
41784 # what "hidden" libraries, object files and flags are used when
41785 # linking a shared library.
41787 # There doesn't appear to be a way to prevent this compiler from
41788 # explicitly linking system object files so we need to strip them
41789 # from the output so that they don't get included in the library
41791 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'
41796 # FIXME: insert proper C++ library support
41800 # FIXME: insert proper C++ library support
41804 case $cc_basename in
41806 # FIXME: insert proper C++ library support
41810 # FIXME: insert proper C++ library support
41816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41817 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
41819 hardcode_libdir_flag_spec_CXX='-R$libdir'
41820 hardcode_direct_CXX=yes
41821 hardcode_shlibpath_var_CXX=no
41823 # Workaround some broken pre-1.5 toolchains
41824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
41827 # C++ shared libraries are fairly broken
41831 hardcode_direct_CXX=yes
41832 hardcode_shlibpath_var_CXX=no
41833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
41834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41836 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
41837 export_dynamic_flag_spec_CXX='${wl}-E'
41838 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
41840 output_verbose_link_cmd='echo'
41843 case $cc_basename in
41845 # Kuck and Associates, Inc. (KAI) C++ Compiler
41847 # KCC will only create a shared library if the output file
41848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41849 # to its proper name (with version) after linking.
41850 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'
41852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41853 hardcode_libdir_separator_CXX=:
41855 # Archives containing C++ object files must be created using
41856 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
41857 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
41861 # Rational C++ 2.4.1
41862 # FIXME: insert proper C++ library support
41866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41867 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'
41869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41870 hardcode_libdir_separator_CXX=:
41872 # Commands to make compiler produce verbose output that lists
41873 # what "hidden" libraries, object files and flags are used when
41874 # linking a shared library.
41876 # There doesn't appear to be a way to prevent this compiler from
41877 # explicitly linking system object files so we need to strip them
41878 # from the output so that they don't get included in the library
41880 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'
41883 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41885 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'
41887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41888 hardcode_libdir_separator_CXX=:
41890 # Commands to make compiler produce verbose output that lists
41891 # what "hidden" libraries, object files and flags are used when
41892 # linking a shared library.
41893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41896 # FIXME: insert proper C++ library support
41903 case $cc_basename in
41905 # Kuck and Associates, Inc. (KAI) C++ Compiler
41907 # KCC will only create a shared library if the output file
41908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
41909 # to its proper name (with version) after linking.
41910 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'
41912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
41913 hardcode_libdir_separator_CXX=:
41915 # Archives containing C++ object files must be created using
41916 # the KAI C++ compiler.
41917 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
41920 # Rational C++ 2.4.1
41921 # FIXME: insert proper C++ library support
41925 allow_undefined_flag_CXX=' -expect_unresolved \*'
41926 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'
41927 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
41928 echo "-hidden">> $lib.exp~
41929 $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~
41932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
41933 hardcode_libdir_separator_CXX=:
41935 # Commands to make compiler produce verbose output that lists
41936 # what "hidden" libraries, object files and flags are used when
41937 # linking a shared library.
41939 # There doesn't appear to be a way to prevent this compiler from
41940 # explicitly linking system object files so we need to strip them
41941 # from the output so that they don't get included in the library
41943 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'
41946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
41947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
41948 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'
41950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
41951 hardcode_libdir_separator_CXX=:
41953 # Commands to make compiler produce verbose output that lists
41954 # what "hidden" libraries, object files and flags are used when
41955 # linking a shared library.
41956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
41959 # FIXME: insert proper C++ library support
41966 # FIXME: insert proper C++ library support
41970 archive_cmds_need_lc_CXX=no
41971 case $cc_basename in
41973 # FIXME: insert proper C++ library support
41977 # FIXME: insert proper C++ library support
41983 case $cc_basename in
41986 # FIXME: insert proper C++ library support
41991 # FIXME: insert proper C++ library support
41995 # FIXME: insert proper C++ library support
42001 case $cc_basename in
42003 # Sun C++ 4.2, 5.x and Centerline C++
42004 archive_cmds_need_lc_CXX=yes
42005 no_undefined_flag_CXX=' -zdefs'
42006 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
42007 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42008 $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'
42010 hardcode_libdir_flag_spec_CXX='-R$libdir'
42011 hardcode_shlibpath_var_CXX=no
42013 solaris2.[0-5] | solaris2.[0-5].*) ;;
42015 # The C++ compiler is used as linker so we must use $wl
42016 # flag to pass the commands to the underlying system
42017 # linker. We must also pass each convience library through
42018 # to the system linker between allextract/defaultextract.
42019 # The C++ compiler will combine linker options so we
42020 # cannot just pass the convience library names through
42022 # Supported since Solaris 2.6 (maybe 2.5.1?)
42023 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'
42026 link_all_deplibs_CXX=yes
42028 output_verbose_link_cmd='echo'
42030 # Archives containing C++ object files must be created using
42031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
42032 # necessary to make sure instantiated templates are included
42034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
42037 # Green Hills C++ Compiler
42038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42040 # The C++ compiler must be used to create the archive.
42041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
42044 # GNU C++ compiler with Solaris linker
42045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
42046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
42047 if $CC --version | grep -v '^2\.7' > /dev/null; then
42048 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
42049 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42050 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42051 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42053 # Commands to make compiler produce verbose output that lists
42054 # what "hidden" libraries, object files and flags are used when
42055 # linking a shared library.
42056 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42057 lt_prog_compiler_static_CXX='-static'
42059 archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42060 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42061 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42063 # Commands to make compiler produce verbose output that lists
42064 # what "hidden" libraries, object files and flags are used when
42065 # linking a shared library.
42066 output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42067 lt_prog_compiler_static_CXX='${wl}-Bstatic'
42070 # g++ 2.7 appears to require `-G' NOT `-shared' on this
42072 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
42073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
42074 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
42076 # Commands to make compiler produce verbose output that lists
42077 # what "hidden" libraries, object files and flags are used when
42078 # linking a shared library.
42079 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
42082 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
42087 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
42088 archive_cmds_need_lc_CXX=no
42091 case $cc_basename in
42093 # NonStop-UX NCC 3.20
42094 # FIXME: insert proper C++ library support
42098 # FIXME: insert proper C++ library support
42104 # FIXME: insert proper C++ library support
42108 # FIXME: insert proper C++ library support
42112 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42113 $as_echo "$ld_shlibs_CXX" >&6; }
42114 test "$ld_shlibs_CXX" = no && can_build_shared=no
42120 ## There is no encapsulation within the following macros, do not change
42121 ## the running order or otherwise move them around unless you know exactly
42122 ## what you are doing...
42124 cat > conftest.$ac_ext <<EOF
42128 Foo (void) { a = 0; }
42134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42135 (eval $ac_compile) 2>&5
42137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); }; then
42139 # Parse the compiler output and extract the necessary
42140 # objects, libraries and library flags.
42142 # Sentinel used to keep track of whether or not we are before
42143 # the conftest object file.
42144 pre_test_object_deps_done=no
42146 # The `*' in the case matches for architectures that use `case' in
42147 # $output_verbose_cmd can trigger glob expansion during the loop
42148 # eval without this substitution.
42149 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
42151 for p in `eval $output_verbose_link_cmd`; do
42155 # Some compilers place space between "-{L,R}" and the path.
42156 # Remove the space.
42157 if test $p = "-L" \
42158 || test $p = "-R"; then
42165 if test "$pre_test_object_deps_done" = no; then
42168 # Internal compiler library paths should come after those
42169 # provided the user. The postdeps already come after the
42170 # user supplied libs so there is no need to process them.
42171 if test -z "$compiler_lib_search_path_CXX"; then
42172 compiler_lib_search_path_CXX="${prev}${p}"
42174 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
42177 # The "-l" case would never come before the object being
42178 # linked, so don't bother handling this case.
42181 if test -z "$postdeps_CXX"; then
42182 postdeps_CXX="${prev}${p}"
42184 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
42190 # This assumes that the test object file only shows up
42191 # once in the compiler output.
42192 if test "$p" = "conftest.$objext"; then
42193 pre_test_object_deps_done=yes
42197 if test "$pre_test_object_deps_done" = no; then
42198 if test -z "$predep_objects_CXX"; then
42199 predep_objects_CXX="$p"
42201 predep_objects_CXX="$predep_objects_CXX $p"
42204 if test -z "$postdep_objects_CXX"; then
42205 postdep_objects_CXX="$p"
42207 postdep_objects_CXX="$postdep_objects_CXX $p"
42212 *) ;; # Ignore the rest.
42220 echo "libtool.m4: error: problem compiling CXX test program"
42223 $rm -f confest.$objext
42225 # PORTME: override above test on systems where it is broken
42228 case $cc_basename in
42230 # Adding this requires a known-good setup of shared libraries for
42231 # Sun compiler versions before 5.6, else PIC objects from an old
42232 # archive will be linked into the output, leading to subtle bugs.
42233 postdeps_CXX='-lCstd -lCrun'
42239 case " $postdeps_CXX " in
42240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
42243 lt_prog_compiler_wl_CXX=
42244 lt_prog_compiler_pic_CXX=
42245 lt_prog_compiler_static_CXX=
42247 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42248 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
42250 # C++ specific cases for pic, static, wl, etc.
42251 if test "$GXX" = yes; then
42252 lt_prog_compiler_wl_CXX='-Wl,'
42253 lt_prog_compiler_static_CXX='-static'
42257 # All AIX code is PIC.
42258 if test "$host_cpu" = ia64; then
42259 # AIX 5 now supports IA64 processor
42260 lt_prog_compiler_static_CXX='-Bstatic'
42264 # FIXME: we need at least 68020 code to build shared libraries, but
42265 # adding the `-m68020' flag to GCC prevents building anything better,
42267 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
42269 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42270 # PIC is the default for these OSes.
42272 mingw* | os2* | pw32*)
42273 # This hack is so that the source file can tell whether it is being
42274 # built for inclusion in a dll (and should export symbols for example).
42275 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
42277 darwin* | rhapsody*)
42278 # PIC is the default on this platform
42279 # Common symbols not allowed in MH_DYLIB files
42280 lt_prog_compiler_pic_CXX='-fno-common'
42283 # DJGPP does not support shared libraries at all
42284 lt_prog_compiler_pic_CXX=
42287 if test -d /usr/nec; then
42288 lt_prog_compiler_pic_CXX=-Kconform_pic
42292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42293 # not for PA HP-UX.
42298 lt_prog_compiler_pic_CXX='-fPIC'
42303 lt_prog_compiler_pic_CXX='-fPIC'
42309 # All AIX code is PIC.
42310 if test "$host_cpu" = ia64; then
42311 # AIX 5 now supports IA64 processor
42312 lt_prog_compiler_static_CXX='-Bstatic'
42314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
42318 case $cc_basename in
42320 # Green Hills C++ Compiler
42321 # _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"
42326 # PIC is the default on this platform
42327 # Common symbols not allowed in MH_DYLIB files
42328 case $cc_basename in
42330 lt_prog_compiler_pic_CXX='-qnocommon'
42331 lt_prog_compiler_wl_CXX='-Wl,'
42336 case $cc_basename in
42338 lt_prog_compiler_pic_CXX='-KPIC'
42341 # Green Hills C++ Compiler
42342 lt_prog_compiler_pic_CXX='-pic'
42348 freebsd* | kfreebsd*-gnu | dragonfly*)
42349 # FreeBSD uses GNU C++
42351 hpux9* | hpux10* | hpux11*)
42352 case $cc_basename in
42354 lt_prog_compiler_wl_CXX='-Wl,'
42355 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42356 if test "$host_cpu" != ia64; then
42357 lt_prog_compiler_pic_CXX='+Z'
42361 lt_prog_compiler_wl_CXX='-Wl,'
42362 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
42368 lt_prog_compiler_pic_CXX='+Z'
42376 irix5* | irix6* | nonstopux*)
42377 case $cc_basename in
42379 lt_prog_compiler_wl_CXX='-Wl,'
42380 lt_prog_compiler_static_CXX='-non_shared'
42381 # CC pic flag -KPIC is the default.
42388 case $cc_basename in
42391 lt_prog_compiler_wl_CXX='--backend -Wl,'
42392 lt_prog_compiler_pic_CXX='-fPIC'
42396 lt_prog_compiler_wl_CXX='-Wl,'
42397 lt_prog_compiler_pic_CXX='-KPIC'
42398 lt_prog_compiler_static_CXX='-static'
42401 # Portland Group C++ compiler.
42402 lt_prog_compiler_wl_CXX='-Wl,'
42403 lt_prog_compiler_pic_CXX='-fpic'
42404 lt_prog_compiler_static_CXX='-Bstatic'
42408 # Make sure the PIC flag is empty. It appears that all Alpha
42409 # Linux and Compaq Tru64 Unix objects are PIC.
42410 lt_prog_compiler_pic_CXX=
42411 lt_prog_compiler_static_CXX='-non_shared'
42422 case $cc_basename in
42424 lt_prog_compiler_pic_CXX='-W c,exportall'
42432 osf3* | osf4* | osf5*)
42433 case $cc_basename in
42435 lt_prog_compiler_wl_CXX='--backend -Wl,'
42438 # Rational C++ 2.4.1
42439 lt_prog_compiler_pic_CXX='-pic'
42442 # Digital/Compaq C++
42443 lt_prog_compiler_wl_CXX='-Wl,'
42444 # Make sure the PIC flag is empty. It appears that all Alpha
42445 # Linux and Compaq Tru64 Unix objects are PIC.
42446 lt_prog_compiler_pic_CXX=
42447 lt_prog_compiler_static_CXX='-non_shared'
42456 case $cc_basename in
42458 lt_prog_compiler_pic_CXX='-fPIC'
42465 case $cc_basename in
42467 # Sun C++ 4.2, 5.x and Centerline C++
42468 lt_prog_compiler_pic_CXX='-KPIC'
42469 lt_prog_compiler_static_CXX='-Bstatic'
42470 lt_prog_compiler_wl_CXX='-Qoption ld '
42473 # Green Hills C++ Compiler
42474 lt_prog_compiler_pic_CXX='-PIC'
42477 if $CC -v --help 2>/dev/null | grep -- -static > /dev/null 2> /dev/null; then
42478 lt_prog_compiler_static_CXX='-static'
42480 # GCC with Sun linker
42481 lt_prog_compiler_pic_CXX='-KPIC'
42482 lt_prog_compiler_static_CXX='${wl}-Bstatic'
42488 case $cc_basename in
42491 lt_prog_compiler_pic_CXX='-pic'
42492 lt_prog_compiler_static_CXX='-Bstatic'
42496 lt_prog_compiler_pic_CXX='-pic'
42503 case $cc_basename in
42505 # NonStop-UX NCC 3.20
42506 lt_prog_compiler_pic_CXX='-KPIC'
42517 lt_prog_compiler_can_build_shared_CXX=no
42522 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
42523 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
42526 # Check to make sure the PIC flag actually works.
42528 if test -n "$lt_prog_compiler_pic_CXX"; then
42530 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
42531 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
42532 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
42533 $as_echo_n "(cached) " >&6
42535 lt_prog_compiler_pic_works_CXX=no
42536 ac_outfile=conftest.$ac_objext
42537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42538 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
42539 # Insert the option either (1) after the last *FLAGS variable, or
42540 # (2) before a word containing "conftest.", or (3) at the end.
42541 # Note that $ac_compile itself does not contain backslashes and begins
42542 # with a dollar sign (not a hyphen), so the echo should work correctly.
42543 # The option is referenced via a variable to avoid confusing sed.
42544 lt_compile=`echo "$ac_compile" | $SED \
42545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42547 -e 's:$: $lt_compiler_flag:'`
42548 (eval echo "\"\$as_me:42548: $lt_compile\"" >&5)
42549 (eval "$lt_compile" 2>conftest.err)
42551 cat conftest.err >&5
42552 echo "$as_me:42552: \$? = $ac_status" >&5
42553 if (exit $ac_status) && test -s "$ac_outfile"; then
42554 # The compiler can only warn and ignore the option if not recognized
42555 # So say no if there are warnings other than the usual output.
42556 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42557 $SED '/^$/d' conftest.err >conftest.er2
42558 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42559 lt_prog_compiler_pic_works_CXX=yes
42565 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
42566 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
42568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
42569 case $lt_prog_compiler_pic_CXX in
42571 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
42574 lt_prog_compiler_pic_CXX=
42575 lt_prog_compiler_can_build_shared_CXX=no
42580 # For platforms which do not support PIC, -DPIC is meaningless:
42582 lt_prog_compiler_pic_CXX=
42585 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
42589 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42590 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
42591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
42592 $as_echo_n "(cached) " >&6
42594 lt_cv_prog_compiler_c_o_CXX=no
42595 $rm -r conftest 2>/dev/null
42599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42601 lt_compiler_flag="-o out/conftest2.$ac_objext"
42602 # Insert the option either (1) after the last *FLAGS variable, or
42603 # (2) before a word containing "conftest.", or (3) at the end.
42604 # Note that $ac_compile itself does not contain backslashes and begins
42605 # with a dollar sign (not a hyphen), so the echo should work correctly.
42606 lt_compile=`echo "$ac_compile" | $SED \
42607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42609 -e 's:$: $lt_compiler_flag:'`
42610 (eval echo "\"\$as_me:42610: $lt_compile\"" >&5)
42611 (eval "$lt_compile" 2>out/conftest.err)
42613 cat out/conftest.err >&5
42614 echo "$as_me:42614: \$? = $ac_status" >&5
42615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
42617 # The compiler can only warn and ignore the option if not recognized
42618 # So say no if there are warnings
42619 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42620 $SED '/^$/d' out/conftest.err >out/conftest.er2
42621 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42622 lt_cv_prog_compiler_c_o_CXX=yes
42627 # SGI C++ compiler will create directory out/ii_files/ for
42628 # template instantiation
42629 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42630 $rm out/* && rmdir out
42636 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
42637 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
42640 hard_links="nottested"
42641 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
42642 # do not overwrite the value of need_locks provided by the user
42643 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42644 $as_echo_n "checking if we can lock with hard links... " >&6; }
42647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
42649 ln conftest.a conftest.b 2>&5 || hard_links=no
42650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
42651 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
42652 $as_echo "$hard_links" >&6; }
42653 if test "$hard_links" = no; then
42655 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42659 cat <<AAW_EOF >>config.warnings
42660 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42670 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42671 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42676 # If we're using GNU nm, then we don't want the "-C" option.
42677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
42678 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42679 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'
42681 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'
42685 export_symbols_cmds_CXX="$ltdll_cmds"
42688 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'
42691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42695 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
42696 $as_echo "$ld_shlibs_CXX" >&6; }
42697 test "$ld_shlibs_CXX" = no && can_build_shared=no
42699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42700 if test "$GCC" = yes; then
42701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42705 # Do we need to explicitly link libc?
42707 case "x$archive_cmds_need_lc_CXX" in
42709 # Assume -lc should be added
42710 archive_cmds_need_lc_CXX=yes
42712 if test "$enable_shared" = yes && test "$GCC" = yes; then
42713 case $archive_cmds_CXX in
42715 # FIXME: we may have to deal with multi-command sequences.
42718 # Test whether the compiler implicitly links with -lc since on some
42719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
42720 # to ld, don't add -lc before -lgcc.
42721 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
42722 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
42724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42727 (eval $ac_compile) 2>&5
42729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42730 (exit $ac_status); } 2>conftest.err; then
42733 libobjs=conftest.$ac_objext
42735 wl=$lt_prog_compiler_wl_CXX
42741 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
42742 allow_undefined_flag_CXX=
42743 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
42744 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
42746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42747 (exit $ac_status); }
42749 archive_cmds_need_lc_CXX=no
42751 archive_cmds_need_lc_CXX=yes
42753 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
42755 cat conftest.err 1>&5
42758 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
42759 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
42766 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
42767 $as_echo_n "checking dynamic linker characteristics... " >&6; }
42768 library_names_spec=
42769 libname_spec='lib$name'
42773 postuninstall_cmds=
42777 shlibpath_overrides_runpath=unknown
42779 dynamic_linker="$host_os ld.so"
42780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
42781 if test "$GCC" = yes; then
42782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42783 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
42784 # if the path contains ";" then we assume it to be the separator
42785 # otherwise default to the standard path separator (i.e. ":") - it is
42786 # assumed that no part of a normal pathname contains ";" but that should
42787 # okay in the real world where ";" in dirpaths is itself problematic.
42788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
42793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
42795 need_lib_prefix=unknown
42796 hardcode_into_libs=no
42798 # when you set need_version to no, make sure it does not cause -set_version
42799 # flags to be left without arguments
42800 need_version=unknown
42805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
42806 shlibpath_var=LIBPATH
42808 # AIX 3 has no versioning support, so we append a major version to the name.
42809 soname_spec='${libname}${release}${shared_ext}$major'
42816 hardcode_into_libs=yes
42817 if test "$host_cpu" = ia64; then
42818 # AIX 5 supports IA64
42819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
42820 shlibpath_var=LD_LIBRARY_PATH
42822 # With GCC up to 2.95.x, collect2 would create an import file
42823 # for dependence libraries. The import file would start with
42824 # the line `#! .'. This would cause the generated library to
42825 # depend on `.', always an invalid library. This was fixed in
42826 # development snapshots of GCC prior to 3.0.
42828 aix4 | aix4.[01] | aix4.[01].*)
42829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
42831 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
42834 can_build_shared=no
42838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
42839 # soname into executable. Probably we can add versioning support to
42840 # collect2, so additional links can be useful in future.
42841 if test "$aix_use_runtimelinking" = yes; then
42842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
42843 # instead of lib<name>.a to let people know that these are not
42844 # typical AIX shared libraries.
42845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42847 # We preserve .a as extension for shared libraries through AIX4.2
42848 # and later when we are not doing run time linking.
42849 library_names_spec='${libname}${release}.a $libname.a'
42850 soname_spec='${libname}${release}${shared_ext}$major'
42852 shlibpath_var=LIBPATH
42857 library_names_spec='$libname.ixlibrary $libname.a'
42858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
42859 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'
42863 library_names_spec='${libname}${shared_ext}'
42864 dynamic_linker="$host_os ld.so"
42865 shlibpath_var=LIBRARY_PATH
42871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42872 soname_spec='${libname}${release}${shared_ext}$major'
42873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
42874 shlibpath_var=LD_LIBRARY_PATH
42875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
42876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
42877 # the default ld.so.conf also contains /usr/contrib/lib and
42878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
42879 # libtool to hard-code these into programs
42882 cygwin* | mingw* | pw32*)
42883 version_type=windows
42888 case $GCC,$host_os in
42889 yes,cygwin* | yes,mingw* | yes,pw32*)
42890 library_names_spec='$libname.dll.a'
42891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
42892 postinstall_cmds='base_file=`basename \${file}`~
42893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
42894 dldir=$destdir/`dirname \$dlpath`~
42895 test -d \$dldir || mkdir -p \$dldir~
42896 $install_prog $dir/$dlname \$dldir/$dlname~
42897 chmod a+x \$dldir/$dlname'
42898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
42899 dlpath=$dir/\$dldll~
42901 shlibpath_overrides_runpath=yes
42905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
42906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
42910 # MinGW DLLs use traditional 'lib' prefix
42911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
42913 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
42914 # It is most probably a Windows format PATH printed by
42915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
42916 # path with ; separators, and with drive letters. We can handle the
42917 # drive letters (cygwin fileutils understands them), so leave them,
42918 # especially as we might pass files found there to a mingw objdump,
42919 # which wouldn't understand a cygwinified path. Ahh.
42920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
42922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
42926 # pw32 DLLs use 'pw' prefix rather than 'lib'
42927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
42933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
42936 dynamic_linker='Win32 ld.exe'
42937 # FIXME: first we should search . and the directory the executable is in
42941 darwin* | rhapsody*)
42942 dynamic_linker="$host_os dyld"
42943 version_type=darwin
42946 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
42947 soname_spec='${libname}${release}${major}$shared_ext'
42948 shlibpath_overrides_runpath=yes
42949 shlibpath_var=DYLD_LIBRARY_PATH
42950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
42951 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
42952 if test "$GCC" = yes; then
42953 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"`
42955 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
42957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
42964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
42965 soname_spec='${libname}${release}${shared_ext}$major'
42966 shlibpath_var=LD_LIBRARY_PATH
42977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42978 soname_spec='${libname}${release}${shared_ext}$major'
42979 shlibpath_var=LD_LIBRARY_PATH
42980 shlibpath_overrides_runpath=no
42981 hardcode_into_libs=yes
42982 dynamic_linker='GNU ld.so'
42985 freebsd* | dragonfly*)
42986 # DragonFly does not have aout. When/if they implement a new
42987 # versioning mechanism, adjust this.
42988 if test -x /usr/bin/objformat; then
42989 objformat=`/usr/bin/objformat`
42992 freebsd[123]*) objformat=aout ;;
42993 *) objformat=elf ;;
42996 version_type=freebsd-$objformat
42997 case $version_type in
42999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
43004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
43008 shlibpath_var=LD_LIBRARY_PATH
43011 shlibpath_overrides_runpath=yes
43013 freebsd3.[01]* | freebsdelf3.[01]*)
43014 shlibpath_overrides_runpath=yes
43015 hardcode_into_libs=yes
43018 shlibpath_overrides_runpath=no
43019 hardcode_into_libs=yes
43028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
43029 soname_spec='${libname}${release}${shared_ext}$major'
43030 shlibpath_var=LD_LIBRARY_PATH
43031 hardcode_into_libs=yes
43034 hpux9* | hpux10* | hpux11*)
43035 # Give a soname corresponding to the major version so that dld.sl refuses to
43036 # link against other versions.
43043 hardcode_into_libs=yes
43044 dynamic_linker="$host_os dld.so"
43045 shlibpath_var=LD_LIBRARY_PATH
43046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43048 soname_spec='${libname}${release}${shared_ext}$major'
43049 if test "X$HPUX_IA64_MODE" = X32; then
43050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
43052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
43054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43058 hardcode_into_libs=yes
43059 dynamic_linker="$host_os dld.sl"
43060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
43061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43063 soname_spec='${libname}${release}${shared_ext}$major'
43064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
43065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43069 dynamic_linker="$host_os dld.sl"
43070 shlibpath_var=SHLIB_PATH
43071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
43072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43073 soname_spec='${libname}${release}${shared_ext}$major'
43076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
43077 postinstall_cmds='chmod 555 $lib'
43080 irix5* | irix6* | nonstopux*)
43082 nonstopux*) version_type=nonstopux ;;
43084 if test "$lt_cv_prog_gnu_ld" = yes; then
43092 soname_spec='${libname}${release}${shared_ext}$major'
43093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43095 irix5* | nonstopux*)
43096 libsuff= shlibsuff=
43099 case $LD in # libtool.m4 will add one of these switches to LD
43100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43101 libsuff= shlibsuff= libmagic=32-bit;;
43102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43103 libsuff=32 shlibsuff=N32 libmagic=N32;;
43104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
43106 *) libsuff= shlibsuff= libmagic=never-match;;
43110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43111 shlibpath_overrides_runpath=no
43112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43114 hardcode_into_libs=yes
43117 # No shared lib support for Linux oldld, aout, or coff.
43118 linux*oldld* | linux*aout* | linux*coff*)
43122 # This must be Linux ELF.
43127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43128 soname_spec='${libname}${release}${shared_ext}$major'
43129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
43130 shlibpath_var=LD_LIBRARY_PATH
43131 shlibpath_overrides_runpath=no
43132 # This implies no fast_install, which is unacceptable.
43133 # Some rework will be needed to allow for fast_install
43134 # before this can be enabled.
43135 hardcode_into_libs=yes
43137 # Append ld.so.conf contents to the search path
43138 if test -f /etc/ld.so.conf; then
43139 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' ' '`
43140 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
43143 # We used to test for /lib/ld.so.1 and disable shared libraries on
43144 # powerpc, because MkLinux only supported shared libraries with the
43145 # GNU dynamic linker. Since this was broken with cross compilers,
43146 # most powerpc-linux boxes support dynamic linking these days and
43147 # people can always --disable-shared, the test was removed, and we
43148 # assume the GNU/Linux dynamic linker is in use.
43149 dynamic_linker='GNU/Linux ld.so'
43156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43157 soname_spec='${libname}${release}${shared_ext}$major'
43158 shlibpath_var=LD_LIBRARY_PATH
43159 shlibpath_overrides_runpath=no
43160 hardcode_into_libs=yes
43161 dynamic_linker='GNU ld.so'
43168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43171 dynamic_linker='NetBSD (a.out) ld.so'
43173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43174 soname_spec='${libname}${release}${shared_ext}$major'
43175 dynamic_linker='NetBSD ld.elf_so'
43177 shlibpath_var=LD_LIBRARY_PATH
43178 shlibpath_overrides_runpath=yes
43179 hardcode_into_libs=yes
43184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43185 shlibpath_var=LD_LIBRARY_PATH
43186 shlibpath_overrides_runpath=yes
43193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43194 soname_spec='${libname}${release}${shared_ext}$major'
43195 shlibpath_var=LD_LIBRARY_PATH
43196 shlibpath_overrides_runpath=yes
43202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
43204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
43205 *) need_version=no ;;
43207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
43209 shlibpath_var=LD_LIBRARY_PATH
43210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43212 openbsd2.[89] | openbsd2.[89].*)
43213 shlibpath_overrides_runpath=no
43216 shlibpath_overrides_runpath=yes
43220 shlibpath_overrides_runpath=yes
43225 libname_spec='$name'
43228 library_names_spec='$libname${shared_ext} $libname.a'
43229 dynamic_linker='OS/2 ld.exe'
43230 shlibpath_var=LIBPATH
43233 osf3* | osf4* | osf5*)
43237 soname_spec='${libname}${release}${shared_ext}$major'
43238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43239 shlibpath_var=LD_LIBRARY_PATH
43240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
43241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
43246 soname_spec='${libname}${release}${shared_ext}$major'
43247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43248 shlibpath_var=LD_LIBRARY_PATH
43255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43256 soname_spec='${libname}${release}${shared_ext}$major'
43257 shlibpath_var=LD_LIBRARY_PATH
43258 shlibpath_overrides_runpath=yes
43259 hardcode_into_libs=yes
43260 # ldd complains unless libraries are executable
43261 postinstall_cmds='chmod +x $lib'
43266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
43267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
43268 shlibpath_var=LD_LIBRARY_PATH
43269 shlibpath_overrides_runpath=yes
43270 if test "$with_gnu_ld" = yes; then
43276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
43278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43279 soname_spec='${libname}${release}${shared_ext}$major'
43280 shlibpath_var=LD_LIBRARY_PATH
43281 case $host_vendor in
43283 shlibpath_overrides_runpath=no
43285 export_dynamic_flag_spec='${wl}-Blargedynsym'
43286 runpath_var=LD_RUN_PATH
43294 shlibpath_overrides_runpath=no
43295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
43301 if test -d /usr/nec ;then
43303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
43304 soname_spec='$libname${shared_ext}.$major'
43305 shlibpath_var=LD_LIBRARY_PATH
43311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43312 soname_spec='${libname}${release}${shared_ext}$major'
43313 shlibpath_var=LD_LIBRARY_PATH
43320 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
43321 $as_echo "$dynamic_linker" >&6; }
43322 test "$dynamic_linker" = no && can_build_shared=no
43324 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
43325 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
43326 hardcode_action_CXX=
43327 if test -n "$hardcode_libdir_flag_spec_CXX" || \
43328 test -n "$runpath_var_CXX" || \
43329 test "X$hardcode_automatic_CXX" = "Xyes" ; then
43331 # We can hardcode non-existant directories.
43332 if test "$hardcode_direct_CXX" != no &&
43333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
43334 # have to relink, otherwise we might link with an installed library
43335 # when we should be linking with a yet-to-be-installed one
43336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
43337 test "$hardcode_minus_L_CXX" != no; then
43338 # Linking always hardcodes the temporary library directory.
43339 hardcode_action_CXX=relink
43341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
43342 hardcode_action_CXX=immediate
43345 # We cannot hardcode anything, or else we can only hardcode existing
43347 hardcode_action_CXX=unsupported
43349 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
43350 $as_echo "$hardcode_action_CXX" >&6; }
43352 if test "$hardcode_action_CXX" = relink; then
43353 # Fast installation is not supported
43354 enable_fast_install=no
43355 elif test "$shlibpath_overrides_runpath" = yes ||
43356 test "$enable_shared" = no; then
43357 # Fast installation is not necessary
43358 enable_fast_install=needless
43363 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
43364 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
43365 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
43366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
43367 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
43368 { $as_echo "$as_me:$LINENO: result: yes" >&5
43369 $as_echo "yes" >&6; }
43371 # FIXME - insert some real tests, host_os isn't really good enough
43374 if test -n "$STRIP" ; then
43375 striplib="$STRIP -x"
43376 { $as_echo "$as_me:$LINENO: result: yes" >&5
43377 $as_echo "yes" >&6; }
43379 { $as_echo "$as_me:$LINENO: result: no" >&5
43380 $as_echo "no" >&6; }
43384 { $as_echo "$as_me:$LINENO: result: no" >&5
43385 $as_echo "no" >&6; }
43390 if test "x$enable_dlopen" != xyes; then
43391 enable_dlopen=unknown
43392 enable_dlopen_self=unknown
43393 enable_dlopen_self_static=unknown
43400 lt_cv_dlopen="load_add_on"
43402 lt_cv_dlopen_self=yes
43406 lt_cv_dlopen="LoadLibrary"
43411 lt_cv_dlopen="dlopen"
43416 # if libdl is installed we need to link against it
43417 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43419 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43420 $as_echo_n "(cached) " >&6
43422 ac_check_lib_save_LIBS=$LIBS
43424 cat >conftest.$ac_ext <<_ACEOF
43427 cat confdefs.h >>conftest.$ac_ext
43428 cat >>conftest.$ac_ext <<_ACEOF
43429 /* end confdefs.h. */
43431 /* Override any GCC internal prototype to avoid an error.
43432 Use char because int might match the return type of a GCC
43433 builtin and then its argument prototype would still apply. */
43446 rm -f conftest.$ac_objext conftest$ac_exeext
43447 if { (ac_try="$ac_link"
43448 case "(($ac_try" in
43449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43450 *) ac_try_echo=$ac_try;;
43452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43453 $as_echo "$ac_try_echo") >&5
43454 (eval "$ac_link") 2>conftest.er1
43456 grep -v '^ *+' conftest.er1 >conftest.err
43458 cat conftest.err >&5
43459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43460 (exit $ac_status); } && {
43461 test -z "$ac_cxx_werror_flag" ||
43462 test ! -s conftest.err
43463 } && test -s conftest$ac_exeext && {
43464 test "$cross_compiling" = yes ||
43465 $as_test_x conftest$ac_exeext
43467 ac_cv_lib_dl_dlopen=yes
43469 $as_echo "$as_me: failed program was:" >&5
43470 sed 's/^/| /' conftest.$ac_ext >&5
43472 ac_cv_lib_dl_dlopen=no
43475 rm -rf conftest.dSYM
43476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43477 conftest$ac_exeext conftest.$ac_ext
43478 LIBS=$ac_check_lib_save_LIBS
43480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43486 lt_cv_dlopen="dyld"
43488 lt_cv_dlopen_self=yes
43495 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
43496 $as_echo_n "checking for shl_load... " >&6; }
43497 if test "${ac_cv_func_shl_load+set}" = set; then
43498 $as_echo_n "(cached) " >&6
43500 cat >conftest.$ac_ext <<_ACEOF
43503 cat confdefs.h >>conftest.$ac_ext
43504 cat >>conftest.$ac_ext <<_ACEOF
43505 /* end confdefs.h. */
43506 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
43507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43508 #define shl_load innocuous_shl_load
43510 /* System header to define __stub macros and hopefully few prototypes,
43511 which can conflict with char shl_load (); below.
43512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43513 <limits.h> exists even on freestanding compilers. */
43516 # include <limits.h>
43518 # include <assert.h>
43523 /* Override any GCC internal prototype to avoid an error.
43524 Use char because int might match the return type of a GCC
43525 builtin and then its argument prototype would still apply. */
43530 /* The GNU C library defines this for functions which it implements
43531 to always fail with ENOSYS. Some functions are actually named
43532 something starting with __ and the normal name is an alias. */
43533 #if defined __stub_shl_load || defined __stub___shl_load
43540 return shl_load ();
43545 rm -f conftest.$ac_objext conftest$ac_exeext
43546 if { (ac_try="$ac_link"
43547 case "(($ac_try" in
43548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43549 *) ac_try_echo=$ac_try;;
43551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43552 $as_echo "$ac_try_echo") >&5
43553 (eval "$ac_link") 2>conftest.er1
43555 grep -v '^ *+' conftest.er1 >conftest.err
43557 cat conftest.err >&5
43558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559 (exit $ac_status); } && {
43560 test -z "$ac_cxx_werror_flag" ||
43561 test ! -s conftest.err
43562 } && test -s conftest$ac_exeext && {
43563 test "$cross_compiling" = yes ||
43564 $as_test_x conftest$ac_exeext
43566 ac_cv_func_shl_load=yes
43568 $as_echo "$as_me: failed program was:" >&5
43569 sed 's/^/| /' conftest.$ac_ext >&5
43571 ac_cv_func_shl_load=no
43574 rm -rf conftest.dSYM
43575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43576 conftest$ac_exeext conftest.$ac_ext
43578 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
43579 $as_echo "$ac_cv_func_shl_load" >&6; }
43580 if test "x$ac_cv_func_shl_load" = x""yes; then
43581 lt_cv_dlopen="shl_load"
43583 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
43584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
43585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
43586 $as_echo_n "(cached) " >&6
43588 ac_check_lib_save_LIBS=$LIBS
43590 cat >conftest.$ac_ext <<_ACEOF
43593 cat confdefs.h >>conftest.$ac_ext
43594 cat >>conftest.$ac_ext <<_ACEOF
43595 /* end confdefs.h. */
43597 /* Override any GCC internal prototype to avoid an error.
43598 Use char because int might match the return type of a GCC
43599 builtin and then its argument prototype would still apply. */
43607 return shl_load ();
43612 rm -f conftest.$ac_objext conftest$ac_exeext
43613 if { (ac_try="$ac_link"
43614 case "(($ac_try" in
43615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43616 *) ac_try_echo=$ac_try;;
43618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43619 $as_echo "$ac_try_echo") >&5
43620 (eval "$ac_link") 2>conftest.er1
43622 grep -v '^ *+' conftest.er1 >conftest.err
43624 cat conftest.err >&5
43625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43626 (exit $ac_status); } && {
43627 test -z "$ac_cxx_werror_flag" ||
43628 test ! -s conftest.err
43629 } && test -s conftest$ac_exeext && {
43630 test "$cross_compiling" = yes ||
43631 $as_test_x conftest$ac_exeext
43633 ac_cv_lib_dld_shl_load=yes
43635 $as_echo "$as_me: failed program was:" >&5
43636 sed 's/^/| /' conftest.$ac_ext >&5
43638 ac_cv_lib_dld_shl_load=no
43641 rm -rf conftest.dSYM
43642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43643 conftest$ac_exeext conftest.$ac_ext
43644 LIBS=$ac_check_lib_save_LIBS
43646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
43647 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
43648 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
43649 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
43651 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
43652 $as_echo_n "checking for dlopen... " >&6; }
43653 if test "${ac_cv_func_dlopen+set}" = set; then
43654 $as_echo_n "(cached) " >&6
43656 cat >conftest.$ac_ext <<_ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h. */
43662 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
43663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43664 #define dlopen innocuous_dlopen
43666 /* System header to define __stub macros and hopefully few prototypes,
43667 which can conflict with char dlopen (); below.
43668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43669 <limits.h> exists even on freestanding compilers. */
43672 # include <limits.h>
43674 # include <assert.h>
43679 /* Override any GCC internal prototype to avoid an error.
43680 Use char because int might match the return type of a GCC
43681 builtin and then its argument prototype would still apply. */
43686 /* The GNU C library defines this for functions which it implements
43687 to always fail with ENOSYS. Some functions are actually named
43688 something starting with __ and the normal name is an alias. */
43689 #if defined __stub_dlopen || defined __stub___dlopen
43701 rm -f conftest.$ac_objext conftest$ac_exeext
43702 if { (ac_try="$ac_link"
43703 case "(($ac_try" in
43704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43705 *) ac_try_echo=$ac_try;;
43707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43708 $as_echo "$ac_try_echo") >&5
43709 (eval "$ac_link") 2>conftest.er1
43711 grep -v '^ *+' conftest.er1 >conftest.err
43713 cat conftest.err >&5
43714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715 (exit $ac_status); } && {
43716 test -z "$ac_cxx_werror_flag" ||
43717 test ! -s conftest.err
43718 } && test -s conftest$ac_exeext && {
43719 test "$cross_compiling" = yes ||
43720 $as_test_x conftest$ac_exeext
43722 ac_cv_func_dlopen=yes
43724 $as_echo "$as_me: failed program was:" >&5
43725 sed 's/^/| /' conftest.$ac_ext >&5
43727 ac_cv_func_dlopen=no
43730 rm -rf conftest.dSYM
43731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43732 conftest$ac_exeext conftest.$ac_ext
43734 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
43735 $as_echo "$ac_cv_func_dlopen" >&6; }
43736 if test "x$ac_cv_func_dlopen" = x""yes; then
43737 lt_cv_dlopen="dlopen"
43739 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
43741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43742 $as_echo_n "(cached) " >&6
43744 ac_check_lib_save_LIBS=$LIBS
43746 cat >conftest.$ac_ext <<_ACEOF
43749 cat confdefs.h >>conftest.$ac_ext
43750 cat >>conftest.$ac_ext <<_ACEOF
43751 /* end confdefs.h. */
43753 /* Override any GCC internal prototype to avoid an error.
43754 Use char because int might match the return type of a GCC
43755 builtin and then its argument prototype would still apply. */
43768 rm -f conftest.$ac_objext conftest$ac_exeext
43769 if { (ac_try="$ac_link"
43770 case "(($ac_try" in
43771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43772 *) ac_try_echo=$ac_try;;
43774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43775 $as_echo "$ac_try_echo") >&5
43776 (eval "$ac_link") 2>conftest.er1
43778 grep -v '^ *+' conftest.er1 >conftest.err
43780 cat conftest.err >&5
43781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782 (exit $ac_status); } && {
43783 test -z "$ac_cxx_werror_flag" ||
43784 test ! -s conftest.err
43785 } && test -s conftest$ac_exeext && {
43786 test "$cross_compiling" = yes ||
43787 $as_test_x conftest$ac_exeext
43789 ac_cv_lib_dl_dlopen=yes
43791 $as_echo "$as_me: failed program was:" >&5
43792 sed 's/^/| /' conftest.$ac_ext >&5
43794 ac_cv_lib_dl_dlopen=no
43797 rm -rf conftest.dSYM
43798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43799 conftest$ac_exeext conftest.$ac_ext
43800 LIBS=$ac_check_lib_save_LIBS
43802 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43803 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
43804 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
43805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
43807 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
43808 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
43809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
43810 $as_echo_n "(cached) " >&6
43812 ac_check_lib_save_LIBS=$LIBS
43813 LIBS="-lsvld $LIBS"
43814 cat >conftest.$ac_ext <<_ACEOF
43817 cat confdefs.h >>conftest.$ac_ext
43818 cat >>conftest.$ac_ext <<_ACEOF
43819 /* end confdefs.h. */
43821 /* Override any GCC internal prototype to avoid an error.
43822 Use char because int might match the return type of a GCC
43823 builtin and then its argument prototype would still apply. */
43836 rm -f conftest.$ac_objext conftest$ac_exeext
43837 if { (ac_try="$ac_link"
43838 case "(($ac_try" in
43839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43840 *) ac_try_echo=$ac_try;;
43842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43843 $as_echo "$ac_try_echo") >&5
43844 (eval "$ac_link") 2>conftest.er1
43846 grep -v '^ *+' conftest.er1 >conftest.err
43848 cat conftest.err >&5
43849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43850 (exit $ac_status); } && {
43851 test -z "$ac_cxx_werror_flag" ||
43852 test ! -s conftest.err
43853 } && test -s conftest$ac_exeext && {
43854 test "$cross_compiling" = yes ||
43855 $as_test_x conftest$ac_exeext
43857 ac_cv_lib_svld_dlopen=yes
43859 $as_echo "$as_me: failed program was:" >&5
43860 sed 's/^/| /' conftest.$ac_ext >&5
43862 ac_cv_lib_svld_dlopen=no
43865 rm -rf conftest.dSYM
43866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43867 conftest$ac_exeext conftest.$ac_ext
43868 LIBS=$ac_check_lib_save_LIBS
43870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
43871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
43872 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
43873 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
43875 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
43876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
43877 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
43878 $as_echo_n "(cached) " >&6
43880 ac_check_lib_save_LIBS=$LIBS
43882 cat >conftest.$ac_ext <<_ACEOF
43885 cat confdefs.h >>conftest.$ac_ext
43886 cat >>conftest.$ac_ext <<_ACEOF
43887 /* end confdefs.h. */
43889 /* Override any GCC internal prototype to avoid an error.
43890 Use char because int might match the return type of a GCC
43891 builtin and then its argument prototype would still apply. */
43899 return dld_link ();
43904 rm -f conftest.$ac_objext conftest$ac_exeext
43905 if { (ac_try="$ac_link"
43906 case "(($ac_try" in
43907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43908 *) ac_try_echo=$ac_try;;
43910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43911 $as_echo "$ac_try_echo") >&5
43912 (eval "$ac_link") 2>conftest.er1
43914 grep -v '^ *+' conftest.er1 >conftest.err
43916 cat conftest.err >&5
43917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43918 (exit $ac_status); } && {
43919 test -z "$ac_cxx_werror_flag" ||
43920 test ! -s conftest.err
43921 } && test -s conftest$ac_exeext && {
43922 test "$cross_compiling" = yes ||
43923 $as_test_x conftest$ac_exeext
43925 ac_cv_lib_dld_dld_link=yes
43927 $as_echo "$as_me: failed program was:" >&5
43928 sed 's/^/| /' conftest.$ac_ext >&5
43930 ac_cv_lib_dld_dld_link=no
43933 rm -rf conftest.dSYM
43934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43935 conftest$ac_exeext conftest.$ac_ext
43936 LIBS=$ac_check_lib_save_LIBS
43938 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
43939 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
43940 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
43941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
43962 if test "x$lt_cv_dlopen" != xno; then
43968 case $lt_cv_dlopen in
43970 save_CPPFLAGS="$CPPFLAGS"
43971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
43973 save_LDFLAGS="$LDFLAGS"
43974 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
43977 LIBS="$lt_cv_dlopen_libs $LIBS"
43979 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
43980 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
43981 if test "${lt_cv_dlopen_self+set}" = set; then
43982 $as_echo_n "(cached) " >&6
43984 if test "$cross_compiling" = yes; then :
43985 lt_cv_dlopen_self=cross
43987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
43988 lt_status=$lt_dlunknown
43989 cat > conftest.$ac_ext <<EOF
43990 #line 43990 "configure"
43991 #include "confdefs.h"
44000 # define LT_DLGLOBAL RTLD_GLOBAL
44003 # define LT_DLGLOBAL DL_GLOBAL
44005 # define LT_DLGLOBAL 0
44009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44010 find out it does not work in some platform. */
44011 #ifndef LT_DLLAZY_OR_NOW
44013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
44016 # define LT_DLLAZY_OR_NOW DL_LAZY
44019 # define LT_DLLAZY_OR_NOW RTLD_NOW
44022 # define LT_DLLAZY_OR_NOW DL_NOW
44024 # define LT_DLLAZY_OR_NOW 0
44032 extern "C" void exit (int);
44035 void fnord() { int i=42;}
44038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44039 int status = $lt_dlunknown;
44043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
44044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44045 /* dlclose (self); */
44051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44052 (eval $ac_link) 2>&5
44054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44056 (./conftest; exit; ) >&5 2>/dev/null
44058 case x$lt_status in
44059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
44060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
44061 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
44064 # compilation failed
44065 lt_cv_dlopen_self=no
44072 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
44073 $as_echo "$lt_cv_dlopen_self" >&6; }
44075 if test "x$lt_cv_dlopen_self" = xyes; then
44076 LDFLAGS="$LDFLAGS $link_static_flag"
44077 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
44078 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
44079 if test "${lt_cv_dlopen_self_static+set}" = set; then
44080 $as_echo_n "(cached) " >&6
44082 if test "$cross_compiling" = yes; then :
44083 lt_cv_dlopen_self_static=cross
44085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
44086 lt_status=$lt_dlunknown
44087 cat > conftest.$ac_ext <<EOF
44088 #line 44088 "configure"
44089 #include "confdefs.h"
44098 # define LT_DLGLOBAL RTLD_GLOBAL
44101 # define LT_DLGLOBAL DL_GLOBAL
44103 # define LT_DLGLOBAL 0
44107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
44108 find out it does not work in some platform. */
44109 #ifndef LT_DLLAZY_OR_NOW
44111 # define LT_DLLAZY_OR_NOW RTLD_LAZY
44114 # define LT_DLLAZY_OR_NOW DL_LAZY
44117 # define LT_DLLAZY_OR_NOW RTLD_NOW
44120 # define LT_DLLAZY_OR_NOW DL_NOW
44122 # define LT_DLLAZY_OR_NOW 0
44130 extern "C" void exit (int);
44133 void fnord() { int i=42;}
44136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
44137 int status = $lt_dlunknown;
44141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
44142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
44143 /* dlclose (self); */
44149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44150 (eval $ac_link) 2>&5
44152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
44154 (./conftest; exit; ) >&5 2>/dev/null
44156 case x$lt_status in
44157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
44158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
44159 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
44162 # compilation failed
44163 lt_cv_dlopen_self_static=no
44170 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
44171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
44174 CPPFLAGS="$save_CPPFLAGS"
44175 LDFLAGS="$save_LDFLAGS"
44180 case $lt_cv_dlopen_self in
44181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
44182 *) enable_dlopen_self=unknown ;;
44185 case $lt_cv_dlopen_self_static in
44186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
44187 *) enable_dlopen_self_static=unknown ;;
44192 # The else clause should only fire when bootstrapping the
44193 # libtool distribution, otherwise you forgot to ship ltmain.sh
44194 # with your package, and you will get complaints that there are
44195 # no rules to generate ltmain.sh.
44196 if test -f "$ltmain"; then
44197 # See if we are running on zsh, and set the options which allow our commands through
44198 # without removal of \ escapes.
44199 if test -n "${ZSH_VERSION+set}" ; then
44200 setopt NO_GLOB_SUBST
44202 # Now quote all the things that may contain metacharacters while being
44203 # careful not to overquote the AC_SUBSTed values. We take copies of the
44204 # variables and quote the copies for generation of the libtool script.
44205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44207 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44208 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44209 deplibs_check_method reload_flag reload_cmds need_locks \
44210 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44211 lt_cv_sys_global_symbol_to_c_name_address \
44212 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44213 old_postinstall_cmds old_postuninstall_cmds \
44217 lt_prog_compiler_wl_CXX \
44218 lt_prog_compiler_pic_CXX \
44219 lt_prog_compiler_static_CXX \
44220 lt_prog_compiler_no_builtin_flag_CXX \
44221 export_dynamic_flag_spec_CXX \
44222 thread_safe_flag_spec_CXX \
44223 whole_archive_flag_spec_CXX \
44224 enable_shared_with_static_runtimes_CXX \
44225 old_archive_cmds_CXX \
44226 old_archive_from_new_cmds_CXX \
44227 predep_objects_CXX \
44228 postdep_objects_CXX \
44231 compiler_lib_search_path_CXX \
44233 archive_expsym_cmds_CXX \
44234 postinstall_cmds_CXX \
44235 postuninstall_cmds_CXX \
44236 old_archive_from_expsyms_cmds_CXX \
44237 allow_undefined_flag_CXX \
44238 no_undefined_flag_CXX \
44239 export_symbols_cmds_CXX \
44240 hardcode_libdir_flag_spec_CXX \
44241 hardcode_libdir_flag_spec_ld_CXX \
44242 hardcode_libdir_separator_CXX \
44243 hardcode_automatic_CXX \
44245 module_expsym_cmds_CXX \
44246 lt_cv_prog_compiler_c_o_CXX \
44247 exclude_expsyms_CXX \
44248 include_expsyms_CXX; do
44251 old_archive_cmds_CXX | \
44252 old_archive_from_new_cmds_CXX | \
44253 archive_cmds_CXX | \
44254 archive_expsym_cmds_CXX | \
44255 module_cmds_CXX | \
44256 module_expsym_cmds_CXX | \
44257 old_archive_from_expsyms_cmds_CXX | \
44258 export_symbols_cmds_CXX | \
44259 extract_expsyms_cmds | reload_cmds | finish_cmds | \
44260 postinstall_cmds | postuninstall_cmds | \
44261 old_postinstall_cmds | old_postuninstall_cmds | \
44262 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44263 # Double-quote double-evaled strings.
44264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44273 *'\$0 --fallback-echo"')
44274 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44280 cat <<__EOF__ >> "$cfgfile"
44281 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44285 # Shell to use when invoking shell scripts.
44288 # Whether or not to build shared libraries.
44289 build_libtool_libs=$enable_shared
44291 # Whether or not to build static libraries.
44292 build_old_libs=$enable_static
44294 # Whether or not to add -lc for building shared libraries.
44295 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44297 # Whether or not to disallow shared libs when runtime libs are static
44298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44300 # Whether or not to optimize for fast installation.
44301 fast_install=$enable_fast_install
44304 host_alias=$host_alias
44308 # The build system.
44309 build_alias=$build_alias
44313 # An echo program that does not interpret backslashes.
44318 AR_FLAGS=$lt_AR_FLAGS
44323 # A language-specific compiler.
44324 CC=$lt_compiler_CXX
44326 # Is the compiler the GNU C compiler?
44332 # The linker used to build libraries.
44335 # Whether we need hard or soft links.
44338 # A BSD-compatible nm program.
44341 # A symbol stripping program
44344 # Used to examine libraries when file_magic_cmd begins "file"
44345 MAGIC_CMD=$MAGIC_CMD
44347 # Used on cygwin: DLL creation program.
44350 # Used on cygwin: object dumper.
44353 # Used on cygwin: assembler.
44356 # The name of the directory that contains temporary libtool files.
44359 # How to create reloadable object files.
44360 reload_flag=$lt_reload_flag
44361 reload_cmds=$lt_reload_cmds
44363 # How to pass a linker flag through the compiler.
44364 wl=$lt_lt_prog_compiler_wl_CXX
44366 # Object file suffix (normally "o").
44367 objext="$ac_objext"
44369 # Old archive suffix (normally "a").
44372 # Shared library suffix (normally ".so").
44373 shrext_cmds='$shrext_cmds'
44375 # Executable file suffix (normally "").
44378 # Additional compiler flags for building library objects.
44379 pic_flag=$lt_lt_prog_compiler_pic_CXX
44382 # What is the maximum length of a command?
44383 max_cmd_len=$lt_cv_sys_max_cmd_len
44385 # Does compiler simultaneously support -c and -o options?
44386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44388 # Must we lock files when doing compilation?
44389 need_locks=$lt_need_locks
44391 # Do we need the lib prefix for modules?
44392 need_lib_prefix=$need_lib_prefix
44394 # Do we need a version for libraries?
44395 need_version=$need_version
44397 # Whether dlopen is supported.
44398 dlopen_support=$enable_dlopen
44400 # Whether dlopen of programs is supported.
44401 dlopen_self=$enable_dlopen_self
44403 # Whether dlopen of statically linked programs is supported.
44404 dlopen_self_static=$enable_dlopen_self_static
44406 # Compiler flag to prevent dynamic linking.
44407 link_static_flag=$lt_lt_prog_compiler_static_CXX
44409 # Compiler flag to turn off builtin functions.
44410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44412 # Compiler flag to allow reflexive dlopens.
44413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44415 # Compiler flag to generate shared objects directly from archives.
44416 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44418 # Compiler flag to generate thread-safe objects.
44419 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
44421 # Library versioning type.
44422 version_type=$version_type
44424 # Format of library name prefix.
44425 libname_spec=$lt_libname_spec
44427 # List of archive names. First name is the real one, the rest are links.
44428 # The last name is the one that the linker finds with -lNAME.
44429 library_names_spec=$lt_library_names_spec
44431 # The coded name of the library, if different from the real name.
44432 soname_spec=$lt_soname_spec
44434 # Commands used to build and install an old-style archive.
44436 old_archive_cmds=$lt_old_archive_cmds_CXX
44437 old_postinstall_cmds=$lt_old_postinstall_cmds
44438 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44440 # Create an old-style archive from a shared archive.
44441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44443 # Create a temporary old-style archive to link instead of a shared archive.
44444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44446 # Commands used to build and install a shared archive.
44447 archive_cmds=$lt_archive_cmds_CXX
44448 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44449 postinstall_cmds=$lt_postinstall_cmds
44450 postuninstall_cmds=$lt_postuninstall_cmds
44452 # Commands used to build a loadable module (assumed same as above if empty)
44453 module_cmds=$lt_module_cmds_CXX
44454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44456 # Commands to strip libraries.
44457 old_striplib=$lt_old_striplib
44458 striplib=$lt_striplib
44460 # Dependencies to place before the objects being linked to create a
44462 predep_objects=$lt_predep_objects_CXX
44464 # Dependencies to place after the objects being linked to create a
44466 postdep_objects=$lt_postdep_objects_CXX
44468 # Dependencies to place before the objects being linked to create a
44470 predeps=$lt_predeps_CXX
44472 # Dependencies to place after the objects being linked to create a
44474 postdeps=$lt_postdeps_CXX
44476 # The library search path used internally by the compiler when linking
44477 # a shared library.
44478 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44480 # Method to check whether dependent libraries are shared objects.
44481 deplibs_check_method=$lt_deplibs_check_method
44483 # Command to use when deplibs_check_method == file_magic.
44484 file_magic_cmd=$lt_file_magic_cmd
44486 # Flag that allows shared libraries with undefined symbols to be built.
44487 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44489 # Flag that forces no undefined symbols.
44490 no_undefined_flag=$lt_no_undefined_flag_CXX
44492 # Commands used to finish a libtool library installation in a directory.
44493 finish_cmds=$lt_finish_cmds
44495 # Same as above, but a single script fragment to be evaled but not shown.
44496 finish_eval=$lt_finish_eval
44498 # Take the output of nm and produce a listing of raw symbols and C names.
44499 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44501 # Transform the output of nm in a proper C declaration
44502 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44504 # Transform the output of nm in a C name address pair
44505 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44507 # This is the shared library runtime path variable.
44508 runpath_var=$runpath_var
44510 # This is the shared library path variable.
44511 shlibpath_var=$shlibpath_var
44513 # Is shlibpath searched before the hard-coded library search path?
44514 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44516 # How to hardcode a shared library path into an executable.
44517 hardcode_action=$hardcode_action_CXX
44519 # Whether we should hardcode library paths into libraries.
44520 hardcode_into_libs=$hardcode_into_libs
44522 # Flag to hardcode \$libdir into a binary during linking.
44523 # This must work even if \$libdir does not exist.
44524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44526 # If ld is used when linking, flag to hardcode \$libdir into
44527 # a binary during linking. This must work even if \$libdir does
44529 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44531 # Whether we need a single -rpath flag with a separated argument.
44532 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44534 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44535 # resulting binary.
44536 hardcode_direct=$hardcode_direct_CXX
44538 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44539 # resulting binary.
44540 hardcode_minus_L=$hardcode_minus_L_CXX
44542 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44543 # the resulting binary.
44544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44546 # Set to yes if building a shared library automatically hardcodes DIR into the library
44547 # and all subsequent libraries and executables linked against it.
44548 hardcode_automatic=$hardcode_automatic_CXX
44550 # Variables whose values should be saved in libtool wrapper scripts and
44551 # restored at relink time.
44552 variables_saved_for_relink="$variables_saved_for_relink"
44554 # Whether libtool must link a program against all its dependency libraries.
44555 link_all_deplibs=$link_all_deplibs_CXX
44557 # Compile-time system search path for libraries
44558 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44560 # Run-time system search path for libraries
44561 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44563 # Fix the shell variable \$srcfile for the compiler.
44564 fix_srcfile_path="$fix_srcfile_path_CXX"
44566 # Set to yes if exported symbols are required.
44567 always_export_symbols=$always_export_symbols_CXX
44569 # The commands to list exported symbols.
44570 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44572 # The commands to extract the exported symbol list from a shared archive.
44573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44575 # Symbols that should not be listed in the preloaded symbols.
44576 exclude_expsyms=$lt_exclude_expsyms_CXX
44578 # Symbols that must always be exported.
44579 include_expsyms=$lt_include_expsyms_CXX
44581 # ### END LIBTOOL TAG CONFIG: $tagname
44587 # If there is no Makefile yet, we rely on a make rule to execute
44588 # `config.status --recheck' to rerun these tests and create the
44589 # libtool script then.
44590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44591 if test -f "$ltmain_in"; then
44592 test -f Makefile && make "$ltmain"
44598 ac_cpp='$CPP $CPPFLAGS'
44599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44607 with_gnu_ldcxx=$with_gnu_ld
44608 with_gnu_ld=$lt_save_with_gnu_ld
44609 lt_cv_path_LDCXX=$lt_cv_path_LD
44610 lt_cv_path_LD=$lt_save_path_LD
44611 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
44612 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
44620 if test -n "$F77" && test "X$F77" != "Xno"; then
44623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44628 archive_cmds_need_lc_F77=no
44629 allow_undefined_flag_F77=
44630 always_export_symbols_F77=no
44631 archive_expsym_cmds_F77=
44632 export_dynamic_flag_spec_F77=
44633 hardcode_direct_F77=no
44634 hardcode_libdir_flag_spec_F77=
44635 hardcode_libdir_flag_spec_ld_F77=
44636 hardcode_libdir_separator_F77=
44637 hardcode_minus_L_F77=no
44638 hardcode_automatic_F77=no
44640 module_expsym_cmds_F77=
44641 link_all_deplibs_F77=unknown
44642 old_archive_cmds_F77=$old_archive_cmds
44643 no_undefined_flag_F77=
44644 whole_archive_flag_spec_F77=
44645 enable_shared_with_static_runtimes_F77=no
44647 # Source file extension for f77 test sources.
44650 # Object file extension for compiled f77 test sources.
44654 # Code to be used in simple compile tests
44655 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
44657 # Code to be used in simple link tests
44658 lt_simple_link_test_code=" program t\n end\n"
44660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44662 # If no C compiler was specified, use CC.
44665 # Allow CC to be a program name with arguments.
44669 # save warnings/boilerplate of simple test code
44670 ac_outfile=conftest.$ac_objext
44671 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44673 _lt_compiler_boilerplate=`cat conftest.err`
44676 ac_outfile=conftest.$ac_objext
44677 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44679 _lt_linker_boilerplate=`cat conftest.err`
44683 # Allow CC to be a program name with arguments.
44688 for cc_temp in $compiler""; do
44690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44699 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
44700 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
44701 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
44702 $as_echo "$can_build_shared" >&6; }
44704 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
44705 $as_echo_n "checking whether to build shared libraries... " >&6; }
44706 test "$can_build_shared" = "no" && enable_shared=no
44708 # On AIX, shared libraries and static libraries use the same namespace, and
44709 # are all built from PIC.
44712 test "$enable_shared" = yes && enable_static=no
44713 if test -n "$RANLIB"; then
44714 archive_cmds="$archive_cmds~\$RANLIB \$lib"
44715 postinstall_cmds='$RANLIB $lib'
44719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
44720 test "$enable_shared" = yes && enable_static=no
44724 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
44725 $as_echo "$enable_shared" >&6; }
44727 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
44728 $as_echo_n "checking whether to build static libraries... " >&6; }
44729 # Make sure either enable_shared or enable_static is yes.
44730 test "$enable_shared" = yes || enable_static=yes
44731 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
44732 $as_echo "$enable_static" >&6; }
44734 test "$ld_shlibs_F77" = no && can_build_shared=no
44739 lt_prog_compiler_wl_F77=
44740 lt_prog_compiler_pic_F77=
44741 lt_prog_compiler_static_F77=
44743 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44744 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44746 if test "$GCC" = yes; then
44747 lt_prog_compiler_wl_F77='-Wl,'
44748 lt_prog_compiler_static_F77='-static'
44752 # All AIX code is PIC.
44753 if test "$host_cpu" = ia64; then
44754 # AIX 5 now supports IA64 processor
44755 lt_prog_compiler_static_F77='-Bstatic'
44760 # FIXME: we need at least 68020 code to build shared libraries, but
44761 # adding the `-m68020' flag to GCC prevents building anything better,
44763 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
44766 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44767 # PIC is the default for these OSes.
44770 mingw* | pw32* | os2*)
44771 # This hack is so that the source file can tell whether it is being
44772 # built for inclusion in a dll (and should export symbols for example).
44773 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44776 darwin* | rhapsody*)
44777 # PIC is the default on this platform
44778 # Common symbols not allowed in MH_DYLIB files
44779 lt_prog_compiler_pic_F77='-fno-common'
44783 # Just because we use GCC doesn't mean we suddenly get shared libraries
44784 # on systems that don't support them.
44785 lt_prog_compiler_can_build_shared_F77=no
44790 if test -d /usr/nec; then
44791 lt_prog_compiler_pic_F77=-Kconform_pic
44796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44797 # not for PA HP-UX.
44803 lt_prog_compiler_pic_F77='-fPIC'
44809 lt_prog_compiler_pic_F77='-fPIC'
44813 # PORTME Check for flag to pass linker flags through the system compiler.
44816 lt_prog_compiler_wl_F77='-Wl,'
44817 if test "$host_cpu" = ia64; then
44818 # AIX 5 now supports IA64 processor
44819 lt_prog_compiler_static_F77='-Bstatic'
44821 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
44825 # PIC is the default on this platform
44826 # Common symbols not allowed in MH_DYLIB files
44827 case $cc_basename in
44829 lt_prog_compiler_pic_F77='-qnocommon'
44830 lt_prog_compiler_wl_F77='-Wl,'
44835 mingw* | pw32* | os2*)
44836 # This hack is so that the source file can tell whether it is being
44837 # built for inclusion in a dll (and should export symbols for example).
44838 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
44841 hpux9* | hpux10* | hpux11*)
44842 lt_prog_compiler_wl_F77='-Wl,'
44843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44844 # not for PA HP-UX.
44850 lt_prog_compiler_pic_F77='+Z'
44853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
44854 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
44857 irix5* | irix6* | nonstopux*)
44858 lt_prog_compiler_wl_F77='-Wl,'
44859 # PIC (with -KPIC) is the default.
44860 lt_prog_compiler_static_F77='-non_shared'
44864 lt_prog_compiler_pic_F77='-KPIC'
44865 lt_prog_compiler_static_F77='-Bstatic'
44869 case $cc_basename in
44871 lt_prog_compiler_wl_F77='-Wl,'
44872 lt_prog_compiler_pic_F77='-KPIC'
44873 lt_prog_compiler_static_F77='-static'
44875 pgcc* | pgf77* | pgf90* | pgf95*)
44876 # Portland Group compilers (*not* the Pentium gcc compiler,
44877 # which looks to be a dead project)
44878 lt_prog_compiler_wl_F77='-Wl,'
44879 lt_prog_compiler_pic_F77='-fpic'
44880 lt_prog_compiler_static_F77='-Bstatic'
44883 lt_prog_compiler_wl_F77='-Wl,'
44884 # All Alpha code is PIC.
44885 lt_prog_compiler_static_F77='-non_shared'
44890 osf3* | osf4* | osf5*)
44891 lt_prog_compiler_wl_F77='-Wl,'
44892 # All OSF/1 code is PIC.
44893 lt_prog_compiler_static_F77='-non_shared'
44897 lt_prog_compiler_pic_F77='-Kpic'
44898 lt_prog_compiler_static_F77='-dn'
44902 lt_prog_compiler_pic_F77='-KPIC'
44903 lt_prog_compiler_static_F77='-Bstatic'
44904 case $cc_basename in
44905 f77* | f90* | f95*)
44906 lt_prog_compiler_wl_F77='-Qoption ld ';;
44908 lt_prog_compiler_wl_F77='-Wl,';;
44913 lt_prog_compiler_wl_F77='-Qoption ld '
44914 lt_prog_compiler_pic_F77='-PIC'
44915 lt_prog_compiler_static_F77='-Bstatic'
44918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44919 lt_prog_compiler_wl_F77='-Wl,'
44920 lt_prog_compiler_pic_F77='-KPIC'
44921 lt_prog_compiler_static_F77='-Bstatic'
44925 if test -d /usr/nec ;then
44926 lt_prog_compiler_pic_F77='-Kconform_pic'
44927 lt_prog_compiler_static_F77='-Bstatic'
44932 lt_prog_compiler_wl_F77='-Wl,'
44933 lt_prog_compiler_can_build_shared_F77=no
44937 lt_prog_compiler_pic_F77='-pic'
44938 lt_prog_compiler_static_F77='-Bstatic'
44942 lt_prog_compiler_can_build_shared_F77=no
44947 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
44948 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
44951 # Check to make sure the PIC flag actually works.
44953 if test -n "$lt_prog_compiler_pic_F77"; then
44955 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
44956 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
44957 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
44958 $as_echo_n "(cached) " >&6
44960 lt_prog_compiler_pic_works_F77=no
44961 ac_outfile=conftest.$ac_objext
44962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44963 lt_compiler_flag="$lt_prog_compiler_pic_F77"
44964 # Insert the option either (1) after the last *FLAGS variable, or
44965 # (2) before a word containing "conftest.", or (3) at the end.
44966 # Note that $ac_compile itself does not contain backslashes and begins
44967 # with a dollar sign (not a hyphen), so the echo should work correctly.
44968 # The option is referenced via a variable to avoid confusing sed.
44969 lt_compile=`echo "$ac_compile" | $SED \
44970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44972 -e 's:$: $lt_compiler_flag:'`
44973 (eval echo "\"\$as_me:44973: $lt_compile\"" >&5)
44974 (eval "$lt_compile" 2>conftest.err)
44976 cat conftest.err >&5
44977 echo "$as_me:44977: \$? = $ac_status" >&5
44978 if (exit $ac_status) && test -s "$ac_outfile"; then
44979 # The compiler can only warn and ignore the option if not recognized
44980 # So say no if there are warnings other than the usual output.
44981 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44982 $SED '/^$/d' conftest.err >conftest.er2
44983 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44984 lt_prog_compiler_pic_works_F77=yes
44990 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
44991 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
44993 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
44994 case $lt_prog_compiler_pic_F77 in
44996 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
44999 lt_prog_compiler_pic_F77=
45000 lt_prog_compiler_can_build_shared_F77=no
45005 # For platforms which do not support PIC, -DPIC is meaningless:
45007 lt_prog_compiler_pic_F77=
45010 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
45014 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45016 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
45017 $as_echo_n "(cached) " >&6
45019 lt_cv_prog_compiler_c_o_F77=no
45020 $rm -r conftest 2>/dev/null
45024 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45026 lt_compiler_flag="-o out/conftest2.$ac_objext"
45027 # Insert the option either (1) after the last *FLAGS variable, or
45028 # (2) before a word containing "conftest.", or (3) at the end.
45029 # Note that $ac_compile itself does not contain backslashes and begins
45030 # with a dollar sign (not a hyphen), so the echo should work correctly.
45031 lt_compile=`echo "$ac_compile" | $SED \
45032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45034 -e 's:$: $lt_compiler_flag:'`
45035 (eval echo "\"\$as_me:45035: $lt_compile\"" >&5)
45036 (eval "$lt_compile" 2>out/conftest.err)
45038 cat out/conftest.err >&5
45039 echo "$as_me:45039: \$? = $ac_status" >&5
45040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
45042 # The compiler can only warn and ignore the option if not recognized
45043 # So say no if there are warnings
45044 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
45045 $SED '/^$/d' out/conftest.err >out/conftest.er2
45046 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45047 lt_cv_prog_compiler_c_o_F77=yes
45052 # SGI C++ compiler will create directory out/ii_files/ for
45053 # template instantiation
45054 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
45055 $rm out/* && rmdir out
45061 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
45062 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
45065 hard_links="nottested"
45066 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
45067 # do not overwrite the value of need_locks provided by the user
45068 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45069 $as_echo_n "checking if we can lock with hard links... " >&6; }
45072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
45074 ln conftest.a conftest.b 2>&5 || hard_links=no
45075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
45076 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
45077 $as_echo "$hard_links" >&6; }
45078 if test "$hard_links" = no; then
45080 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45081 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45084 cat <<AAW_EOF >>config.warnings
45085 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45095 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45099 allow_undefined_flag_F77=
45100 enable_shared_with_static_runtimes_F77=no
45102 archive_expsym_cmds_F77=
45103 old_archive_From_new_cmds_F77=
45104 old_archive_from_expsyms_cmds_F77=
45105 export_dynamic_flag_spec_F77=
45106 whole_archive_flag_spec_F77=
45107 thread_safe_flag_spec_F77=
45108 hardcode_libdir_flag_spec_F77=
45109 hardcode_libdir_flag_spec_ld_F77=
45110 hardcode_libdir_separator_F77=
45111 hardcode_direct_F77=no
45112 hardcode_minus_L_F77=no
45113 hardcode_shlibpath_var_F77=unsupported
45114 link_all_deplibs_F77=unknown
45115 hardcode_automatic_F77=no
45117 module_expsym_cmds_F77=
45118 always_export_symbols_F77=no
45119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45120 # include_expsyms should be a list of space-separated symbols to be *always*
45121 # included in the symbol list
45122 include_expsyms_F77=
45123 # exclude_expsyms can be an extended regexp of symbols to exclude
45124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
45125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45126 # as well as any symbol that contains `d'.
45127 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
45128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45129 # platforms (ab)use it in PIC code, but their linkers get confused if
45130 # the symbol is explicitly referenced. Since portable code cannot
45131 # rely on this symbol name, it's probably fine to never include it in
45132 # preloaded symbol tables.
45133 extract_expsyms_cmds=
45134 # Just being paranoid about ensuring that cc_basename is set.
45135 for cc_temp in $compiler""; do
45137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45146 cygwin* | mingw* | pw32*)
45147 # FIXME: the MSVC++ port hasn't been tested in a loooong time
45148 # When not using gcc, we currently assume that we are using
45149 # Microsoft Visual C++.
45150 if test "$GCC" != yes; then
45160 if test "$with_gnu_ld" = yes; then
45161 # If archive_cmds runs LD, not CC, wlarc should be empty
45164 # Set some defaults for GNU ld with shared library support. These
45165 # are reset later if shared libraries are not supported. Putting them
45166 # here allows them to be overridden if necessary.
45167 runpath_var=LD_RUN_PATH
45168 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
45169 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
45170 # ancient GNU ld didn't support --whole-archive et. al.
45171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45172 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45174 whole_archive_flag_spec_F77=
45176 supports_anon_versioning=no
45177 case `$LD -v 2>/dev/null` in
45178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45181 *\ 2.11.*) ;; # other 2.11 versions
45182 *) supports_anon_versioning=yes ;;
45185 # See if GNU ld supports shared libraries.
45187 aix3* | aix4* | aix5*)
45188 # On AIX/PPC, the GNU linker is very broken
45189 if test "$host_cpu" != ia64; then
45193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45194 *** to be unable to reliably create shared libraries on AIX.
45195 *** Therefore, libtool is disabling shared libraries support. If you
45196 *** really care for shared libraries, you may want to modify your PATH
45197 *** so that a non-GNU linker is found, and then restart.
45204 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)'
45205 hardcode_libdir_flag_spec_F77='-L$libdir'
45206 hardcode_minus_L_F77=yes
45208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45209 # that the semantics of dynamic libraries on AmigaOS, at least up
45210 # to version 4, is to share data among multiple programs linked
45211 # with the same dynamic library. Since this doesn't match the
45212 # behavior of shared libraries on other platforms, we can't use
45218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45219 allow_undefined_flag_F77=unsupported
45220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45221 # support --undefined. This deserves some investigation. FIXME
45222 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45228 cygwin* | mingw* | pw32*)
45229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
45230 # as there is no search path for DLLs.
45231 hardcode_libdir_flag_spec_F77='-L$libdir'
45232 allow_undefined_flag_F77=unsupported
45233 always_export_symbols_F77=no
45234 enable_shared_with_static_runtimes_F77=yes
45235 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45239 # If the export-symbols file already is a .def file (1st line
45240 # is EXPORTS), use it as is; otherwise, prepend...
45241 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45242 cp $export_symbols $output_objdir/$soname.def;
45244 echo EXPORTS > $output_objdir/$soname.def;
45245 cat $export_symbols >> $output_objdir/$soname.def;
45247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45256 case $cc_basename,$host_cpu in
45257 pgcc*) # Portland Group C compiler
45258 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'
45259 tmp_addflag=' $pic_flag'
45261 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
45262 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'
45263 tmp_addflag=' $pic_flag -Mnomain' ;;
45264 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
45265 tmp_addflag=' -i_dynamic' ;;
45266 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
45267 tmp_addflag=' -i_dynamic -nofor_main' ;;
45268 ifc* | ifort*) # Intel Fortran compiler
45269 tmp_addflag=' -nofor_main' ;;
45271 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45273 if test $supports_anon_versioning = yes; then
45274 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
45275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45276 $echo "local: *; };" >> $output_objdir/$libname.ver~
45277 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45286 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45295 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45300 *** create shared libraries on Solaris systems. Therefore, libtool
45301 *** is disabling shared libraries support. We urge you to upgrade GNU
45302 *** binutils to release 2.9.1 or newer. Another option is to modify
45303 *** your PATH or compiler configuration so that the native linker is
45304 *** used, and then restart.
45307 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45316 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45318 hardcode_direct_F77=yes
45319 hardcode_shlibpath_var_F77=no
45323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45324 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45325 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45332 if test "$ld_shlibs_F77" = no; then
45334 hardcode_libdir_flag_spec_F77=
45335 export_dynamic_flag_spec_F77=
45336 whole_archive_flag_spec_F77=
45339 # PORTME fill in a description of your system's linker (not GNU ld)
45342 allow_undefined_flag_F77=unsupported
45343 always_export_symbols_F77=yes
45344 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'
45345 # Note: this linker hardcodes the directories in LIBPATH if there
45346 # are no directories specified by -L.
45347 hardcode_minus_L_F77=yes
45348 if test "$GCC" = yes && test -z "$link_static_flag"; then
45349 # Neither direct hardcoding nor static linking is supported with a
45351 hardcode_direct_F77=unsupported
45356 if test "$host_cpu" = ia64; then
45357 # On IA64, the linker does run time linking by default, so we don't
45358 # have to do anything special.
45359 aix_use_runtimelinking=no
45360 exp_sym_flag='-Bexport'
45363 # If we're using GNU nm, then we don't want the "-C" option.
45364 # -C means demangle to AIX nm, but means don't demangle with GNU nm
45365 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45366 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'
45368 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'
45370 aix_use_runtimelinking=no
45372 # Test if we are trying to use run time linking or normal
45373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45374 # need to do runtime linking.
45375 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45376 for ld_flag in $LDFLAGS; do
45377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45378 aix_use_runtimelinking=yes
45384 exp_sym_flag='-bexport'
45385 no_entry_flag='-bnoentry'
45388 # When large executables or shared objects are built, AIX ld can
45389 # have problems creating the table of contents. If linking a library
45390 # or program results in "error TOC overflow" add -mminimal-toc to
45391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
45392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45394 archive_cmds_F77=''
45395 hardcode_direct_F77=yes
45396 hardcode_libdir_separator_F77=':'
45397 link_all_deplibs_F77=yes
45399 if test "$GCC" = yes; then
45400 case $host_os in aix4.[012]|aix4.[012].*)
45401 # We only want to do this on AIX 4.2 and lower, the check
45402 # below for broken collect2 doesn't work under 4.3+
45403 collect2name=`${CC} -print-prog-name=collect2`
45404 if test -f "$collect2name" && \
45405 strings "$collect2name" | grep resolve_lib_name >/dev/null
45407 # We have reworked collect2
45408 hardcode_direct_F77=yes
45410 # We have old collect2
45411 hardcode_direct_F77=unsupported
45412 # It fails to find uninstalled libraries when the uninstalled
45413 # path is not listed in the libpath. Setting hardcode_minus_L
45414 # to unsupported forces relinking
45415 hardcode_minus_L_F77=yes
45416 hardcode_libdir_flag_spec_F77='-L$libdir'
45417 hardcode_libdir_separator_F77=
45420 shared_flag='-shared'
45421 if test "$aix_use_runtimelinking" = yes; then
45422 shared_flag="$shared_flag "'${wl}-G'
45426 if test "$host_cpu" = ia64; then
45427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45428 # chokes on -Wl,-G. The following line is correct:
45431 if test "$aix_use_runtimelinking" = yes; then
45432 shared_flag='${wl}-G'
45434 shared_flag='${wl}-bM:SRE'
45439 # It seems that -bexpall does not export symbols beginning with
45440 # underscore (_), so it is better to generate a list of symbols to export.
45441 always_export_symbols_F77=yes
45442 if test "$aix_use_runtimelinking" = yes; then
45443 # Warning - without using the other runtime loading flags (-brtl),
45444 # -berok will link without error, but may produce a broken library.
45445 allow_undefined_flag_F77='-berok'
45446 # Determine the default libpath from the value encoded in an empty executable.
45447 cat >conftest.$ac_ext <<_ACEOF
45452 rm -f conftest.$ac_objext conftest$ac_exeext
45453 if { (ac_try="$ac_link"
45454 case "(($ac_try" in
45455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45456 *) ac_try_echo=$ac_try;;
45458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45459 $as_echo "$ac_try_echo") >&5
45460 (eval "$ac_link") 2>conftest.er1
45462 grep -v '^ *+' conftest.er1 >conftest.err
45464 cat conftest.err >&5
45465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); } && {
45467 test -z "$ac_f77_werror_flag" ||
45468 test ! -s conftest.err
45469 } && test -s conftest$ac_exeext && {
45470 test "$cross_compiling" = yes ||
45471 $as_test_x conftest$ac_exeext
45474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45476 # Check for a 64-bit object if we didn't find anything.
45477 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; }
45480 $as_echo "$as_me: failed program was:" >&5
45481 sed 's/^/| /' conftest.$ac_ext >&5
45486 rm -rf conftest.dSYM
45487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45488 conftest$ac_exeext conftest.$ac_ext
45489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45491 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45492 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
45494 if test "$host_cpu" = ia64; then
45495 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
45496 allow_undefined_flag_F77="-z nodefs"
45497 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
45499 # Determine the default libpath from the value encoded in an empty executable.
45500 cat >conftest.$ac_ext <<_ACEOF
45505 rm -f conftest.$ac_objext conftest$ac_exeext
45506 if { (ac_try="$ac_link"
45507 case "(($ac_try" in
45508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45509 *) ac_try_echo=$ac_try;;
45511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45512 $as_echo "$ac_try_echo") >&5
45513 (eval "$ac_link") 2>conftest.er1
45515 grep -v '^ *+' conftest.er1 >conftest.err
45517 cat conftest.err >&5
45518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45519 (exit $ac_status); } && {
45520 test -z "$ac_f77_werror_flag" ||
45521 test ! -s conftest.err
45522 } && test -s conftest$ac_exeext && {
45523 test "$cross_compiling" = yes ||
45524 $as_test_x conftest$ac_exeext
45527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
45529 # Check for a 64-bit object if we didn't find anything.
45530 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; }
45533 $as_echo "$as_me: failed program was:" >&5
45534 sed 's/^/| /' conftest.$ac_ext >&5
45539 rm -rf conftest.dSYM
45540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45541 conftest$ac_exeext conftest.$ac_ext
45542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45544 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
45545 # Warning - without using the other run time loading flags,
45546 # -berok will link without error, but may produce a broken library.
45547 no_undefined_flag_F77=' ${wl}-bernotok'
45548 allow_undefined_flag_F77=' ${wl}-berok'
45549 # -bexpall does not export symbols beginning with underscore (_)
45550 always_export_symbols_F77=yes
45551 # Exported symbols can be pulled into shared objects from archives
45552 whole_archive_flag_spec_F77=' '
45553 archive_cmds_need_lc_F77=yes
45554 # This is similar to how AIX traditionally builds its shared libraries.
45555 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
45561 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)'
45562 hardcode_libdir_flag_spec_F77='-L$libdir'
45563 hardcode_minus_L_F77=yes
45564 # see comment about different semantics on the GNU ld section
45569 export_dynamic_flag_spec_F77=-rdynamic
45572 cygwin* | mingw* | pw32*)
45573 # When not using gcc, we currently assume that we are using
45574 # Microsoft Visual C++.
45575 # hardcode_libdir_flag_spec is actually meaningless, as there is
45576 # no search path for DLLs.
45577 hardcode_libdir_flag_spec_F77=' '
45578 allow_undefined_flag_F77=unsupported
45579 # Tell ltmain to make .lib files, not .a files.
45581 # Tell ltmain to make .dll files, not .so files.
45583 # FIXME: Setting linknames here is a bad hack.
45584 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45585 # The linker will automatically build a .lib file if we build a DLL.
45586 old_archive_From_new_cmds_F77='true'
45587 # FIXME: Should let the user specify the lib program.
45588 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
45589 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
45590 enable_shared_with_static_runtimes_F77=yes
45593 darwin* | rhapsody*)
45595 rhapsody* | darwin1.[012])
45596 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
45599 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45600 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45602 case ${MACOSX_DEPLOYMENT_TARGET} in
45604 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45607 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
45613 archive_cmds_need_lc_F77=no
45614 hardcode_direct_F77=no
45615 hardcode_automatic_F77=yes
45616 hardcode_shlibpath_var_F77=unsupported
45617 whole_archive_flag_spec_F77=''
45618 link_all_deplibs_F77=yes
45619 if test "$GCC" = yes ; then
45620 output_verbose_link_cmd='echo'
45621 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45622 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45624 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}'
45625 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}'
45627 case $cc_basename in
45629 output_verbose_link_cmd='echo'
45630 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45631 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45633 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}'
45634 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}'
45644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45645 hardcode_libdir_flag_spec_F77='-L$libdir'
45646 hardcode_shlibpath_var_F77=no
45653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45654 # support. Future versions do this automatically, but an explicit c++rt0.o
45655 # does not break anything, and helps significantly (at the cost of a little
45658 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45659 hardcode_libdir_flag_spec_F77='-R$libdir'
45660 hardcode_direct_F77=yes
45661 hardcode_shlibpath_var_F77=no
45664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45667 hardcode_direct_F77=yes
45668 hardcode_minus_L_F77=yes
45669 hardcode_shlibpath_var_F77=no
45672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45673 freebsd* | kfreebsd*-gnu | dragonfly*)
45674 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45675 hardcode_libdir_flag_spec_F77='-R$libdir'
45676 hardcode_direct_F77=yes
45677 hardcode_shlibpath_var_F77=no
45681 if test "$GCC" = yes; then
45682 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'
45684 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'
45686 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45687 hardcode_libdir_separator_F77=:
45688 hardcode_direct_F77=yes
45690 # hardcode_minus_L: Not really in the search PATH,
45691 # but as the default location of the library.
45692 hardcode_minus_L_F77=yes
45693 export_dynamic_flag_spec_F77='${wl}-E'
45697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45700 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45703 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45709 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45712 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45716 if test "$with_gnu_ld" = no; then
45719 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45720 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
45721 hardcode_libdir_separator_F77=:
45722 hardcode_direct_F77=no
45723 hardcode_shlibpath_var_F77=no
45726 hardcode_libdir_flag_spec_F77='-L$libdir'
45727 hardcode_direct_F77=no
45728 hardcode_shlibpath_var_F77=no
45730 # hardcode_minus_L: Not really in the search PATH,
45731 # but as the default location of the library.
45732 hardcode_minus_L_F77=yes
45735 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
45736 hardcode_libdir_separator_F77=:
45737 hardcode_direct_F77=yes
45738 export_dynamic_flag_spec_F77='${wl}-E'
45740 # hardcode_minus_L: Not really in the search PATH,
45741 # but as the default location of the library.
45742 hardcode_minus_L_F77=yes
45748 irix5* | irix6* | nonstopux*)
45749 if test "$GCC" = yes; then
45750 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'
45752 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'
45753 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
45755 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45756 hardcode_libdir_separator_F77=:
45757 link_all_deplibs_F77=yes
45761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45762 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
45764 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
45766 hardcode_libdir_flag_spec_F77='-R$libdir'
45767 hardcode_direct_F77=yes
45768 hardcode_shlibpath_var_F77=no
45772 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45773 hardcode_direct_F77=yes
45774 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45775 hardcode_libdir_separator_F77=:
45776 hardcode_shlibpath_var_F77=no
45780 hardcode_direct_F77=yes
45781 hardcode_shlibpath_var_F77=no
45782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45783 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45784 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45786 export_dynamic_flag_spec_F77='${wl}-E'
45789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45791 hardcode_libdir_flag_spec_F77='-R$libdir'
45794 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45795 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
45802 hardcode_libdir_flag_spec_F77='-L$libdir'
45803 hardcode_minus_L_F77=yes
45804 allow_undefined_flag_F77=unsupported
45805 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'
45806 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45810 if test "$GCC" = yes; then
45811 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45812 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'
45814 allow_undefined_flag_F77=' -expect_unresolved \*'
45815 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'
45817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45818 hardcode_libdir_separator_F77=:
45821 osf4* | osf5*) # as osf3* with the addition of -msym flag
45822 if test "$GCC" = yes; then
45823 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
45824 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'
45825 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
45827 allow_undefined_flag_F77=' -expect_unresolved \*'
45828 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'
45829 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~
45830 $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'
45832 # Both c and cxx compiler support -rpath directly
45833 hardcode_libdir_flag_spec_F77='-rpath $libdir'
45835 hardcode_libdir_separator_F77=:
45839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45840 hardcode_shlibpath_var_F77=no
45841 export_dynamic_flag_spec_F77='${wl}-Bexport'
45842 runpath_var=LD_RUN_PATH
45843 hardcode_runpath_var=yes
45847 no_undefined_flag_F77=' -z text'
45848 if test "x$archive_cmds" = "x"; then
45849 if test "$GCC" = yes; then
45851 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
45852 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45853 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45854 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45856 archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45857 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45858 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45862 lt_prog_compiler_static_F77='-static'
45863 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45864 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45865 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45866 lt_prog_compiler_static_F77='-static'
45869 hardcode_libdir_flag_spec_F77='-R$libdir'
45870 hardcode_shlibpath_var_F77=no
45872 solaris2.[0-5] | solaris2.[0-5].*) ;;
45874 # The compiler driver will combine linker options so we
45875 # cannot just pass the convience library names through
45876 # without $wl, iff we do not link with $LD.
45877 # Luckily, gcc supports the same syntax we need for Sun Studio.
45878 # Supported since Solaris 2.6 (maybe 2.5.1?)
45881 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
45883 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' ;;
45886 link_all_deplibs_F77=yes
45890 if test "x$host_vendor" = xsequent; then
45891 # Use $CC to link under sequent, because it throws in some extra .o
45892 # files that make .init and .fini sections work.
45893 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45895 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45897 hardcode_libdir_flag_spec_F77='-L$libdir'
45898 hardcode_direct_F77=yes
45899 hardcode_minus_L_F77=yes
45900 hardcode_shlibpath_var_F77=no
45904 case $host_vendor in
45906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45907 hardcode_direct_F77=yes # is this really true???
45910 ## LD is ld it makes a PLAMLIB
45911 ## CC just makes a GrossModule.
45912 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45913 reload_cmds_F77='$CC -r -o $output$reload_objs'
45914 hardcode_direct_F77=no
45917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45918 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
45921 runpath_var='LD_RUN_PATH'
45922 hardcode_shlibpath_var_F77=no
45926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45927 hardcode_shlibpath_var_F77=no
45928 export_dynamic_flag_spec_F77='-Bexport'
45932 if test -d /usr/nec; then
45933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45934 hardcode_shlibpath_var_F77=no
45935 runpath_var=LD_RUN_PATH
45936 hardcode_runpath_var=yes
45942 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45943 hardcode_direct_F77=yes
45944 hardcode_minus_L_F77=no
45945 hardcode_shlibpath_var_F77=no
45946 hardcode_runpath_var=yes
45947 runpath_var=LD_RUN_PATH
45950 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
45951 no_undefined_flag_F77='${wl}-z ${wl}text'
45952 if test "$GCC" = yes; then
45953 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45955 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45957 runpath_var='LD_RUN_PATH'
45958 hardcode_shlibpath_var_F77=no
45962 no_undefined_flag_F77=' -z text'
45963 # $CC -shared without GNU ld will not create a library from C++
45964 # object files and a static libstdc++, better avoid it by now
45965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45968 hardcode_libdir_flag_spec_F77=
45969 hardcode_shlibpath_var_F77=no
45970 runpath_var='LD_RUN_PATH'
45974 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45975 hardcode_libdir_flag_spec_F77='-L$libdir'
45976 hardcode_shlibpath_var_F77=no
45985 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
45986 $as_echo "$ld_shlibs_F77" >&6; }
45987 test "$ld_shlibs_F77" = no && can_build_shared=no
45989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45990 if test "$GCC" = yes; then
45991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45995 # Do we need to explicitly link libc?
45997 case "x$archive_cmds_need_lc_F77" in
45999 # Assume -lc should be added
46000 archive_cmds_need_lc_F77=yes
46002 if test "$enable_shared" = yes && test "$GCC" = yes; then
46003 case $archive_cmds_F77 in
46005 # FIXME: we may have to deal with multi-command sequences.
46008 # Test whether the compiler implicitly links with -lc since on some
46009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
46010 # to ld, don't add -lc before -lgcc.
46011 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
46012 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
46014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46017 (eval $ac_compile) 2>&5
46019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46020 (exit $ac_status); } 2>conftest.err; then
46023 libobjs=conftest.$ac_objext
46025 wl=$lt_prog_compiler_wl_F77
46031 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
46032 allow_undefined_flag_F77=
46033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
46034 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
46036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46037 (exit $ac_status); }
46039 archive_cmds_need_lc_F77=no
46041 archive_cmds_need_lc_F77=yes
46043 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
46045 cat conftest.err 1>&5
46048 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
46049 $as_echo "$archive_cmds_need_lc_F77" >&6; }
46056 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
46057 $as_echo_n "checking dynamic linker characteristics... " >&6; }
46058 library_names_spec=
46059 libname_spec='lib$name'
46063 postuninstall_cmds=
46067 shlibpath_overrides_runpath=unknown
46069 dynamic_linker="$host_os ld.so"
46070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
46071 if test "$GCC" = yes; then
46072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46073 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
46074 # if the path contains ";" then we assume it to be the separator
46075 # otherwise default to the standard path separator (i.e. ":") - it is
46076 # assumed that no part of a normal pathname contains ";" but that should
46077 # okay in the real world where ";" in dirpaths is itself problematic.
46078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
46083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
46085 need_lib_prefix=unknown
46086 hardcode_into_libs=no
46088 # when you set need_version to no, make sure it does not cause -set_version
46089 # flags to be left without arguments
46090 need_version=unknown
46095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46096 shlibpath_var=LIBPATH
46098 # AIX 3 has no versioning support, so we append a major version to the name.
46099 soname_spec='${libname}${release}${shared_ext}$major'
46106 hardcode_into_libs=yes
46107 if test "$host_cpu" = ia64; then
46108 # AIX 5 supports IA64
46109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46110 shlibpath_var=LD_LIBRARY_PATH
46112 # With GCC up to 2.95.x, collect2 would create an import file
46113 # for dependence libraries. The import file would start with
46114 # the line `#! .'. This would cause the generated library to
46115 # depend on `.', always an invalid library. This was fixed in
46116 # development snapshots of GCC prior to 3.0.
46118 aix4 | aix4.[01] | aix4.[01].*)
46119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46121 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46124 can_build_shared=no
46128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46129 # soname into executable. Probably we can add versioning support to
46130 # collect2, so additional links can be useful in future.
46131 if test "$aix_use_runtimelinking" = yes; then
46132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46133 # instead of lib<name>.a to let people know that these are not
46134 # typical AIX shared libraries.
46135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46137 # We preserve .a as extension for shared libraries through AIX4.2
46138 # and later when we are not doing run time linking.
46139 library_names_spec='${libname}${release}.a $libname.a'
46140 soname_spec='${libname}${release}${shared_ext}$major'
46142 shlibpath_var=LIBPATH
46147 library_names_spec='$libname.ixlibrary $libname.a'
46148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
46149 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'
46153 library_names_spec='${libname}${shared_ext}'
46154 dynamic_linker="$host_os ld.so"
46155 shlibpath_var=LIBRARY_PATH
46161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46162 soname_spec='${libname}${release}${shared_ext}$major'
46163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46164 shlibpath_var=LD_LIBRARY_PATH
46165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46167 # the default ld.so.conf also contains /usr/contrib/lib and
46168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46169 # libtool to hard-code these into programs
46172 cygwin* | mingw* | pw32*)
46173 version_type=windows
46178 case $GCC,$host_os in
46179 yes,cygwin* | yes,mingw* | yes,pw32*)
46180 library_names_spec='$libname.dll.a'
46181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
46182 postinstall_cmds='base_file=`basename \${file}`~
46183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46184 dldir=$destdir/`dirname \$dlpath`~
46185 test -d \$dldir || mkdir -p \$dldir~
46186 $install_prog $dir/$dlname \$dldir/$dlname~
46187 chmod a+x \$dldir/$dlname'
46188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46189 dlpath=$dir/\$dldll~
46191 shlibpath_overrides_runpath=yes
46195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46200 # MinGW DLLs use traditional 'lib' prefix
46201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46204 # It is most probably a Windows format PATH printed by
46205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
46206 # path with ; separators, and with drive letters. We can handle the
46207 # drive letters (cygwin fileutils understands them), so leave them,
46208 # especially as we might pass files found there to a mingw objdump,
46209 # which wouldn't understand a cygwinified path. Ahh.
46210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
46216 # pw32 DLLs use 'pw' prefix rather than 'lib'
46217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46226 dynamic_linker='Win32 ld.exe'
46227 # FIXME: first we should search . and the directory the executable is in
46231 darwin* | rhapsody*)
46232 dynamic_linker="$host_os dyld"
46233 version_type=darwin
46236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46237 soname_spec='${libname}${release}${major}$shared_ext'
46238 shlibpath_overrides_runpath=yes
46239 shlibpath_var=DYLD_LIBRARY_PATH
46240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46241 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46242 if test "$GCC" = yes; then
46243 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"`
46245 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46255 soname_spec='${libname}${release}${shared_ext}$major'
46256 shlibpath_var=LD_LIBRARY_PATH
46267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46268 soname_spec='${libname}${release}${shared_ext}$major'
46269 shlibpath_var=LD_LIBRARY_PATH
46270 shlibpath_overrides_runpath=no
46271 hardcode_into_libs=yes
46272 dynamic_linker='GNU ld.so'
46275 freebsd* | dragonfly*)
46276 # DragonFly does not have aout. When/if they implement a new
46277 # versioning mechanism, adjust this.
46278 if test -x /usr/bin/objformat; then
46279 objformat=`/usr/bin/objformat`
46282 freebsd[123]*) objformat=aout ;;
46283 *) objformat=elf ;;
46286 version_type=freebsd-$objformat
46287 case $version_type in
46289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46298 shlibpath_var=LD_LIBRARY_PATH
46301 shlibpath_overrides_runpath=yes
46303 freebsd3.[01]* | freebsdelf3.[01]*)
46304 shlibpath_overrides_runpath=yes
46305 hardcode_into_libs=yes
46308 shlibpath_overrides_runpath=no
46309 hardcode_into_libs=yes
46318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46319 soname_spec='${libname}${release}${shared_ext}$major'
46320 shlibpath_var=LD_LIBRARY_PATH
46321 hardcode_into_libs=yes
46324 hpux9* | hpux10* | hpux11*)
46325 # Give a soname corresponding to the major version so that dld.sl refuses to
46326 # link against other versions.
46333 hardcode_into_libs=yes
46334 dynamic_linker="$host_os dld.so"
46335 shlibpath_var=LD_LIBRARY_PATH
46336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46338 soname_spec='${libname}${release}${shared_ext}$major'
46339 if test "X$HPUX_IA64_MODE" = X32; then
46340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46348 hardcode_into_libs=yes
46349 dynamic_linker="$host_os dld.sl"
46350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46353 soname_spec='${libname}${release}${shared_ext}$major'
46354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46359 dynamic_linker="$host_os dld.sl"
46360 shlibpath_var=SHLIB_PATH
46361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46363 soname_spec='${libname}${release}${shared_ext}$major'
46366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
46367 postinstall_cmds='chmod 555 $lib'
46370 irix5* | irix6* | nonstopux*)
46372 nonstopux*) version_type=nonstopux ;;
46374 if test "$lt_cv_prog_gnu_ld" = yes; then
46382 soname_spec='${libname}${release}${shared_ext}$major'
46383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46385 irix5* | nonstopux*)
46386 libsuff= shlibsuff=
46389 case $LD in # libtool.m4 will add one of these switches to LD
46390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46391 libsuff= shlibsuff= libmagic=32-bit;;
46392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46393 libsuff=32 shlibsuff=N32 libmagic=N32;;
46394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
46396 *) libsuff= shlibsuff= libmagic=never-match;;
46400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46401 shlibpath_overrides_runpath=no
46402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46404 hardcode_into_libs=yes
46407 # No shared lib support for Linux oldld, aout, or coff.
46408 linux*oldld* | linux*aout* | linux*coff*)
46412 # This must be Linux ELF.
46417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46418 soname_spec='${libname}${release}${shared_ext}$major'
46419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46420 shlibpath_var=LD_LIBRARY_PATH
46421 shlibpath_overrides_runpath=no
46422 # This implies no fast_install, which is unacceptable.
46423 # Some rework will be needed to allow for fast_install
46424 # before this can be enabled.
46425 hardcode_into_libs=yes
46427 # Append ld.so.conf contents to the search path
46428 if test -f /etc/ld.so.conf; then
46429 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' ' '`
46430 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46433 # We used to test for /lib/ld.so.1 and disable shared libraries on
46434 # powerpc, because MkLinux only supported shared libraries with the
46435 # GNU dynamic linker. Since this was broken with cross compilers,
46436 # most powerpc-linux boxes support dynamic linking these days and
46437 # people can always --disable-shared, the test was removed, and we
46438 # assume the GNU/Linux dynamic linker is in use.
46439 dynamic_linker='GNU/Linux ld.so'
46446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46447 soname_spec='${libname}${release}${shared_ext}$major'
46448 shlibpath_var=LD_LIBRARY_PATH
46449 shlibpath_overrides_runpath=no
46450 hardcode_into_libs=yes
46451 dynamic_linker='GNU ld.so'
46458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46461 dynamic_linker='NetBSD (a.out) ld.so'
46463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46464 soname_spec='${libname}${release}${shared_ext}$major'
46465 dynamic_linker='NetBSD ld.elf_so'
46467 shlibpath_var=LD_LIBRARY_PATH
46468 shlibpath_overrides_runpath=yes
46469 hardcode_into_libs=yes
46474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46475 shlibpath_var=LD_LIBRARY_PATH
46476 shlibpath_overrides_runpath=yes
46483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46484 soname_spec='${libname}${release}${shared_ext}$major'
46485 shlibpath_var=LD_LIBRARY_PATH
46486 shlibpath_overrides_runpath=yes
46492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46495 *) need_version=no ;;
46497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46499 shlibpath_var=LD_LIBRARY_PATH
46500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46502 openbsd2.[89] | openbsd2.[89].*)
46503 shlibpath_overrides_runpath=no
46506 shlibpath_overrides_runpath=yes
46510 shlibpath_overrides_runpath=yes
46515 libname_spec='$name'
46518 library_names_spec='$libname${shared_ext} $libname.a'
46519 dynamic_linker='OS/2 ld.exe'
46520 shlibpath_var=LIBPATH
46523 osf3* | osf4* | osf5*)
46527 soname_spec='${libname}${release}${shared_ext}$major'
46528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46529 shlibpath_var=LD_LIBRARY_PATH
46530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46536 soname_spec='${libname}${release}${shared_ext}$major'
46537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46538 shlibpath_var=LD_LIBRARY_PATH
46545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46546 soname_spec='${libname}${release}${shared_ext}$major'
46547 shlibpath_var=LD_LIBRARY_PATH
46548 shlibpath_overrides_runpath=yes
46549 hardcode_into_libs=yes
46550 # ldd complains unless libraries are executable
46551 postinstall_cmds='chmod +x $lib'
46556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46558 shlibpath_var=LD_LIBRARY_PATH
46559 shlibpath_overrides_runpath=yes
46560 if test "$with_gnu_ld" = yes; then
46566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46569 soname_spec='${libname}${release}${shared_ext}$major'
46570 shlibpath_var=LD_LIBRARY_PATH
46571 case $host_vendor in
46573 shlibpath_overrides_runpath=no
46575 export_dynamic_flag_spec='${wl}-Blargedynsym'
46576 runpath_var=LD_RUN_PATH
46584 shlibpath_overrides_runpath=no
46585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46591 if test -d /usr/nec ;then
46593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46594 soname_spec='$libname${shared_ext}.$major'
46595 shlibpath_var=LD_LIBRARY_PATH
46601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46602 soname_spec='${libname}${release}${shared_ext}$major'
46603 shlibpath_var=LD_LIBRARY_PATH
46610 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46611 $as_echo "$dynamic_linker" >&6; }
46612 test "$dynamic_linker" = no && can_build_shared=no
46614 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46616 hardcode_action_F77=
46617 if test -n "$hardcode_libdir_flag_spec_F77" || \
46618 test -n "$runpath_var_F77" || \
46619 test "X$hardcode_automatic_F77" = "Xyes" ; then
46621 # We can hardcode non-existant directories.
46622 if test "$hardcode_direct_F77" != no &&
46623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
46624 # have to relink, otherwise we might link with an installed library
46625 # when we should be linking with a yet-to-be-installed one
46626 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
46627 test "$hardcode_minus_L_F77" != no; then
46628 # Linking always hardcodes the temporary library directory.
46629 hardcode_action_F77=relink
46631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
46632 hardcode_action_F77=immediate
46635 # We cannot hardcode anything, or else we can only hardcode existing
46637 hardcode_action_F77=unsupported
46639 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
46640 $as_echo "$hardcode_action_F77" >&6; }
46642 if test "$hardcode_action_F77" = relink; then
46643 # Fast installation is not supported
46644 enable_fast_install=no
46645 elif test "$shlibpath_overrides_runpath" = yes ||
46646 test "$enable_shared" = no; then
46647 # Fast installation is not necessary
46648 enable_fast_install=needless
46653 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46654 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
46655 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46656 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46657 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46658 { $as_echo "$as_me:$LINENO: result: yes" >&5
46659 $as_echo "yes" >&6; }
46661 # FIXME - insert some real tests, host_os isn't really good enough
46664 if test -n "$STRIP" ; then
46665 striplib="$STRIP -x"
46666 { $as_echo "$as_me:$LINENO: result: yes" >&5
46667 $as_echo "yes" >&6; }
46669 { $as_echo "$as_me:$LINENO: result: no" >&5
46670 $as_echo "no" >&6; }
46674 { $as_echo "$as_me:$LINENO: result: no" >&5
46675 $as_echo "no" >&6; }
46682 # The else clause should only fire when bootstrapping the
46683 # libtool distribution, otherwise you forgot to ship ltmain.sh
46684 # with your package, and you will get complaints that there are
46685 # no rules to generate ltmain.sh.
46686 if test -f "$ltmain"; then
46687 # See if we are running on zsh, and set the options which allow our commands through
46688 # without removal of \ escapes.
46689 if test -n "${ZSH_VERSION+set}" ; then
46690 setopt NO_GLOB_SUBST
46692 # Now quote all the things that may contain metacharacters while being
46693 # careful not to overquote the AC_SUBSTed values. We take copies of the
46694 # variables and quote the copies for generation of the libtool script.
46695 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
46697 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
46698 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
46699 deplibs_check_method reload_flag reload_cmds need_locks \
46700 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
46701 lt_cv_sys_global_symbol_to_c_name_address \
46702 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
46703 old_postinstall_cmds old_postuninstall_cmds \
46707 lt_prog_compiler_wl_F77 \
46708 lt_prog_compiler_pic_F77 \
46709 lt_prog_compiler_static_F77 \
46710 lt_prog_compiler_no_builtin_flag_F77 \
46711 export_dynamic_flag_spec_F77 \
46712 thread_safe_flag_spec_F77 \
46713 whole_archive_flag_spec_F77 \
46714 enable_shared_with_static_runtimes_F77 \
46715 old_archive_cmds_F77 \
46716 old_archive_from_new_cmds_F77 \
46717 predep_objects_F77 \
46718 postdep_objects_F77 \
46721 compiler_lib_search_path_F77 \
46723 archive_expsym_cmds_F77 \
46724 postinstall_cmds_F77 \
46725 postuninstall_cmds_F77 \
46726 old_archive_from_expsyms_cmds_F77 \
46727 allow_undefined_flag_F77 \
46728 no_undefined_flag_F77 \
46729 export_symbols_cmds_F77 \
46730 hardcode_libdir_flag_spec_F77 \
46731 hardcode_libdir_flag_spec_ld_F77 \
46732 hardcode_libdir_separator_F77 \
46733 hardcode_automatic_F77 \
46735 module_expsym_cmds_F77 \
46736 lt_cv_prog_compiler_c_o_F77 \
46737 exclude_expsyms_F77 \
46738 include_expsyms_F77; do
46741 old_archive_cmds_F77 | \
46742 old_archive_from_new_cmds_F77 | \
46743 archive_cmds_F77 | \
46744 archive_expsym_cmds_F77 | \
46745 module_cmds_F77 | \
46746 module_expsym_cmds_F77 | \
46747 old_archive_from_expsyms_cmds_F77 | \
46748 export_symbols_cmds_F77 | \
46749 extract_expsyms_cmds | reload_cmds | finish_cmds | \
46750 postinstall_cmds | postuninstall_cmds | \
46751 old_postinstall_cmds | old_postuninstall_cmds | \
46752 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
46753 # Double-quote double-evaled strings.
46754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
46757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
46763 *'\$0 --fallback-echo"')
46764 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
46770 cat <<__EOF__ >> "$cfgfile"
46771 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
46773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46775 # Shell to use when invoking shell scripts.
46778 # Whether or not to build shared libraries.
46779 build_libtool_libs=$enable_shared
46781 # Whether or not to build static libraries.
46782 build_old_libs=$enable_static
46784 # Whether or not to add -lc for building shared libraries.
46785 build_libtool_need_lc=$archive_cmds_need_lc_F77
46787 # Whether or not to disallow shared libs when runtime libs are static
46788 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
46790 # Whether or not to optimize for fast installation.
46791 fast_install=$enable_fast_install
46794 host_alias=$host_alias
46798 # The build system.
46799 build_alias=$build_alias
46803 # An echo program that does not interpret backslashes.
46808 AR_FLAGS=$lt_AR_FLAGS
46813 # A language-specific compiler.
46814 CC=$lt_compiler_F77
46816 # Is the compiler the GNU C compiler?
46822 # The linker used to build libraries.
46825 # Whether we need hard or soft links.
46828 # A BSD-compatible nm program.
46831 # A symbol stripping program
46834 # Used to examine libraries when file_magic_cmd begins "file"
46835 MAGIC_CMD=$MAGIC_CMD
46837 # Used on cygwin: DLL creation program.
46840 # Used on cygwin: object dumper.
46843 # Used on cygwin: assembler.
46846 # The name of the directory that contains temporary libtool files.
46849 # How to create reloadable object files.
46850 reload_flag=$lt_reload_flag
46851 reload_cmds=$lt_reload_cmds
46853 # How to pass a linker flag through the compiler.
46854 wl=$lt_lt_prog_compiler_wl_F77
46856 # Object file suffix (normally "o").
46857 objext="$ac_objext"
46859 # Old archive suffix (normally "a").
46862 # Shared library suffix (normally ".so").
46863 shrext_cmds='$shrext_cmds'
46865 # Executable file suffix (normally "").
46868 # Additional compiler flags for building library objects.
46869 pic_flag=$lt_lt_prog_compiler_pic_F77
46872 # What is the maximum length of a command?
46873 max_cmd_len=$lt_cv_sys_max_cmd_len
46875 # Does compiler simultaneously support -c and -o options?
46876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
46878 # Must we lock files when doing compilation?
46879 need_locks=$lt_need_locks
46881 # Do we need the lib prefix for modules?
46882 need_lib_prefix=$need_lib_prefix
46884 # Do we need a version for libraries?
46885 need_version=$need_version
46887 # Whether dlopen is supported.
46888 dlopen_support=$enable_dlopen
46890 # Whether dlopen of programs is supported.
46891 dlopen_self=$enable_dlopen_self
46893 # Whether dlopen of statically linked programs is supported.
46894 dlopen_self_static=$enable_dlopen_self_static
46896 # Compiler flag to prevent dynamic linking.
46897 link_static_flag=$lt_lt_prog_compiler_static_F77
46899 # Compiler flag to turn off builtin functions.
46900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
46902 # Compiler flag to allow reflexive dlopens.
46903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
46905 # Compiler flag to generate shared objects directly from archives.
46906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
46908 # Compiler flag to generate thread-safe objects.
46909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
46911 # Library versioning type.
46912 version_type=$version_type
46914 # Format of library name prefix.
46915 libname_spec=$lt_libname_spec
46917 # List of archive names. First name is the real one, the rest are links.
46918 # The last name is the one that the linker finds with -lNAME.
46919 library_names_spec=$lt_library_names_spec
46921 # The coded name of the library, if different from the real name.
46922 soname_spec=$lt_soname_spec
46924 # Commands used to build and install an old-style archive.
46926 old_archive_cmds=$lt_old_archive_cmds_F77
46927 old_postinstall_cmds=$lt_old_postinstall_cmds
46928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46930 # Create an old-style archive from a shared archive.
46931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
46933 # Create a temporary old-style archive to link instead of a shared archive.
46934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
46936 # Commands used to build and install a shared archive.
46937 archive_cmds=$lt_archive_cmds_F77
46938 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
46939 postinstall_cmds=$lt_postinstall_cmds
46940 postuninstall_cmds=$lt_postuninstall_cmds
46942 # Commands used to build a loadable module (assumed same as above if empty)
46943 module_cmds=$lt_module_cmds_F77
46944 module_expsym_cmds=$lt_module_expsym_cmds_F77
46946 # Commands to strip libraries.
46947 old_striplib=$lt_old_striplib
46948 striplib=$lt_striplib
46950 # Dependencies to place before the objects being linked to create a
46952 predep_objects=$lt_predep_objects_F77
46954 # Dependencies to place after the objects being linked to create a
46956 postdep_objects=$lt_postdep_objects_F77
46958 # Dependencies to place before the objects being linked to create a
46960 predeps=$lt_predeps_F77
46962 # Dependencies to place after the objects being linked to create a
46964 postdeps=$lt_postdeps_F77
46966 # The library search path used internally by the compiler when linking
46967 # a shared library.
46968 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
46970 # Method to check whether dependent libraries are shared objects.
46971 deplibs_check_method=$lt_deplibs_check_method
46973 # Command to use when deplibs_check_method == file_magic.
46974 file_magic_cmd=$lt_file_magic_cmd
46976 # Flag that allows shared libraries with undefined symbols to be built.
46977 allow_undefined_flag=$lt_allow_undefined_flag_F77
46979 # Flag that forces no undefined symbols.
46980 no_undefined_flag=$lt_no_undefined_flag_F77
46982 # Commands used to finish a libtool library installation in a directory.
46983 finish_cmds=$lt_finish_cmds
46985 # Same as above, but a single script fragment to be evaled but not shown.
46986 finish_eval=$lt_finish_eval
46988 # Take the output of nm and produce a listing of raw symbols and C names.
46989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46991 # Transform the output of nm in a proper C declaration
46992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46994 # Transform the output of nm in a C name address pair
46995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46997 # This is the shared library runtime path variable.
46998 runpath_var=$runpath_var
47000 # This is the shared library path variable.
47001 shlibpath_var=$shlibpath_var
47003 # Is shlibpath searched before the hard-coded library search path?
47004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47006 # How to hardcode a shared library path into an executable.
47007 hardcode_action=$hardcode_action_F77
47009 # Whether we should hardcode library paths into libraries.
47010 hardcode_into_libs=$hardcode_into_libs
47012 # Flag to hardcode \$libdir into a binary during linking.
47013 # This must work even if \$libdir does not exist.
47014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
47016 # If ld is used when linking, flag to hardcode \$libdir into
47017 # a binary during linking. This must work even if \$libdir does
47019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
47021 # Whether we need a single -rpath flag with a separated argument.
47022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
47024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47025 # resulting binary.
47026 hardcode_direct=$hardcode_direct_F77
47028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47029 # resulting binary.
47030 hardcode_minus_L=$hardcode_minus_L_F77
47032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47033 # the resulting binary.
47034 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
47036 # Set to yes if building a shared library automatically hardcodes DIR into the library
47037 # and all subsequent libraries and executables linked against it.
47038 hardcode_automatic=$hardcode_automatic_F77
47040 # Variables whose values should be saved in libtool wrapper scripts and
47041 # restored at relink time.
47042 variables_saved_for_relink="$variables_saved_for_relink"
47044 # Whether libtool must link a program against all its dependency libraries.
47045 link_all_deplibs=$link_all_deplibs_F77
47047 # Compile-time system search path for libraries
47048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47050 # Run-time system search path for libraries
47051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47053 # Fix the shell variable \$srcfile for the compiler.
47054 fix_srcfile_path="$fix_srcfile_path_F77"
47056 # Set to yes if exported symbols are required.
47057 always_export_symbols=$always_export_symbols_F77
47059 # The commands to list exported symbols.
47060 export_symbols_cmds=$lt_export_symbols_cmds_F77
47062 # The commands to extract the exported symbol list from a shared archive.
47063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47065 # Symbols that should not be listed in the preloaded symbols.
47066 exclude_expsyms=$lt_exclude_expsyms_F77
47068 # Symbols that must always be exported.
47069 include_expsyms=$lt_include_expsyms_F77
47071 # ### END LIBTOOL TAG CONFIG: $tagname
47077 # If there is no Makefile yet, we rely on a make rule to execute
47078 # `config.status --recheck' to rerun these tests and create the
47079 # libtool script then.
47080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47081 if test -f "$ltmain_in"; then
47082 test -f Makefile && make "$ltmain"
47088 ac_cpp='$CPP $CPPFLAGS'
47089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47101 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
47104 # Source file extension for Java test sources.
47107 # Object file extension for compiled Java test sources.
47111 # Code to be used in simple compile tests
47112 lt_simple_compile_test_code="class foo {}\n"
47114 # Code to be used in simple link tests
47115 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
47117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47119 # If no C compiler was specified, use CC.
47122 # Allow CC to be a program name with arguments.
47126 # save warnings/boilerplate of simple test code
47127 ac_outfile=conftest.$ac_objext
47128 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47130 _lt_compiler_boilerplate=`cat conftest.err`
47133 ac_outfile=conftest.$ac_objext
47134 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47136 _lt_linker_boilerplate=`cat conftest.err`
47140 # Allow CC to be a program name with arguments.
47145 for cc_temp in $compiler""; do
47147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47153 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47156 # GCJ did not exist at the time GCC didn't implicitly link libc in.
47157 archive_cmds_need_lc_GCJ=no
47159 old_archive_cmds_GCJ=$old_archive_cmds
47162 ## There is no encapsulation within the following macros, do not change
47163 ## the running order or otherwise move them around unless you know exactly
47164 ## what you are doing...
47166 lt_prog_compiler_no_builtin_flag_GCJ=
47168 if test "$GCC" = yes; then
47169 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
47172 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47173 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
47174 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47175 $as_echo_n "(cached) " >&6
47177 lt_cv_prog_compiler_rtti_exceptions=no
47178 ac_outfile=conftest.$ac_objext
47179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47180 lt_compiler_flag="-fno-rtti -fno-exceptions"
47181 # Insert the option either (1) after the last *FLAGS variable, or
47182 # (2) before a word containing "conftest.", or (3) at the end.
47183 # Note that $ac_compile itself does not contain backslashes and begins
47184 # with a dollar sign (not a hyphen), so the echo should work correctly.
47185 # The option is referenced via a variable to avoid confusing sed.
47186 lt_compile=`echo "$ac_compile" | $SED \
47187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47189 -e 's:$: $lt_compiler_flag:'`
47190 (eval echo "\"\$as_me:47190: $lt_compile\"" >&5)
47191 (eval "$lt_compile" 2>conftest.err)
47193 cat conftest.err >&5
47194 echo "$as_me:47194: \$? = $ac_status" >&5
47195 if (exit $ac_status) && test -s "$ac_outfile"; then
47196 # The compiler can only warn and ignore the option if not recognized
47197 # So say no if there are warnings other than the usual output.
47198 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47199 $SED '/^$/d' conftest.err >conftest.er2
47200 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47201 lt_cv_prog_compiler_rtti_exceptions=yes
47207 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47208 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
47210 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
47211 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
47218 lt_prog_compiler_wl_GCJ=
47219 lt_prog_compiler_pic_GCJ=
47220 lt_prog_compiler_static_GCJ=
47222 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
47223 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
47225 if test "$GCC" = yes; then
47226 lt_prog_compiler_wl_GCJ='-Wl,'
47227 lt_prog_compiler_static_GCJ='-static'
47231 # All AIX code is PIC.
47232 if test "$host_cpu" = ia64; then
47233 # AIX 5 now supports IA64 processor
47234 lt_prog_compiler_static_GCJ='-Bstatic'
47239 # FIXME: we need at least 68020 code to build shared libraries, but
47240 # adding the `-m68020' flag to GCC prevents building anything better,
47242 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
47245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47246 # PIC is the default for these OSes.
47249 mingw* | pw32* | os2*)
47250 # This hack is so that the source file can tell whether it is being
47251 # built for inclusion in a dll (and should export symbols for example).
47252 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47255 darwin* | rhapsody*)
47256 # PIC is the default on this platform
47257 # Common symbols not allowed in MH_DYLIB files
47258 lt_prog_compiler_pic_GCJ='-fno-common'
47262 # Just because we use GCC doesn't mean we suddenly get shared libraries
47263 # on systems that don't support them.
47264 lt_prog_compiler_can_build_shared_GCJ=no
47269 if test -d /usr/nec; then
47270 lt_prog_compiler_pic_GCJ=-Kconform_pic
47275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47276 # not for PA HP-UX.
47282 lt_prog_compiler_pic_GCJ='-fPIC'
47288 lt_prog_compiler_pic_GCJ='-fPIC'
47292 # PORTME Check for flag to pass linker flags through the system compiler.
47295 lt_prog_compiler_wl_GCJ='-Wl,'
47296 if test "$host_cpu" = ia64; then
47297 # AIX 5 now supports IA64 processor
47298 lt_prog_compiler_static_GCJ='-Bstatic'
47300 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
47304 # PIC is the default on this platform
47305 # Common symbols not allowed in MH_DYLIB files
47306 case $cc_basename in
47308 lt_prog_compiler_pic_GCJ='-qnocommon'
47309 lt_prog_compiler_wl_GCJ='-Wl,'
47314 mingw* | pw32* | os2*)
47315 # This hack is so that the source file can tell whether it is being
47316 # built for inclusion in a dll (and should export symbols for example).
47317 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
47320 hpux9* | hpux10* | hpux11*)
47321 lt_prog_compiler_wl_GCJ='-Wl,'
47322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47323 # not for PA HP-UX.
47329 lt_prog_compiler_pic_GCJ='+Z'
47332 # Is there a better lt_prog_compiler_static that works with the bundled CC?
47333 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
47336 irix5* | irix6* | nonstopux*)
47337 lt_prog_compiler_wl_GCJ='-Wl,'
47338 # PIC (with -KPIC) is the default.
47339 lt_prog_compiler_static_GCJ='-non_shared'
47343 lt_prog_compiler_pic_GCJ='-KPIC'
47344 lt_prog_compiler_static_GCJ='-Bstatic'
47348 case $cc_basename in
47350 lt_prog_compiler_wl_GCJ='-Wl,'
47351 lt_prog_compiler_pic_GCJ='-KPIC'
47352 lt_prog_compiler_static_GCJ='-static'
47354 pgcc* | pgf77* | pgf90* | pgf95*)
47355 # Portland Group compilers (*not* the Pentium gcc compiler,
47356 # which looks to be a dead project)
47357 lt_prog_compiler_wl_GCJ='-Wl,'
47358 lt_prog_compiler_pic_GCJ='-fpic'
47359 lt_prog_compiler_static_GCJ='-Bstatic'
47362 lt_prog_compiler_wl_GCJ='-Wl,'
47363 # All Alpha code is PIC.
47364 lt_prog_compiler_static_GCJ='-non_shared'
47369 osf3* | osf4* | osf5*)
47370 lt_prog_compiler_wl_GCJ='-Wl,'
47371 # All OSF/1 code is PIC.
47372 lt_prog_compiler_static_GCJ='-non_shared'
47376 lt_prog_compiler_pic_GCJ='-Kpic'
47377 lt_prog_compiler_static_GCJ='-dn'
47381 lt_prog_compiler_pic_GCJ='-KPIC'
47382 lt_prog_compiler_static_GCJ='-Bstatic'
47383 case $cc_basename in
47384 f77* | f90* | f95*)
47385 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
47387 lt_prog_compiler_wl_GCJ='-Wl,';;
47392 lt_prog_compiler_wl_GCJ='-Qoption ld '
47393 lt_prog_compiler_pic_GCJ='-PIC'
47394 lt_prog_compiler_static_GCJ='-Bstatic'
47397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
47398 lt_prog_compiler_wl_GCJ='-Wl,'
47399 lt_prog_compiler_pic_GCJ='-KPIC'
47400 lt_prog_compiler_static_GCJ='-Bstatic'
47404 if test -d /usr/nec ;then
47405 lt_prog_compiler_pic_GCJ='-Kconform_pic'
47406 lt_prog_compiler_static_GCJ='-Bstatic'
47411 lt_prog_compiler_wl_GCJ='-Wl,'
47412 lt_prog_compiler_can_build_shared_GCJ=no
47416 lt_prog_compiler_pic_GCJ='-pic'
47417 lt_prog_compiler_static_GCJ='-Bstatic'
47421 lt_prog_compiler_can_build_shared_GCJ=no
47426 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
47427 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
47430 # Check to make sure the PIC flag actually works.
47432 if test -n "$lt_prog_compiler_pic_GCJ"; then
47434 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
47435 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
47436 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
47437 $as_echo_n "(cached) " >&6
47439 lt_prog_compiler_pic_works_GCJ=no
47440 ac_outfile=conftest.$ac_objext
47441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47442 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
47443 # Insert the option either (1) after the last *FLAGS variable, or
47444 # (2) before a word containing "conftest.", or (3) at the end.
47445 # Note that $ac_compile itself does not contain backslashes and begins
47446 # with a dollar sign (not a hyphen), so the echo should work correctly.
47447 # The option is referenced via a variable to avoid confusing sed.
47448 lt_compile=`echo "$ac_compile" | $SED \
47449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47451 -e 's:$: $lt_compiler_flag:'`
47452 (eval echo "\"\$as_me:47452: $lt_compile\"" >&5)
47453 (eval "$lt_compile" 2>conftest.err)
47455 cat conftest.err >&5
47456 echo "$as_me:47456: \$? = $ac_status" >&5
47457 if (exit $ac_status) && test -s "$ac_outfile"; then
47458 # The compiler can only warn and ignore the option if not recognized
47459 # So say no if there are warnings other than the usual output.
47460 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
47461 $SED '/^$/d' conftest.err >conftest.er2
47462 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
47463 lt_prog_compiler_pic_works_GCJ=yes
47469 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
47470 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
47472 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
47473 case $lt_prog_compiler_pic_GCJ in
47475 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
47478 lt_prog_compiler_pic_GCJ=
47479 lt_prog_compiler_can_build_shared_GCJ=no
47484 # For platforms which do not support PIC, -DPIC is meaningless:
47486 lt_prog_compiler_pic_GCJ=
47489 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
47493 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
47494 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
47495 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
47496 $as_echo_n "(cached) " >&6
47498 lt_cv_prog_compiler_c_o_GCJ=no
47499 $rm -r conftest 2>/dev/null
47503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
47505 lt_compiler_flag="-o out/conftest2.$ac_objext"
47506 # Insert the option either (1) after the last *FLAGS variable, or
47507 # (2) before a word containing "conftest.", or (3) at the end.
47508 # Note that $ac_compile itself does not contain backslashes and begins
47509 # with a dollar sign (not a hyphen), so the echo should work correctly.
47510 lt_compile=`echo "$ac_compile" | $SED \
47511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47513 -e 's:$: $lt_compiler_flag:'`
47514 (eval echo "\"\$as_me:47514: $lt_compile\"" >&5)
47515 (eval "$lt_compile" 2>out/conftest.err)
47517 cat out/conftest.err >&5
47518 echo "$as_me:47518: \$? = $ac_status" >&5
47519 if (exit $ac_status) && test -s out/conftest2.$ac_objext
47521 # The compiler can only warn and ignore the option if not recognized
47522 # So say no if there are warnings
47523 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
47524 $SED '/^$/d' out/conftest.err >out/conftest.er2
47525 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
47526 lt_cv_prog_compiler_c_o_GCJ=yes
47531 # SGI C++ compiler will create directory out/ii_files/ for
47532 # template instantiation
47533 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
47534 $rm out/* && rmdir out
47540 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
47541 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
47544 hard_links="nottested"
47545 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
47546 # do not overwrite the value of need_locks provided by the user
47547 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
47548 $as_echo_n "checking if we can lock with hard links... " >&6; }
47551 ln conftest.a conftest.b 2>/dev/null && hard_links=no
47553 ln conftest.a conftest.b 2>&5 || hard_links=no
47554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
47555 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
47556 $as_echo "$hard_links" >&6; }
47557 if test "$hard_links" = no; then
47559 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
47560 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
47563 cat <<AAW_EOF >>config.warnings
47564 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
47574 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
47575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
47578 allow_undefined_flag_GCJ=
47579 enable_shared_with_static_runtimes_GCJ=no
47581 archive_expsym_cmds_GCJ=
47582 old_archive_From_new_cmds_GCJ=
47583 old_archive_from_expsyms_cmds_GCJ=
47584 export_dynamic_flag_spec_GCJ=
47585 whole_archive_flag_spec_GCJ=
47586 thread_safe_flag_spec_GCJ=
47587 hardcode_libdir_flag_spec_GCJ=
47588 hardcode_libdir_flag_spec_ld_GCJ=
47589 hardcode_libdir_separator_GCJ=
47590 hardcode_direct_GCJ=no
47591 hardcode_minus_L_GCJ=no
47592 hardcode_shlibpath_var_GCJ=unsupported
47593 link_all_deplibs_GCJ=unknown
47594 hardcode_automatic_GCJ=no
47596 module_expsym_cmds_GCJ=
47597 always_export_symbols_GCJ=no
47598 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
47599 # include_expsyms should be a list of space-separated symbols to be *always*
47600 # included in the symbol list
47601 include_expsyms_GCJ=
47602 # exclude_expsyms can be an extended regexp of symbols to exclude
47603 # it will be wrapped by ` (' and `)$', so one must not match beginning or
47604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
47605 # as well as any symbol that contains `d'.
47606 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
47607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
47608 # platforms (ab)use it in PIC code, but their linkers get confused if
47609 # the symbol is explicitly referenced. Since portable code cannot
47610 # rely on this symbol name, it's probably fine to never include it in
47611 # preloaded symbol tables.
47612 extract_expsyms_cmds=
47613 # Just being paranoid about ensuring that cc_basename is set.
47614 for cc_temp in $compiler""; do
47616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47622 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47625 cygwin* | mingw* | pw32*)
47626 # FIXME: the MSVC++ port hasn't been tested in a loooong time
47627 # When not using gcc, we currently assume that we are using
47628 # Microsoft Visual C++.
47629 if test "$GCC" != yes; then
47639 if test "$with_gnu_ld" = yes; then
47640 # If archive_cmds runs LD, not CC, wlarc should be empty
47643 # Set some defaults for GNU ld with shared library support. These
47644 # are reset later if shared libraries are not supported. Putting them
47645 # here allows them to be overridden if necessary.
47646 runpath_var=LD_RUN_PATH
47647 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
47648 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
47649 # ancient GNU ld didn't support --whole-archive et. al.
47650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
47651 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
47653 whole_archive_flag_spec_GCJ=
47655 supports_anon_versioning=no
47656 case `$LD -v 2>/dev/null` in
47657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
47658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
47660 *\ 2.11.*) ;; # other 2.11 versions
47661 *) supports_anon_versioning=yes ;;
47664 # See if GNU ld supports shared libraries.
47666 aix3* | aix4* | aix5*)
47667 # On AIX/PPC, the GNU linker is very broken
47668 if test "$host_cpu" != ia64; then
47672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
47673 *** to be unable to reliably create shared libraries on AIX.
47674 *** Therefore, libtool is disabling shared libraries support. If you
47675 *** really care for shared libraries, you may want to modify your PATH
47676 *** so that a non-GNU linker is found, and then restart.
47683 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)'
47684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47685 hardcode_minus_L_GCJ=yes
47687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
47688 # that the semantics of dynamic libraries on AmigaOS, at least up
47689 # to version 4, is to share data among multiple programs linked
47690 # with the same dynamic library. Since this doesn't match the
47691 # behavior of shared libraries on other platforms, we can't use
47697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47698 allow_undefined_flag_GCJ=unsupported
47699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47700 # support --undefined. This deserves some investigation. FIXME
47701 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47707 cygwin* | mingw* | pw32*)
47708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
47709 # as there is no search path for DLLs.
47710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47711 allow_undefined_flag_GCJ=unsupported
47712 always_export_symbols_GCJ=no
47713 enable_shared_with_static_runtimes_GCJ=yes
47714 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
47716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
47717 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47718 # If the export-symbols file already is a .def file (1st line
47719 # is EXPORTS), use it as is; otherwise, prepend...
47720 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
47721 cp $export_symbols $output_objdir/$soname.def;
47723 echo EXPORTS > $output_objdir/$soname.def;
47724 cat $export_symbols >> $output_objdir/$soname.def;
47726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
47733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47735 case $cc_basename,$host_cpu in
47736 pgcc*) # Portland Group C compiler
47737 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'
47738 tmp_addflag=' $pic_flag'
47740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
47741 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'
47742 tmp_addflag=' $pic_flag -Mnomain' ;;
47743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
47744 tmp_addflag=' -i_dynamic' ;;
47745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
47746 tmp_addflag=' -i_dynamic -nofor_main' ;;
47747 ifc* | ifort*) # Intel Fortran compiler
47748 tmp_addflag=' -nofor_main' ;;
47750 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47752 if test $supports_anon_versioning = yes; then
47753 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
47754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
47755 $echo "local: *; };" >> $output_objdir/$libname.ver~
47756 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
47764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
47765 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
47768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47769 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47774 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
47778 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
47779 *** create shared libraries on Solaris systems. Therefore, libtool
47780 *** is disabling shared libraries support. We urge you to upgrade GNU
47781 *** binutils to release 2.9.1 or newer. Another option is to modify
47782 *** your PATH or compiler configuration so that the native linker is
47783 *** used, and then restart.
47786 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47787 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47788 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47795 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47797 hardcode_direct_GCJ=yes
47798 hardcode_shlibpath_var_GCJ=no
47802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
47803 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47804 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
47811 if test "$ld_shlibs_GCJ" = no; then
47813 hardcode_libdir_flag_spec_GCJ=
47814 export_dynamic_flag_spec_GCJ=
47815 whole_archive_flag_spec_GCJ=
47818 # PORTME fill in a description of your system's linker (not GNU ld)
47821 allow_undefined_flag_GCJ=unsupported
47822 always_export_symbols_GCJ=yes
47823 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'
47824 # Note: this linker hardcodes the directories in LIBPATH if there
47825 # are no directories specified by -L.
47826 hardcode_minus_L_GCJ=yes
47827 if test "$GCC" = yes && test -z "$link_static_flag"; then
47828 # Neither direct hardcoding nor static linking is supported with a
47830 hardcode_direct_GCJ=unsupported
47835 if test "$host_cpu" = ia64; then
47836 # On IA64, the linker does run time linking by default, so we don't
47837 # have to do anything special.
47838 aix_use_runtimelinking=no
47839 exp_sym_flag='-Bexport'
47842 # If we're using GNU nm, then we don't want the "-C" option.
47843 # -C means demangle to AIX nm, but means don't demangle with GNU nm
47844 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
47845 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'
47847 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'
47849 aix_use_runtimelinking=no
47851 # Test if we are trying to use run time linking or normal
47852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
47853 # need to do runtime linking.
47854 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
47855 for ld_flag in $LDFLAGS; do
47856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
47857 aix_use_runtimelinking=yes
47863 exp_sym_flag='-bexport'
47864 no_entry_flag='-bnoentry'
47867 # When large executables or shared objects are built, AIX ld can
47868 # have problems creating the table of contents. If linking a library
47869 # or program results in "error TOC overflow" add -mminimal-toc to
47870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
47871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
47873 archive_cmds_GCJ=''
47874 hardcode_direct_GCJ=yes
47875 hardcode_libdir_separator_GCJ=':'
47876 link_all_deplibs_GCJ=yes
47878 if test "$GCC" = yes; then
47879 case $host_os in aix4.[012]|aix4.[012].*)
47880 # We only want to do this on AIX 4.2 and lower, the check
47881 # below for broken collect2 doesn't work under 4.3+
47882 collect2name=`${CC} -print-prog-name=collect2`
47883 if test -f "$collect2name" && \
47884 strings "$collect2name" | grep resolve_lib_name >/dev/null
47886 # We have reworked collect2
47887 hardcode_direct_GCJ=yes
47889 # We have old collect2
47890 hardcode_direct_GCJ=unsupported
47891 # It fails to find uninstalled libraries when the uninstalled
47892 # path is not listed in the libpath. Setting hardcode_minus_L
47893 # to unsupported forces relinking
47894 hardcode_minus_L_GCJ=yes
47895 hardcode_libdir_flag_spec_GCJ='-L$libdir'
47896 hardcode_libdir_separator_GCJ=
47899 shared_flag='-shared'
47900 if test "$aix_use_runtimelinking" = yes; then
47901 shared_flag="$shared_flag "'${wl}-G'
47905 if test "$host_cpu" = ia64; then
47906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47907 # chokes on -Wl,-G. The following line is correct:
47910 if test "$aix_use_runtimelinking" = yes; then
47911 shared_flag='${wl}-G'
47913 shared_flag='${wl}-bM:SRE'
47918 # It seems that -bexpall does not export symbols beginning with
47919 # underscore (_), so it is better to generate a list of symbols to export.
47920 always_export_symbols_GCJ=yes
47921 if test "$aix_use_runtimelinking" = yes; then
47922 # Warning - without using the other runtime loading flags (-brtl),
47923 # -berok will link without error, but may produce a broken library.
47924 allow_undefined_flag_GCJ='-berok'
47925 # Determine the default libpath from the value encoded in an empty executable.
47926 cat >conftest.$ac_ext <<_ACEOF
47929 cat confdefs.h >>conftest.$ac_ext
47930 cat >>conftest.$ac_ext <<_ACEOF
47931 /* end confdefs.h. */
47941 rm -f conftest.$ac_objext conftest$ac_exeext
47942 if { (ac_try="$ac_link"
47943 case "(($ac_try" in
47944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47945 *) ac_try_echo=$ac_try;;
47947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47948 $as_echo "$ac_try_echo") >&5
47949 (eval "$ac_link") 2>conftest.er1
47951 grep -v '^ *+' conftest.er1 >conftest.err
47953 cat conftest.err >&5
47954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47955 (exit $ac_status); } && {
47956 test -z "$ac_c_werror_flag" ||
47957 test ! -s conftest.err
47958 } && test -s conftest$ac_exeext && {
47959 test "$cross_compiling" = yes ||
47960 $as_test_x conftest$ac_exeext
47963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
47965 # Check for a 64-bit object if we didn't find anything.
47966 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; }
47969 $as_echo "$as_me: failed program was:" >&5
47970 sed 's/^/| /' conftest.$ac_ext >&5
47975 rm -rf conftest.dSYM
47976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47977 conftest$ac_exeext conftest.$ac_ext
47978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
47980 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
47981 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47983 if test "$host_cpu" = ia64; then
47984 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
47985 allow_undefined_flag_GCJ="-z nodefs"
47986 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
47988 # Determine the default libpath from the value encoded in an empty executable.
47989 cat >conftest.$ac_ext <<_ACEOF
47992 cat confdefs.h >>conftest.$ac_ext
47993 cat >>conftest.$ac_ext <<_ACEOF
47994 /* end confdefs.h. */
48004 rm -f conftest.$ac_objext conftest$ac_exeext
48005 if { (ac_try="$ac_link"
48006 case "(($ac_try" in
48007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48008 *) ac_try_echo=$ac_try;;
48010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48011 $as_echo "$ac_try_echo") >&5
48012 (eval "$ac_link") 2>conftest.er1
48014 grep -v '^ *+' conftest.er1 >conftest.err
48016 cat conftest.err >&5
48017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018 (exit $ac_status); } && {
48019 test -z "$ac_c_werror_flag" ||
48020 test ! -s conftest.err
48021 } && test -s conftest$ac_exeext && {
48022 test "$cross_compiling" = yes ||
48023 $as_test_x conftest$ac_exeext
48026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
48028 # Check for a 64-bit object if we didn't find anything.
48029 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; }
48032 $as_echo "$as_me: failed program was:" >&5
48033 sed 's/^/| /' conftest.$ac_ext >&5
48038 rm -rf conftest.dSYM
48039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48040 conftest$ac_exeext conftest.$ac_ext
48041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
48043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
48044 # Warning - without using the other run time loading flags,
48045 # -berok will link without error, but may produce a broken library.
48046 no_undefined_flag_GCJ=' ${wl}-bernotok'
48047 allow_undefined_flag_GCJ=' ${wl}-berok'
48048 # -bexpall does not export symbols beginning with underscore (_)
48049 always_export_symbols_GCJ=yes
48050 # Exported symbols can be pulled into shared objects from archives
48051 whole_archive_flag_spec_GCJ=' '
48052 archive_cmds_need_lc_GCJ=yes
48053 # This is similar to how AIX traditionally builds its shared libraries.
48054 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
48060 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)'
48061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48062 hardcode_minus_L_GCJ=yes
48063 # see comment about different semantics on the GNU ld section
48068 export_dynamic_flag_spec_GCJ=-rdynamic
48071 cygwin* | mingw* | pw32*)
48072 # When not using gcc, we currently assume that we are using
48073 # Microsoft Visual C++.
48074 # hardcode_libdir_flag_spec is actually meaningless, as there is
48075 # no search path for DLLs.
48076 hardcode_libdir_flag_spec_GCJ=' '
48077 allow_undefined_flag_GCJ=unsupported
48078 # Tell ltmain to make .lib files, not .a files.
48080 # Tell ltmain to make .dll files, not .so files.
48082 # FIXME: Setting linknames here is a bad hack.
48083 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
48084 # The linker will automatically build a .lib file if we build a DLL.
48085 old_archive_From_new_cmds_GCJ='true'
48086 # FIXME: Should let the user specify the lib program.
48087 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
48088 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
48089 enable_shared_with_static_runtimes_GCJ=yes
48092 darwin* | rhapsody*)
48094 rhapsody* | darwin1.[012])
48095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
48098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
48099 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48101 case ${MACOSX_DEPLOYMENT_TARGET} in
48103 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
48106 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
48112 archive_cmds_need_lc_GCJ=no
48113 hardcode_direct_GCJ=no
48114 hardcode_automatic_GCJ=yes
48115 hardcode_shlibpath_var_GCJ=unsupported
48116 whole_archive_flag_spec_GCJ=''
48117 link_all_deplibs_GCJ=yes
48118 if test "$GCC" = yes ; then
48119 output_verbose_link_cmd='echo'
48120 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
48121 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48123 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}'
48124 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}'
48126 case $cc_basename in
48128 output_verbose_link_cmd='echo'
48129 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
48130 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
48131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
48132 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}'
48133 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}'
48143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48144 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48145 hardcode_shlibpath_var_GCJ=no
48152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48153 # support. Future versions do this automatically, but an explicit c++rt0.o
48154 # does not break anything, and helps significantly (at the cost of a little
48157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48158 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48159 hardcode_direct_GCJ=yes
48160 hardcode_shlibpath_var_GCJ=no
48163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48165 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48166 hardcode_direct_GCJ=yes
48167 hardcode_minus_L_GCJ=yes
48168 hardcode_shlibpath_var_GCJ=no
48171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48172 freebsd* | kfreebsd*-gnu | dragonfly*)
48173 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48174 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48175 hardcode_direct_GCJ=yes
48176 hardcode_shlibpath_var_GCJ=no
48180 if test "$GCC" = yes; then
48181 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'
48183 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'
48185 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48186 hardcode_libdir_separator_GCJ=:
48187 hardcode_direct_GCJ=yes
48189 # hardcode_minus_L: Not really in the search PATH,
48190 # but as the default location of the library.
48191 hardcode_minus_L_GCJ=yes
48192 export_dynamic_flag_spec_GCJ='${wl}-E'
48196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48199 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48202 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48208 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
48211 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48215 if test "$with_gnu_ld" = no; then
48218 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48219 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
48220 hardcode_libdir_separator_GCJ=:
48221 hardcode_direct_GCJ=no
48222 hardcode_shlibpath_var_GCJ=no
48225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48226 hardcode_direct_GCJ=no
48227 hardcode_shlibpath_var_GCJ=no
48229 # hardcode_minus_L: Not really in the search PATH,
48230 # but as the default location of the library.
48231 hardcode_minus_L_GCJ=yes
48234 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
48235 hardcode_libdir_separator_GCJ=:
48236 hardcode_direct_GCJ=yes
48237 export_dynamic_flag_spec_GCJ='${wl}-E'
48239 # hardcode_minus_L: Not really in the search PATH,
48240 # but as the default location of the library.
48241 hardcode_minus_L_GCJ=yes
48247 irix5* | irix6* | nonstopux*)
48248 if test "$GCC" = yes; then
48249 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'
48251 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'
48252 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
48254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48255 hardcode_libdir_separator_GCJ=:
48256 link_all_deplibs_GCJ=yes
48260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48261 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
48263 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
48265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48266 hardcode_direct_GCJ=yes
48267 hardcode_shlibpath_var_GCJ=no
48271 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48272 hardcode_direct_GCJ=yes
48273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48274 hardcode_libdir_separator_GCJ=:
48275 hardcode_shlibpath_var_GCJ=no
48279 hardcode_direct_GCJ=yes
48280 hardcode_shlibpath_var_GCJ=no
48281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
48282 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48283 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
48284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48285 export_dynamic_flag_spec_GCJ='${wl}-E'
48288 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
48289 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48290 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48293 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
48294 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
48301 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48302 hardcode_minus_L_GCJ=yes
48303 allow_undefined_flag_GCJ=unsupported
48304 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'
48305 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
48309 if test "$GCC" = yes; then
48310 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48311 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'
48313 allow_undefined_flag_GCJ=' -expect_unresolved \*'
48314 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'
48316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48317 hardcode_libdir_separator_GCJ=:
48320 osf4* | osf5*) # as osf3* with the addition of -msym flag
48321 if test "$GCC" = yes; then
48322 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
48323 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'
48324 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
48326 allow_undefined_flag_GCJ=' -expect_unresolved \*'
48327 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'
48328 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~
48329 $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'
48331 # Both c and cxx compiler support -rpath directly
48332 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
48334 hardcode_libdir_separator_GCJ=:
48338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48339 hardcode_shlibpath_var_GCJ=no
48340 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
48341 runpath_var=LD_RUN_PATH
48342 hardcode_runpath_var=yes
48346 no_undefined_flag_GCJ=' -z text'
48347 if test "x$archive_cmds" = "x"; then
48348 if test "$GCC" = yes; then
48350 if $CC -v --help 2>/dev/null | grep -- -shared > /dev/null 2> /dev/null; then
48351 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48352 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48355 archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48356 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48357 $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
48361 lt_prog_compiler_static_GCJ='-static'
48362 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48363 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48365 lt_prog_compiler_static_GCJ='-static'
48368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
48369 hardcode_shlibpath_var_GCJ=no
48371 solaris2.[0-5] | solaris2.[0-5].*) ;;
48373 # The compiler driver will combine linker options so we
48374 # cannot just pass the convience library names through
48375 # without $wl, iff we do not link with $LD.
48376 # Luckily, gcc supports the same syntax we need for Sun Studio.
48377 # Supported since Solaris 2.6 (maybe 2.5.1?)
48380 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
48382 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' ;;
48385 link_all_deplibs_GCJ=yes
48389 if test "x$host_vendor" = xsequent; then
48390 # Use $CC to link under sequent, because it throws in some extra .o
48391 # files that make .init and .fini sections work.
48392 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
48394 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
48396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48397 hardcode_direct_GCJ=yes
48398 hardcode_minus_L_GCJ=yes
48399 hardcode_shlibpath_var_GCJ=no
48403 case $host_vendor in
48405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48406 hardcode_direct_GCJ=yes # is this really true???
48409 ## LD is ld it makes a PLAMLIB
48410 ## CC just makes a GrossModule.
48411 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48412 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
48413 hardcode_direct_GCJ=no
48416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48417 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
48420 runpath_var='LD_RUN_PATH'
48421 hardcode_shlibpath_var_GCJ=no
48425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48426 hardcode_shlibpath_var_GCJ=no
48427 export_dynamic_flag_spec_GCJ='-Bexport'
48431 if test -d /usr/nec; then
48432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48433 hardcode_shlibpath_var_GCJ=no
48434 runpath_var=LD_RUN_PATH
48435 hardcode_runpath_var=yes
48441 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
48442 hardcode_direct_GCJ=yes
48443 hardcode_minus_L_GCJ=no
48444 hardcode_shlibpath_var_GCJ=no
48445 hardcode_runpath_var=yes
48446 runpath_var=LD_RUN_PATH
48449 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
48450 no_undefined_flag_GCJ='${wl}-z ${wl}text'
48451 if test "$GCC" = yes; then
48452 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48454 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48456 runpath_var='LD_RUN_PATH'
48457 hardcode_shlibpath_var_GCJ=no
48461 no_undefined_flag_GCJ=' -z text'
48462 # $CC -shared without GNU ld will not create a library from C++
48463 # object files and a static libstdc++, better avoid it by now
48464 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
48465 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
48466 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
48467 hardcode_libdir_flag_spec_GCJ=
48468 hardcode_shlibpath_var_GCJ=no
48469 runpath_var='LD_RUN_PATH'
48473 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48474 hardcode_libdir_flag_spec_GCJ='-L$libdir'
48475 hardcode_shlibpath_var_GCJ=no
48484 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
48485 $as_echo "$ld_shlibs_GCJ" >&6; }
48486 test "$ld_shlibs_GCJ" = no && can_build_shared=no
48488 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
48489 if test "$GCC" = yes; then
48490 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
48494 # Do we need to explicitly link libc?
48496 case "x$archive_cmds_need_lc_GCJ" in
48498 # Assume -lc should be added
48499 archive_cmds_need_lc_GCJ=yes
48501 if test "$enable_shared" = yes && test "$GCC" = yes; then
48502 case $archive_cmds_GCJ in
48504 # FIXME: we may have to deal with multi-command sequences.
48507 # Test whether the compiler implicitly links with -lc since on some
48508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
48509 # to ld, don't add -lc before -lgcc.
48510 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
48511 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
48513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
48515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48516 (eval $ac_compile) 2>&5
48518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48519 (exit $ac_status); } 2>conftest.err; then
48522 libobjs=conftest.$ac_objext
48524 wl=$lt_prog_compiler_wl_GCJ
48530 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
48531 allow_undefined_flag_GCJ=
48532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
48533 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
48535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48536 (exit $ac_status); }
48538 archive_cmds_need_lc_GCJ=no
48540 archive_cmds_need_lc_GCJ=yes
48542 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
48544 cat conftest.err 1>&5
48547 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
48548 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
48555 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
48556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
48557 library_names_spec=
48558 libname_spec='lib$name'
48562 postuninstall_cmds=
48566 shlibpath_overrides_runpath=unknown
48568 dynamic_linker="$host_os ld.so"
48569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
48570 if test "$GCC" = yes; then
48571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48572 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
48573 # if the path contains ";" then we assume it to be the separator
48574 # otherwise default to the standard path separator (i.e. ":") - it is
48575 # assumed that no part of a normal pathname contains ";" but that should
48576 # okay in the real world where ";" in dirpaths is itself problematic.
48577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
48582 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
48584 need_lib_prefix=unknown
48585 hardcode_into_libs=no
48587 # when you set need_version to no, make sure it does not cause -set_version
48588 # flags to be left without arguments
48589 need_version=unknown
48594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
48595 shlibpath_var=LIBPATH
48597 # AIX 3 has no versioning support, so we append a major version to the name.
48598 soname_spec='${libname}${release}${shared_ext}$major'
48605 hardcode_into_libs=yes
48606 if test "$host_cpu" = ia64; then
48607 # AIX 5 supports IA64
48608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
48609 shlibpath_var=LD_LIBRARY_PATH
48611 # With GCC up to 2.95.x, collect2 would create an import file
48612 # for dependence libraries. The import file would start with
48613 # the line `#! .'. This would cause the generated library to
48614 # depend on `.', always an invalid library. This was fixed in
48615 # development snapshots of GCC prior to 3.0.
48617 aix4 | aix4.[01] | aix4.[01].*)
48618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
48620 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
48623 can_build_shared=no
48627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
48628 # soname into executable. Probably we can add versioning support to
48629 # collect2, so additional links can be useful in future.
48630 if test "$aix_use_runtimelinking" = yes; then
48631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
48632 # instead of lib<name>.a to let people know that these are not
48633 # typical AIX shared libraries.
48634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48636 # We preserve .a as extension for shared libraries through AIX4.2
48637 # and later when we are not doing run time linking.
48638 library_names_spec='${libname}${release}.a $libname.a'
48639 soname_spec='${libname}${release}${shared_ext}$major'
48641 shlibpath_var=LIBPATH
48646 library_names_spec='$libname.ixlibrary $libname.a'
48647 # Create ${libname}_ixlibrary.a entries in /sys/libs.
48648 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'
48652 library_names_spec='${libname}${shared_ext}'
48653 dynamic_linker="$host_os ld.so"
48654 shlibpath_var=LIBRARY_PATH
48660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48661 soname_spec='${libname}${release}${shared_ext}$major'
48662 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
48663 shlibpath_var=LD_LIBRARY_PATH
48664 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
48665 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
48666 # the default ld.so.conf also contains /usr/contrib/lib and
48667 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
48668 # libtool to hard-code these into programs
48671 cygwin* | mingw* | pw32*)
48672 version_type=windows
48677 case $GCC,$host_os in
48678 yes,cygwin* | yes,mingw* | yes,pw32*)
48679 library_names_spec='$libname.dll.a'
48680 # DLL is installed to $(libdir)/../bin by postinstall_cmds
48681 postinstall_cmds='base_file=`basename \${file}`~
48682 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
48683 dldir=$destdir/`dirname \$dlpath`~
48684 test -d \$dldir || mkdir -p \$dldir~
48685 $install_prog $dir/$dlname \$dldir/$dlname~
48686 chmod a+x \$dldir/$dlname'
48687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
48688 dlpath=$dir/\$dldll~
48690 shlibpath_overrides_runpath=yes
48694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
48695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48696 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
48699 # MinGW DLLs use traditional 'lib' prefix
48700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
48702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
48703 # It is most probably a Windows format PATH printed by
48704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
48705 # path with ; separators, and with drive letters. We can handle the
48706 # drive letters (cygwin fileutils understands them), so leave them,
48707 # especially as we might pass files found there to a mingw objdump,
48708 # which wouldn't understand a cygwinified path. Ahh.
48709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
48711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
48715 # pw32 DLLs use 'pw' prefix rather than 'lib'
48716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
48722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
48725 dynamic_linker='Win32 ld.exe'
48726 # FIXME: first we should search . and the directory the executable is in
48730 darwin* | rhapsody*)
48731 dynamic_linker="$host_os dyld"
48732 version_type=darwin
48735 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
48736 soname_spec='${libname}${release}${major}$shared_ext'
48737 shlibpath_overrides_runpath=yes
48738 shlibpath_var=DYLD_LIBRARY_PATH
48739 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
48740 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
48741 if test "$GCC" = yes; then
48742 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"`
48744 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
48746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
48753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
48754 soname_spec='${libname}${release}${shared_ext}$major'
48755 shlibpath_var=LD_LIBRARY_PATH
48766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48767 soname_spec='${libname}${release}${shared_ext}$major'
48768 shlibpath_var=LD_LIBRARY_PATH
48769 shlibpath_overrides_runpath=no
48770 hardcode_into_libs=yes
48771 dynamic_linker='GNU ld.so'
48774 freebsd* | dragonfly*)
48775 # DragonFly does not have aout. When/if they implement a new
48776 # versioning mechanism, adjust this.
48777 if test -x /usr/bin/objformat; then
48778 objformat=`/usr/bin/objformat`
48781 freebsd[123]*) objformat=aout ;;
48782 *) objformat=elf ;;
48785 version_type=freebsd-$objformat
48786 case $version_type in
48788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
48793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
48797 shlibpath_var=LD_LIBRARY_PATH
48800 shlibpath_overrides_runpath=yes
48802 freebsd3.[01]* | freebsdelf3.[01]*)
48803 shlibpath_overrides_runpath=yes
48804 hardcode_into_libs=yes
48807 shlibpath_overrides_runpath=no
48808 hardcode_into_libs=yes
48817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
48818 soname_spec='${libname}${release}${shared_ext}$major'
48819 shlibpath_var=LD_LIBRARY_PATH
48820 hardcode_into_libs=yes
48823 hpux9* | hpux10* | hpux11*)
48824 # Give a soname corresponding to the major version so that dld.sl refuses to
48825 # link against other versions.
48832 hardcode_into_libs=yes
48833 dynamic_linker="$host_os dld.so"
48834 shlibpath_var=LD_LIBRARY_PATH
48835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48837 soname_spec='${libname}${release}${shared_ext}$major'
48838 if test "X$HPUX_IA64_MODE" = X32; then
48839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
48841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
48843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48847 hardcode_into_libs=yes
48848 dynamic_linker="$host_os dld.sl"
48849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
48850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
48851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48852 soname_spec='${libname}${release}${shared_ext}$major'
48853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
48854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
48858 dynamic_linker="$host_os dld.sl"
48859 shlibpath_var=SHLIB_PATH
48860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
48861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48862 soname_spec='${libname}${release}${shared_ext}$major'
48865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
48866 postinstall_cmds='chmod 555 $lib'
48869 irix5* | irix6* | nonstopux*)
48871 nonstopux*) version_type=nonstopux ;;
48873 if test "$lt_cv_prog_gnu_ld" = yes; then
48881 soname_spec='${libname}${release}${shared_ext}$major'
48882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
48884 irix5* | nonstopux*)
48885 libsuff= shlibsuff=
48888 case $LD in # libtool.m4 will add one of these switches to LD
48889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
48890 libsuff= shlibsuff= libmagic=32-bit;;
48891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
48892 libsuff=32 shlibsuff=N32 libmagic=N32;;
48893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
48894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
48895 *) libsuff= shlibsuff= libmagic=never-match;;
48899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
48900 shlibpath_overrides_runpath=no
48901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
48902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
48903 hardcode_into_libs=yes
48906 # No shared lib support for Linux oldld, aout, or coff.
48907 linux*oldld* | linux*aout* | linux*coff*)
48911 # This must be Linux ELF.
48916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48917 soname_spec='${libname}${release}${shared_ext}$major'
48918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
48919 shlibpath_var=LD_LIBRARY_PATH
48920 shlibpath_overrides_runpath=no
48921 # This implies no fast_install, which is unacceptable.
48922 # Some rework will be needed to allow for fast_install
48923 # before this can be enabled.
48924 hardcode_into_libs=yes
48926 # Append ld.so.conf contents to the search path
48927 if test -f /etc/ld.so.conf; then
48928 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' ' '`
48929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
48932 # We used to test for /lib/ld.so.1 and disable shared libraries on
48933 # powerpc, because MkLinux only supported shared libraries with the
48934 # GNU dynamic linker. Since this was broken with cross compilers,
48935 # most powerpc-linux boxes support dynamic linking these days and
48936 # people can always --disable-shared, the test was removed, and we
48937 # assume the GNU/Linux dynamic linker is in use.
48938 dynamic_linker='GNU/Linux ld.so'
48945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48946 soname_spec='${libname}${release}${shared_ext}$major'
48947 shlibpath_var=LD_LIBRARY_PATH
48948 shlibpath_overrides_runpath=no
48949 hardcode_into_libs=yes
48950 dynamic_linker='GNU ld.so'
48957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
48958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48960 dynamic_linker='NetBSD (a.out) ld.so'
48962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
48963 soname_spec='${libname}${release}${shared_ext}$major'
48964 dynamic_linker='NetBSD ld.elf_so'
48966 shlibpath_var=LD_LIBRARY_PATH
48967 shlibpath_overrides_runpath=yes
48968 hardcode_into_libs=yes
48973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48974 shlibpath_var=LD_LIBRARY_PATH
48975 shlibpath_overrides_runpath=yes
48982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
48983 soname_spec='${libname}${release}${shared_ext}$major'
48984 shlibpath_var=LD_LIBRARY_PATH
48985 shlibpath_overrides_runpath=yes
48991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
48993 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
48994 *) need_version=no ;;
48996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
48997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
48998 shlibpath_var=LD_LIBRARY_PATH
48999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
49001 openbsd2.[89] | openbsd2.[89].*)
49002 shlibpath_overrides_runpath=no
49005 shlibpath_overrides_runpath=yes
49009 shlibpath_overrides_runpath=yes
49014 libname_spec='$name'
49017 library_names_spec='$libname${shared_ext} $libname.a'
49018 dynamic_linker='OS/2 ld.exe'
49019 shlibpath_var=LIBPATH
49022 osf3* | osf4* | osf5*)
49026 soname_spec='${libname}${release}${shared_ext}$major'
49027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49028 shlibpath_var=LD_LIBRARY_PATH
49029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
49030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
49035 soname_spec='${libname}${release}${shared_ext}$major'
49036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49037 shlibpath_var=LD_LIBRARY_PATH
49044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49045 soname_spec='${libname}${release}${shared_ext}$major'
49046 shlibpath_var=LD_LIBRARY_PATH
49047 shlibpath_overrides_runpath=yes
49048 hardcode_into_libs=yes
49049 # ldd complains unless libraries are executable
49050 postinstall_cmds='chmod +x $lib'
49055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
49056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
49057 shlibpath_var=LD_LIBRARY_PATH
49058 shlibpath_overrides_runpath=yes
49059 if test "$with_gnu_ld" = yes; then
49065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
49067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49068 soname_spec='${libname}${release}${shared_ext}$major'
49069 shlibpath_var=LD_LIBRARY_PATH
49070 case $host_vendor in
49072 shlibpath_overrides_runpath=no
49074 export_dynamic_flag_spec='${wl}-Blargedynsym'
49075 runpath_var=LD_RUN_PATH
49083 shlibpath_overrides_runpath=no
49084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
49090 if test -d /usr/nec ;then
49092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
49093 soname_spec='$libname${shared_ext}.$major'
49094 shlibpath_var=LD_LIBRARY_PATH
49100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49101 soname_spec='${libname}${release}${shared_ext}$major'
49102 shlibpath_var=LD_LIBRARY_PATH
49109 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
49110 $as_echo "$dynamic_linker" >&6; }
49111 test "$dynamic_linker" = no && can_build_shared=no
49113 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
49114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
49115 hardcode_action_GCJ=
49116 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
49117 test -n "$runpath_var_GCJ" || \
49118 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
49120 # We can hardcode non-existant directories.
49121 if test "$hardcode_direct_GCJ" != no &&
49122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
49123 # have to relink, otherwise we might link with an installed library
49124 # when we should be linking with a yet-to-be-installed one
49125 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
49126 test "$hardcode_minus_L_GCJ" != no; then
49127 # Linking always hardcodes the temporary library directory.
49128 hardcode_action_GCJ=relink
49130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
49131 hardcode_action_GCJ=immediate
49134 # We cannot hardcode anything, or else we can only hardcode existing
49136 hardcode_action_GCJ=unsupported
49138 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
49139 $as_echo "$hardcode_action_GCJ" >&6; }
49141 if test "$hardcode_action_GCJ" = relink; then
49142 # Fast installation is not supported
49143 enable_fast_install=no
49144 elif test "$shlibpath_overrides_runpath" = yes ||
49145 test "$enable_shared" = no; then
49146 # Fast installation is not necessary
49147 enable_fast_install=needless
49152 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
49153 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
49154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
49155 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
49156 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
49157 { $as_echo "$as_me:$LINENO: result: yes" >&5
49158 $as_echo "yes" >&6; }
49160 # FIXME - insert some real tests, host_os isn't really good enough
49163 if test -n "$STRIP" ; then
49164 striplib="$STRIP -x"
49165 { $as_echo "$as_me:$LINENO: result: yes" >&5
49166 $as_echo "yes" >&6; }
49168 { $as_echo "$as_me:$LINENO: result: no" >&5
49169 $as_echo "no" >&6; }
49173 { $as_echo "$as_me:$LINENO: result: no" >&5
49174 $as_echo "no" >&6; }
49179 if test "x$enable_dlopen" != xyes; then
49180 enable_dlopen=unknown
49181 enable_dlopen_self=unknown
49182 enable_dlopen_self_static=unknown
49189 lt_cv_dlopen="load_add_on"
49191 lt_cv_dlopen_self=yes
49195 lt_cv_dlopen="LoadLibrary"
49200 lt_cv_dlopen="dlopen"
49205 # if libdl is installed we need to link against it
49206 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49207 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49209 $as_echo_n "(cached) " >&6
49211 ac_check_lib_save_LIBS=$LIBS
49213 cat >conftest.$ac_ext <<_ACEOF
49216 cat confdefs.h >>conftest.$ac_ext
49217 cat >>conftest.$ac_ext <<_ACEOF
49218 /* end confdefs.h. */
49220 /* Override any GCC internal prototype to avoid an error.
49221 Use char because int might match the return type of a GCC
49222 builtin and then its argument prototype would still apply. */
49235 rm -f conftest.$ac_objext conftest$ac_exeext
49236 if { (ac_try="$ac_link"
49237 case "(($ac_try" in
49238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49239 *) ac_try_echo=$ac_try;;
49241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49242 $as_echo "$ac_try_echo") >&5
49243 (eval "$ac_link") 2>conftest.er1
49245 grep -v '^ *+' conftest.er1 >conftest.err
49247 cat conftest.err >&5
49248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49249 (exit $ac_status); } && {
49250 test -z "$ac_c_werror_flag" ||
49251 test ! -s conftest.err
49252 } && test -s conftest$ac_exeext && {
49253 test "$cross_compiling" = yes ||
49254 $as_test_x conftest$ac_exeext
49256 ac_cv_lib_dl_dlopen=yes
49258 $as_echo "$as_me: failed program was:" >&5
49259 sed 's/^/| /' conftest.$ac_ext >&5
49261 ac_cv_lib_dl_dlopen=no
49264 rm -rf conftest.dSYM
49265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49266 conftest$ac_exeext conftest.$ac_ext
49267 LIBS=$ac_check_lib_save_LIBS
49269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49275 lt_cv_dlopen="dyld"
49277 lt_cv_dlopen_self=yes
49284 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
49285 $as_echo_n "checking for shl_load... " >&6; }
49286 if test "${ac_cv_func_shl_load+set}" = set; then
49287 $as_echo_n "(cached) " >&6
49289 cat >conftest.$ac_ext <<_ACEOF
49292 cat confdefs.h >>conftest.$ac_ext
49293 cat >>conftest.$ac_ext <<_ACEOF
49294 /* end confdefs.h. */
49295 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
49296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49297 #define shl_load innocuous_shl_load
49299 /* System header to define __stub macros and hopefully few prototypes,
49300 which can conflict with char shl_load (); below.
49301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49302 <limits.h> exists even on freestanding compilers. */
49305 # include <limits.h>
49307 # include <assert.h>
49312 /* Override any GCC internal prototype to avoid an error.
49313 Use char because int might match the return type of a GCC
49314 builtin and then its argument prototype would still apply. */
49319 /* The GNU C library defines this for functions which it implements
49320 to always fail with ENOSYS. Some functions are actually named
49321 something starting with __ and the normal name is an alias. */
49322 #if defined __stub_shl_load || defined __stub___shl_load
49329 return shl_load ();
49334 rm -f conftest.$ac_objext conftest$ac_exeext
49335 if { (ac_try="$ac_link"
49336 case "(($ac_try" in
49337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49338 *) ac_try_echo=$ac_try;;
49340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49341 $as_echo "$ac_try_echo") >&5
49342 (eval "$ac_link") 2>conftest.er1
49344 grep -v '^ *+' conftest.er1 >conftest.err
49346 cat conftest.err >&5
49347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49348 (exit $ac_status); } && {
49349 test -z "$ac_c_werror_flag" ||
49350 test ! -s conftest.err
49351 } && test -s conftest$ac_exeext && {
49352 test "$cross_compiling" = yes ||
49353 $as_test_x conftest$ac_exeext
49355 ac_cv_func_shl_load=yes
49357 $as_echo "$as_me: failed program was:" >&5
49358 sed 's/^/| /' conftest.$ac_ext >&5
49360 ac_cv_func_shl_load=no
49363 rm -rf conftest.dSYM
49364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49365 conftest$ac_exeext conftest.$ac_ext
49367 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
49368 $as_echo "$ac_cv_func_shl_load" >&6; }
49369 if test "x$ac_cv_func_shl_load" = x""yes; then
49370 lt_cv_dlopen="shl_load"
49372 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
49373 $as_echo_n "checking for shl_load in -ldld... " >&6; }
49374 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
49375 $as_echo_n "(cached) " >&6
49377 ac_check_lib_save_LIBS=$LIBS
49379 cat >conftest.$ac_ext <<_ACEOF
49382 cat confdefs.h >>conftest.$ac_ext
49383 cat >>conftest.$ac_ext <<_ACEOF
49384 /* end confdefs.h. */
49386 /* Override any GCC internal prototype to avoid an error.
49387 Use char because int might match the return type of a GCC
49388 builtin and then its argument prototype would still apply. */
49396 return shl_load ();
49401 rm -f conftest.$ac_objext conftest$ac_exeext
49402 if { (ac_try="$ac_link"
49403 case "(($ac_try" in
49404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49405 *) ac_try_echo=$ac_try;;
49407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49408 $as_echo "$ac_try_echo") >&5
49409 (eval "$ac_link") 2>conftest.er1
49411 grep -v '^ *+' conftest.er1 >conftest.err
49413 cat conftest.err >&5
49414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49415 (exit $ac_status); } && {
49416 test -z "$ac_c_werror_flag" ||
49417 test ! -s conftest.err
49418 } && test -s conftest$ac_exeext && {
49419 test "$cross_compiling" = yes ||
49420 $as_test_x conftest$ac_exeext
49422 ac_cv_lib_dld_shl_load=yes
49424 $as_echo "$as_me: failed program was:" >&5
49425 sed 's/^/| /' conftest.$ac_ext >&5
49427 ac_cv_lib_dld_shl_load=no
49430 rm -rf conftest.dSYM
49431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49432 conftest$ac_exeext conftest.$ac_ext
49433 LIBS=$ac_check_lib_save_LIBS
49435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
49436 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
49437 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
49438 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
49440 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
49441 $as_echo_n "checking for dlopen... " >&6; }
49442 if test "${ac_cv_func_dlopen+set}" = set; then
49443 $as_echo_n "(cached) " >&6
49445 cat >conftest.$ac_ext <<_ACEOF
49448 cat confdefs.h >>conftest.$ac_ext
49449 cat >>conftest.$ac_ext <<_ACEOF
49450 /* end confdefs.h. */
49451 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
49452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49453 #define dlopen innocuous_dlopen
49455 /* System header to define __stub macros and hopefully few prototypes,
49456 which can conflict with char dlopen (); below.
49457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49458 <limits.h> exists even on freestanding compilers. */
49461 # include <limits.h>
49463 # include <assert.h>
49468 /* Override any GCC internal prototype to avoid an error.
49469 Use char because int might match the return type of a GCC
49470 builtin and then its argument prototype would still apply. */
49475 /* The GNU C library defines this for functions which it implements
49476 to always fail with ENOSYS. Some functions are actually named
49477 something starting with __ and the normal name is an alias. */
49478 #if defined __stub_dlopen || defined __stub___dlopen
49490 rm -f conftest.$ac_objext conftest$ac_exeext
49491 if { (ac_try="$ac_link"
49492 case "(($ac_try" in
49493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49494 *) ac_try_echo=$ac_try;;
49496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49497 $as_echo "$ac_try_echo") >&5
49498 (eval "$ac_link") 2>conftest.er1
49500 grep -v '^ *+' conftest.er1 >conftest.err
49502 cat conftest.err >&5
49503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504 (exit $ac_status); } && {
49505 test -z "$ac_c_werror_flag" ||
49506 test ! -s conftest.err
49507 } && test -s conftest$ac_exeext && {
49508 test "$cross_compiling" = yes ||
49509 $as_test_x conftest$ac_exeext
49511 ac_cv_func_dlopen=yes
49513 $as_echo "$as_me: failed program was:" >&5
49514 sed 's/^/| /' conftest.$ac_ext >&5
49516 ac_cv_func_dlopen=no
49519 rm -rf conftest.dSYM
49520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49521 conftest$ac_exeext conftest.$ac_ext
49523 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
49524 $as_echo "$ac_cv_func_dlopen" >&6; }
49525 if test "x$ac_cv_func_dlopen" = x""yes; then
49526 lt_cv_dlopen="dlopen"
49528 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
49529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
49530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
49531 $as_echo_n "(cached) " >&6
49533 ac_check_lib_save_LIBS=$LIBS
49535 cat >conftest.$ac_ext <<_ACEOF
49538 cat confdefs.h >>conftest.$ac_ext
49539 cat >>conftest.$ac_ext <<_ACEOF
49540 /* end confdefs.h. */
49542 /* Override any GCC internal prototype to avoid an error.
49543 Use char because int might match the return type of a GCC
49544 builtin and then its argument prototype would still apply. */
49557 rm -f conftest.$ac_objext conftest$ac_exeext
49558 if { (ac_try="$ac_link"
49559 case "(($ac_try" in
49560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49561 *) ac_try_echo=$ac_try;;
49563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49564 $as_echo "$ac_try_echo") >&5
49565 (eval "$ac_link") 2>conftest.er1
49567 grep -v '^ *+' conftest.er1 >conftest.err
49569 cat conftest.err >&5
49570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49571 (exit $ac_status); } && {
49572 test -z "$ac_c_werror_flag" ||
49573 test ! -s conftest.err
49574 } && test -s conftest$ac_exeext && {
49575 test "$cross_compiling" = yes ||
49576 $as_test_x conftest$ac_exeext
49578 ac_cv_lib_dl_dlopen=yes
49580 $as_echo "$as_me: failed program was:" >&5
49581 sed 's/^/| /' conftest.$ac_ext >&5
49583 ac_cv_lib_dl_dlopen=no
49586 rm -rf conftest.dSYM
49587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49588 conftest$ac_exeext conftest.$ac_ext
49589 LIBS=$ac_check_lib_save_LIBS
49591 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
49592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
49593 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
49594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
49596 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
49597 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
49598 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
49599 $as_echo_n "(cached) " >&6
49601 ac_check_lib_save_LIBS=$LIBS
49602 LIBS="-lsvld $LIBS"
49603 cat >conftest.$ac_ext <<_ACEOF
49606 cat confdefs.h >>conftest.$ac_ext
49607 cat >>conftest.$ac_ext <<_ACEOF
49608 /* end confdefs.h. */
49610 /* Override any GCC internal prototype to avoid an error.
49611 Use char because int might match the return type of a GCC
49612 builtin and then its argument prototype would still apply. */
49625 rm -f conftest.$ac_objext conftest$ac_exeext
49626 if { (ac_try="$ac_link"
49627 case "(($ac_try" in
49628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49629 *) ac_try_echo=$ac_try;;
49631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49632 $as_echo "$ac_try_echo") >&5
49633 (eval "$ac_link") 2>conftest.er1
49635 grep -v '^ *+' conftest.er1 >conftest.err
49637 cat conftest.err >&5
49638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49639 (exit $ac_status); } && {
49640 test -z "$ac_c_werror_flag" ||
49641 test ! -s conftest.err
49642 } && test -s conftest$ac_exeext && {
49643 test "$cross_compiling" = yes ||
49644 $as_test_x conftest$ac_exeext
49646 ac_cv_lib_svld_dlopen=yes
49648 $as_echo "$as_me: failed program was:" >&5
49649 sed 's/^/| /' conftest.$ac_ext >&5
49651 ac_cv_lib_svld_dlopen=no
49654 rm -rf conftest.dSYM
49655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49656 conftest$ac_exeext conftest.$ac_ext
49657 LIBS=$ac_check_lib_save_LIBS
49659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
49660 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
49661 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
49662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
49664 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
49665 $as_echo_n "checking for dld_link in -ldld... " >&6; }
49666 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
49667 $as_echo_n "(cached) " >&6
49669 ac_check_lib_save_LIBS=$LIBS
49671 cat >conftest.$ac_ext <<_ACEOF
49674 cat confdefs.h >>conftest.$ac_ext
49675 cat >>conftest.$ac_ext <<_ACEOF
49676 /* end confdefs.h. */
49678 /* Override any GCC internal prototype to avoid an error.
49679 Use char because int might match the return type of a GCC
49680 builtin and then its argument prototype would still apply. */
49688 return dld_link ();
49693 rm -f conftest.$ac_objext conftest$ac_exeext
49694 if { (ac_try="$ac_link"
49695 case "(($ac_try" in
49696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49697 *) ac_try_echo=$ac_try;;
49699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49700 $as_echo "$ac_try_echo") >&5
49701 (eval "$ac_link") 2>conftest.er1
49703 grep -v '^ *+' conftest.er1 >conftest.err
49705 cat conftest.err >&5
49706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49707 (exit $ac_status); } && {
49708 test -z "$ac_c_werror_flag" ||
49709 test ! -s conftest.err
49710 } && test -s conftest$ac_exeext && {
49711 test "$cross_compiling" = yes ||
49712 $as_test_x conftest$ac_exeext
49714 ac_cv_lib_dld_dld_link=yes
49716 $as_echo "$as_me: failed program was:" >&5
49717 sed 's/^/| /' conftest.$ac_ext >&5
49719 ac_cv_lib_dld_dld_link=no
49722 rm -rf conftest.dSYM
49723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49724 conftest$ac_exeext conftest.$ac_ext
49725 LIBS=$ac_check_lib_save_LIBS
49727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
49728 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
49729 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
49730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
49751 if test "x$lt_cv_dlopen" != xno; then
49757 case $lt_cv_dlopen in
49759 save_CPPFLAGS="$CPPFLAGS"
49760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
49762 save_LDFLAGS="$LDFLAGS"
49763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
49766 LIBS="$lt_cv_dlopen_libs $LIBS"
49768 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
49769 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
49770 if test "${lt_cv_dlopen_self+set}" = set; then
49771 $as_echo_n "(cached) " >&6
49773 if test "$cross_compiling" = yes; then :
49774 lt_cv_dlopen_self=cross
49776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49777 lt_status=$lt_dlunknown
49778 cat > conftest.$ac_ext <<EOF
49779 #line 49779 "configure"
49780 #include "confdefs.h"
49789 # define LT_DLGLOBAL RTLD_GLOBAL
49792 # define LT_DLGLOBAL DL_GLOBAL
49794 # define LT_DLGLOBAL 0
49798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49799 find out it does not work in some platform. */
49800 #ifndef LT_DLLAZY_OR_NOW
49802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
49805 # define LT_DLLAZY_OR_NOW DL_LAZY
49808 # define LT_DLLAZY_OR_NOW RTLD_NOW
49811 # define LT_DLLAZY_OR_NOW DL_NOW
49813 # define LT_DLLAZY_OR_NOW 0
49821 extern "C" void exit (int);
49824 void fnord() { int i=42;}
49827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49828 int status = $lt_dlunknown;
49832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
49833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49834 /* dlclose (self); */
49840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49841 (eval $ac_link) 2>&5
49843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49845 (./conftest; exit; ) >&5 2>/dev/null
49847 case x$lt_status in
49848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
49849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
49850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
49853 # compilation failed
49854 lt_cv_dlopen_self=no
49861 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
49862 $as_echo "$lt_cv_dlopen_self" >&6; }
49864 if test "x$lt_cv_dlopen_self" = xyes; then
49865 LDFLAGS="$LDFLAGS $link_static_flag"
49866 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
49867 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
49868 if test "${lt_cv_dlopen_self_static+set}" = set; then
49869 $as_echo_n "(cached) " >&6
49871 if test "$cross_compiling" = yes; then :
49872 lt_cv_dlopen_self_static=cross
49874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
49875 lt_status=$lt_dlunknown
49876 cat > conftest.$ac_ext <<EOF
49877 #line 49877 "configure"
49878 #include "confdefs.h"
49887 # define LT_DLGLOBAL RTLD_GLOBAL
49890 # define LT_DLGLOBAL DL_GLOBAL
49892 # define LT_DLGLOBAL 0
49896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
49897 find out it does not work in some platform. */
49898 #ifndef LT_DLLAZY_OR_NOW
49900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
49903 # define LT_DLLAZY_OR_NOW DL_LAZY
49906 # define LT_DLLAZY_OR_NOW RTLD_NOW
49909 # define LT_DLLAZY_OR_NOW DL_NOW
49911 # define LT_DLLAZY_OR_NOW 0
49919 extern "C" void exit (int);
49922 void fnord() { int i=42;}
49925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
49926 int status = $lt_dlunknown;
49930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
49931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
49932 /* dlclose (self); */
49938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49939 (eval $ac_link) 2>&5
49941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
49943 (./conftest; exit; ) >&5 2>/dev/null
49945 case x$lt_status in
49946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
49947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
49948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
49951 # compilation failed
49952 lt_cv_dlopen_self_static=no
49959 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
49960 $as_echo "$lt_cv_dlopen_self_static" >&6; }
49963 CPPFLAGS="$save_CPPFLAGS"
49964 LDFLAGS="$save_LDFLAGS"
49969 case $lt_cv_dlopen_self in
49970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
49971 *) enable_dlopen_self=unknown ;;
49974 case $lt_cv_dlopen_self_static in
49975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
49976 *) enable_dlopen_self_static=unknown ;;
49981 # The else clause should only fire when bootstrapping the
49982 # libtool distribution, otherwise you forgot to ship ltmain.sh
49983 # with your package, and you will get complaints that there are
49984 # no rules to generate ltmain.sh.
49985 if test -f "$ltmain"; then
49986 # See if we are running on zsh, and set the options which allow our commands through
49987 # without removal of \ escapes.
49988 if test -n "${ZSH_VERSION+set}" ; then
49989 setopt NO_GLOB_SUBST
49991 # Now quote all the things that may contain metacharacters while being
49992 # careful not to overquote the AC_SUBSTed values. We take copies of the
49993 # variables and quote the copies for generation of the libtool script.
49994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
49996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
49997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
49998 deplibs_check_method reload_flag reload_cmds need_locks \
49999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50000 lt_cv_sys_global_symbol_to_c_name_address \
50001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50002 old_postinstall_cmds old_postuninstall_cmds \
50006 lt_prog_compiler_wl_GCJ \
50007 lt_prog_compiler_pic_GCJ \
50008 lt_prog_compiler_static_GCJ \
50009 lt_prog_compiler_no_builtin_flag_GCJ \
50010 export_dynamic_flag_spec_GCJ \
50011 thread_safe_flag_spec_GCJ \
50012 whole_archive_flag_spec_GCJ \
50013 enable_shared_with_static_runtimes_GCJ \
50014 old_archive_cmds_GCJ \
50015 old_archive_from_new_cmds_GCJ \
50016 predep_objects_GCJ \
50017 postdep_objects_GCJ \
50020 compiler_lib_search_path_GCJ \
50022 archive_expsym_cmds_GCJ \
50023 postinstall_cmds_GCJ \
50024 postuninstall_cmds_GCJ \
50025 old_archive_from_expsyms_cmds_GCJ \
50026 allow_undefined_flag_GCJ \
50027 no_undefined_flag_GCJ \
50028 export_symbols_cmds_GCJ \
50029 hardcode_libdir_flag_spec_GCJ \
50030 hardcode_libdir_flag_spec_ld_GCJ \
50031 hardcode_libdir_separator_GCJ \
50032 hardcode_automatic_GCJ \
50034 module_expsym_cmds_GCJ \
50035 lt_cv_prog_compiler_c_o_GCJ \
50036 exclude_expsyms_GCJ \
50037 include_expsyms_GCJ; do
50040 old_archive_cmds_GCJ | \
50041 old_archive_from_new_cmds_GCJ | \
50042 archive_cmds_GCJ | \
50043 archive_expsym_cmds_GCJ | \
50044 module_cmds_GCJ | \
50045 module_expsym_cmds_GCJ | \
50046 old_archive_from_expsyms_cmds_GCJ | \
50047 export_symbols_cmds_GCJ | \
50048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
50049 postinstall_cmds | postuninstall_cmds | \
50050 old_postinstall_cmds | old_postuninstall_cmds | \
50051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50052 # Double-quote double-evaled strings.
50053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50062 *'\$0 --fallback-echo"')
50063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50069 cat <<__EOF__ >> "$cfgfile"
50070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50074 # Shell to use when invoking shell scripts.
50077 # Whether or not to build shared libraries.
50078 build_libtool_libs=$enable_shared
50080 # Whether or not to build static libraries.
50081 build_old_libs=$enable_static
50083 # Whether or not to add -lc for building shared libraries.
50084 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
50086 # Whether or not to disallow shared libs when runtime libs are static
50087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
50089 # Whether or not to optimize for fast installation.
50090 fast_install=$enable_fast_install
50093 host_alias=$host_alias
50097 # The build system.
50098 build_alias=$build_alias
50102 # An echo program that does not interpret backslashes.
50107 AR_FLAGS=$lt_AR_FLAGS
50112 # A language-specific compiler.
50113 CC=$lt_compiler_GCJ
50115 # Is the compiler the GNU C compiler?
50121 # The linker used to build libraries.
50124 # Whether we need hard or soft links.
50127 # A BSD-compatible nm program.
50130 # A symbol stripping program
50133 # Used to examine libraries when file_magic_cmd begins "file"
50134 MAGIC_CMD=$MAGIC_CMD
50136 # Used on cygwin: DLL creation program.
50139 # Used on cygwin: object dumper.
50142 # Used on cygwin: assembler.
50145 # The name of the directory that contains temporary libtool files.
50148 # How to create reloadable object files.
50149 reload_flag=$lt_reload_flag
50150 reload_cmds=$lt_reload_cmds
50152 # How to pass a linker flag through the compiler.
50153 wl=$lt_lt_prog_compiler_wl_GCJ
50155 # Object file suffix (normally "o").
50156 objext="$ac_objext"
50158 # Old archive suffix (normally "a").
50161 # Shared library suffix (normally ".so").
50162 shrext_cmds='$shrext_cmds'
50164 # Executable file suffix (normally "").
50167 # Additional compiler flags for building library objects.
50168 pic_flag=$lt_lt_prog_compiler_pic_GCJ
50171 # What is the maximum length of a command?
50172 max_cmd_len=$lt_cv_sys_max_cmd_len
50174 # Does compiler simultaneously support -c and -o options?
50175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
50177 # Must we lock files when doing compilation?
50178 need_locks=$lt_need_locks
50180 # Do we need the lib prefix for modules?
50181 need_lib_prefix=$need_lib_prefix
50183 # Do we need a version for libraries?
50184 need_version=$need_version
50186 # Whether dlopen is supported.
50187 dlopen_support=$enable_dlopen
50189 # Whether dlopen of programs is supported.
50190 dlopen_self=$enable_dlopen_self
50192 # Whether dlopen of statically linked programs is supported.
50193 dlopen_self_static=$enable_dlopen_self_static
50195 # Compiler flag to prevent dynamic linking.
50196 link_static_flag=$lt_lt_prog_compiler_static_GCJ
50198 # Compiler flag to turn off builtin functions.
50199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
50201 # Compiler flag to allow reflexive dlopens.
50202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
50204 # Compiler flag to generate shared objects directly from archives.
50205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
50207 # Compiler flag to generate thread-safe objects.
50208 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
50210 # Library versioning type.
50211 version_type=$version_type
50213 # Format of library name prefix.
50214 libname_spec=$lt_libname_spec
50216 # List of archive names. First name is the real one, the rest are links.
50217 # The last name is the one that the linker finds with -lNAME.
50218 library_names_spec=$lt_library_names_spec
50220 # The coded name of the library, if different from the real name.
50221 soname_spec=$lt_soname_spec
50223 # Commands used to build and install an old-style archive.
50225 old_archive_cmds=$lt_old_archive_cmds_GCJ
50226 old_postinstall_cmds=$lt_old_postinstall_cmds
50227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50229 # Create an old-style archive from a shared archive.
50230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
50232 # Create a temporary old-style archive to link instead of a shared archive.
50233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
50235 # Commands used to build and install a shared archive.
50236 archive_cmds=$lt_archive_cmds_GCJ
50237 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
50238 postinstall_cmds=$lt_postinstall_cmds
50239 postuninstall_cmds=$lt_postuninstall_cmds
50241 # Commands used to build a loadable module (assumed same as above if empty)
50242 module_cmds=$lt_module_cmds_GCJ
50243 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
50245 # Commands to strip libraries.
50246 old_striplib=$lt_old_striplib
50247 striplib=$lt_striplib
50249 # Dependencies to place before the objects being linked to create a
50251 predep_objects=$lt_predep_objects_GCJ
50253 # Dependencies to place after the objects being linked to create a
50255 postdep_objects=$lt_postdep_objects_GCJ
50257 # Dependencies to place before the objects being linked to create a
50259 predeps=$lt_predeps_GCJ
50261 # Dependencies to place after the objects being linked to create a
50263 postdeps=$lt_postdeps_GCJ
50265 # The library search path used internally by the compiler when linking
50266 # a shared library.
50267 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
50269 # Method to check whether dependent libraries are shared objects.
50270 deplibs_check_method=$lt_deplibs_check_method
50272 # Command to use when deplibs_check_method == file_magic.
50273 file_magic_cmd=$lt_file_magic_cmd
50275 # Flag that allows shared libraries with undefined symbols to be built.
50276 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
50278 # Flag that forces no undefined symbols.
50279 no_undefined_flag=$lt_no_undefined_flag_GCJ
50281 # Commands used to finish a libtool library installation in a directory.
50282 finish_cmds=$lt_finish_cmds
50284 # Same as above, but a single script fragment to be evaled but not shown.
50285 finish_eval=$lt_finish_eval
50287 # Take the output of nm and produce a listing of raw symbols and C names.
50288 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50290 # Transform the output of nm in a proper C declaration
50291 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50293 # Transform the output of nm in a C name address pair
50294 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50296 # This is the shared library runtime path variable.
50297 runpath_var=$runpath_var
50299 # This is the shared library path variable.
50300 shlibpath_var=$shlibpath_var
50302 # Is shlibpath searched before the hard-coded library search path?
50303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50305 # How to hardcode a shared library path into an executable.
50306 hardcode_action=$hardcode_action_GCJ
50308 # Whether we should hardcode library paths into libraries.
50309 hardcode_into_libs=$hardcode_into_libs
50311 # Flag to hardcode \$libdir into a binary during linking.
50312 # This must work even if \$libdir does not exist.
50313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
50315 # If ld is used when linking, flag to hardcode \$libdir into
50316 # a binary during linking. This must work even if \$libdir does
50318 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
50320 # Whether we need a single -rpath flag with a separated argument.
50321 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
50323 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50324 # resulting binary.
50325 hardcode_direct=$hardcode_direct_GCJ
50327 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50328 # resulting binary.
50329 hardcode_minus_L=$hardcode_minus_L_GCJ
50331 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50332 # the resulting binary.
50333 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
50335 # Set to yes if building a shared library automatically hardcodes DIR into the library
50336 # and all subsequent libraries and executables linked against it.
50337 hardcode_automatic=$hardcode_automatic_GCJ
50339 # Variables whose values should be saved in libtool wrapper scripts and
50340 # restored at relink time.
50341 variables_saved_for_relink="$variables_saved_for_relink"
50343 # Whether libtool must link a program against all its dependency libraries.
50344 link_all_deplibs=$link_all_deplibs_GCJ
50346 # Compile-time system search path for libraries
50347 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50349 # Run-time system search path for libraries
50350 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50352 # Fix the shell variable \$srcfile for the compiler.
50353 fix_srcfile_path="$fix_srcfile_path_GCJ"
50355 # Set to yes if exported symbols are required.
50356 always_export_symbols=$always_export_symbols_GCJ
50358 # The commands to list exported symbols.
50359 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
50361 # The commands to extract the exported symbol list from a shared archive.
50362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50364 # Symbols that should not be listed in the preloaded symbols.
50365 exclude_expsyms=$lt_exclude_expsyms_GCJ
50367 # Symbols that must always be exported.
50368 include_expsyms=$lt_include_expsyms_GCJ
50370 # ### END LIBTOOL TAG CONFIG: $tagname
50376 # If there is no Makefile yet, we rely on a make rule to execute
50377 # `config.status --recheck' to rerun these tests and create the
50378 # libtool script then.
50379 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50380 if test -f "$ltmain_in"; then
50381 test -f Makefile && make "$ltmain"
50387 ac_cpp='$CPP $CPPFLAGS'
50388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50402 # Source file extension for RC test sources.
50405 # Object file extension for compiled RC test sources.
50409 # Code to be used in simple compile tests
50410 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
50412 # Code to be used in simple link tests
50413 lt_simple_link_test_code="$lt_simple_compile_test_code"
50415 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
50417 # If no C compiler was specified, use CC.
50420 # Allow CC to be a program name with arguments.
50424 # save warnings/boilerplate of simple test code
50425 ac_outfile=conftest.$ac_objext
50426 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
50427 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50428 _lt_compiler_boilerplate=`cat conftest.err`
50431 ac_outfile=conftest.$ac_objext
50432 printf "$lt_simple_link_test_code" >conftest.$ac_ext
50433 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
50434 _lt_linker_boilerplate=`cat conftest.err`
50438 # Allow CC to be a program name with arguments.
50443 for cc_temp in $compiler""; do
50445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
50446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
50451 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
50453 lt_cv_prog_compiler_c_o_RC=yes
50455 # The else clause should only fire when bootstrapping the
50456 # libtool distribution, otherwise you forgot to ship ltmain.sh
50457 # with your package, and you will get complaints that there are
50458 # no rules to generate ltmain.sh.
50459 if test -f "$ltmain"; then
50460 # See if we are running on zsh, and set the options which allow our commands through
50461 # without removal of \ escapes.
50462 if test -n "${ZSH_VERSION+set}" ; then
50463 setopt NO_GLOB_SUBST
50465 # Now quote all the things that may contain metacharacters while being
50466 # careful not to overquote the AC_SUBSTed values. We take copies of the
50467 # variables and quote the copies for generation of the libtool script.
50468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
50470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
50471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
50472 deplibs_check_method reload_flag reload_cmds need_locks \
50473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
50474 lt_cv_sys_global_symbol_to_c_name_address \
50475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
50476 old_postinstall_cmds old_postuninstall_cmds \
50480 lt_prog_compiler_wl_RC \
50481 lt_prog_compiler_pic_RC \
50482 lt_prog_compiler_static_RC \
50483 lt_prog_compiler_no_builtin_flag_RC \
50484 export_dynamic_flag_spec_RC \
50485 thread_safe_flag_spec_RC \
50486 whole_archive_flag_spec_RC \
50487 enable_shared_with_static_runtimes_RC \
50488 old_archive_cmds_RC \
50489 old_archive_from_new_cmds_RC \
50490 predep_objects_RC \
50491 postdep_objects_RC \
50494 compiler_lib_search_path_RC \
50496 archive_expsym_cmds_RC \
50497 postinstall_cmds_RC \
50498 postuninstall_cmds_RC \
50499 old_archive_from_expsyms_cmds_RC \
50500 allow_undefined_flag_RC \
50501 no_undefined_flag_RC \
50502 export_symbols_cmds_RC \
50503 hardcode_libdir_flag_spec_RC \
50504 hardcode_libdir_flag_spec_ld_RC \
50505 hardcode_libdir_separator_RC \
50506 hardcode_automatic_RC \
50508 module_expsym_cmds_RC \
50509 lt_cv_prog_compiler_c_o_RC \
50510 exclude_expsyms_RC \
50511 include_expsyms_RC; do
50514 old_archive_cmds_RC | \
50515 old_archive_from_new_cmds_RC | \
50516 archive_cmds_RC | \
50517 archive_expsym_cmds_RC | \
50519 module_expsym_cmds_RC | \
50520 old_archive_from_expsyms_cmds_RC | \
50521 export_symbols_cmds_RC | \
50522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
50523 postinstall_cmds | postuninstall_cmds | \
50524 old_postinstall_cmds | old_postuninstall_cmds | \
50525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
50526 # Double-quote double-evaled strings.
50527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
50530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
50536 *'\$0 --fallback-echo"')
50537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
50543 cat <<__EOF__ >> "$cfgfile"
50544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
50546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50548 # Shell to use when invoking shell scripts.
50551 # Whether or not to build shared libraries.
50552 build_libtool_libs=$enable_shared
50554 # Whether or not to build static libraries.
50555 build_old_libs=$enable_static
50557 # Whether or not to add -lc for building shared libraries.
50558 build_libtool_need_lc=$archive_cmds_need_lc_RC
50560 # Whether or not to disallow shared libs when runtime libs are static
50561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
50563 # Whether or not to optimize for fast installation.
50564 fast_install=$enable_fast_install
50567 host_alias=$host_alias
50571 # The build system.
50572 build_alias=$build_alias
50576 # An echo program that does not interpret backslashes.
50581 AR_FLAGS=$lt_AR_FLAGS
50586 # A language-specific compiler.
50589 # Is the compiler the GNU C compiler?
50595 # The linker used to build libraries.
50598 # Whether we need hard or soft links.
50601 # A BSD-compatible nm program.
50604 # A symbol stripping program
50607 # Used to examine libraries when file_magic_cmd begins "file"
50608 MAGIC_CMD=$MAGIC_CMD
50610 # Used on cygwin: DLL creation program.
50613 # Used on cygwin: object dumper.
50616 # Used on cygwin: assembler.
50619 # The name of the directory that contains temporary libtool files.
50622 # How to create reloadable object files.
50623 reload_flag=$lt_reload_flag
50624 reload_cmds=$lt_reload_cmds
50626 # How to pass a linker flag through the compiler.
50627 wl=$lt_lt_prog_compiler_wl_RC
50629 # Object file suffix (normally "o").
50630 objext="$ac_objext"
50632 # Old archive suffix (normally "a").
50635 # Shared library suffix (normally ".so").
50636 shrext_cmds='$shrext_cmds'
50638 # Executable file suffix (normally "").
50641 # Additional compiler flags for building library objects.
50642 pic_flag=$lt_lt_prog_compiler_pic_RC
50645 # What is the maximum length of a command?
50646 max_cmd_len=$lt_cv_sys_max_cmd_len
50648 # Does compiler simultaneously support -c and -o options?
50649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
50651 # Must we lock files when doing compilation?
50652 need_locks=$lt_need_locks
50654 # Do we need the lib prefix for modules?
50655 need_lib_prefix=$need_lib_prefix
50657 # Do we need a version for libraries?
50658 need_version=$need_version
50660 # Whether dlopen is supported.
50661 dlopen_support=$enable_dlopen
50663 # Whether dlopen of programs is supported.
50664 dlopen_self=$enable_dlopen_self
50666 # Whether dlopen of statically linked programs is supported.
50667 dlopen_self_static=$enable_dlopen_self_static
50669 # Compiler flag to prevent dynamic linking.
50670 link_static_flag=$lt_lt_prog_compiler_static_RC
50672 # Compiler flag to turn off builtin functions.
50673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
50675 # Compiler flag to allow reflexive dlopens.
50676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
50678 # Compiler flag to generate shared objects directly from archives.
50679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
50681 # Compiler flag to generate thread-safe objects.
50682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
50684 # Library versioning type.
50685 version_type=$version_type
50687 # Format of library name prefix.
50688 libname_spec=$lt_libname_spec
50690 # List of archive names. First name is the real one, the rest are links.
50691 # The last name is the one that the linker finds with -lNAME.
50692 library_names_spec=$lt_library_names_spec
50694 # The coded name of the library, if different from the real name.
50695 soname_spec=$lt_soname_spec
50697 # Commands used to build and install an old-style archive.
50699 old_archive_cmds=$lt_old_archive_cmds_RC
50700 old_postinstall_cmds=$lt_old_postinstall_cmds
50701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50703 # Create an old-style archive from a shared archive.
50704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
50706 # Create a temporary old-style archive to link instead of a shared archive.
50707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
50709 # Commands used to build and install a shared archive.
50710 archive_cmds=$lt_archive_cmds_RC
50711 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
50712 postinstall_cmds=$lt_postinstall_cmds
50713 postuninstall_cmds=$lt_postuninstall_cmds
50715 # Commands used to build a loadable module (assumed same as above if empty)
50716 module_cmds=$lt_module_cmds_RC
50717 module_expsym_cmds=$lt_module_expsym_cmds_RC
50719 # Commands to strip libraries.
50720 old_striplib=$lt_old_striplib
50721 striplib=$lt_striplib
50723 # Dependencies to place before the objects being linked to create a
50725 predep_objects=$lt_predep_objects_RC
50727 # Dependencies to place after the objects being linked to create a
50729 postdep_objects=$lt_postdep_objects_RC
50731 # Dependencies to place before the objects being linked to create a
50733 predeps=$lt_predeps_RC
50735 # Dependencies to place after the objects being linked to create a
50737 postdeps=$lt_postdeps_RC
50739 # The library search path used internally by the compiler when linking
50740 # a shared library.
50741 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
50743 # Method to check whether dependent libraries are shared objects.
50744 deplibs_check_method=$lt_deplibs_check_method
50746 # Command to use when deplibs_check_method == file_magic.
50747 file_magic_cmd=$lt_file_magic_cmd
50749 # Flag that allows shared libraries with undefined symbols to be built.
50750 allow_undefined_flag=$lt_allow_undefined_flag_RC
50752 # Flag that forces no undefined symbols.
50753 no_undefined_flag=$lt_no_undefined_flag_RC
50755 # Commands used to finish a libtool library installation in a directory.
50756 finish_cmds=$lt_finish_cmds
50758 # Same as above, but a single script fragment to be evaled but not shown.
50759 finish_eval=$lt_finish_eval
50761 # Take the output of nm and produce a listing of raw symbols and C names.
50762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50764 # Transform the output of nm in a proper C declaration
50765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50767 # Transform the output of nm in a C name address pair
50768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50770 # This is the shared library runtime path variable.
50771 runpath_var=$runpath_var
50773 # This is the shared library path variable.
50774 shlibpath_var=$shlibpath_var
50776 # Is shlibpath searched before the hard-coded library search path?
50777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50779 # How to hardcode a shared library path into an executable.
50780 hardcode_action=$hardcode_action_RC
50782 # Whether we should hardcode library paths into libraries.
50783 hardcode_into_libs=$hardcode_into_libs
50785 # Flag to hardcode \$libdir into a binary during linking.
50786 # This must work even if \$libdir does not exist.
50787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
50789 # If ld is used when linking, flag to hardcode \$libdir into
50790 # a binary during linking. This must work even if \$libdir does
50792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
50794 # Whether we need a single -rpath flag with a separated argument.
50795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
50797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
50798 # resulting binary.
50799 hardcode_direct=$hardcode_direct_RC
50801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
50802 # resulting binary.
50803 hardcode_minus_L=$hardcode_minus_L_RC
50805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
50806 # the resulting binary.
50807 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
50809 # Set to yes if building a shared library automatically hardcodes DIR into the library
50810 # and all subsequent libraries and executables linked against it.
50811 hardcode_automatic=$hardcode_automatic_RC
50813 # Variables whose values should be saved in libtool wrapper scripts and
50814 # restored at relink time.
50815 variables_saved_for_relink="$variables_saved_for_relink"
50817 # Whether libtool must link a program against all its dependency libraries.
50818 link_all_deplibs=$link_all_deplibs_RC
50820 # Compile-time system search path for libraries
50821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50823 # Run-time system search path for libraries
50824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50826 # Fix the shell variable \$srcfile for the compiler.
50827 fix_srcfile_path="$fix_srcfile_path_RC"
50829 # Set to yes if exported symbols are required.
50830 always_export_symbols=$always_export_symbols_RC
50832 # The commands to list exported symbols.
50833 export_symbols_cmds=$lt_export_symbols_cmds_RC
50835 # The commands to extract the exported symbol list from a shared archive.
50836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50838 # Symbols that should not be listed in the preloaded symbols.
50839 exclude_expsyms=$lt_exclude_expsyms_RC
50841 # Symbols that must always be exported.
50842 include_expsyms=$lt_include_expsyms_RC
50844 # ### END LIBTOOL TAG CONFIG: $tagname
50850 # If there is no Makefile yet, we rely on a make rule to execute
50851 # `config.status --recheck' to rerun these tests and create the
50852 # libtool script then.
50853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
50854 if test -f "$ltmain_in"; then
50855 test -f Makefile && make "$ltmain"
50861 ac_cpp='$CPP $CPPFLAGS'
50862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50871 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
50872 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
50873 { (exit 1); exit 1; }; }
50877 # Append the new tag name to the list of available tags.
50878 if test -n "$tagname" ; then
50879 available_tags="$available_tags $tagname"
50885 # Now substitute the updated list of available tags.
50886 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
50887 mv "${ofile}T" "$ofile"
50891 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
50892 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
50893 { (exit 1); exit 1; }; }
50899 # This can be used to rebuild libtool when needed
50900 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
50902 # Always use our own libtool.
50903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
50905 # Prevent multiple expansion
50928 # Check whether --enable-static-binary was given.
50929 if test "${enable_static_binary+set}" = set; then
50930 enableval=$enable_static_binary;
50933 AMANDA_STATIC_LDFLAGS=-static
50934 if test x"$enable_static" = x"no"; then
50935 { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
50936 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
50937 { (exit 1); exit 1; }; }
50941 AMANDA_STATIC_LDFLAGS=
50958 ac_header_dirent=no
50959 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
50960 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
50961 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
50962 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
50963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50964 $as_echo_n "(cached) " >&6
50966 cat >conftest.$ac_ext <<_ACEOF
50969 cat confdefs.h >>conftest.$ac_ext
50970 cat >>conftest.$ac_ext <<_ACEOF
50971 /* end confdefs.h. */
50972 #include <sys/types.h>
50984 rm -f conftest.$ac_objext
50985 if { (ac_try="$ac_compile"
50986 case "(($ac_try" in
50987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50988 *) ac_try_echo=$ac_try;;
50990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50991 $as_echo "$ac_try_echo") >&5
50992 (eval "$ac_compile") 2>conftest.er1
50994 grep -v '^ *+' conftest.er1 >conftest.err
50996 cat conftest.err >&5
50997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50998 (exit $ac_status); } && {
50999 test -z "$ac_c_werror_flag" ||
51000 test ! -s conftest.err
51001 } && test -s conftest.$ac_objext; then
51002 eval "$as_ac_Header=yes"
51004 $as_echo "$as_me: failed program was:" >&5
51005 sed 's/^/| /' conftest.$ac_ext >&5
51007 eval "$as_ac_Header=no"
51010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51012 ac_res=`eval 'as_val=${'$as_ac_Header'}
51013 $as_echo "$as_val"'`
51014 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51015 $as_echo "$ac_res" >&6; }
51016 as_val=`eval 'as_val=${'$as_ac_Header'}
51017 $as_echo "$as_val"'`
51018 if test "x$as_val" = x""yes; then
51019 cat >>confdefs.h <<_ACEOF
51020 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
51023 ac_header_dirent=$ac_hdr; break
51027 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
51028 if test $ac_header_dirent = dirent.h; then
51029 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51030 $as_echo_n "checking for library containing opendir... " >&6; }
51031 if test "${ac_cv_search_opendir+set}" = set; then
51032 $as_echo_n "(cached) " >&6
51034 ac_func_search_save_LIBS=$LIBS
51035 cat >conftest.$ac_ext <<_ACEOF
51038 cat confdefs.h >>conftest.$ac_ext
51039 cat >>conftest.$ac_ext <<_ACEOF
51040 /* end confdefs.h. */
51042 /* Override any GCC internal prototype to avoid an error.
51043 Use char because int might match the return type of a GCC
51044 builtin and then its argument prototype would still apply. */
51057 for ac_lib in '' dir; do
51058 if test -z "$ac_lib"; then
51059 ac_res="none required"
51062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
51064 rm -f conftest.$ac_objext conftest$ac_exeext
51065 if { (ac_try="$ac_link"
51066 case "(($ac_try" in
51067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51068 *) ac_try_echo=$ac_try;;
51070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51071 $as_echo "$ac_try_echo") >&5
51072 (eval "$ac_link") 2>conftest.er1
51074 grep -v '^ *+' conftest.er1 >conftest.err
51076 cat conftest.err >&5
51077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51078 (exit $ac_status); } && {
51079 test -z "$ac_c_werror_flag" ||
51080 test ! -s conftest.err
51081 } && test -s conftest$ac_exeext && {
51082 test "$cross_compiling" = yes ||
51083 $as_test_x conftest$ac_exeext
51085 ac_cv_search_opendir=$ac_res
51087 $as_echo "$as_me: failed program was:" >&5
51088 sed 's/^/| /' conftest.$ac_ext >&5
51093 rm -rf conftest.dSYM
51094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51096 if test "${ac_cv_search_opendir+set}" = set; then
51100 if test "${ac_cv_search_opendir+set}" = set; then
51103 ac_cv_search_opendir=no
51105 rm conftest.$ac_ext
51106 LIBS=$ac_func_search_save_LIBS
51108 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51109 $as_echo "$ac_cv_search_opendir" >&6; }
51110 ac_res=$ac_cv_search_opendir
51111 if test "$ac_res" != no; then
51112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51117 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51118 $as_echo_n "checking for library containing opendir... " >&6; }
51119 if test "${ac_cv_search_opendir+set}" = set; then
51120 $as_echo_n "(cached) " >&6
51122 ac_func_search_save_LIBS=$LIBS
51123 cat >conftest.$ac_ext <<_ACEOF
51126 cat confdefs.h >>conftest.$ac_ext
51127 cat >>conftest.$ac_ext <<_ACEOF
51128 /* end confdefs.h. */
51130 /* Override any GCC internal prototype to avoid an error.
51131 Use char because int might match the return type of a GCC
51132 builtin and then its argument prototype would still apply. */
51145 for ac_lib in '' x; do
51146 if test -z "$ac_lib"; then
51147 ac_res="none required"
51150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
51152 rm -f conftest.$ac_objext conftest$ac_exeext
51153 if { (ac_try="$ac_link"
51154 case "(($ac_try" in
51155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51156 *) ac_try_echo=$ac_try;;
51158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51159 $as_echo "$ac_try_echo") >&5
51160 (eval "$ac_link") 2>conftest.er1
51162 grep -v '^ *+' conftest.er1 >conftest.err
51164 cat conftest.err >&5
51165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51166 (exit $ac_status); } && {
51167 test -z "$ac_c_werror_flag" ||
51168 test ! -s conftest.err
51169 } && test -s conftest$ac_exeext && {
51170 test "$cross_compiling" = yes ||
51171 $as_test_x conftest$ac_exeext
51173 ac_cv_search_opendir=$ac_res
51175 $as_echo "$as_me: failed program was:" >&5
51176 sed 's/^/| /' conftest.$ac_ext >&5
51181 rm -rf conftest.dSYM
51182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51184 if test "${ac_cv_search_opendir+set}" = set; then
51188 if test "${ac_cv_search_opendir+set}" = set; then
51191 ac_cv_search_opendir=no
51193 rm conftest.$ac_ext
51194 LIBS=$ac_func_search_save_LIBS
51196 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51197 $as_echo "$ac_cv_search_opendir" >&6; }
51198 ac_res=$ac_cv_search_opendir
51199 if test "$ac_res" != no; then
51200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
51207 $as_echo_n "checking for ANSI C header files... " >&6; }
51208 if test "${ac_cv_header_stdc+set}" = set; then
51209 $as_echo_n "(cached) " >&6
51211 cat >conftest.$ac_ext <<_ACEOF
51214 cat confdefs.h >>conftest.$ac_ext
51215 cat >>conftest.$ac_ext <<_ACEOF
51216 /* end confdefs.h. */
51217 #include <stdlib.h>
51218 #include <stdarg.h>
51219 #include <string.h>
51230 rm -f conftest.$ac_objext
51231 if { (ac_try="$ac_compile"
51232 case "(($ac_try" in
51233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51234 *) ac_try_echo=$ac_try;;
51236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51237 $as_echo "$ac_try_echo") >&5
51238 (eval "$ac_compile") 2>conftest.er1
51240 grep -v '^ *+' conftest.er1 >conftest.err
51242 cat conftest.err >&5
51243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51244 (exit $ac_status); } && {
51245 test -z "$ac_c_werror_flag" ||
51246 test ! -s conftest.err
51247 } && test -s conftest.$ac_objext; then
51248 ac_cv_header_stdc=yes
51250 $as_echo "$as_me: failed program was:" >&5
51251 sed 's/^/| /' conftest.$ac_ext >&5
51253 ac_cv_header_stdc=no
51256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51258 if test $ac_cv_header_stdc = yes; then
51259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
51260 cat >conftest.$ac_ext <<_ACEOF
51263 cat confdefs.h >>conftest.$ac_ext
51264 cat >>conftest.$ac_ext <<_ACEOF
51265 /* end confdefs.h. */
51266 #include <string.h>
51269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51270 $EGREP "memchr" >/dev/null 2>&1; then
51273 ac_cv_header_stdc=no
51279 if test $ac_cv_header_stdc = yes; then
51280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
51281 cat >conftest.$ac_ext <<_ACEOF
51284 cat confdefs.h >>conftest.$ac_ext
51285 cat >>conftest.$ac_ext <<_ACEOF
51286 /* end confdefs.h. */
51287 #include <stdlib.h>
51290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51291 $EGREP "free" >/dev/null 2>&1; then
51294 ac_cv_header_stdc=no
51300 if test $ac_cv_header_stdc = yes; then
51301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
51302 if test "$cross_compiling" = yes; then
51305 cat >conftest.$ac_ext <<_ACEOF
51308 cat confdefs.h >>conftest.$ac_ext
51309 cat >>conftest.$ac_ext <<_ACEOF
51310 /* end confdefs.h. */
51312 #include <stdlib.h>
51313 #if ((' ' & 0x0FF) == 0x020)
51314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
51315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
51317 # define ISLOWER(c) \
51318 (('a' <= (c) && (c) <= 'i') \
51319 || ('j' <= (c) && (c) <= 'r') \
51320 || ('s' <= (c) && (c) <= 'z'))
51321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
51324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
51329 for (i = 0; i < 256; i++)
51330 if (XOR (islower (i), ISLOWER (i))
51331 || toupper (i) != TOUPPER (i))
51336 rm -f conftest$ac_exeext
51337 if { (ac_try="$ac_link"
51338 case "(($ac_try" in
51339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51340 *) ac_try_echo=$ac_try;;
51342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51343 $as_echo "$ac_try_echo") >&5
51344 (eval "$ac_link") 2>&5
51346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51348 { (case "(($ac_try" in
51349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51350 *) ac_try_echo=$ac_try;;
51352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51353 $as_echo "$ac_try_echo") >&5
51354 (eval "$ac_try") 2>&5
51356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51357 (exit $ac_status); }; }; then
51360 $as_echo "$as_me: program exited with status $ac_status" >&5
51361 $as_echo "$as_me: failed program was:" >&5
51362 sed 's/^/| /' conftest.$ac_ext >&5
51364 ( exit $ac_status )
51365 ac_cv_header_stdc=no
51367 rm -rf conftest.dSYM
51368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
51375 $as_echo "$ac_cv_header_stdc" >&6; }
51376 if test $ac_cv_header_stdc = yes; then
51378 cat >>confdefs.h <<\_ACEOF
51379 #define STDC_HEADERS 1
51384 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51386 if test "${ac_cv_header_time+set}" = set; then
51387 $as_echo_n "(cached) " >&6
51389 cat >conftest.$ac_ext <<_ACEOF
51392 cat confdefs.h >>conftest.$ac_ext
51393 cat >>conftest.$ac_ext <<_ACEOF
51394 /* end confdefs.h. */
51395 #include <sys/types.h>
51396 #include <sys/time.h>
51402 if ((struct tm *) 0)
51408 rm -f conftest.$ac_objext
51409 if { (ac_try="$ac_compile"
51410 case "(($ac_try" in
51411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51412 *) ac_try_echo=$ac_try;;
51414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51415 $as_echo "$ac_try_echo") >&5
51416 (eval "$ac_compile") 2>conftest.er1
51418 grep -v '^ *+' conftest.er1 >conftest.err
51420 cat conftest.err >&5
51421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51422 (exit $ac_status); } && {
51423 test -z "$ac_c_werror_flag" ||
51424 test ! -s conftest.err
51425 } && test -s conftest.$ac_objext; then
51426 ac_cv_header_time=yes
51428 $as_echo "$as_me: failed program was:" >&5
51429 sed 's/^/| /' conftest.$ac_ext >&5
51431 ac_cv_header_time=no
51434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51437 $as_echo "$ac_cv_header_time" >&6; }
51438 if test $ac_cv_header_time = yes; then
51440 cat >>confdefs.h <<\_ACEOF
51441 #define TIME_WITH_SYS_TIME 1
51472 for ac_header in arpa/inet.h \
51500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51502 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51503 $as_echo_n "checking for $ac_header... " >&6; }
51504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51505 $as_echo_n "(cached) " >&6
51507 ac_res=`eval 'as_val=${'$as_ac_Header'}
51508 $as_echo "$as_val"'`
51509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51510 $as_echo "$ac_res" >&6; }
51512 # Is the header compilable?
51513 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51514 $as_echo_n "checking $ac_header usability... " >&6; }
51515 cat >conftest.$ac_ext <<_ACEOF
51518 cat confdefs.h >>conftest.$ac_ext
51519 cat >>conftest.$ac_ext <<_ACEOF
51520 /* end confdefs.h. */
51521 $ac_includes_default
51522 #include <$ac_header>
51524 rm -f conftest.$ac_objext
51525 if { (ac_try="$ac_compile"
51526 case "(($ac_try" in
51527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51528 *) ac_try_echo=$ac_try;;
51530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51531 $as_echo "$ac_try_echo") >&5
51532 (eval "$ac_compile") 2>conftest.er1
51534 grep -v '^ *+' conftest.er1 >conftest.err
51536 cat conftest.err >&5
51537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51538 (exit $ac_status); } && {
51539 test -z "$ac_c_werror_flag" ||
51540 test ! -s conftest.err
51541 } && test -s conftest.$ac_objext; then
51542 ac_header_compiler=yes
51544 $as_echo "$as_me: failed program was:" >&5
51545 sed 's/^/| /' conftest.$ac_ext >&5
51547 ac_header_compiler=no
51550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51552 $as_echo "$ac_header_compiler" >&6; }
51554 # Is the header present?
51555 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51556 $as_echo_n "checking $ac_header presence... " >&6; }
51557 cat >conftest.$ac_ext <<_ACEOF
51560 cat confdefs.h >>conftest.$ac_ext
51561 cat >>conftest.$ac_ext <<_ACEOF
51562 /* end confdefs.h. */
51563 #include <$ac_header>
51565 if { (ac_try="$ac_cpp conftest.$ac_ext"
51566 case "(($ac_try" in
51567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51568 *) ac_try_echo=$ac_try;;
51570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51571 $as_echo "$ac_try_echo") >&5
51572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51574 grep -v '^ *+' conftest.er1 >conftest.err
51576 cat conftest.err >&5
51577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51578 (exit $ac_status); } >/dev/null && {
51579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51580 test ! -s conftest.err
51582 ac_header_preproc=yes
51584 $as_echo "$as_me: failed program was:" >&5
51585 sed 's/^/| /' conftest.$ac_ext >&5
51587 ac_header_preproc=no
51590 rm -f conftest.err conftest.$ac_ext
51591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51592 $as_echo "$ac_header_preproc" >&6; }
51594 # So? What about this header?
51595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51598 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51601 ac_header_preproc=yes
51604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51605 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51607 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51609 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51611 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51615 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51620 $as_echo_n "checking for $ac_header... " >&6; }
51621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51622 $as_echo_n "(cached) " >&6
51624 eval "$as_ac_Header=\$ac_header_preproc"
51626 ac_res=`eval 'as_val=${'$as_ac_Header'}
51627 $as_echo "$as_val"'`
51628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51629 $as_echo "$ac_res" >&6; }
51632 as_val=`eval 'as_val=${'$as_ac_Header'}
51633 $as_echo "$as_val"'`
51634 if test "x$as_val" = x""yes; then
51635 cat >>confdefs.h <<_ACEOF
51636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51644 cat >>confdefs.h <<\_ACEOF
51645 #define HAVE_AMANDA_H 1
51649 cat >>confdefs.h <<\_ACEOF
51650 #define HAVE_UTIL_H 1
51655 cat >>confdefs.h <<\_ACEOF
51656 #define USE_GETTEXT 1
51663 # The cast to long int works around a bug in the HP C Compiler
51664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51666 # This bug is HP SR number 8606223364.
51667 { $as_echo "$as_me:$LINENO: checking size of int" >&5
51668 $as_echo_n "checking size of int... " >&6; }
51669 if test "${ac_cv_sizeof_int+set}" = set; then
51670 $as_echo_n "(cached) " >&6
51672 if test "$cross_compiling" = yes; then
51673 # Depending upon the size, compute the lo and hi bounds.
51674 cat >conftest.$ac_ext <<_ACEOF
51677 cat confdefs.h >>conftest.$ac_ext
51678 cat >>conftest.$ac_ext <<_ACEOF
51679 /* end confdefs.h. */
51680 $ac_includes_default
51684 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
51691 rm -f conftest.$ac_objext
51692 if { (ac_try="$ac_compile"
51693 case "(($ac_try" in
51694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51695 *) ac_try_echo=$ac_try;;
51697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51698 $as_echo "$ac_try_echo") >&5
51699 (eval "$ac_compile") 2>conftest.er1
51701 grep -v '^ *+' conftest.er1 >conftest.err
51703 cat conftest.err >&5
51704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51705 (exit $ac_status); } && {
51706 test -z "$ac_c_werror_flag" ||
51707 test ! -s conftest.err
51708 } && test -s conftest.$ac_objext; then
51711 cat >conftest.$ac_ext <<_ACEOF
51714 cat confdefs.h >>conftest.$ac_ext
51715 cat >>conftest.$ac_ext <<_ACEOF
51716 /* end confdefs.h. */
51717 $ac_includes_default
51721 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51728 rm -f conftest.$ac_objext
51729 if { (ac_try="$ac_compile"
51730 case "(($ac_try" in
51731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51732 *) ac_try_echo=$ac_try;;
51734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51735 $as_echo "$ac_try_echo") >&5
51736 (eval "$ac_compile") 2>conftest.er1
51738 grep -v '^ *+' conftest.er1 >conftest.err
51740 cat conftest.err >&5
51741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51742 (exit $ac_status); } && {
51743 test -z "$ac_c_werror_flag" ||
51744 test ! -s conftest.err
51745 } && test -s conftest.$ac_objext; then
51746 ac_hi=$ac_mid; break
51748 $as_echo "$as_me: failed program was:" >&5
51749 sed 's/^/| /' conftest.$ac_ext >&5
51751 ac_lo=`expr $ac_mid + 1`
51752 if test $ac_lo -le $ac_mid; then
51756 ac_mid=`expr 2 '*' $ac_mid + 1`
51759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51762 $as_echo "$as_me: failed program was:" >&5
51763 sed 's/^/| /' conftest.$ac_ext >&5
51765 cat >conftest.$ac_ext <<_ACEOF
51768 cat confdefs.h >>conftest.$ac_ext
51769 cat >>conftest.$ac_ext <<_ACEOF
51770 /* end confdefs.h. */
51771 $ac_includes_default
51775 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
51782 rm -f conftest.$ac_objext
51783 if { (ac_try="$ac_compile"
51784 case "(($ac_try" in
51785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51786 *) ac_try_echo=$ac_try;;
51788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51789 $as_echo "$ac_try_echo") >&5
51790 (eval "$ac_compile") 2>conftest.er1
51792 grep -v '^ *+' conftest.er1 >conftest.err
51794 cat conftest.err >&5
51795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51796 (exit $ac_status); } && {
51797 test -z "$ac_c_werror_flag" ||
51798 test ! -s conftest.err
51799 } && test -s conftest.$ac_objext; then
51802 cat >conftest.$ac_ext <<_ACEOF
51805 cat confdefs.h >>conftest.$ac_ext
51806 cat >>conftest.$ac_ext <<_ACEOF
51807 /* end confdefs.h. */
51808 $ac_includes_default
51812 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
51819 rm -f conftest.$ac_objext
51820 if { (ac_try="$ac_compile"
51821 case "(($ac_try" in
51822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51823 *) ac_try_echo=$ac_try;;
51825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51826 $as_echo "$ac_try_echo") >&5
51827 (eval "$ac_compile") 2>conftest.er1
51829 grep -v '^ *+' conftest.er1 >conftest.err
51831 cat conftest.err >&5
51832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51833 (exit $ac_status); } && {
51834 test -z "$ac_c_werror_flag" ||
51835 test ! -s conftest.err
51836 } && test -s conftest.$ac_objext; then
51837 ac_lo=$ac_mid; break
51839 $as_echo "$as_me: failed program was:" >&5
51840 sed 's/^/| /' conftest.$ac_ext >&5
51842 ac_hi=`expr '(' $ac_mid ')' - 1`
51843 if test $ac_mid -le $ac_hi; then
51847 ac_mid=`expr 2 '*' $ac_mid`
51850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51853 $as_echo "$as_me: failed program was:" >&5
51854 sed 's/^/| /' conftest.$ac_ext >&5
51859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51863 # Binary search between lo and hi bounds.
51864 while test "x$ac_lo" != "x$ac_hi"; do
51865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51866 cat >conftest.$ac_ext <<_ACEOF
51869 cat confdefs.h >>conftest.$ac_ext
51870 cat >>conftest.$ac_ext <<_ACEOF
51871 /* end confdefs.h. */
51872 $ac_includes_default
51876 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
51883 rm -f conftest.$ac_objext
51884 if { (ac_try="$ac_compile"
51885 case "(($ac_try" in
51886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51887 *) ac_try_echo=$ac_try;;
51889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51890 $as_echo "$ac_try_echo") >&5
51891 (eval "$ac_compile") 2>conftest.er1
51893 grep -v '^ *+' conftest.er1 >conftest.err
51895 cat conftest.err >&5
51896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51897 (exit $ac_status); } && {
51898 test -z "$ac_c_werror_flag" ||
51899 test ! -s conftest.err
51900 } && test -s conftest.$ac_objext; then
51903 $as_echo "$as_me: failed program was:" >&5
51904 sed 's/^/| /' conftest.$ac_ext >&5
51906 ac_lo=`expr '(' $ac_mid ')' + 1`
51909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51912 ?*) ac_cv_sizeof_int=$ac_lo;;
51913 '') if test "$ac_cv_type_int" = yes; then
51914 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51916 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51917 See \`config.log' for more details." >&5
51918 $as_echo "$as_me: error: cannot compute sizeof (int)
51919 See \`config.log' for more details." >&2;}
51920 { (exit 77); exit 77; }; }; }
51926 cat >conftest.$ac_ext <<_ACEOF
51929 cat confdefs.h >>conftest.$ac_ext
51930 cat >>conftest.$ac_ext <<_ACEOF
51931 /* end confdefs.h. */
51932 $ac_includes_default
51933 static long int longval () { return (long int) (sizeof (int)); }
51934 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
51936 #include <stdlib.h>
51941 FILE *f = fopen ("conftest.val", "w");
51944 if (((long int) (sizeof (int))) < 0)
51946 long int i = longval ();
51947 if (i != ((long int) (sizeof (int))))
51949 fprintf (f, "%ld", i);
51953 unsigned long int i = ulongval ();
51954 if (i != ((long int) (sizeof (int))))
51956 fprintf (f, "%lu", i);
51958 /* Do not output a trailing newline, as this causes \r\n confusion
51959 on some platforms. */
51960 return ferror (f) || fclose (f) != 0;
51966 rm -f conftest$ac_exeext
51967 if { (ac_try="$ac_link"
51968 case "(($ac_try" in
51969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51970 *) ac_try_echo=$ac_try;;
51972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51973 $as_echo "$ac_try_echo") >&5
51974 (eval "$ac_link") 2>&5
51976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51978 { (case "(($ac_try" in
51979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51980 *) ac_try_echo=$ac_try;;
51982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51983 $as_echo "$ac_try_echo") >&5
51984 (eval "$ac_try") 2>&5
51986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51987 (exit $ac_status); }; }; then
51988 ac_cv_sizeof_int=`cat conftest.val`
51990 $as_echo "$as_me: program exited with status $ac_status" >&5
51991 $as_echo "$as_me: failed program was:" >&5
51992 sed 's/^/| /' conftest.$ac_ext >&5
51994 ( exit $ac_status )
51995 if test "$ac_cv_type_int" = yes; then
51996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
51997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51998 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
51999 See \`config.log' for more details." >&5
52000 $as_echo "$as_me: error: cannot compute sizeof (int)
52001 See \`config.log' for more details." >&2;}
52002 { (exit 77); exit 77; }; }; }
52007 rm -rf conftest.dSYM
52008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52012 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
52013 $as_echo "$ac_cv_sizeof_int" >&6; }
52017 cat >>confdefs.h <<_ACEOF
52018 #define SIZEOF_INT $ac_cv_sizeof_int
52022 # The cast to long int works around a bug in the HP C Compiler
52023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52025 # This bug is HP SR number 8606223364.
52026 { $as_echo "$as_me:$LINENO: checking size of long" >&5
52027 $as_echo_n "checking size of long... " >&6; }
52028 if test "${ac_cv_sizeof_long+set}" = set; then
52029 $as_echo_n "(cached) " >&6
52031 if test "$cross_compiling" = yes; then
52032 # Depending upon the size, compute the lo and hi bounds.
52033 cat >conftest.$ac_ext <<_ACEOF
52036 cat confdefs.h >>conftest.$ac_ext
52037 cat >>conftest.$ac_ext <<_ACEOF
52038 /* end confdefs.h. */
52039 $ac_includes_default
52043 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
52050 rm -f conftest.$ac_objext
52051 if { (ac_try="$ac_compile"
52052 case "(($ac_try" in
52053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52054 *) ac_try_echo=$ac_try;;
52056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52057 $as_echo "$ac_try_echo") >&5
52058 (eval "$ac_compile") 2>conftest.er1
52060 grep -v '^ *+' conftest.er1 >conftest.err
52062 cat conftest.err >&5
52063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52064 (exit $ac_status); } && {
52065 test -z "$ac_c_werror_flag" ||
52066 test ! -s conftest.err
52067 } && test -s conftest.$ac_objext; then
52070 cat >conftest.$ac_ext <<_ACEOF
52073 cat confdefs.h >>conftest.$ac_ext
52074 cat >>conftest.$ac_ext <<_ACEOF
52075 /* end confdefs.h. */
52076 $ac_includes_default
52080 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52087 rm -f conftest.$ac_objext
52088 if { (ac_try="$ac_compile"
52089 case "(($ac_try" in
52090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52091 *) ac_try_echo=$ac_try;;
52093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52094 $as_echo "$ac_try_echo") >&5
52095 (eval "$ac_compile") 2>conftest.er1
52097 grep -v '^ *+' conftest.er1 >conftest.err
52099 cat conftest.err >&5
52100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52101 (exit $ac_status); } && {
52102 test -z "$ac_c_werror_flag" ||
52103 test ! -s conftest.err
52104 } && test -s conftest.$ac_objext; then
52105 ac_hi=$ac_mid; break
52107 $as_echo "$as_me: failed program was:" >&5
52108 sed 's/^/| /' conftest.$ac_ext >&5
52110 ac_lo=`expr $ac_mid + 1`
52111 if test $ac_lo -le $ac_mid; then
52115 ac_mid=`expr 2 '*' $ac_mid + 1`
52118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52121 $as_echo "$as_me: failed program was:" >&5
52122 sed 's/^/| /' conftest.$ac_ext >&5
52124 cat >conftest.$ac_ext <<_ACEOF
52127 cat confdefs.h >>conftest.$ac_ext
52128 cat >>conftest.$ac_ext <<_ACEOF
52129 /* end confdefs.h. */
52130 $ac_includes_default
52134 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
52141 rm -f conftest.$ac_objext
52142 if { (ac_try="$ac_compile"
52143 case "(($ac_try" in
52144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52145 *) ac_try_echo=$ac_try;;
52147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52148 $as_echo "$ac_try_echo") >&5
52149 (eval "$ac_compile") 2>conftest.er1
52151 grep -v '^ *+' conftest.er1 >conftest.err
52153 cat conftest.err >&5
52154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52155 (exit $ac_status); } && {
52156 test -z "$ac_c_werror_flag" ||
52157 test ! -s conftest.err
52158 } && test -s conftest.$ac_objext; then
52161 cat >conftest.$ac_ext <<_ACEOF
52164 cat confdefs.h >>conftest.$ac_ext
52165 cat >>conftest.$ac_ext <<_ACEOF
52166 /* end confdefs.h. */
52167 $ac_includes_default
52171 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
52178 rm -f conftest.$ac_objext
52179 if { (ac_try="$ac_compile"
52180 case "(($ac_try" in
52181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52182 *) ac_try_echo=$ac_try;;
52184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52185 $as_echo "$ac_try_echo") >&5
52186 (eval "$ac_compile") 2>conftest.er1
52188 grep -v '^ *+' conftest.er1 >conftest.err
52190 cat conftest.err >&5
52191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52192 (exit $ac_status); } && {
52193 test -z "$ac_c_werror_flag" ||
52194 test ! -s conftest.err
52195 } && test -s conftest.$ac_objext; then
52196 ac_lo=$ac_mid; break
52198 $as_echo "$as_me: failed program was:" >&5
52199 sed 's/^/| /' conftest.$ac_ext >&5
52201 ac_hi=`expr '(' $ac_mid ')' - 1`
52202 if test $ac_mid -le $ac_hi; then
52206 ac_mid=`expr 2 '*' $ac_mid`
52209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52212 $as_echo "$as_me: failed program was:" >&5
52213 sed 's/^/| /' conftest.$ac_ext >&5
52218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52222 # Binary search between lo and hi bounds.
52223 while test "x$ac_lo" != "x$ac_hi"; do
52224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52225 cat >conftest.$ac_ext <<_ACEOF
52228 cat confdefs.h >>conftest.$ac_ext
52229 cat >>conftest.$ac_ext <<_ACEOF
52230 /* end confdefs.h. */
52231 $ac_includes_default
52235 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52242 rm -f conftest.$ac_objext
52243 if { (ac_try="$ac_compile"
52244 case "(($ac_try" in
52245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52246 *) ac_try_echo=$ac_try;;
52248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52249 $as_echo "$ac_try_echo") >&5
52250 (eval "$ac_compile") 2>conftest.er1
52252 grep -v '^ *+' conftest.er1 >conftest.err
52254 cat conftest.err >&5
52255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52256 (exit $ac_status); } && {
52257 test -z "$ac_c_werror_flag" ||
52258 test ! -s conftest.err
52259 } && test -s conftest.$ac_objext; then
52262 $as_echo "$as_me: failed program was:" >&5
52263 sed 's/^/| /' conftest.$ac_ext >&5
52265 ac_lo=`expr '(' $ac_mid ')' + 1`
52268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52271 ?*) ac_cv_sizeof_long=$ac_lo;;
52272 '') if test "$ac_cv_type_long" = yes; then
52273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52276 See \`config.log' for more details." >&5
52277 $as_echo "$as_me: error: cannot compute sizeof (long)
52278 See \`config.log' for more details." >&2;}
52279 { (exit 77); exit 77; }; }; }
52281 ac_cv_sizeof_long=0
52285 cat >conftest.$ac_ext <<_ACEOF
52288 cat confdefs.h >>conftest.$ac_ext
52289 cat >>conftest.$ac_ext <<_ACEOF
52290 /* end confdefs.h. */
52291 $ac_includes_default
52292 static long int longval () { return (long int) (sizeof (long)); }
52293 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
52295 #include <stdlib.h>
52300 FILE *f = fopen ("conftest.val", "w");
52303 if (((long int) (sizeof (long))) < 0)
52305 long int i = longval ();
52306 if (i != ((long int) (sizeof (long))))
52308 fprintf (f, "%ld", i);
52312 unsigned long int i = ulongval ();
52313 if (i != ((long int) (sizeof (long))))
52315 fprintf (f, "%lu", i);
52317 /* Do not output a trailing newline, as this causes \r\n confusion
52318 on some platforms. */
52319 return ferror (f) || fclose (f) != 0;
52325 rm -f conftest$ac_exeext
52326 if { (ac_try="$ac_link"
52327 case "(($ac_try" in
52328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52329 *) ac_try_echo=$ac_try;;
52331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52332 $as_echo "$ac_try_echo") >&5
52333 (eval "$ac_link") 2>&5
52335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52337 { (case "(($ac_try" in
52338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52339 *) ac_try_echo=$ac_try;;
52341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52342 $as_echo "$ac_try_echo") >&5
52343 (eval "$ac_try") 2>&5
52345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52346 (exit $ac_status); }; }; then
52347 ac_cv_sizeof_long=`cat conftest.val`
52349 $as_echo "$as_me: program exited with status $ac_status" >&5
52350 $as_echo "$as_me: failed program was:" >&5
52351 sed 's/^/| /' conftest.$ac_ext >&5
52353 ( exit $ac_status )
52354 if test "$ac_cv_type_long" = yes; then
52355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52358 See \`config.log' for more details." >&5
52359 $as_echo "$as_me: error: cannot compute sizeof (long)
52360 See \`config.log' for more details." >&2;}
52361 { (exit 77); exit 77; }; }; }
52363 ac_cv_sizeof_long=0
52366 rm -rf conftest.dSYM
52367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
52372 $as_echo "$ac_cv_sizeof_long" >&6; }
52376 cat >>confdefs.h <<_ACEOF
52377 #define SIZEOF_LONG $ac_cv_sizeof_long
52381 # The cast to long int works around a bug in the HP C Compiler
52382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52384 # This bug is HP SR number 8606223364.
52385 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
52386 $as_echo_n "checking size of long long... " >&6; }
52387 if test "${ac_cv_sizeof_long_long+set}" = set; then
52388 $as_echo_n "(cached) " >&6
52390 if test "$cross_compiling" = yes; then
52391 # Depending upon the size, compute the lo and hi bounds.
52392 cat >conftest.$ac_ext <<_ACEOF
52395 cat confdefs.h >>conftest.$ac_ext
52396 cat >>conftest.$ac_ext <<_ACEOF
52397 /* end confdefs.h. */
52398 $ac_includes_default
52402 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
52409 rm -f conftest.$ac_objext
52410 if { (ac_try="$ac_compile"
52411 case "(($ac_try" in
52412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52413 *) ac_try_echo=$ac_try;;
52415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52416 $as_echo "$ac_try_echo") >&5
52417 (eval "$ac_compile") 2>conftest.er1
52419 grep -v '^ *+' conftest.er1 >conftest.err
52421 cat conftest.err >&5
52422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52423 (exit $ac_status); } && {
52424 test -z "$ac_c_werror_flag" ||
52425 test ! -s conftest.err
52426 } && test -s conftest.$ac_objext; then
52429 cat >conftest.$ac_ext <<_ACEOF
52432 cat confdefs.h >>conftest.$ac_ext
52433 cat >>conftest.$ac_ext <<_ACEOF
52434 /* end confdefs.h. */
52435 $ac_includes_default
52439 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52446 rm -f conftest.$ac_objext
52447 if { (ac_try="$ac_compile"
52448 case "(($ac_try" in
52449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52450 *) ac_try_echo=$ac_try;;
52452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52453 $as_echo "$ac_try_echo") >&5
52454 (eval "$ac_compile") 2>conftest.er1
52456 grep -v '^ *+' conftest.er1 >conftest.err
52458 cat conftest.err >&5
52459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52460 (exit $ac_status); } && {
52461 test -z "$ac_c_werror_flag" ||
52462 test ! -s conftest.err
52463 } && test -s conftest.$ac_objext; then
52464 ac_hi=$ac_mid; break
52466 $as_echo "$as_me: failed program was:" >&5
52467 sed 's/^/| /' conftest.$ac_ext >&5
52469 ac_lo=`expr $ac_mid + 1`
52470 if test $ac_lo -le $ac_mid; then
52474 ac_mid=`expr 2 '*' $ac_mid + 1`
52477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52480 $as_echo "$as_me: failed program was:" >&5
52481 sed 's/^/| /' conftest.$ac_ext >&5
52483 cat >conftest.$ac_ext <<_ACEOF
52486 cat confdefs.h >>conftest.$ac_ext
52487 cat >>conftest.$ac_ext <<_ACEOF
52488 /* end confdefs.h. */
52489 $ac_includes_default
52493 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
52500 rm -f conftest.$ac_objext
52501 if { (ac_try="$ac_compile"
52502 case "(($ac_try" in
52503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52504 *) ac_try_echo=$ac_try;;
52506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52507 $as_echo "$ac_try_echo") >&5
52508 (eval "$ac_compile") 2>conftest.er1
52510 grep -v '^ *+' conftest.er1 >conftest.err
52512 cat conftest.err >&5
52513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52514 (exit $ac_status); } && {
52515 test -z "$ac_c_werror_flag" ||
52516 test ! -s conftest.err
52517 } && test -s conftest.$ac_objext; then
52520 cat >conftest.$ac_ext <<_ACEOF
52523 cat confdefs.h >>conftest.$ac_ext
52524 cat >>conftest.$ac_ext <<_ACEOF
52525 /* end confdefs.h. */
52526 $ac_includes_default
52530 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
52537 rm -f conftest.$ac_objext
52538 if { (ac_try="$ac_compile"
52539 case "(($ac_try" in
52540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52541 *) ac_try_echo=$ac_try;;
52543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52544 $as_echo "$ac_try_echo") >&5
52545 (eval "$ac_compile") 2>conftest.er1
52547 grep -v '^ *+' conftest.er1 >conftest.err
52549 cat conftest.err >&5
52550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52551 (exit $ac_status); } && {
52552 test -z "$ac_c_werror_flag" ||
52553 test ! -s conftest.err
52554 } && test -s conftest.$ac_objext; then
52555 ac_lo=$ac_mid; break
52557 $as_echo "$as_me: failed program was:" >&5
52558 sed 's/^/| /' conftest.$ac_ext >&5
52560 ac_hi=`expr '(' $ac_mid ')' - 1`
52561 if test $ac_mid -le $ac_hi; then
52565 ac_mid=`expr 2 '*' $ac_mid`
52568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52571 $as_echo "$as_me: failed program was:" >&5
52572 sed 's/^/| /' conftest.$ac_ext >&5
52577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52581 # Binary search between lo and hi bounds.
52582 while test "x$ac_lo" != "x$ac_hi"; do
52583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52584 cat >conftest.$ac_ext <<_ACEOF
52587 cat confdefs.h >>conftest.$ac_ext
52588 cat >>conftest.$ac_ext <<_ACEOF
52589 /* end confdefs.h. */
52590 $ac_includes_default
52594 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52601 rm -f conftest.$ac_objext
52602 if { (ac_try="$ac_compile"
52603 case "(($ac_try" in
52604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52605 *) ac_try_echo=$ac_try;;
52607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52608 $as_echo "$ac_try_echo") >&5
52609 (eval "$ac_compile") 2>conftest.er1
52611 grep -v '^ *+' conftest.er1 >conftest.err
52613 cat conftest.err >&5
52614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615 (exit $ac_status); } && {
52616 test -z "$ac_c_werror_flag" ||
52617 test ! -s conftest.err
52618 } && test -s conftest.$ac_objext; then
52621 $as_echo "$as_me: failed program was:" >&5
52622 sed 's/^/| /' conftest.$ac_ext >&5
52624 ac_lo=`expr '(' $ac_mid ')' + 1`
52627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52630 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52631 '') if test "$ac_cv_type_long_long" = yes; then
52632 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52634 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52635 See \`config.log' for more details." >&5
52636 $as_echo "$as_me: error: cannot compute sizeof (long long)
52637 See \`config.log' for more details." >&2;}
52638 { (exit 77); exit 77; }; }; }
52640 ac_cv_sizeof_long_long=0
52644 cat >conftest.$ac_ext <<_ACEOF
52647 cat confdefs.h >>conftest.$ac_ext
52648 cat >>conftest.$ac_ext <<_ACEOF
52649 /* end confdefs.h. */
52650 $ac_includes_default
52651 static long int longval () { return (long int) (sizeof (long long)); }
52652 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
52654 #include <stdlib.h>
52659 FILE *f = fopen ("conftest.val", "w");
52662 if (((long int) (sizeof (long long))) < 0)
52664 long int i = longval ();
52665 if (i != ((long int) (sizeof (long long))))
52667 fprintf (f, "%ld", i);
52671 unsigned long int i = ulongval ();
52672 if (i != ((long int) (sizeof (long long))))
52674 fprintf (f, "%lu", i);
52676 /* Do not output a trailing newline, as this causes \r\n confusion
52677 on some platforms. */
52678 return ferror (f) || fclose (f) != 0;
52684 rm -f conftest$ac_exeext
52685 if { (ac_try="$ac_link"
52686 case "(($ac_try" in
52687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52688 *) ac_try_echo=$ac_try;;
52690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52691 $as_echo "$ac_try_echo") >&5
52692 (eval "$ac_link") 2>&5
52694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52696 { (case "(($ac_try" in
52697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52698 *) ac_try_echo=$ac_try;;
52700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52701 $as_echo "$ac_try_echo") >&5
52702 (eval "$ac_try") 2>&5
52704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52705 (exit $ac_status); }; }; then
52706 ac_cv_sizeof_long_long=`cat conftest.val`
52708 $as_echo "$as_me: program exited with status $ac_status" >&5
52709 $as_echo "$as_me: failed program was:" >&5
52710 sed 's/^/| /' conftest.$ac_ext >&5
52712 ( exit $ac_status )
52713 if test "$ac_cv_type_long_long" = yes; then
52714 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52716 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52717 See \`config.log' for more details." >&5
52718 $as_echo "$as_me: error: cannot compute sizeof (long long)
52719 See \`config.log' for more details." >&2;}
52720 { (exit 77); exit 77; }; }; }
52722 ac_cv_sizeof_long_long=0
52725 rm -rf conftest.dSYM
52726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52730 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
52731 $as_echo "$ac_cv_sizeof_long_long" >&6; }
52735 cat >>confdefs.h <<_ACEOF
52736 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
52740 # The cast to long int works around a bug in the HP C Compiler
52741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52743 # This bug is HP SR number 8606223364.
52744 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
52745 $as_echo_n "checking size of intmax_t... " >&6; }
52746 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
52747 $as_echo_n "(cached) " >&6
52749 if test "$cross_compiling" = yes; then
52750 # Depending upon the size, compute the lo and hi bounds.
52751 cat >conftest.$ac_ext <<_ACEOF
52754 cat confdefs.h >>conftest.$ac_ext
52755 cat >>conftest.$ac_ext <<_ACEOF
52756 /* end confdefs.h. */
52757 $ac_includes_default
52761 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
52768 rm -f conftest.$ac_objext
52769 if { (ac_try="$ac_compile"
52770 case "(($ac_try" in
52771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52772 *) ac_try_echo=$ac_try;;
52774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52775 $as_echo "$ac_try_echo") >&5
52776 (eval "$ac_compile") 2>conftest.er1
52778 grep -v '^ *+' conftest.er1 >conftest.err
52780 cat conftest.err >&5
52781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52782 (exit $ac_status); } && {
52783 test -z "$ac_c_werror_flag" ||
52784 test ! -s conftest.err
52785 } && test -s conftest.$ac_objext; then
52788 cat >conftest.$ac_ext <<_ACEOF
52791 cat confdefs.h >>conftest.$ac_ext
52792 cat >>conftest.$ac_ext <<_ACEOF
52793 /* end confdefs.h. */
52794 $ac_includes_default
52798 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52805 rm -f conftest.$ac_objext
52806 if { (ac_try="$ac_compile"
52807 case "(($ac_try" in
52808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52809 *) ac_try_echo=$ac_try;;
52811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52812 $as_echo "$ac_try_echo") >&5
52813 (eval "$ac_compile") 2>conftest.er1
52815 grep -v '^ *+' conftest.er1 >conftest.err
52817 cat conftest.err >&5
52818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52819 (exit $ac_status); } && {
52820 test -z "$ac_c_werror_flag" ||
52821 test ! -s conftest.err
52822 } && test -s conftest.$ac_objext; then
52823 ac_hi=$ac_mid; break
52825 $as_echo "$as_me: failed program was:" >&5
52826 sed 's/^/| /' conftest.$ac_ext >&5
52828 ac_lo=`expr $ac_mid + 1`
52829 if test $ac_lo -le $ac_mid; then
52833 ac_mid=`expr 2 '*' $ac_mid + 1`
52836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52839 $as_echo "$as_me: failed program was:" >&5
52840 sed 's/^/| /' conftest.$ac_ext >&5
52842 cat >conftest.$ac_ext <<_ACEOF
52845 cat confdefs.h >>conftest.$ac_ext
52846 cat >>conftest.$ac_ext <<_ACEOF
52847 /* end confdefs.h. */
52848 $ac_includes_default
52852 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
52859 rm -f conftest.$ac_objext
52860 if { (ac_try="$ac_compile"
52861 case "(($ac_try" in
52862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52863 *) ac_try_echo=$ac_try;;
52865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52866 $as_echo "$ac_try_echo") >&5
52867 (eval "$ac_compile") 2>conftest.er1
52869 grep -v '^ *+' conftest.er1 >conftest.err
52871 cat conftest.err >&5
52872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52873 (exit $ac_status); } && {
52874 test -z "$ac_c_werror_flag" ||
52875 test ! -s conftest.err
52876 } && test -s conftest.$ac_objext; then
52879 cat >conftest.$ac_ext <<_ACEOF
52882 cat confdefs.h >>conftest.$ac_ext
52883 cat >>conftest.$ac_ext <<_ACEOF
52884 /* end confdefs.h. */
52885 $ac_includes_default
52889 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
52896 rm -f conftest.$ac_objext
52897 if { (ac_try="$ac_compile"
52898 case "(($ac_try" in
52899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52900 *) ac_try_echo=$ac_try;;
52902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52903 $as_echo "$ac_try_echo") >&5
52904 (eval "$ac_compile") 2>conftest.er1
52906 grep -v '^ *+' conftest.er1 >conftest.err
52908 cat conftest.err >&5
52909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52910 (exit $ac_status); } && {
52911 test -z "$ac_c_werror_flag" ||
52912 test ! -s conftest.err
52913 } && test -s conftest.$ac_objext; then
52914 ac_lo=$ac_mid; break
52916 $as_echo "$as_me: failed program was:" >&5
52917 sed 's/^/| /' conftest.$ac_ext >&5
52919 ac_hi=`expr '(' $ac_mid ')' - 1`
52920 if test $ac_mid -le $ac_hi; then
52924 ac_mid=`expr 2 '*' $ac_mid`
52927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52930 $as_echo "$as_me: failed program was:" >&5
52931 sed 's/^/| /' conftest.$ac_ext >&5
52936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52940 # Binary search between lo and hi bounds.
52941 while test "x$ac_lo" != "x$ac_hi"; do
52942 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52943 cat >conftest.$ac_ext <<_ACEOF
52946 cat confdefs.h >>conftest.$ac_ext
52947 cat >>conftest.$ac_ext <<_ACEOF
52948 /* end confdefs.h. */
52949 $ac_includes_default
52953 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
52960 rm -f conftest.$ac_objext
52961 if { (ac_try="$ac_compile"
52962 case "(($ac_try" in
52963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52964 *) ac_try_echo=$ac_try;;
52966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52967 $as_echo "$ac_try_echo") >&5
52968 (eval "$ac_compile") 2>conftest.er1
52970 grep -v '^ *+' conftest.er1 >conftest.err
52972 cat conftest.err >&5
52973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52974 (exit $ac_status); } && {
52975 test -z "$ac_c_werror_flag" ||
52976 test ! -s conftest.err
52977 } && test -s conftest.$ac_objext; then
52980 $as_echo "$as_me: failed program was:" >&5
52981 sed 's/^/| /' conftest.$ac_ext >&5
52983 ac_lo=`expr '(' $ac_mid ')' + 1`
52986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52989 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
52990 '') if test "$ac_cv_type_intmax_t" = yes; then
52991 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52993 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
52994 See \`config.log' for more details." >&5
52995 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
52996 See \`config.log' for more details." >&2;}
52997 { (exit 77); exit 77; }; }; }
52999 ac_cv_sizeof_intmax_t=0
53003 cat >conftest.$ac_ext <<_ACEOF
53006 cat confdefs.h >>conftest.$ac_ext
53007 cat >>conftest.$ac_ext <<_ACEOF
53008 /* end confdefs.h. */
53009 $ac_includes_default
53010 static long int longval () { return (long int) (sizeof (intmax_t)); }
53011 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
53013 #include <stdlib.h>
53018 FILE *f = fopen ("conftest.val", "w");
53021 if (((long int) (sizeof (intmax_t))) < 0)
53023 long int i = longval ();
53024 if (i != ((long int) (sizeof (intmax_t))))
53026 fprintf (f, "%ld", i);
53030 unsigned long int i = ulongval ();
53031 if (i != ((long int) (sizeof (intmax_t))))
53033 fprintf (f, "%lu", i);
53035 /* Do not output a trailing newline, as this causes \r\n confusion
53036 on some platforms. */
53037 return ferror (f) || fclose (f) != 0;
53043 rm -f conftest$ac_exeext
53044 if { (ac_try="$ac_link"
53045 case "(($ac_try" in
53046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53047 *) ac_try_echo=$ac_try;;
53049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53050 $as_echo "$ac_try_echo") >&5
53051 (eval "$ac_link") 2>&5
53053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53055 { (case "(($ac_try" in
53056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53057 *) ac_try_echo=$ac_try;;
53059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53060 $as_echo "$ac_try_echo") >&5
53061 (eval "$ac_try") 2>&5
53063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53064 (exit $ac_status); }; }; then
53065 ac_cv_sizeof_intmax_t=`cat conftest.val`
53067 $as_echo "$as_me: program exited with status $ac_status" >&5
53068 $as_echo "$as_me: failed program was:" >&5
53069 sed 's/^/| /' conftest.$ac_ext >&5
53071 ( exit $ac_status )
53072 if test "$ac_cv_type_intmax_t" = yes; then
53073 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53075 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
53076 See \`config.log' for more details." >&5
53077 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
53078 See \`config.log' for more details." >&2;}
53079 { (exit 77); exit 77; }; }; }
53081 ac_cv_sizeof_intmax_t=0
53084 rm -rf conftest.dSYM
53085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53089 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
53090 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
53094 cat >>confdefs.h <<_ACEOF
53095 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
53099 # The cast to long int works around a bug in the HP C Compiler
53100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53102 # This bug is HP SR number 8606223364.
53103 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
53104 $as_echo_n "checking size of off_t... " >&6; }
53105 if test "${ac_cv_sizeof_off_t+set}" = set; then
53106 $as_echo_n "(cached) " >&6
53108 if test "$cross_compiling" = yes; then
53109 # Depending upon the size, compute the lo and hi bounds.
53110 cat >conftest.$ac_ext <<_ACEOF
53113 cat confdefs.h >>conftest.$ac_ext
53114 cat >>conftest.$ac_ext <<_ACEOF
53115 /* end confdefs.h. */
53116 $ac_includes_default
53120 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
53127 rm -f conftest.$ac_objext
53128 if { (ac_try="$ac_compile"
53129 case "(($ac_try" in
53130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53131 *) ac_try_echo=$ac_try;;
53133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53134 $as_echo "$ac_try_echo") >&5
53135 (eval "$ac_compile") 2>conftest.er1
53137 grep -v '^ *+' conftest.er1 >conftest.err
53139 cat conftest.err >&5
53140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53141 (exit $ac_status); } && {
53142 test -z "$ac_c_werror_flag" ||
53143 test ! -s conftest.err
53144 } && test -s conftest.$ac_objext; then
53147 cat >conftest.$ac_ext <<_ACEOF
53150 cat confdefs.h >>conftest.$ac_ext
53151 cat >>conftest.$ac_ext <<_ACEOF
53152 /* end confdefs.h. */
53153 $ac_includes_default
53157 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53164 rm -f conftest.$ac_objext
53165 if { (ac_try="$ac_compile"
53166 case "(($ac_try" in
53167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53168 *) ac_try_echo=$ac_try;;
53170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53171 $as_echo "$ac_try_echo") >&5
53172 (eval "$ac_compile") 2>conftest.er1
53174 grep -v '^ *+' conftest.er1 >conftest.err
53176 cat conftest.err >&5
53177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53178 (exit $ac_status); } && {
53179 test -z "$ac_c_werror_flag" ||
53180 test ! -s conftest.err
53181 } && test -s conftest.$ac_objext; then
53182 ac_hi=$ac_mid; break
53184 $as_echo "$as_me: failed program was:" >&5
53185 sed 's/^/| /' conftest.$ac_ext >&5
53187 ac_lo=`expr $ac_mid + 1`
53188 if test $ac_lo -le $ac_mid; then
53192 ac_mid=`expr 2 '*' $ac_mid + 1`
53195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53198 $as_echo "$as_me: failed program was:" >&5
53199 sed 's/^/| /' conftest.$ac_ext >&5
53201 cat >conftest.$ac_ext <<_ACEOF
53204 cat confdefs.h >>conftest.$ac_ext
53205 cat >>conftest.$ac_ext <<_ACEOF
53206 /* end confdefs.h. */
53207 $ac_includes_default
53211 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
53218 rm -f conftest.$ac_objext
53219 if { (ac_try="$ac_compile"
53220 case "(($ac_try" in
53221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53222 *) ac_try_echo=$ac_try;;
53224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53225 $as_echo "$ac_try_echo") >&5
53226 (eval "$ac_compile") 2>conftest.er1
53228 grep -v '^ *+' conftest.er1 >conftest.err
53230 cat conftest.err >&5
53231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53232 (exit $ac_status); } && {
53233 test -z "$ac_c_werror_flag" ||
53234 test ! -s conftest.err
53235 } && test -s conftest.$ac_objext; then
53238 cat >conftest.$ac_ext <<_ACEOF
53241 cat confdefs.h >>conftest.$ac_ext
53242 cat >>conftest.$ac_ext <<_ACEOF
53243 /* end confdefs.h. */
53244 $ac_includes_default
53248 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
53255 rm -f conftest.$ac_objext
53256 if { (ac_try="$ac_compile"
53257 case "(($ac_try" in
53258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53259 *) ac_try_echo=$ac_try;;
53261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53262 $as_echo "$ac_try_echo") >&5
53263 (eval "$ac_compile") 2>conftest.er1
53265 grep -v '^ *+' conftest.er1 >conftest.err
53267 cat conftest.err >&5
53268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53269 (exit $ac_status); } && {
53270 test -z "$ac_c_werror_flag" ||
53271 test ! -s conftest.err
53272 } && test -s conftest.$ac_objext; then
53273 ac_lo=$ac_mid; break
53275 $as_echo "$as_me: failed program was:" >&5
53276 sed 's/^/| /' conftest.$ac_ext >&5
53278 ac_hi=`expr '(' $ac_mid ')' - 1`
53279 if test $ac_mid -le $ac_hi; then
53283 ac_mid=`expr 2 '*' $ac_mid`
53286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53289 $as_echo "$as_me: failed program was:" >&5
53290 sed 's/^/| /' conftest.$ac_ext >&5
53295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53299 # Binary search between lo and hi bounds.
53300 while test "x$ac_lo" != "x$ac_hi"; do
53301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53302 cat >conftest.$ac_ext <<_ACEOF
53305 cat confdefs.h >>conftest.$ac_ext
53306 cat >>conftest.$ac_ext <<_ACEOF
53307 /* end confdefs.h. */
53308 $ac_includes_default
53312 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53319 rm -f conftest.$ac_objext
53320 if { (ac_try="$ac_compile"
53321 case "(($ac_try" in
53322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53323 *) ac_try_echo=$ac_try;;
53325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53326 $as_echo "$ac_try_echo") >&5
53327 (eval "$ac_compile") 2>conftest.er1
53329 grep -v '^ *+' conftest.er1 >conftest.err
53331 cat conftest.err >&5
53332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53333 (exit $ac_status); } && {
53334 test -z "$ac_c_werror_flag" ||
53335 test ! -s conftest.err
53336 } && test -s conftest.$ac_objext; then
53339 $as_echo "$as_me: failed program was:" >&5
53340 sed 's/^/| /' conftest.$ac_ext >&5
53342 ac_lo=`expr '(' $ac_mid ')' + 1`
53345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53348 ?*) ac_cv_sizeof_off_t=$ac_lo;;
53349 '') if test "$ac_cv_type_off_t" = yes; then
53350 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53352 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53353 See \`config.log' for more details." >&5
53354 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53355 See \`config.log' for more details." >&2;}
53356 { (exit 77); exit 77; }; }; }
53358 ac_cv_sizeof_off_t=0
53362 cat >conftest.$ac_ext <<_ACEOF
53365 cat confdefs.h >>conftest.$ac_ext
53366 cat >>conftest.$ac_ext <<_ACEOF
53367 /* end confdefs.h. */
53368 $ac_includes_default
53369 static long int longval () { return (long int) (sizeof (off_t)); }
53370 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
53372 #include <stdlib.h>
53377 FILE *f = fopen ("conftest.val", "w");
53380 if (((long int) (sizeof (off_t))) < 0)
53382 long int i = longval ();
53383 if (i != ((long int) (sizeof (off_t))))
53385 fprintf (f, "%ld", i);
53389 unsigned long int i = ulongval ();
53390 if (i != ((long int) (sizeof (off_t))))
53392 fprintf (f, "%lu", i);
53394 /* Do not output a trailing newline, as this causes \r\n confusion
53395 on some platforms. */
53396 return ferror (f) || fclose (f) != 0;
53402 rm -f conftest$ac_exeext
53403 if { (ac_try="$ac_link"
53404 case "(($ac_try" in
53405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53406 *) ac_try_echo=$ac_try;;
53408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53409 $as_echo "$ac_try_echo") >&5
53410 (eval "$ac_link") 2>&5
53412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53414 { (case "(($ac_try" in
53415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53416 *) ac_try_echo=$ac_try;;
53418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53419 $as_echo "$ac_try_echo") >&5
53420 (eval "$ac_try") 2>&5
53422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53423 (exit $ac_status); }; }; then
53424 ac_cv_sizeof_off_t=`cat conftest.val`
53426 $as_echo "$as_me: program exited with status $ac_status" >&5
53427 $as_echo "$as_me: failed program was:" >&5
53428 sed 's/^/| /' conftest.$ac_ext >&5
53430 ( exit $ac_status )
53431 if test "$ac_cv_type_off_t" = yes; then
53432 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53434 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53435 See \`config.log' for more details." >&5
53436 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53437 See \`config.log' for more details." >&2;}
53438 { (exit 77); exit 77; }; }; }
53440 ac_cv_sizeof_off_t=0
53443 rm -rf conftest.dSYM
53444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53448 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
53449 $as_echo "$ac_cv_sizeof_off_t" >&6; }
53453 cat >>confdefs.h <<_ACEOF
53454 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
53458 # The cast to long int works around a bug in the HP C Compiler
53459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53461 # This bug is HP SR number 8606223364.
53462 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
53463 $as_echo_n "checking size of size_t... " >&6; }
53464 if test "${ac_cv_sizeof_size_t+set}" = set; then
53465 $as_echo_n "(cached) " >&6
53467 if test "$cross_compiling" = yes; then
53468 # Depending upon the size, compute the lo and hi bounds.
53469 cat >conftest.$ac_ext <<_ACEOF
53472 cat confdefs.h >>conftest.$ac_ext
53473 cat >>conftest.$ac_ext <<_ACEOF
53474 /* end confdefs.h. */
53475 $ac_includes_default
53479 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
53486 rm -f conftest.$ac_objext
53487 if { (ac_try="$ac_compile"
53488 case "(($ac_try" in
53489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53490 *) ac_try_echo=$ac_try;;
53492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53493 $as_echo "$ac_try_echo") >&5
53494 (eval "$ac_compile") 2>conftest.er1
53496 grep -v '^ *+' conftest.er1 >conftest.err
53498 cat conftest.err >&5
53499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53500 (exit $ac_status); } && {
53501 test -z "$ac_c_werror_flag" ||
53502 test ! -s conftest.err
53503 } && test -s conftest.$ac_objext; then
53506 cat >conftest.$ac_ext <<_ACEOF
53509 cat confdefs.h >>conftest.$ac_ext
53510 cat >>conftest.$ac_ext <<_ACEOF
53511 /* end confdefs.h. */
53512 $ac_includes_default
53516 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53523 rm -f conftest.$ac_objext
53524 if { (ac_try="$ac_compile"
53525 case "(($ac_try" in
53526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53527 *) ac_try_echo=$ac_try;;
53529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53530 $as_echo "$ac_try_echo") >&5
53531 (eval "$ac_compile") 2>conftest.er1
53533 grep -v '^ *+' conftest.er1 >conftest.err
53535 cat conftest.err >&5
53536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53537 (exit $ac_status); } && {
53538 test -z "$ac_c_werror_flag" ||
53539 test ! -s conftest.err
53540 } && test -s conftest.$ac_objext; then
53541 ac_hi=$ac_mid; break
53543 $as_echo "$as_me: failed program was:" >&5
53544 sed 's/^/| /' conftest.$ac_ext >&5
53546 ac_lo=`expr $ac_mid + 1`
53547 if test $ac_lo -le $ac_mid; then
53551 ac_mid=`expr 2 '*' $ac_mid + 1`
53554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53557 $as_echo "$as_me: failed program was:" >&5
53558 sed 's/^/| /' conftest.$ac_ext >&5
53560 cat >conftest.$ac_ext <<_ACEOF
53563 cat confdefs.h >>conftest.$ac_ext
53564 cat >>conftest.$ac_ext <<_ACEOF
53565 /* end confdefs.h. */
53566 $ac_includes_default
53570 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53577 rm -f conftest.$ac_objext
53578 if { (ac_try="$ac_compile"
53579 case "(($ac_try" in
53580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53581 *) ac_try_echo=$ac_try;;
53583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53584 $as_echo "$ac_try_echo") >&5
53585 (eval "$ac_compile") 2>conftest.er1
53587 grep -v '^ *+' conftest.er1 >conftest.err
53589 cat conftest.err >&5
53590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53591 (exit $ac_status); } && {
53592 test -z "$ac_c_werror_flag" ||
53593 test ! -s conftest.err
53594 } && test -s conftest.$ac_objext; then
53597 cat >conftest.$ac_ext <<_ACEOF
53600 cat confdefs.h >>conftest.$ac_ext
53601 cat >>conftest.$ac_ext <<_ACEOF
53602 /* end confdefs.h. */
53603 $ac_includes_default
53607 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53614 rm -f conftest.$ac_objext
53615 if { (ac_try="$ac_compile"
53616 case "(($ac_try" in
53617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53618 *) ac_try_echo=$ac_try;;
53620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53621 $as_echo "$ac_try_echo") >&5
53622 (eval "$ac_compile") 2>conftest.er1
53624 grep -v '^ *+' conftest.er1 >conftest.err
53626 cat conftest.err >&5
53627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53628 (exit $ac_status); } && {
53629 test -z "$ac_c_werror_flag" ||
53630 test ! -s conftest.err
53631 } && test -s conftest.$ac_objext; then
53632 ac_lo=$ac_mid; break
53634 $as_echo "$as_me: failed program was:" >&5
53635 sed 's/^/| /' conftest.$ac_ext >&5
53637 ac_hi=`expr '(' $ac_mid ')' - 1`
53638 if test $ac_mid -le $ac_hi; then
53642 ac_mid=`expr 2 '*' $ac_mid`
53645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53648 $as_echo "$as_me: failed program was:" >&5
53649 sed 's/^/| /' conftest.$ac_ext >&5
53654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53658 # Binary search between lo and hi bounds.
53659 while test "x$ac_lo" != "x$ac_hi"; do
53660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53661 cat >conftest.$ac_ext <<_ACEOF
53664 cat confdefs.h >>conftest.$ac_ext
53665 cat >>conftest.$ac_ext <<_ACEOF
53666 /* end confdefs.h. */
53667 $ac_includes_default
53671 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53678 rm -f conftest.$ac_objext
53679 if { (ac_try="$ac_compile"
53680 case "(($ac_try" in
53681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53682 *) ac_try_echo=$ac_try;;
53684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53685 $as_echo "$ac_try_echo") >&5
53686 (eval "$ac_compile") 2>conftest.er1
53688 grep -v '^ *+' conftest.er1 >conftest.err
53690 cat conftest.err >&5
53691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53692 (exit $ac_status); } && {
53693 test -z "$ac_c_werror_flag" ||
53694 test ! -s conftest.err
53695 } && test -s conftest.$ac_objext; then
53698 $as_echo "$as_me: failed program was:" >&5
53699 sed 's/^/| /' conftest.$ac_ext >&5
53701 ac_lo=`expr '(' $ac_mid ')' + 1`
53704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53707 ?*) ac_cv_sizeof_size_t=$ac_lo;;
53708 '') if test "$ac_cv_type_size_t" = yes; then
53709 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53711 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53712 See \`config.log' for more details." >&5
53713 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53714 See \`config.log' for more details." >&2;}
53715 { (exit 77); exit 77; }; }; }
53717 ac_cv_sizeof_size_t=0
53721 cat >conftest.$ac_ext <<_ACEOF
53724 cat confdefs.h >>conftest.$ac_ext
53725 cat >>conftest.$ac_ext <<_ACEOF
53726 /* end confdefs.h. */
53727 $ac_includes_default
53728 static long int longval () { return (long int) (sizeof (size_t)); }
53729 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
53731 #include <stdlib.h>
53736 FILE *f = fopen ("conftest.val", "w");
53739 if (((long int) (sizeof (size_t))) < 0)
53741 long int i = longval ();
53742 if (i != ((long int) (sizeof (size_t))))
53744 fprintf (f, "%ld", i);
53748 unsigned long int i = ulongval ();
53749 if (i != ((long int) (sizeof (size_t))))
53751 fprintf (f, "%lu", i);
53753 /* Do not output a trailing newline, as this causes \r\n confusion
53754 on some platforms. */
53755 return ferror (f) || fclose (f) != 0;
53761 rm -f conftest$ac_exeext
53762 if { (ac_try="$ac_link"
53763 case "(($ac_try" in
53764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53765 *) ac_try_echo=$ac_try;;
53767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53768 $as_echo "$ac_try_echo") >&5
53769 (eval "$ac_link") 2>&5
53771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53773 { (case "(($ac_try" in
53774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53775 *) ac_try_echo=$ac_try;;
53777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53778 $as_echo "$ac_try_echo") >&5
53779 (eval "$ac_try") 2>&5
53781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53782 (exit $ac_status); }; }; then
53783 ac_cv_sizeof_size_t=`cat conftest.val`
53785 $as_echo "$as_me: program exited with status $ac_status" >&5
53786 $as_echo "$as_me: failed program was:" >&5
53787 sed 's/^/| /' conftest.$ac_ext >&5
53789 ( exit $ac_status )
53790 if test "$ac_cv_type_size_t" = yes; then
53791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53793 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53794 See \`config.log' for more details." >&5
53795 $as_echo "$as_me: error: cannot compute sizeof (size_t)
53796 See \`config.log' for more details." >&2;}
53797 { (exit 77); exit 77; }; }; }
53799 ac_cv_sizeof_size_t=0
53802 rm -rf conftest.dSYM
53803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53807 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53808 $as_echo "$ac_cv_sizeof_size_t" >&6; }
53812 cat >>confdefs.h <<_ACEOF
53813 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53817 # The cast to long int works around a bug in the HP C Compiler
53818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53820 # This bug is HP SR number 8606223364.
53821 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
53822 $as_echo_n "checking size of ssize_t... " >&6; }
53823 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
53824 $as_echo_n "(cached) " >&6
53826 if test "$cross_compiling" = yes; then
53827 # Depending upon the size, compute the lo and hi bounds.
53828 cat >conftest.$ac_ext <<_ACEOF
53831 cat confdefs.h >>conftest.$ac_ext
53832 cat >>conftest.$ac_ext <<_ACEOF
53833 /* end confdefs.h. */
53834 $ac_includes_default
53838 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
53845 rm -f conftest.$ac_objext
53846 if { (ac_try="$ac_compile"
53847 case "(($ac_try" in
53848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53849 *) ac_try_echo=$ac_try;;
53851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53852 $as_echo "$ac_try_echo") >&5
53853 (eval "$ac_compile") 2>conftest.er1
53855 grep -v '^ *+' conftest.er1 >conftest.err
53857 cat conftest.err >&5
53858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53859 (exit $ac_status); } && {
53860 test -z "$ac_c_werror_flag" ||
53861 test ! -s conftest.err
53862 } && test -s conftest.$ac_objext; then
53865 cat >conftest.$ac_ext <<_ACEOF
53868 cat confdefs.h >>conftest.$ac_ext
53869 cat >>conftest.$ac_ext <<_ACEOF
53870 /* end confdefs.h. */
53871 $ac_includes_default
53875 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
53882 rm -f conftest.$ac_objext
53883 if { (ac_try="$ac_compile"
53884 case "(($ac_try" in
53885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53886 *) ac_try_echo=$ac_try;;
53888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53889 $as_echo "$ac_try_echo") >&5
53890 (eval "$ac_compile") 2>conftest.er1
53892 grep -v '^ *+' conftest.er1 >conftest.err
53894 cat conftest.err >&5
53895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53896 (exit $ac_status); } && {
53897 test -z "$ac_c_werror_flag" ||
53898 test ! -s conftest.err
53899 } && test -s conftest.$ac_objext; then
53900 ac_hi=$ac_mid; break
53902 $as_echo "$as_me: failed program was:" >&5
53903 sed 's/^/| /' conftest.$ac_ext >&5
53905 ac_lo=`expr $ac_mid + 1`
53906 if test $ac_lo -le $ac_mid; then
53910 ac_mid=`expr 2 '*' $ac_mid + 1`
53913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53916 $as_echo "$as_me: failed program was:" >&5
53917 sed 's/^/| /' conftest.$ac_ext >&5
53919 cat >conftest.$ac_ext <<_ACEOF
53922 cat confdefs.h >>conftest.$ac_ext
53923 cat >>conftest.$ac_ext <<_ACEOF
53924 /* end confdefs.h. */
53925 $ac_includes_default
53929 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
53936 rm -f conftest.$ac_objext
53937 if { (ac_try="$ac_compile"
53938 case "(($ac_try" in
53939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53940 *) ac_try_echo=$ac_try;;
53942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53943 $as_echo "$ac_try_echo") >&5
53944 (eval "$ac_compile") 2>conftest.er1
53946 grep -v '^ *+' conftest.er1 >conftest.err
53948 cat conftest.err >&5
53949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53950 (exit $ac_status); } && {
53951 test -z "$ac_c_werror_flag" ||
53952 test ! -s conftest.err
53953 } && test -s conftest.$ac_objext; then
53956 cat >conftest.$ac_ext <<_ACEOF
53959 cat confdefs.h >>conftest.$ac_ext
53960 cat >>conftest.$ac_ext <<_ACEOF
53961 /* end confdefs.h. */
53962 $ac_includes_default
53966 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
53973 rm -f conftest.$ac_objext
53974 if { (ac_try="$ac_compile"
53975 case "(($ac_try" in
53976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53977 *) ac_try_echo=$ac_try;;
53979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53980 $as_echo "$ac_try_echo") >&5
53981 (eval "$ac_compile") 2>conftest.er1
53983 grep -v '^ *+' conftest.er1 >conftest.err
53985 cat conftest.err >&5
53986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53987 (exit $ac_status); } && {
53988 test -z "$ac_c_werror_flag" ||
53989 test ! -s conftest.err
53990 } && test -s conftest.$ac_objext; then
53991 ac_lo=$ac_mid; break
53993 $as_echo "$as_me: failed program was:" >&5
53994 sed 's/^/| /' conftest.$ac_ext >&5
53996 ac_hi=`expr '(' $ac_mid ')' - 1`
53997 if test $ac_mid -le $ac_hi; then
54001 ac_mid=`expr 2 '*' $ac_mid`
54004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54007 $as_echo "$as_me: failed program was:" >&5
54008 sed 's/^/| /' conftest.$ac_ext >&5
54013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54017 # Binary search between lo and hi bounds.
54018 while test "x$ac_lo" != "x$ac_hi"; do
54019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54020 cat >conftest.$ac_ext <<_ACEOF
54023 cat confdefs.h >>conftest.$ac_ext
54024 cat >>conftest.$ac_ext <<_ACEOF
54025 /* end confdefs.h. */
54026 $ac_includes_default
54030 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
54037 rm -f conftest.$ac_objext
54038 if { (ac_try="$ac_compile"
54039 case "(($ac_try" in
54040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54041 *) ac_try_echo=$ac_try;;
54043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54044 $as_echo "$ac_try_echo") >&5
54045 (eval "$ac_compile") 2>conftest.er1
54047 grep -v '^ *+' conftest.er1 >conftest.err
54049 cat conftest.err >&5
54050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54051 (exit $ac_status); } && {
54052 test -z "$ac_c_werror_flag" ||
54053 test ! -s conftest.err
54054 } && test -s conftest.$ac_objext; then
54057 $as_echo "$as_me: failed program was:" >&5
54058 sed 's/^/| /' conftest.$ac_ext >&5
54060 ac_lo=`expr '(' $ac_mid ')' + 1`
54063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54066 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
54067 '') if test "$ac_cv_type_ssize_t" = yes; then
54068 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54070 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54071 See \`config.log' for more details." >&5
54072 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54073 See \`config.log' for more details." >&2;}
54074 { (exit 77); exit 77; }; }; }
54076 ac_cv_sizeof_ssize_t=0
54080 cat >conftest.$ac_ext <<_ACEOF
54083 cat confdefs.h >>conftest.$ac_ext
54084 cat >>conftest.$ac_ext <<_ACEOF
54085 /* end confdefs.h. */
54086 $ac_includes_default
54087 static long int longval () { return (long int) (sizeof (ssize_t)); }
54088 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
54090 #include <stdlib.h>
54095 FILE *f = fopen ("conftest.val", "w");
54098 if (((long int) (sizeof (ssize_t))) < 0)
54100 long int i = longval ();
54101 if (i != ((long int) (sizeof (ssize_t))))
54103 fprintf (f, "%ld", i);
54107 unsigned long int i = ulongval ();
54108 if (i != ((long int) (sizeof (ssize_t))))
54110 fprintf (f, "%lu", i);
54112 /* Do not output a trailing newline, as this causes \r\n confusion
54113 on some platforms. */
54114 return ferror (f) || fclose (f) != 0;
54120 rm -f conftest$ac_exeext
54121 if { (ac_try="$ac_link"
54122 case "(($ac_try" in
54123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54124 *) ac_try_echo=$ac_try;;
54126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54127 $as_echo "$ac_try_echo") >&5
54128 (eval "$ac_link") 2>&5
54130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54132 { (case "(($ac_try" in
54133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54134 *) ac_try_echo=$ac_try;;
54136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54137 $as_echo "$ac_try_echo") >&5
54138 (eval "$ac_try") 2>&5
54140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54141 (exit $ac_status); }; }; then
54142 ac_cv_sizeof_ssize_t=`cat conftest.val`
54144 $as_echo "$as_me: program exited with status $ac_status" >&5
54145 $as_echo "$as_me: failed program was:" >&5
54146 sed 's/^/| /' conftest.$ac_ext >&5
54148 ( exit $ac_status )
54149 if test "$ac_cv_type_ssize_t" = yes; then
54150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54152 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54153 See \`config.log' for more details." >&5
54154 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54155 See \`config.log' for more details." >&2;}
54156 { (exit 77); exit 77; }; }; }
54158 ac_cv_sizeof_ssize_t=0
54161 rm -rf conftest.dSYM
54162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
54167 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
54171 cat >>confdefs.h <<_ACEOF
54172 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
54176 # The cast to long int works around a bug in the HP C Compiler
54177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54179 # This bug is HP SR number 8606223364.
54180 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
54181 $as_echo_n "checking size of time_t... " >&6; }
54182 if test "${ac_cv_sizeof_time_t+set}" = set; then
54183 $as_echo_n "(cached) " >&6
54185 if test "$cross_compiling" = yes; then
54186 # Depending upon the size, compute the lo and hi bounds.
54187 cat >conftest.$ac_ext <<_ACEOF
54190 cat confdefs.h >>conftest.$ac_ext
54191 cat >>conftest.$ac_ext <<_ACEOF
54192 /* end confdefs.h. */
54193 $ac_includes_default
54197 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
54204 rm -f conftest.$ac_objext
54205 if { (ac_try="$ac_compile"
54206 case "(($ac_try" in
54207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54208 *) ac_try_echo=$ac_try;;
54210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54211 $as_echo "$ac_try_echo") >&5
54212 (eval "$ac_compile") 2>conftest.er1
54214 grep -v '^ *+' conftest.er1 >conftest.err
54216 cat conftest.err >&5
54217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54218 (exit $ac_status); } && {
54219 test -z "$ac_c_werror_flag" ||
54220 test ! -s conftest.err
54221 } && test -s conftest.$ac_objext; then
54224 cat >conftest.$ac_ext <<_ACEOF
54227 cat confdefs.h >>conftest.$ac_ext
54228 cat >>conftest.$ac_ext <<_ACEOF
54229 /* end confdefs.h. */
54230 $ac_includes_default
54234 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54241 rm -f conftest.$ac_objext
54242 if { (ac_try="$ac_compile"
54243 case "(($ac_try" in
54244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54245 *) ac_try_echo=$ac_try;;
54247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54248 $as_echo "$ac_try_echo") >&5
54249 (eval "$ac_compile") 2>conftest.er1
54251 grep -v '^ *+' conftest.er1 >conftest.err
54253 cat conftest.err >&5
54254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54255 (exit $ac_status); } && {
54256 test -z "$ac_c_werror_flag" ||
54257 test ! -s conftest.err
54258 } && test -s conftest.$ac_objext; then
54259 ac_hi=$ac_mid; break
54261 $as_echo "$as_me: failed program was:" >&5
54262 sed 's/^/| /' conftest.$ac_ext >&5
54264 ac_lo=`expr $ac_mid + 1`
54265 if test $ac_lo -le $ac_mid; then
54269 ac_mid=`expr 2 '*' $ac_mid + 1`
54272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54275 $as_echo "$as_me: failed program was:" >&5
54276 sed 's/^/| /' conftest.$ac_ext >&5
54278 cat >conftest.$ac_ext <<_ACEOF
54281 cat confdefs.h >>conftest.$ac_ext
54282 cat >>conftest.$ac_ext <<_ACEOF
54283 /* end confdefs.h. */
54284 $ac_includes_default
54288 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
54295 rm -f conftest.$ac_objext
54296 if { (ac_try="$ac_compile"
54297 case "(($ac_try" in
54298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54299 *) ac_try_echo=$ac_try;;
54301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54302 $as_echo "$ac_try_echo") >&5
54303 (eval "$ac_compile") 2>conftest.er1
54305 grep -v '^ *+' conftest.er1 >conftest.err
54307 cat conftest.err >&5
54308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54309 (exit $ac_status); } && {
54310 test -z "$ac_c_werror_flag" ||
54311 test ! -s conftest.err
54312 } && test -s conftest.$ac_objext; then
54315 cat >conftest.$ac_ext <<_ACEOF
54318 cat confdefs.h >>conftest.$ac_ext
54319 cat >>conftest.$ac_ext <<_ACEOF
54320 /* end confdefs.h. */
54321 $ac_includes_default
54325 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
54332 rm -f conftest.$ac_objext
54333 if { (ac_try="$ac_compile"
54334 case "(($ac_try" in
54335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54336 *) ac_try_echo=$ac_try;;
54338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54339 $as_echo "$ac_try_echo") >&5
54340 (eval "$ac_compile") 2>conftest.er1
54342 grep -v '^ *+' conftest.er1 >conftest.err
54344 cat conftest.err >&5
54345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54346 (exit $ac_status); } && {
54347 test -z "$ac_c_werror_flag" ||
54348 test ! -s conftest.err
54349 } && test -s conftest.$ac_objext; then
54350 ac_lo=$ac_mid; break
54352 $as_echo "$as_me: failed program was:" >&5
54353 sed 's/^/| /' conftest.$ac_ext >&5
54355 ac_hi=`expr '(' $ac_mid ')' - 1`
54356 if test $ac_mid -le $ac_hi; then
54360 ac_mid=`expr 2 '*' $ac_mid`
54363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54366 $as_echo "$as_me: failed program was:" >&5
54367 sed 's/^/| /' conftest.$ac_ext >&5
54372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54376 # Binary search between lo and hi bounds.
54377 while test "x$ac_lo" != "x$ac_hi"; do
54378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54379 cat >conftest.$ac_ext <<_ACEOF
54382 cat confdefs.h >>conftest.$ac_ext
54383 cat >>conftest.$ac_ext <<_ACEOF
54384 /* end confdefs.h. */
54385 $ac_includes_default
54389 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54396 rm -f conftest.$ac_objext
54397 if { (ac_try="$ac_compile"
54398 case "(($ac_try" in
54399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54400 *) ac_try_echo=$ac_try;;
54402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54403 $as_echo "$ac_try_echo") >&5
54404 (eval "$ac_compile") 2>conftest.er1
54406 grep -v '^ *+' conftest.er1 >conftest.err
54408 cat conftest.err >&5
54409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54410 (exit $ac_status); } && {
54411 test -z "$ac_c_werror_flag" ||
54412 test ! -s conftest.err
54413 } && test -s conftest.$ac_objext; then
54416 $as_echo "$as_me: failed program was:" >&5
54417 sed 's/^/| /' conftest.$ac_ext >&5
54419 ac_lo=`expr '(' $ac_mid ')' + 1`
54422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54425 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54426 '') if test "$ac_cv_type_time_t" = yes; then
54427 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54429 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54430 See \`config.log' for more details." >&5
54431 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54432 See \`config.log' for more details." >&2;}
54433 { (exit 77); exit 77; }; }; }
54435 ac_cv_sizeof_time_t=0
54439 cat >conftest.$ac_ext <<_ACEOF
54442 cat confdefs.h >>conftest.$ac_ext
54443 cat >>conftest.$ac_ext <<_ACEOF
54444 /* end confdefs.h. */
54445 $ac_includes_default
54446 static long int longval () { return (long int) (sizeof (time_t)); }
54447 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
54449 #include <stdlib.h>
54454 FILE *f = fopen ("conftest.val", "w");
54457 if (((long int) (sizeof (time_t))) < 0)
54459 long int i = longval ();
54460 if (i != ((long int) (sizeof (time_t))))
54462 fprintf (f, "%ld", i);
54466 unsigned long int i = ulongval ();
54467 if (i != ((long int) (sizeof (time_t))))
54469 fprintf (f, "%lu", i);
54471 /* Do not output a trailing newline, as this causes \r\n confusion
54472 on some platforms. */
54473 return ferror (f) || fclose (f) != 0;
54479 rm -f conftest$ac_exeext
54480 if { (ac_try="$ac_link"
54481 case "(($ac_try" in
54482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54483 *) ac_try_echo=$ac_try;;
54485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54486 $as_echo "$ac_try_echo") >&5
54487 (eval "$ac_link") 2>&5
54489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54491 { (case "(($ac_try" in
54492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54493 *) ac_try_echo=$ac_try;;
54495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54496 $as_echo "$ac_try_echo") >&5
54497 (eval "$ac_try") 2>&5
54499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54500 (exit $ac_status); }; }; then
54501 ac_cv_sizeof_time_t=`cat conftest.val`
54503 $as_echo "$as_me: program exited with status $ac_status" >&5
54504 $as_echo "$as_me: failed program was:" >&5
54505 sed 's/^/| /' conftest.$ac_ext >&5
54507 ( exit $ac_status )
54508 if test "$ac_cv_type_time_t" = yes; then
54509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54511 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54512 See \`config.log' for more details." >&5
54513 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54514 See \`config.log' for more details." >&2;}
54515 { (exit 77); exit 77; }; }; }
54517 ac_cv_sizeof_time_t=0
54520 rm -rf conftest.dSYM
54521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54525 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54526 $as_echo "$ac_cv_sizeof_time_t" >&6; }
54530 cat >>confdefs.h <<_ACEOF
54531 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54535 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
54536 $as_echo_n "checking for off_t... " >&6; }
54537 if test "${ac_cv_type_off_t+set}" = set; then
54538 $as_echo_n "(cached) " >&6
54540 ac_cv_type_off_t=no
54541 cat >conftest.$ac_ext <<_ACEOF
54544 cat confdefs.h >>conftest.$ac_ext
54545 cat >>conftest.$ac_ext <<_ACEOF
54546 /* end confdefs.h. */
54547 $ac_includes_default
54551 if (sizeof (off_t))
54557 rm -f conftest.$ac_objext
54558 if { (ac_try="$ac_compile"
54559 case "(($ac_try" in
54560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54561 *) ac_try_echo=$ac_try;;
54563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54564 $as_echo "$ac_try_echo") >&5
54565 (eval "$ac_compile") 2>conftest.er1
54567 grep -v '^ *+' conftest.er1 >conftest.err
54569 cat conftest.err >&5
54570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54571 (exit $ac_status); } && {
54572 test -z "$ac_c_werror_flag" ||
54573 test ! -s conftest.err
54574 } && test -s conftest.$ac_objext; then
54575 cat >conftest.$ac_ext <<_ACEOF
54578 cat confdefs.h >>conftest.$ac_ext
54579 cat >>conftest.$ac_ext <<_ACEOF
54580 /* end confdefs.h. */
54581 $ac_includes_default
54585 if (sizeof ((off_t)))
54591 rm -f conftest.$ac_objext
54592 if { (ac_try="$ac_compile"
54593 case "(($ac_try" in
54594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54595 *) ac_try_echo=$ac_try;;
54597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54598 $as_echo "$ac_try_echo") >&5
54599 (eval "$ac_compile") 2>conftest.er1
54601 grep -v '^ *+' conftest.er1 >conftest.err
54603 cat conftest.err >&5
54604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54605 (exit $ac_status); } && {
54606 test -z "$ac_c_werror_flag" ||
54607 test ! -s conftest.err
54608 } && test -s conftest.$ac_objext; then
54611 $as_echo "$as_me: failed program was:" >&5
54612 sed 's/^/| /' conftest.$ac_ext >&5
54614 ac_cv_type_off_t=yes
54617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54619 $as_echo "$as_me: failed program was:" >&5
54620 sed 's/^/| /' conftest.$ac_ext >&5
54625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54627 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54628 $as_echo "$ac_cv_type_off_t" >&6; }
54629 if test "x$ac_cv_type_off_t" = x""yes; then
54633 cat >>confdefs.h <<_ACEOF
54634 #define off_t long int
54639 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
54640 $as_echo_n "checking for pid_t... " >&6; }
54641 if test "${ac_cv_type_pid_t+set}" = set; then
54642 $as_echo_n "(cached) " >&6
54644 ac_cv_type_pid_t=no
54645 cat >conftest.$ac_ext <<_ACEOF
54648 cat confdefs.h >>conftest.$ac_ext
54649 cat >>conftest.$ac_ext <<_ACEOF
54650 /* end confdefs.h. */
54651 $ac_includes_default
54655 if (sizeof (pid_t))
54661 rm -f conftest.$ac_objext
54662 if { (ac_try="$ac_compile"
54663 case "(($ac_try" in
54664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54665 *) ac_try_echo=$ac_try;;
54667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54668 $as_echo "$ac_try_echo") >&5
54669 (eval "$ac_compile") 2>conftest.er1
54671 grep -v '^ *+' conftest.er1 >conftest.err
54673 cat conftest.err >&5
54674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54675 (exit $ac_status); } && {
54676 test -z "$ac_c_werror_flag" ||
54677 test ! -s conftest.err
54678 } && test -s conftest.$ac_objext; then
54679 cat >conftest.$ac_ext <<_ACEOF
54682 cat confdefs.h >>conftest.$ac_ext
54683 cat >>conftest.$ac_ext <<_ACEOF
54684 /* end confdefs.h. */
54685 $ac_includes_default
54689 if (sizeof ((pid_t)))
54695 rm -f conftest.$ac_objext
54696 if { (ac_try="$ac_compile"
54697 case "(($ac_try" in
54698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54699 *) ac_try_echo=$ac_try;;
54701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54702 $as_echo "$ac_try_echo") >&5
54703 (eval "$ac_compile") 2>conftest.er1
54705 grep -v '^ *+' conftest.er1 >conftest.err
54707 cat conftest.err >&5
54708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54709 (exit $ac_status); } && {
54710 test -z "$ac_c_werror_flag" ||
54711 test ! -s conftest.err
54712 } && test -s conftest.$ac_objext; then
54715 $as_echo "$as_me: failed program was:" >&5
54716 sed 's/^/| /' conftest.$ac_ext >&5
54718 ac_cv_type_pid_t=yes
54721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54723 $as_echo "$as_me: failed program was:" >&5
54724 sed 's/^/| /' conftest.$ac_ext >&5
54729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54731 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
54732 $as_echo "$ac_cv_type_pid_t" >&6; }
54733 if test "x$ac_cv_type_pid_t" = x""yes; then
54737 cat >>confdefs.h <<_ACEOF
54743 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
54744 $as_echo_n "checking for size_t... " >&6; }
54745 if test "${ac_cv_type_size_t+set}" = set; then
54746 $as_echo_n "(cached) " >&6
54748 ac_cv_type_size_t=no
54749 cat >conftest.$ac_ext <<_ACEOF
54752 cat confdefs.h >>conftest.$ac_ext
54753 cat >>conftest.$ac_ext <<_ACEOF
54754 /* end confdefs.h. */
54755 $ac_includes_default
54759 if (sizeof (size_t))
54765 rm -f conftest.$ac_objext
54766 if { (ac_try="$ac_compile"
54767 case "(($ac_try" in
54768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54769 *) ac_try_echo=$ac_try;;
54771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54772 $as_echo "$ac_try_echo") >&5
54773 (eval "$ac_compile") 2>conftest.er1
54775 grep -v '^ *+' conftest.er1 >conftest.err
54777 cat conftest.err >&5
54778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54779 (exit $ac_status); } && {
54780 test -z "$ac_c_werror_flag" ||
54781 test ! -s conftest.err
54782 } && test -s conftest.$ac_objext; then
54783 cat >conftest.$ac_ext <<_ACEOF
54786 cat confdefs.h >>conftest.$ac_ext
54787 cat >>conftest.$ac_ext <<_ACEOF
54788 /* end confdefs.h. */
54789 $ac_includes_default
54793 if (sizeof ((size_t)))
54799 rm -f conftest.$ac_objext
54800 if { (ac_try="$ac_compile"
54801 case "(($ac_try" in
54802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54803 *) ac_try_echo=$ac_try;;
54805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54806 $as_echo "$ac_try_echo") >&5
54807 (eval "$ac_compile") 2>conftest.er1
54809 grep -v '^ *+' conftest.er1 >conftest.err
54811 cat conftest.err >&5
54812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54813 (exit $ac_status); } && {
54814 test -z "$ac_c_werror_flag" ||
54815 test ! -s conftest.err
54816 } && test -s conftest.$ac_objext; then
54819 $as_echo "$as_me: failed program was:" >&5
54820 sed 's/^/| /' conftest.$ac_ext >&5
54822 ac_cv_type_size_t=yes
54825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54827 $as_echo "$as_me: failed program was:" >&5
54828 sed 's/^/| /' conftest.$ac_ext >&5
54833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54835 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
54836 $as_echo "$ac_cv_type_size_t" >&6; }
54837 if test "x$ac_cv_type_size_t" = x""yes; then
54841 cat >>confdefs.h <<_ACEOF
54842 #define size_t unsigned int
54847 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
54848 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
54849 if test "${ac_cv_type_uid_t+set}" = set; then
54850 $as_echo_n "(cached) " >&6
54852 cat >conftest.$ac_ext <<_ACEOF
54855 cat confdefs.h >>conftest.$ac_ext
54856 cat >>conftest.$ac_ext <<_ACEOF
54857 /* end confdefs.h. */
54858 #include <sys/types.h>
54861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54862 $EGREP "uid_t" >/dev/null 2>&1; then
54863 ac_cv_type_uid_t=yes
54865 ac_cv_type_uid_t=no
54870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
54871 $as_echo "$ac_cv_type_uid_t" >&6; }
54872 if test $ac_cv_type_uid_t = no; then
54874 cat >>confdefs.h <<\_ACEOF
54879 cat >>confdefs.h <<\_ACEOF
54885 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
54886 $as_echo_n "checking return type of signal handlers... " >&6; }
54887 if test "${ac_cv_type_signal+set}" = set; then
54888 $as_echo_n "(cached) " >&6
54890 cat >conftest.$ac_ext <<_ACEOF
54893 cat confdefs.h >>conftest.$ac_ext
54894 cat >>conftest.$ac_ext <<_ACEOF
54895 /* end confdefs.h. */
54896 #include <sys/types.h>
54897 #include <signal.h>
54902 return *(signal (0, 0)) (0) == 1;
54907 rm -f conftest.$ac_objext
54908 if { (ac_try="$ac_compile"
54909 case "(($ac_try" in
54910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54911 *) ac_try_echo=$ac_try;;
54913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54914 $as_echo "$ac_try_echo") >&5
54915 (eval "$ac_compile") 2>conftest.er1
54917 grep -v '^ *+' conftest.er1 >conftest.err
54919 cat conftest.err >&5
54920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54921 (exit $ac_status); } && {
54922 test -z "$ac_c_werror_flag" ||
54923 test ! -s conftest.err
54924 } && test -s conftest.$ac_objext; then
54925 ac_cv_type_signal=int
54927 $as_echo "$as_me: failed program was:" >&5
54928 sed 's/^/| /' conftest.$ac_ext >&5
54930 ac_cv_type_signal=void
54933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54935 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
54936 $as_echo "$ac_cv_type_signal" >&6; }
54938 cat >>confdefs.h <<_ACEOF
54939 #define RETSIGTYPE $ac_cv_type_signal
54943 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
54944 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
54945 if test "${ac_cv_struct_tm+set}" = set; then
54946 $as_echo_n "(cached) " >&6
54948 cat >conftest.$ac_ext <<_ACEOF
54951 cat confdefs.h >>conftest.$ac_ext
54952 cat >>conftest.$ac_ext <<_ACEOF
54953 /* end confdefs.h. */
54954 #include <sys/types.h>
54961 int *p = &tm.tm_sec;
54967 rm -f conftest.$ac_objext
54968 if { (ac_try="$ac_compile"
54969 case "(($ac_try" in
54970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54971 *) ac_try_echo=$ac_try;;
54973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54974 $as_echo "$ac_try_echo") >&5
54975 (eval "$ac_compile") 2>conftest.er1
54977 grep -v '^ *+' conftest.er1 >conftest.err
54979 cat conftest.err >&5
54980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54981 (exit $ac_status); } && {
54982 test -z "$ac_c_werror_flag" ||
54983 test ! -s conftest.err
54984 } && test -s conftest.$ac_objext; then
54985 ac_cv_struct_tm=time.h
54987 $as_echo "$as_me: failed program was:" >&5
54988 sed 's/^/| /' conftest.$ac_ext >&5
54990 ac_cv_struct_tm=sys/time.h
54993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54995 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
54996 $as_echo "$ac_cv_struct_tm" >&6; }
54997 if test $ac_cv_struct_tm = sys/time.h; then
54999 cat >>confdefs.h <<\_ACEOF
55000 #define TM_IN_SYS_TIME 1
55006 ## lifted from config/gnulib/socklen.m4
55007 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
55008 $as_echo_n "checking for socklen_t equivalent... " >&6; }
55009 if test "${gl_cv_socklen_t_equiv+set}" = set; then
55010 $as_echo_n "(cached) " >&6
55012 # Systems have either "struct sockaddr *" or
55013 # "void *" as the second argument to getpeername
55014 gl_cv_socklen_t_equiv=
55015 for arg2 in "struct sockaddr" void; do
55016 for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
55017 cat >conftest.$ac_ext <<_ACEOF
55020 cat confdefs.h >>conftest.$ac_ext
55021 cat >>conftest.$ac_ext <<_ACEOF
55022 /* end confdefs.h. */
55023 #include <sys/types.h>
55024 #include <sys/socket.h>
55026 int getpeername (int, $arg2 *, $t *);
55031 getpeername (0, 0, &len);
55036 rm -f conftest.$ac_objext
55037 if { (ac_try="$ac_compile"
55038 case "(($ac_try" in
55039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55040 *) ac_try_echo=$ac_try;;
55042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55043 $as_echo "$ac_try_echo") >&5
55044 (eval "$ac_compile") 2>conftest.er1
55046 grep -v '^ *+' conftest.er1 >conftest.err
55048 cat conftest.err >&5
55049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55050 (exit $ac_status); } && {
55051 test -z "$ac_c_werror_flag" ||
55052 test ! -s conftest.err
55053 } && test -s conftest.$ac_objext; then
55054 gl_cv_socklen_t_equiv="$t"
55056 $as_echo "$as_me: failed program was:" >&5
55057 sed 's/^/| /' conftest.$ac_ext >&5
55062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55063 test "$gl_cv_socklen_t_equiv" != "" && break
55065 test "$gl_cv_socklen_t_equiv" != "" && break
55070 ## end lifting from config/gnulib/socklen.m4
55071 # fallback if the check fails
55072 if test "$gl_cv_socklen_t_equiv" = ""; then
55073 gl_cv_socklen_t_equiv=socklen_t
55075 { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
55076 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
55079 cat >>confdefs.h <<_ACEOF
55080 #define socklen_t_equiv $gl_cv_socklen_t_equiv
55086 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
55087 $as_echo_n "checking for sa_family_t... " >&6; }
55088 if test "${ac_cv_type_sa_family_t+set}" = set; then
55089 $as_echo_n "(cached) " >&6
55091 ac_cv_type_sa_family_t=no
55092 cat >conftest.$ac_ext <<_ACEOF
55095 cat confdefs.h >>conftest.$ac_ext
55096 cat >>conftest.$ac_ext <<_ACEOF
55097 /* end confdefs.h. */
55099 #ifdef HAVE_SYS_TYPES_H
55100 #include <sys/types.h>
55102 #ifdef STDC_HEADERS
55103 #include <stdlib.h>
55104 #include <stddef.h>
55106 #include <sys/socket.h>
55113 if (sizeof (sa_family_t))
55119 rm -f conftest.$ac_objext
55120 if { (ac_try="$ac_compile"
55121 case "(($ac_try" in
55122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55123 *) ac_try_echo=$ac_try;;
55125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55126 $as_echo "$ac_try_echo") >&5
55127 (eval "$ac_compile") 2>conftest.er1
55129 grep -v '^ *+' conftest.er1 >conftest.err
55131 cat conftest.err >&5
55132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55133 (exit $ac_status); } && {
55134 test -z "$ac_c_werror_flag" ||
55135 test ! -s conftest.err
55136 } && test -s conftest.$ac_objext; then
55137 cat >conftest.$ac_ext <<_ACEOF
55140 cat confdefs.h >>conftest.$ac_ext
55141 cat >>conftest.$ac_ext <<_ACEOF
55142 /* end confdefs.h. */
55144 #ifdef HAVE_SYS_TYPES_H
55145 #include <sys/types.h>
55147 #ifdef STDC_HEADERS
55148 #include <stdlib.h>
55149 #include <stddef.h>
55151 #include <sys/socket.h>
55158 if (sizeof ((sa_family_t)))
55164 rm -f conftest.$ac_objext
55165 if { (ac_try="$ac_compile"
55166 case "(($ac_try" in
55167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55168 *) ac_try_echo=$ac_try;;
55170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55171 $as_echo "$ac_try_echo") >&5
55172 (eval "$ac_compile") 2>conftest.er1
55174 grep -v '^ *+' conftest.er1 >conftest.err
55176 cat conftest.err >&5
55177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55178 (exit $ac_status); } && {
55179 test -z "$ac_c_werror_flag" ||
55180 test ! -s conftest.err
55181 } && test -s conftest.$ac_objext; then
55184 $as_echo "$as_me: failed program was:" >&5
55185 sed 's/^/| /' conftest.$ac_ext >&5
55187 ac_cv_type_sa_family_t=yes
55190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55192 $as_echo "$as_me: failed program was:" >&5
55193 sed 's/^/| /' conftest.$ac_ext >&5
55198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
55201 $as_echo "$ac_cv_type_sa_family_t" >&6; }
55202 if test "x$ac_cv_type_sa_family_t" = x""yes; then
55207 cat >>confdefs.h <<\_ACEOF
55208 #define sa_family_t unsigned short
55217 { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
55218 $as_echo_n "checking for in_port_t... " >&6; }
55219 if test "${ac_cv_type_in_port_t+set}" = set; then
55220 $as_echo_n "(cached) " >&6
55222 ac_cv_type_in_port_t=no
55223 cat >conftest.$ac_ext <<_ACEOF
55226 cat confdefs.h >>conftest.$ac_ext
55227 cat >>conftest.$ac_ext <<_ACEOF
55228 /* end confdefs.h. */
55230 #ifdef HAVE_SYS_TYPES_H
55231 #include <sys/types.h>
55233 #ifdef STDC_HEADERS
55234 #include <stdlib.h>
55235 #include <stddef.h>
55237 #include <netinet/in.h>
55244 if (sizeof (in_port_t))
55250 rm -f conftest.$ac_objext
55251 if { (ac_try="$ac_compile"
55252 case "(($ac_try" in
55253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55254 *) ac_try_echo=$ac_try;;
55256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55257 $as_echo "$ac_try_echo") >&5
55258 (eval "$ac_compile") 2>conftest.er1
55260 grep -v '^ *+' conftest.er1 >conftest.err
55262 cat conftest.err >&5
55263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55264 (exit $ac_status); } && {
55265 test -z "$ac_c_werror_flag" ||
55266 test ! -s conftest.err
55267 } && test -s conftest.$ac_objext; then
55268 cat >conftest.$ac_ext <<_ACEOF
55271 cat confdefs.h >>conftest.$ac_ext
55272 cat >>conftest.$ac_ext <<_ACEOF
55273 /* end confdefs.h. */
55275 #ifdef HAVE_SYS_TYPES_H
55276 #include <sys/types.h>
55278 #ifdef STDC_HEADERS
55279 #include <stdlib.h>
55280 #include <stddef.h>
55282 #include <netinet/in.h>
55289 if (sizeof ((in_port_t)))
55295 rm -f conftest.$ac_objext
55296 if { (ac_try="$ac_compile"
55297 case "(($ac_try" in
55298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55299 *) ac_try_echo=$ac_try;;
55301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55302 $as_echo "$ac_try_echo") >&5
55303 (eval "$ac_compile") 2>conftest.er1
55305 grep -v '^ *+' conftest.er1 >conftest.err
55307 cat conftest.err >&5
55308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55309 (exit $ac_status); } && {
55310 test -z "$ac_c_werror_flag" ||
55311 test ! -s conftest.err
55312 } && test -s conftest.$ac_objext; then
55315 $as_echo "$as_me: failed program was:" >&5
55316 sed 's/^/| /' conftest.$ac_ext >&5
55318 ac_cv_type_in_port_t=yes
55321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55323 $as_echo "$as_me: failed program was:" >&5
55324 sed 's/^/| /' conftest.$ac_ext >&5
55329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55331 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
55332 $as_echo "$ac_cv_type_in_port_t" >&6; }
55333 if test "x$ac_cv_type_in_port_t" = x""yes; then
55338 cat >>confdefs.h <<\_ACEOF
55339 #define in_port_t unsigned short
55350 for ac_header in sys/wait.h wait.h
55352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55355 $as_echo_n "checking for $ac_header... " >&6; }
55356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55357 $as_echo_n "(cached) " >&6
55359 ac_res=`eval 'as_val=${'$as_ac_Header'}
55360 $as_echo "$as_val"'`
55361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55362 $as_echo "$ac_res" >&6; }
55364 # Is the header compilable?
55365 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55366 $as_echo_n "checking $ac_header usability... " >&6; }
55367 cat >conftest.$ac_ext <<_ACEOF
55370 cat confdefs.h >>conftest.$ac_ext
55371 cat >>conftest.$ac_ext <<_ACEOF
55372 /* end confdefs.h. */
55373 $ac_includes_default
55374 #include <$ac_header>
55376 rm -f conftest.$ac_objext
55377 if { (ac_try="$ac_compile"
55378 case "(($ac_try" in
55379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55380 *) ac_try_echo=$ac_try;;
55382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55383 $as_echo "$ac_try_echo") >&5
55384 (eval "$ac_compile") 2>conftest.er1
55386 grep -v '^ *+' conftest.er1 >conftest.err
55388 cat conftest.err >&5
55389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55390 (exit $ac_status); } && {
55391 test -z "$ac_c_werror_flag" ||
55392 test ! -s conftest.err
55393 } && test -s conftest.$ac_objext; then
55394 ac_header_compiler=yes
55396 $as_echo "$as_me: failed program was:" >&5
55397 sed 's/^/| /' conftest.$ac_ext >&5
55399 ac_header_compiler=no
55402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55404 $as_echo "$ac_header_compiler" >&6; }
55406 # Is the header present?
55407 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55408 $as_echo_n "checking $ac_header presence... " >&6; }
55409 cat >conftest.$ac_ext <<_ACEOF
55412 cat confdefs.h >>conftest.$ac_ext
55413 cat >>conftest.$ac_ext <<_ACEOF
55414 /* end confdefs.h. */
55415 #include <$ac_header>
55417 if { (ac_try="$ac_cpp conftest.$ac_ext"
55418 case "(($ac_try" in
55419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55420 *) ac_try_echo=$ac_try;;
55422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55423 $as_echo "$ac_try_echo") >&5
55424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55426 grep -v '^ *+' conftest.er1 >conftest.err
55428 cat conftest.err >&5
55429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55430 (exit $ac_status); } >/dev/null && {
55431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55432 test ! -s conftest.err
55434 ac_header_preproc=yes
55436 $as_echo "$as_me: failed program was:" >&5
55437 sed 's/^/| /' conftest.$ac_ext >&5
55439 ac_header_preproc=no
55442 rm -f conftest.err conftest.$ac_ext
55443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55444 $as_echo "$ac_header_preproc" >&6; }
55446 # So? What about this header?
55447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55450 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55453 ac_header_preproc=yes
55456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55457 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55459 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55461 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55463 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55467 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55472 $as_echo_n "checking for $ac_header... " >&6; }
55473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55474 $as_echo_n "(cached) " >&6
55476 eval "$as_ac_Header=\$ac_header_preproc"
55478 ac_res=`eval 'as_val=${'$as_ac_Header'}
55479 $as_echo "$as_val"'`
55480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55481 $as_echo "$ac_res" >&6; }
55484 as_val=`eval 'as_val=${'$as_ac_Header'}
55485 $as_echo "$as_val"'`
55486 if test "x$as_val" = x""yes; then
55487 cat >>confdefs.h <<_ACEOF
55488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55495 { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
55496 $as_echo_n "checking whether wait uses union wait... " >&6; }
55497 if test "${cf_cv_arg_union_wait+set}" = set; then
55498 $as_echo_n "(cached) " >&6
55501 cat >conftest.$ac_ext <<_ACEOF
55504 cat confdefs.h >>conftest.$ac_ext
55505 cat >>conftest.$ac_ext <<_ACEOF
55506 /* end confdefs.h. */
55508 #include <sys/types.h>
55510 #if HAVE_SYS_WAIT_H
55511 # include <sys/wait.h>
55519 pid_t wait(union wait *);
55526 union wait x; int i;
55527 wait(&x); i = WIFEXITED(x)
55533 rm -f conftest.$ac_objext
55534 if { (ac_try="$ac_compile"
55535 case "(($ac_try" in
55536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55537 *) ac_try_echo=$ac_try;;
55539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55540 $as_echo "$ac_try_echo") >&5
55541 (eval "$ac_compile") 2>conftest.er1
55543 grep -v '^ *+' conftest.er1 >conftest.err
55545 cat conftest.err >&5
55546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55547 (exit $ac_status); } && {
55548 test -z "$ac_c_werror_flag" ||
55549 test ! -s conftest.err
55550 } && test -s conftest.$ac_objext; then
55551 cf_cv_arg_union_wait=yes
55553 $as_echo "$as_me: failed program was:" >&5
55554 sed 's/^/| /' conftest.$ac_ext >&5
55556 cf_cv_arg_union_wait=no
55559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55561 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55562 $as_echo "$cf_cv_arg_union_wait" >&6; }
55563 if test $cf_cv_arg_union_wait = yes; then
55565 cat >>confdefs.h <<\_ACEOF
55566 #define WAIT_USES_UNION 1
55575 for ac_header in sys/wait.h wait.h
55577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55579 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55580 $as_echo_n "checking for $ac_header... " >&6; }
55581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55582 $as_echo_n "(cached) " >&6
55584 ac_res=`eval 'as_val=${'$as_ac_Header'}
55585 $as_echo "$as_val"'`
55586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55587 $as_echo "$ac_res" >&6; }
55589 # Is the header compilable?
55590 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55591 $as_echo_n "checking $ac_header usability... " >&6; }
55592 cat >conftest.$ac_ext <<_ACEOF
55595 cat confdefs.h >>conftest.$ac_ext
55596 cat >>conftest.$ac_ext <<_ACEOF
55597 /* end confdefs.h. */
55598 $ac_includes_default
55599 #include <$ac_header>
55601 rm -f conftest.$ac_objext
55602 if { (ac_try="$ac_compile"
55603 case "(($ac_try" in
55604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55605 *) ac_try_echo=$ac_try;;
55607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55608 $as_echo "$ac_try_echo") >&5
55609 (eval "$ac_compile") 2>conftest.er1
55611 grep -v '^ *+' conftest.er1 >conftest.err
55613 cat conftest.err >&5
55614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55615 (exit $ac_status); } && {
55616 test -z "$ac_c_werror_flag" ||
55617 test ! -s conftest.err
55618 } && test -s conftest.$ac_objext; then
55619 ac_header_compiler=yes
55621 $as_echo "$as_me: failed program was:" >&5
55622 sed 's/^/| /' conftest.$ac_ext >&5
55624 ac_header_compiler=no
55627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55629 $as_echo "$ac_header_compiler" >&6; }
55631 # Is the header present?
55632 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55633 $as_echo_n "checking $ac_header presence... " >&6; }
55634 cat >conftest.$ac_ext <<_ACEOF
55637 cat confdefs.h >>conftest.$ac_ext
55638 cat >>conftest.$ac_ext <<_ACEOF
55639 /* end confdefs.h. */
55640 #include <$ac_header>
55642 if { (ac_try="$ac_cpp conftest.$ac_ext"
55643 case "(($ac_try" in
55644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55645 *) ac_try_echo=$ac_try;;
55647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55648 $as_echo "$ac_try_echo") >&5
55649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55651 grep -v '^ *+' conftest.er1 >conftest.err
55653 cat conftest.err >&5
55654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55655 (exit $ac_status); } >/dev/null && {
55656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55657 test ! -s conftest.err
55659 ac_header_preproc=yes
55661 $as_echo "$as_me: failed program was:" >&5
55662 sed 's/^/| /' conftest.$ac_ext >&5
55664 ac_header_preproc=no
55667 rm -f conftest.err conftest.$ac_ext
55668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55669 $as_echo "$ac_header_preproc" >&6; }
55671 # So? What about this header?
55672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55675 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55677 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55678 ac_header_preproc=yes
55681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55682 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55684 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55686 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55688 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55692 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55696 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55697 $as_echo_n "checking for $ac_header... " >&6; }
55698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55699 $as_echo_n "(cached) " >&6
55701 eval "$as_ac_Header=\$ac_header_preproc"
55703 ac_res=`eval 'as_val=${'$as_ac_Header'}
55704 $as_echo "$as_val"'`
55705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55706 $as_echo "$ac_res" >&6; }
55709 as_val=`eval 'as_val=${'$as_ac_Header'}
55710 $as_echo "$as_val"'`
55711 if test "x$as_val" = x""yes; then
55712 cat >>confdefs.h <<_ACEOF
55713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55720 { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
55721 $as_echo_n "checking whether wait uses int... " >&6; }
55722 if test "${cf_cv_arg_int+set}" = set; then
55723 $as_echo_n "(cached) " >&6
55726 cat >conftest.$ac_ext <<_ACEOF
55729 cat confdefs.h >>conftest.$ac_ext
55730 cat >>conftest.$ac_ext <<_ACEOF
55731 /* end confdefs.h. */
55733 #include <sys/types.h>
55735 #if HAVE_SYS_WAIT_H
55736 # include <sys/wait.h>
55752 wait(&x); i = WIFEXITED(x)
55758 rm -f conftest.$ac_objext
55759 if { (ac_try="$ac_compile"
55760 case "(($ac_try" in
55761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55762 *) ac_try_echo=$ac_try;;
55764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55765 $as_echo "$ac_try_echo") >&5
55766 (eval "$ac_compile") 2>conftest.er1
55768 grep -v '^ *+' conftest.er1 >conftest.err
55770 cat conftest.err >&5
55771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55772 (exit $ac_status); } && {
55773 test -z "$ac_c_werror_flag" ||
55774 test ! -s conftest.err
55775 } && test -s conftest.$ac_objext; then
55778 $as_echo "$as_me: failed program was:" >&5
55779 sed 's/^/| /' conftest.$ac_ext >&5
55784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55786 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
55787 $as_echo "$cf_cv_arg_int" >&6; }
55788 if test $cf_cv_arg_int = yes; then
55790 cat >>confdefs.h <<\_ACEOF
55791 #define WAIT_USES_INT 1
55800 # cur_colr is on some HP's
55802 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
55803 $as_echo_n "checking for main in -lcur_colr... " >&6; }
55804 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
55805 $as_echo_n "(cached) " >&6
55807 ac_check_lib_save_LIBS=$LIBS
55808 LIBS="-lcur_colr $LIBS"
55809 cat >conftest.$ac_ext <<_ACEOF
55812 cat confdefs.h >>conftest.$ac_ext
55813 cat >>conftest.$ac_ext <<_ACEOF
55814 /* end confdefs.h. */
55825 rm -f conftest.$ac_objext conftest$ac_exeext
55826 if { (ac_try="$ac_link"
55827 case "(($ac_try" in
55828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55829 *) ac_try_echo=$ac_try;;
55831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55832 $as_echo "$ac_try_echo") >&5
55833 (eval "$ac_link") 2>conftest.er1
55835 grep -v '^ *+' conftest.er1 >conftest.err
55837 cat conftest.err >&5
55838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55839 (exit $ac_status); } && {
55840 test -z "$ac_c_werror_flag" ||
55841 test ! -s conftest.err
55842 } && test -s conftest$ac_exeext && {
55843 test "$cross_compiling" = yes ||
55844 $as_test_x conftest$ac_exeext
55846 ac_cv_lib_cur_colr_main=yes
55848 $as_echo "$as_me: failed program was:" >&5
55849 sed 's/^/| /' conftest.$ac_ext >&5
55851 ac_cv_lib_cur_colr_main=no
55854 rm -rf conftest.dSYM
55855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55856 conftest$ac_exeext conftest.$ac_ext
55857 LIBS=$ac_check_lib_save_LIBS
55859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
55860 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
55861 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
55862 cat >>confdefs.h <<_ACEOF
55863 #define HAVE_LIBCUR_COLR 1
55866 LIBS="-lcur_colr $LIBS"
55871 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
55872 $as_echo_n "checking for main in -lintl... " >&6; }
55873 if test "${ac_cv_lib_intl_main+set}" = set; then
55874 $as_echo_n "(cached) " >&6
55876 ac_check_lib_save_LIBS=$LIBS
55877 LIBS="-lintl $LIBS"
55878 cat >conftest.$ac_ext <<_ACEOF
55881 cat confdefs.h >>conftest.$ac_ext
55882 cat >>conftest.$ac_ext <<_ACEOF
55883 /* end confdefs.h. */
55894 rm -f conftest.$ac_objext conftest$ac_exeext
55895 if { (ac_try="$ac_link"
55896 case "(($ac_try" in
55897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55898 *) ac_try_echo=$ac_try;;
55900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55901 $as_echo "$ac_try_echo") >&5
55902 (eval "$ac_link") 2>conftest.er1
55904 grep -v '^ *+' conftest.er1 >conftest.err
55906 cat conftest.err >&5
55907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55908 (exit $ac_status); } && {
55909 test -z "$ac_c_werror_flag" ||
55910 test ! -s conftest.err
55911 } && test -s conftest$ac_exeext && {
55912 test "$cross_compiling" = yes ||
55913 $as_test_x conftest$ac_exeext
55915 ac_cv_lib_intl_main=yes
55917 $as_echo "$as_me: failed program was:" >&5
55918 sed 's/^/| /' conftest.$ac_ext >&5
55920 ac_cv_lib_intl_main=no
55923 rm -rf conftest.dSYM
55924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55925 conftest$ac_exeext conftest.$ac_ext
55926 LIBS=$ac_check_lib_save_LIBS
55928 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
55929 $as_echo "$ac_cv_lib_intl_main" >&6; }
55930 if test "x$ac_cv_lib_intl_main" = x""yes; then
55931 cat >>confdefs.h <<_ACEOF
55932 #define HAVE_LIBINTL 1
55935 LIBS="-lintl $LIBS"
55940 # Make sure we don't use -lnsl and -lsun on Irix systems.
55944 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
55945 $as_echo_n "checking for main in -lsocket... " >&6; }
55946 if test "${ac_cv_lib_socket_main+set}" = set; then
55947 $as_echo_n "(cached) " >&6
55949 ac_check_lib_save_LIBS=$LIBS
55950 LIBS="-lsocket $LIBS"
55951 cat >conftest.$ac_ext <<_ACEOF
55954 cat confdefs.h >>conftest.$ac_ext
55955 cat >>conftest.$ac_ext <<_ACEOF
55956 /* end confdefs.h. */
55967 rm -f conftest.$ac_objext conftest$ac_exeext
55968 if { (ac_try="$ac_link"
55969 case "(($ac_try" in
55970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55971 *) ac_try_echo=$ac_try;;
55973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55974 $as_echo "$ac_try_echo") >&5
55975 (eval "$ac_link") 2>conftest.er1
55977 grep -v '^ *+' conftest.er1 >conftest.err
55979 cat conftest.err >&5
55980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55981 (exit $ac_status); } && {
55982 test -z "$ac_c_werror_flag" ||
55983 test ! -s conftest.err
55984 } && test -s conftest$ac_exeext && {
55985 test "$cross_compiling" = yes ||
55986 $as_test_x conftest$ac_exeext
55988 ac_cv_lib_socket_main=yes
55990 $as_echo "$as_me: failed program was:" >&5
55991 sed 's/^/| /' conftest.$ac_ext >&5
55993 ac_cv_lib_socket_main=no
55996 rm -rf conftest.dSYM
55997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55998 conftest$ac_exeext conftest.$ac_ext
55999 LIBS=$ac_check_lib_save_LIBS
56001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56002 $as_echo "$ac_cv_lib_socket_main" >&6; }
56003 if test "x$ac_cv_lib_socket_main" = x""yes; then
56004 cat >>confdefs.h <<_ACEOF
56005 #define HAVE_LIBSOCKET 1
56008 LIBS="-lsocket $LIBS"
56015 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
56016 $as_echo_n "checking for main in -lresolv... " >&6; }
56017 if test "${ac_cv_lib_resolv_main+set}" = set; then
56018 $as_echo_n "(cached) " >&6
56020 ac_check_lib_save_LIBS=$LIBS
56021 LIBS="-lresolv $LIBS"
56022 cat >conftest.$ac_ext <<_ACEOF
56025 cat confdefs.h >>conftest.$ac_ext
56026 cat >>conftest.$ac_ext <<_ACEOF
56027 /* end confdefs.h. */
56038 rm -f conftest.$ac_objext conftest$ac_exeext
56039 if { (ac_try="$ac_link"
56040 case "(($ac_try" in
56041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56042 *) ac_try_echo=$ac_try;;
56044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56045 $as_echo "$ac_try_echo") >&5
56046 (eval "$ac_link") 2>conftest.er1
56048 grep -v '^ *+' conftest.er1 >conftest.err
56050 cat conftest.err >&5
56051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56052 (exit $ac_status); } && {
56053 test -z "$ac_c_werror_flag" ||
56054 test ! -s conftest.err
56055 } && test -s conftest$ac_exeext && {
56056 test "$cross_compiling" = yes ||
56057 $as_test_x conftest$ac_exeext
56059 ac_cv_lib_resolv_main=yes
56061 $as_echo "$as_me: failed program was:" >&5
56062 sed 's/^/| /' conftest.$ac_ext >&5
56064 ac_cv_lib_resolv_main=no
56067 rm -rf conftest.dSYM
56068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56069 conftest$ac_exeext conftest.$ac_ext
56070 LIBS=$ac_check_lib_save_LIBS
56072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
56073 $as_echo "$ac_cv_lib_resolv_main" >&6; }
56074 if test "x$ac_cv_lib_resolv_main" = x""yes; then
56075 cat >>confdefs.h <<_ACEOF
56076 #define HAVE_LIBRESOLV 1
56079 LIBS="-lresolv $LIBS"
56084 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
56085 $as_echo_n "checking for main in -lnsl... " >&6; }
56086 if test "${ac_cv_lib_nsl_main+set}" = set; then
56087 $as_echo_n "(cached) " >&6
56089 ac_check_lib_save_LIBS=$LIBS
56091 cat >conftest.$ac_ext <<_ACEOF
56094 cat confdefs.h >>conftest.$ac_ext
56095 cat >>conftest.$ac_ext <<_ACEOF
56096 /* end confdefs.h. */
56107 rm -f conftest.$ac_objext conftest$ac_exeext
56108 if { (ac_try="$ac_link"
56109 case "(($ac_try" in
56110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56111 *) ac_try_echo=$ac_try;;
56113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56114 $as_echo "$ac_try_echo") >&5
56115 (eval "$ac_link") 2>conftest.er1
56117 grep -v '^ *+' conftest.er1 >conftest.err
56119 cat conftest.err >&5
56120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56121 (exit $ac_status); } && {
56122 test -z "$ac_c_werror_flag" ||
56123 test ! -s conftest.err
56124 } && test -s conftest$ac_exeext && {
56125 test "$cross_compiling" = yes ||
56126 $as_test_x conftest$ac_exeext
56128 ac_cv_lib_nsl_main=yes
56130 $as_echo "$as_me: failed program was:" >&5
56131 sed 's/^/| /' conftest.$ac_ext >&5
56133 ac_cv_lib_nsl_main=no
56136 rm -rf conftest.dSYM
56137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56138 conftest$ac_exeext conftest.$ac_ext
56139 LIBS=$ac_check_lib_save_LIBS
56141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
56142 $as_echo "$ac_cv_lib_nsl_main" >&6; }
56143 if test "x$ac_cv_lib_nsl_main" = x""yes; then
56144 cat >>confdefs.h <<_ACEOF
56145 #define HAVE_LIBNSL 1
56153 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56154 $as_echo_n "checking for main in -lsocket... " >&6; }
56155 if test "${ac_cv_lib_socket_main+set}" = set; then
56156 $as_echo_n "(cached) " >&6
56158 ac_check_lib_save_LIBS=$LIBS
56159 LIBS="-lsocket $LIBS"
56160 cat >conftest.$ac_ext <<_ACEOF
56163 cat confdefs.h >>conftest.$ac_ext
56164 cat >>conftest.$ac_ext <<_ACEOF
56165 /* end confdefs.h. */
56176 rm -f conftest.$ac_objext conftest$ac_exeext
56177 if { (ac_try="$ac_link"
56178 case "(($ac_try" in
56179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56180 *) ac_try_echo=$ac_try;;
56182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56183 $as_echo "$ac_try_echo") >&5
56184 (eval "$ac_link") 2>conftest.er1
56186 grep -v '^ *+' conftest.er1 >conftest.err
56188 cat conftest.err >&5
56189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56190 (exit $ac_status); } && {
56191 test -z "$ac_c_werror_flag" ||
56192 test ! -s conftest.err
56193 } && test -s conftest$ac_exeext && {
56194 test "$cross_compiling" = yes ||
56195 $as_test_x conftest$ac_exeext
56197 ac_cv_lib_socket_main=yes
56199 $as_echo "$as_me: failed program was:" >&5
56200 sed 's/^/| /' conftest.$ac_ext >&5
56202 ac_cv_lib_socket_main=no
56205 rm -rf conftest.dSYM
56206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56207 conftest$ac_exeext conftest.$ac_ext
56208 LIBS=$ac_check_lib_save_LIBS
56210 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56211 $as_echo "$ac_cv_lib_socket_main" >&6; }
56212 if test "x$ac_cv_lib_socket_main" = x""yes; then
56213 cat >>confdefs.h <<_ACEOF
56214 #define HAVE_LIBSOCKET 1
56217 LIBS="-lsocket $LIBS"
56222 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
56223 $as_echo_n "checking for main in -lsun... " >&6; }
56224 if test "${ac_cv_lib_sun_main+set}" = set; then
56225 $as_echo_n "(cached) " >&6
56227 ac_check_lib_save_LIBS=$LIBS
56229 cat >conftest.$ac_ext <<_ACEOF
56232 cat confdefs.h >>conftest.$ac_ext
56233 cat >>conftest.$ac_ext <<_ACEOF
56234 /* end confdefs.h. */
56245 rm -f conftest.$ac_objext conftest$ac_exeext
56246 if { (ac_try="$ac_link"
56247 case "(($ac_try" in
56248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56249 *) ac_try_echo=$ac_try;;
56251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56252 $as_echo "$ac_try_echo") >&5
56253 (eval "$ac_link") 2>conftest.er1
56255 grep -v '^ *+' conftest.er1 >conftest.err
56257 cat conftest.err >&5
56258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56259 (exit $ac_status); } && {
56260 test -z "$ac_c_werror_flag" ||
56261 test ! -s conftest.err
56262 } && test -s conftest$ac_exeext && {
56263 test "$cross_compiling" = yes ||
56264 $as_test_x conftest$ac_exeext
56266 ac_cv_lib_sun_main=yes
56268 $as_echo "$as_me: failed program was:" >&5
56269 sed 's/^/| /' conftest.$ac_ext >&5
56271 ac_cv_lib_sun_main=no
56274 rm -rf conftest.dSYM
56275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56276 conftest$ac_exeext conftest.$ac_ext
56277 LIBS=$ac_check_lib_save_LIBS
56279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
56280 $as_echo "$ac_cv_lib_sun_main" >&6; }
56281 if test "x$ac_cv_lib_sun_main" = x""yes; then
56282 cat >>confdefs.h <<_ACEOF
56283 #define HAVE_LIBSUN 1
56294 # search for pkg-config, which the glib configuration uses, adding a few
56295 # system-specific search paths.
56296 # Extract the first word of "pkg-config", so it can be a program name with args.
56297 set dummy pkg-config; ac_word=$2
56298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56299 $as_echo_n "checking for $ac_word... " >&6; }
56300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56301 $as_echo_n "(cached) " >&6
56303 case $PKG_CONFIG in
56305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56309 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
56310 for as_dir in $as_dummy
56313 test -z "$as_dir" && as_dir=.
56314 for ac_exec_ext in '' $ac_executable_extensions; do
56315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56328 if test -n "$PKG_CONFIG"; then
56329 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56330 $as_echo "$PKG_CONFIG" >&6; }
56332 { $as_echo "$as_me:$LINENO: result: no" >&5
56333 $as_echo "no" >&6; }
56339 sparc-sun-solaris2.8) # Solaris 8
56340 # give the linker a runtime search path; pkg-config doesn't supply this.
56341 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
56342 # and make. Adding this support here makes straight './configure; make'
56343 # "just work" on Solaris 8
56344 if test -n "$PKG_CONFIG"; then
56345 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
56346 LDFLAGS="$LDFLAGS $glib_R_flag"
56351 # Check whether --enable-glibtest was given.
56352 if test "${enable_glibtest+set}" = set; then
56353 enableval=$enable_glibtest;
56355 enable_glibtest=yes
56359 pkg_config_args=glib-2.0
56360 for module in . gmodule gobject gthread
56364 pkg_config_args="$pkg_config_args gmodule-2.0"
56367 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
56370 pkg_config_args="$pkg_config_args gobject-2.0"
56373 pkg_config_args="$pkg_config_args gthread-2.0"
56376 pkg_config_args="$pkg_config_args $module-2.0"
56383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56384 if test -n "$ac_tool_prefix"; then
56385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
56386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
56387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56388 $as_echo_n "checking for $ac_word... " >&6; }
56389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56390 $as_echo_n "(cached) " >&6
56392 case $PKG_CONFIG in
56394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56398 for as_dir in $PATH
56401 test -z "$as_dir" && as_dir=.
56402 for ac_exec_ext in '' $ac_executable_extensions; do
56403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56416 if test -n "$PKG_CONFIG"; then
56417 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56418 $as_echo "$PKG_CONFIG" >&6; }
56420 { $as_echo "$as_me:$LINENO: result: no" >&5
56421 $as_echo "no" >&6; }
56426 if test -z "$ac_cv_path_PKG_CONFIG"; then
56427 ac_pt_PKG_CONFIG=$PKG_CONFIG
56428 # Extract the first word of "pkg-config", so it can be a program name with args.
56429 set dummy pkg-config; ac_word=$2
56430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56431 $as_echo_n "checking for $ac_word... " >&6; }
56432 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
56433 $as_echo_n "(cached) " >&6
56435 case $ac_pt_PKG_CONFIG in
56437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
56440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56441 for as_dir in $PATH
56444 test -z "$as_dir" && as_dir=.
56445 for ac_exec_ext in '' $ac_executable_extensions; do
56446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
56459 if test -n "$ac_pt_PKG_CONFIG"; then
56460 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
56461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
56463 { $as_echo "$as_me:$LINENO: result: no" >&5
56464 $as_echo "no" >&6; }
56467 if test "x$ac_pt_PKG_CONFIG" = x; then
56470 case $cross_compiling:$ac_tool_warned in
56472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
56473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56474 ac_tool_warned=yes ;;
56476 PKG_CONFIG=$ac_pt_PKG_CONFIG
56479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
56483 if test -n "$PKG_CONFIG"; then
56484 _pkg_min_version=0.7
56485 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
56486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
56487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
56488 { $as_echo "$as_me:$LINENO: result: yes" >&5
56489 $as_echo "yes" >&6; }
56491 { $as_echo "$as_me:$LINENO: result: no" >&5
56492 $as_echo "no" >&6; }
56500 if test "x$PKG_CONFIG" = x ; then
56505 min_glib_version=2.2.0
56506 { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
56507 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
56509 if test x$PKG_CONFIG != xno ; then
56510 ## don't try to run the test against uninstalled libtool libs
56511 if $PKG_CONFIG --uninstalled $pkg_config_args; then
56512 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
56516 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
56523 if test x"$no_glib" = x ; then
56524 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
56525 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
56526 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56528 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
56529 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
56530 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
56531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
56532 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
56533 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
56534 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
56535 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
56536 if test "x$enable_glibtest" = "xyes" ; then
56537 ac_save_CFLAGS="$CFLAGS"
56538 ac_save_LIBS="$LIBS"
56539 CFLAGS="$CFLAGS $GLIB_CFLAGS"
56540 LIBS="$GLIB_LIBS $LIBS"
56541 rm -f conf.glibtest
56542 if test "$cross_compiling" = yes; then
56543 echo $ac_n "cross compiling; assumed OK... $ac_c"
56545 cat >conftest.$ac_ext <<_ACEOF
56548 cat confdefs.h >>conftest.$ac_ext
56549 cat >>conftest.$ac_ext <<_ACEOF
56550 /* end confdefs.h. */
56554 #include <stdlib.h>
56559 int major, minor, micro;
56562 system ("touch conf.glibtest");
56564 /* HP/UX 9 (%@#!) writes to sscanf strings */
56565 tmp_version = g_strdup("$min_glib_version");
56566 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
56567 printf("%s, bad version string\n", "$min_glib_version");
56571 if ((glib_major_version != $glib_config_major_version) ||
56572 (glib_minor_version != $glib_config_minor_version) ||
56573 (glib_micro_version != $glib_config_micro_version))
56575 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56576 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56577 glib_major_version, glib_minor_version, glib_micro_version);
56578 printf ("*** was found! If pkg-config was correct, then it is best\n");
56579 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56580 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56581 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56582 printf("*** required on your system.\n");
56583 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56584 printf("*** to point to the correct configuration files\n");
56586 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56587 (glib_minor_version != GLIB_MINOR_VERSION) ||
56588 (glib_micro_version != GLIB_MICRO_VERSION))
56590 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56591 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56592 printf("*** library (version %d.%d.%d)\n",
56593 glib_major_version, glib_minor_version, glib_micro_version);
56597 if ((glib_major_version > major) ||
56598 ((glib_major_version == major) && (glib_minor_version > minor)) ||
56599 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56605 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56606 glib_major_version, glib_minor_version, glib_micro_version);
56607 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56608 major, minor, micro);
56609 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56611 printf("*** If you have already installed a sufficiently new version, this error\n");
56612 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56613 printf("*** being found. The easiest way to fix this is to remove the old version\n");
56614 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56615 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56616 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56617 printf("*** so that the correct libraries are found at run-time))\n");
56624 rm -f conftest$ac_exeext
56625 if { (ac_try="$ac_link"
56626 case "(($ac_try" in
56627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56628 *) ac_try_echo=$ac_try;;
56630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56631 $as_echo "$ac_try_echo") >&5
56632 (eval "$ac_link") 2>&5
56634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56636 { (case "(($ac_try" in
56637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56638 *) ac_try_echo=$ac_try;;
56640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56641 $as_echo "$ac_try_echo") >&5
56642 (eval "$ac_try") 2>&5
56644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56645 (exit $ac_status); }; }; then
56648 $as_echo "$as_me: program exited with status $ac_status" >&5
56649 $as_echo "$as_me: failed program was:" >&5
56650 sed 's/^/| /' conftest.$ac_ext >&5
56652 ( exit $ac_status )
56655 rm -rf conftest.dSYM
56656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56660 CFLAGS="$ac_save_CFLAGS"
56661 LIBS="$ac_save_LIBS"
56664 if test "x$no_glib" = x ; then
56665 { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
56666 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
56669 { $as_echo "$as_me:$LINENO: result: no" >&5
56670 $as_echo "no" >&6; }
56671 if test "$PKG_CONFIG" = "no" ; then
56672 echo "*** A new enough version of pkg-config was not found."
56673 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
56675 if test -f conf.glibtest ; then
56678 echo "*** Could not run GLIB test program, checking why..."
56679 ac_save_CFLAGS="$CFLAGS"
56680 ac_save_LIBS="$LIBS"
56681 CFLAGS="$CFLAGS $GLIB_CFLAGS"
56682 LIBS="$LIBS $GLIB_LIBS"
56683 cat >conftest.$ac_ext <<_ACEOF
56686 cat confdefs.h >>conftest.$ac_ext
56687 cat >>conftest.$ac_ext <<_ACEOF
56688 /* end confdefs.h. */
56696 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
56701 rm -f conftest.$ac_objext conftest$ac_exeext
56702 if { (ac_try="$ac_link"
56703 case "(($ac_try" in
56704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56705 *) ac_try_echo=$ac_try;;
56707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56708 $as_echo "$ac_try_echo") >&5
56709 (eval "$ac_link") 2>conftest.er1
56711 grep -v '^ *+' conftest.er1 >conftest.err
56713 cat conftest.err >&5
56714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56715 (exit $ac_status); } && {
56716 test -z "$ac_c_werror_flag" ||
56717 test ! -s conftest.err
56718 } && test -s conftest$ac_exeext && {
56719 test "$cross_compiling" = yes ||
56720 $as_test_x conftest$ac_exeext
56722 echo "*** The test program compiled, but did not run. This usually means"
56723 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
56724 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
56725 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
56726 echo "*** to the installed location Also, make sure you have run ldconfig if that"
56727 echo "*** is required on your system"
56729 echo "*** If you have an old version installed, it is best to remove it, although"
56730 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
56732 $as_echo "$as_me: failed program was:" >&5
56733 sed 's/^/| /' conftest.$ac_ext >&5
56735 echo "*** The test program failed to compile or link. See the file config.log for the"
56736 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
56739 rm -rf conftest.dSYM
56740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56741 conftest$ac_exeext conftest.$ac_ext
56742 CFLAGS="$ac_save_CFLAGS"
56743 LIBS="$ac_save_LIBS"
56752 { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
56753 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
56754 { (exit 1); exit 1; }; }
56762 rm -f conf.glibtest
56764 # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
56765 CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
56767 LIBS="$GLIB_LIBS $LIBS"
56772 # Check whether --with-readline was given.
56773 if test "${with_readline+set}" = set; then
56774 withval=$with_readline;
56776 y | ye | yes | n | no) : ;;
56777 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
56778 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
56779 { (exit 1); exit 1; }; }
56781 want_readline="$withval"
56785 want_readline="maybe" # meaning "only if we can find it"
56790 # unless the user said "no", look for readline.
56791 if test x"$want_readline" != x"no"; then
56792 # we need a tgetent() somewhere..
56794 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
56795 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
56796 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
56797 $as_echo_n "(cached) " >&6
56799 ac_check_lib_save_LIBS=$LIBS
56800 LIBS="-ltermcap $LIBS"
56801 cat >conftest.$ac_ext <<_ACEOF
56804 cat confdefs.h >>conftest.$ac_ext
56805 cat >>conftest.$ac_ext <<_ACEOF
56806 /* end confdefs.h. */
56808 /* Override any GCC internal prototype to avoid an error.
56809 Use char because int might match the return type of a GCC
56810 builtin and then its argument prototype would still apply. */
56823 rm -f conftest.$ac_objext conftest$ac_exeext
56824 if { (ac_try="$ac_link"
56825 case "(($ac_try" in
56826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56827 *) ac_try_echo=$ac_try;;
56829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56830 $as_echo "$ac_try_echo") >&5
56831 (eval "$ac_link") 2>conftest.er1
56833 grep -v '^ *+' conftest.er1 >conftest.err
56835 cat conftest.err >&5
56836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56837 (exit $ac_status); } && {
56838 test -z "$ac_c_werror_flag" ||
56839 test ! -s conftest.err
56840 } && test -s conftest$ac_exeext && {
56841 test "$cross_compiling" = yes ||
56842 $as_test_x conftest$ac_exeext
56844 ac_cv_lib_termcap_tgetent=yes
56846 $as_echo "$as_me: failed program was:" >&5
56847 sed 's/^/| /' conftest.$ac_ext >&5
56849 ac_cv_lib_termcap_tgetent=no
56852 rm -rf conftest.dSYM
56853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56854 conftest$ac_exeext conftest.$ac_ext
56855 LIBS=$ac_check_lib_save_LIBS
56857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
56858 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
56859 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
56861 READLINE_LIBS="-ltermcap"
56866 { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
56867 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
56868 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
56869 $as_echo_n "(cached) " >&6
56871 ac_check_lib_save_LIBS=$LIBS
56872 LIBS="-lcurses $LIBS"
56873 cat >conftest.$ac_ext <<_ACEOF
56876 cat confdefs.h >>conftest.$ac_ext
56877 cat >>conftest.$ac_ext <<_ACEOF
56878 /* end confdefs.h. */
56880 /* Override any GCC internal prototype to avoid an error.
56881 Use char because int might match the return type of a GCC
56882 builtin and then its argument prototype would still apply. */
56895 rm -f conftest.$ac_objext conftest$ac_exeext
56896 if { (ac_try="$ac_link"
56897 case "(($ac_try" in
56898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56899 *) ac_try_echo=$ac_try;;
56901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56902 $as_echo "$ac_try_echo") >&5
56903 (eval "$ac_link") 2>conftest.er1
56905 grep -v '^ *+' conftest.er1 >conftest.err
56907 cat conftest.err >&5
56908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56909 (exit $ac_status); } && {
56910 test -z "$ac_c_werror_flag" ||
56911 test ! -s conftest.err
56912 } && test -s conftest$ac_exeext && {
56913 test "$cross_compiling" = yes ||
56914 $as_test_x conftest$ac_exeext
56916 ac_cv_lib_curses_tgetent=yes
56918 $as_echo "$as_me: failed program was:" >&5
56919 sed 's/^/| /' conftest.$ac_ext >&5
56921 ac_cv_lib_curses_tgetent=no
56924 rm -rf conftest.dSYM
56925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56926 conftest$ac_exeext conftest.$ac_ext
56927 LIBS=$ac_check_lib_save_LIBS
56929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
56930 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
56931 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
56933 READLINE_LIBS="-lcurses"
56938 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
56939 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
56940 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
56941 $as_echo_n "(cached) " >&6
56943 ac_check_lib_save_LIBS=$LIBS
56944 LIBS="-lncurses $LIBS"
56945 cat >conftest.$ac_ext <<_ACEOF
56948 cat confdefs.h >>conftest.$ac_ext
56949 cat >>conftest.$ac_ext <<_ACEOF
56950 /* end confdefs.h. */
56952 /* Override any GCC internal prototype to avoid an error.
56953 Use char because int might match the return type of a GCC
56954 builtin and then its argument prototype would still apply. */
56967 rm -f conftest.$ac_objext conftest$ac_exeext
56968 if { (ac_try="$ac_link"
56969 case "(($ac_try" in
56970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56971 *) ac_try_echo=$ac_try;;
56973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56974 $as_echo "$ac_try_echo") >&5
56975 (eval "$ac_link") 2>conftest.er1
56977 grep -v '^ *+' conftest.er1 >conftest.err
56979 cat conftest.err >&5
56980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56981 (exit $ac_status); } && {
56982 test -z "$ac_c_werror_flag" ||
56983 test ! -s conftest.err
56984 } && test -s conftest$ac_exeext && {
56985 test "$cross_compiling" = yes ||
56986 $as_test_x conftest$ac_exeext
56988 ac_cv_lib_ncurses_tgetent=yes
56990 $as_echo "$as_me: failed program was:" >&5
56991 sed 's/^/| /' conftest.$ac_ext >&5
56993 ac_cv_lib_ncurses_tgetent=no
56996 rm -rf conftest.dSYM
56997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56998 conftest$ac_exeext conftest.$ac_ext
56999 LIBS=$ac_check_lib_save_LIBS
57001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
57002 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
57003 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
57005 READLINE_LIBS="-lncurses"
57023 for ac_header in history.h readline.h readline/history.h readline/readline.h
57025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57028 $as_echo_n "checking for $ac_header... " >&6; }
57029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57030 $as_echo_n "(cached) " >&6
57032 ac_res=`eval 'as_val=${'$as_ac_Header'}
57033 $as_echo "$as_val"'`
57034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57035 $as_echo "$ac_res" >&6; }
57037 # Is the header compilable?
57038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57039 $as_echo_n "checking $ac_header usability... " >&6; }
57040 cat >conftest.$ac_ext <<_ACEOF
57043 cat confdefs.h >>conftest.$ac_ext
57044 cat >>conftest.$ac_ext <<_ACEOF
57045 /* end confdefs.h. */
57046 $ac_includes_default
57047 #include <$ac_header>
57049 rm -f conftest.$ac_objext
57050 if { (ac_try="$ac_compile"
57051 case "(($ac_try" in
57052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57053 *) ac_try_echo=$ac_try;;
57055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57056 $as_echo "$ac_try_echo") >&5
57057 (eval "$ac_compile") 2>conftest.er1
57059 grep -v '^ *+' conftest.er1 >conftest.err
57061 cat conftest.err >&5
57062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57063 (exit $ac_status); } && {
57064 test -z "$ac_c_werror_flag" ||
57065 test ! -s conftest.err
57066 } && test -s conftest.$ac_objext; then
57067 ac_header_compiler=yes
57069 $as_echo "$as_me: failed program was:" >&5
57070 sed 's/^/| /' conftest.$ac_ext >&5
57072 ac_header_compiler=no
57075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57077 $as_echo "$ac_header_compiler" >&6; }
57079 # Is the header present?
57080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57081 $as_echo_n "checking $ac_header presence... " >&6; }
57082 cat >conftest.$ac_ext <<_ACEOF
57085 cat confdefs.h >>conftest.$ac_ext
57086 cat >>conftest.$ac_ext <<_ACEOF
57087 /* end confdefs.h. */
57088 #include <$ac_header>
57090 if { (ac_try="$ac_cpp conftest.$ac_ext"
57091 case "(($ac_try" in
57092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57093 *) ac_try_echo=$ac_try;;
57095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57096 $as_echo "$ac_try_echo") >&5
57097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57099 grep -v '^ *+' conftest.er1 >conftest.err
57101 cat conftest.err >&5
57102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57103 (exit $ac_status); } >/dev/null && {
57104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57105 test ! -s conftest.err
57107 ac_header_preproc=yes
57109 $as_echo "$as_me: failed program was:" >&5
57110 sed 's/^/| /' conftest.$ac_ext >&5
57112 ac_header_preproc=no
57115 rm -f conftest.err conftest.$ac_ext
57116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57117 $as_echo "$ac_header_preproc" >&6; }
57119 # So? What about this header?
57120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57126 ac_header_preproc=yes
57129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57132 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57136 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57145 $as_echo_n "checking for $ac_header... " >&6; }
57146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57147 $as_echo_n "(cached) " >&6
57149 eval "$as_ac_Header=\$ac_header_preproc"
57151 ac_res=`eval 'as_val=${'$as_ac_Header'}
57152 $as_echo "$as_val"'`
57153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57154 $as_echo "$ac_res" >&6; }
57157 as_val=`eval 'as_val=${'$as_ac_Header'}
57158 $as_echo "$as_val"'`
57159 if test "x$as_val" = x""yes; then
57160 cat >>confdefs.h <<_ACEOF
57161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57164 # found at least one of the headers, so we can proceed.
57175 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
57176 $as_echo_n "checking for readline in -lreadline... " >&6; }
57177 if test "${ac_cv_lib_readline_readline+set}" = set; then
57178 $as_echo_n "(cached) " >&6
57180 ac_check_lib_save_LIBS=$LIBS
57181 LIBS="-lreadline $READLINE_LIBS $LIBS"
57182 cat >conftest.$ac_ext <<_ACEOF
57185 cat confdefs.h >>conftest.$ac_ext
57186 cat >>conftest.$ac_ext <<_ACEOF
57187 /* end confdefs.h. */
57189 /* Override any GCC internal prototype to avoid an error.
57190 Use char because int might match the return type of a GCC
57191 builtin and then its argument prototype would still apply. */
57199 return readline ();
57204 rm -f conftest.$ac_objext conftest$ac_exeext
57205 if { (ac_try="$ac_link"
57206 case "(($ac_try" in
57207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57208 *) ac_try_echo=$ac_try;;
57210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57211 $as_echo "$ac_try_echo") >&5
57212 (eval "$ac_link") 2>conftest.er1
57214 grep -v '^ *+' conftest.er1 >conftest.err
57216 cat conftest.err >&5
57217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57218 (exit $ac_status); } && {
57219 test -z "$ac_c_werror_flag" ||
57220 test ! -s conftest.err
57221 } && test -s conftest$ac_exeext && {
57222 test "$cross_compiling" = yes ||
57223 $as_test_x conftest$ac_exeext
57225 ac_cv_lib_readline_readline=yes
57227 $as_echo "$as_me: failed program was:" >&5
57228 sed 's/^/| /' conftest.$ac_ext >&5
57230 ac_cv_lib_readline_readline=no
57233 rm -rf conftest.dSYM
57234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57235 conftest$ac_exeext conftest.$ac_ext
57236 LIBS=$ac_check_lib_save_LIBS
57238 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
57239 $as_echo "$ac_cv_lib_readline_readline" >&6; }
57240 if test "x$ac_cv_lib_readline_readline" = x""yes; then
57242 READLINE_LIBS="-lreadline $READLINE_LIBS"
57250 # we have readline!
57252 cat >>confdefs.h <<\_ACEOF
57253 #define HAVE_READLINE 1
57257 # no readline. if the user *really* wanted it, bail out.
57258 if test x"$want_readline" = x"yes"; then
57259 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&5
57260 $as_echo "$as_me: error: *** No readline implementation found. Try using --with-libraries and --with-includes" >&2;}
57261 { (exit 1); exit 1; }; }
57269 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
57270 $as_echo_n "checking for modf in -lm... " >&6; }
57271 if test "${ac_cv_lib_m_modf+set}" = set; then
57272 $as_echo_n "(cached) " >&6
57274 ac_check_lib_save_LIBS=$LIBS
57276 cat >conftest.$ac_ext <<_ACEOF
57279 cat confdefs.h >>conftest.$ac_ext
57280 cat >>conftest.$ac_ext <<_ACEOF
57281 /* end confdefs.h. */
57283 /* Override any GCC internal prototype to avoid an error.
57284 Use char because int might match the return type of a GCC
57285 builtin and then its argument prototype would still apply. */
57298 rm -f conftest.$ac_objext conftest$ac_exeext
57299 if { (ac_try="$ac_link"
57300 case "(($ac_try" in
57301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57302 *) ac_try_echo=$ac_try;;
57304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57305 $as_echo "$ac_try_echo") >&5
57306 (eval "$ac_link") 2>conftest.er1
57308 grep -v '^ *+' conftest.er1 >conftest.err
57310 cat conftest.err >&5
57311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57312 (exit $ac_status); } && {
57313 test -z "$ac_c_werror_flag" ||
57314 test ! -s conftest.err
57315 } && test -s conftest$ac_exeext && {
57316 test "$cross_compiling" = yes ||
57317 $as_test_x conftest$ac_exeext
57319 ac_cv_lib_m_modf=yes
57321 $as_echo "$as_me: failed program was:" >&5
57322 sed 's/^/| /' conftest.$ac_ext >&5
57324 ac_cv_lib_m_modf=no
57327 rm -rf conftest.dSYM
57328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57329 conftest$ac_exeext conftest.$ac_ext
57330 LIBS=$ac_check_lib_save_LIBS
57332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
57333 $as_echo "$ac_cv_lib_m_modf" >&6; }
57334 if test "x$ac_cv_lib_m_modf" = x""yes; then
57335 cat >>confdefs.h <<_ACEOF
57336 #define HAVE_LIBM 1
57344 if test "${ac_cv_header_execinfo_h+set}" = set; then
57345 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57346 $as_echo_n "checking for execinfo.h... " >&6; }
57347 if test "${ac_cv_header_execinfo_h+set}" = set; then
57348 $as_echo_n "(cached) " >&6
57350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57351 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57353 # Is the header compilable?
57354 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
57355 $as_echo_n "checking execinfo.h usability... " >&6; }
57356 cat >conftest.$ac_ext <<_ACEOF
57359 cat confdefs.h >>conftest.$ac_ext
57360 cat >>conftest.$ac_ext <<_ACEOF
57361 /* end confdefs.h. */
57362 $ac_includes_default
57363 #include <execinfo.h>
57365 rm -f conftest.$ac_objext
57366 if { (ac_try="$ac_compile"
57367 case "(($ac_try" in
57368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57369 *) ac_try_echo=$ac_try;;
57371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57372 $as_echo "$ac_try_echo") >&5
57373 (eval "$ac_compile") 2>conftest.er1
57375 grep -v '^ *+' conftest.er1 >conftest.err
57377 cat conftest.err >&5
57378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57379 (exit $ac_status); } && {
57380 test -z "$ac_c_werror_flag" ||
57381 test ! -s conftest.err
57382 } && test -s conftest.$ac_objext; then
57383 ac_header_compiler=yes
57385 $as_echo "$as_me: failed program was:" >&5
57386 sed 's/^/| /' conftest.$ac_ext >&5
57388 ac_header_compiler=no
57391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57392 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57393 $as_echo "$ac_header_compiler" >&6; }
57395 # Is the header present?
57396 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
57397 $as_echo_n "checking execinfo.h presence... " >&6; }
57398 cat >conftest.$ac_ext <<_ACEOF
57401 cat confdefs.h >>conftest.$ac_ext
57402 cat >>conftest.$ac_ext <<_ACEOF
57403 /* end confdefs.h. */
57404 #include <execinfo.h>
57406 if { (ac_try="$ac_cpp conftest.$ac_ext"
57407 case "(($ac_try" in
57408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57409 *) ac_try_echo=$ac_try;;
57411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57412 $as_echo "$ac_try_echo") >&5
57413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57415 grep -v '^ *+' conftest.er1 >conftest.err
57417 cat conftest.err >&5
57418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57419 (exit $ac_status); } >/dev/null && {
57420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57421 test ! -s conftest.err
57423 ac_header_preproc=yes
57425 $as_echo "$as_me: failed program was:" >&5
57426 sed 's/^/| /' conftest.$ac_ext >&5
57428 ac_header_preproc=no
57431 rm -f conftest.err conftest.$ac_ext
57432 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57433 $as_echo "$ac_header_preproc" >&6; }
57435 # So? What about this header?
57436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57438 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57439 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57440 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
57441 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
57442 ac_header_preproc=yes
57445 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
57446 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
57447 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
57448 $as_echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
57449 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
57450 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
57451 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57452 $as_echo "$as_me: WARNING: execinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57453 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
57454 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
57455 { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
57456 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
57460 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57461 $as_echo_n "checking for execinfo.h... " >&6; }
57462 if test "${ac_cv_header_execinfo_h+set}" = set; then
57463 $as_echo_n "(cached) " >&6
57465 ac_cv_header_execinfo_h=$ac_header_preproc
57467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57468 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57471 if test "x$ac_cv_header_execinfo_h" = x""yes; then
57473 { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
57474 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
57475 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
57476 $as_echo_n "(cached) " >&6
57478 cat >conftest.$ac_ext <<_ACEOF
57481 cat confdefs.h >>conftest.$ac_ext
57482 cat >>conftest.$ac_ext <<_ACEOF
57483 /* end confdefs.h. */
57484 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
57485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57486 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
57488 /* System header to define __stub macros and hopefully few prototypes,
57489 which can conflict with char backtrace_symbols_fd (); below.
57490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57491 <limits.h> exists even on freestanding compilers. */
57494 # include <limits.h>
57496 # include <assert.h>
57499 #undef backtrace_symbols_fd
57501 /* Override any GCC internal prototype to avoid an error.
57502 Use char because int might match the return type of a GCC
57503 builtin and then its argument prototype would still apply. */
57507 char backtrace_symbols_fd ();
57508 /* The GNU C library defines this for functions which it implements
57509 to always fail with ENOSYS. Some functions are actually named
57510 something starting with __ and the normal name is an alias. */
57511 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
57518 return backtrace_symbols_fd ();
57523 rm -f conftest.$ac_objext conftest$ac_exeext
57524 if { (ac_try="$ac_link"
57525 case "(($ac_try" in
57526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57527 *) ac_try_echo=$ac_try;;
57529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57530 $as_echo "$ac_try_echo") >&5
57531 (eval "$ac_link") 2>conftest.er1
57533 grep -v '^ *+' conftest.er1 >conftest.err
57535 cat conftest.err >&5
57536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57537 (exit $ac_status); } && {
57538 test -z "$ac_c_werror_flag" ||
57539 test ! -s conftest.err
57540 } && test -s conftest$ac_exeext && {
57541 test "$cross_compiling" = yes ||
57542 $as_test_x conftest$ac_exeext
57544 ac_cv_func_backtrace_symbols_fd=yes
57546 $as_echo "$as_me: failed program was:" >&5
57547 sed 's/^/| /' conftest.$ac_ext >&5
57549 ac_cv_func_backtrace_symbols_fd=no
57552 rm -rf conftest.dSYM
57553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57554 conftest$ac_exeext conftest.$ac_ext
57556 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
57557 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
57558 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
57561 cat >>confdefs.h <<\_ACEOF
57562 #define HAVE_GLIBC_BACKTRACE 1
57577 # Checks for library functions and if the function is declared in
57578 # an appropriate header file. Functions which exist, but for which
57579 # no declaration is available, are declared in common-src/amanda.h.
57580 # It's not clear that any existing system implements but does not
57581 # declare common functions such as these.
57586 for ac_func in accept
57588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57590 $as_echo_n "checking for $ac_func... " >&6; }
57591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57592 $as_echo_n "(cached) " >&6
57594 cat >conftest.$ac_ext <<_ACEOF
57597 cat confdefs.h >>conftest.$ac_ext
57598 cat >>conftest.$ac_ext <<_ACEOF
57599 /* end confdefs.h. */
57600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57602 #define $ac_func innocuous_$ac_func
57604 /* System header to define __stub macros and hopefully few prototypes,
57605 which can conflict with char $ac_func (); below.
57606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57607 <limits.h> exists even on freestanding compilers. */
57610 # include <limits.h>
57612 # include <assert.h>
57617 /* Override any GCC internal prototype to avoid an error.
57618 Use char because int might match the return type of a GCC
57619 builtin and then its argument prototype would still apply. */
57624 /* The GNU C library defines this for functions which it implements
57625 to always fail with ENOSYS. Some functions are actually named
57626 something starting with __ and the normal name is an alias. */
57627 #if defined __stub_$ac_func || defined __stub___$ac_func
57634 return $ac_func ();
57639 rm -f conftest.$ac_objext conftest$ac_exeext
57640 if { (ac_try="$ac_link"
57641 case "(($ac_try" in
57642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57643 *) ac_try_echo=$ac_try;;
57645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57646 $as_echo "$ac_try_echo") >&5
57647 (eval "$ac_link") 2>conftest.er1
57649 grep -v '^ *+' conftest.er1 >conftest.err
57651 cat conftest.err >&5
57652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57653 (exit $ac_status); } && {
57654 test -z "$ac_c_werror_flag" ||
57655 test ! -s conftest.err
57656 } && test -s conftest$ac_exeext && {
57657 test "$cross_compiling" = yes ||
57658 $as_test_x conftest$ac_exeext
57660 eval "$as_ac_var=yes"
57662 $as_echo "$as_me: failed program was:" >&5
57663 sed 's/^/| /' conftest.$ac_ext >&5
57665 eval "$as_ac_var=no"
57668 rm -rf conftest.dSYM
57669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57670 conftest$ac_exeext conftest.$ac_ext
57672 ac_res=`eval 'as_val=${'$as_ac_var'}
57673 $as_echo "$as_val"'`
57674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57675 $as_echo "$ac_res" >&6; }
57676 as_val=`eval 'as_val=${'$as_ac_var'}
57677 $as_echo "$as_val"'`
57678 if test "x$as_val" = x""yes; then
57679 cat >>confdefs.h <<_ACEOF
57680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57682 ice_have_accept=yes
57686 if test "${ice_have_accept}" = yes; then
57687 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
57688 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
57689 if test "${ice_cv_have_accept_decl+set}" = set; then
57690 $as_echo_n "(cached) " >&6
57693 ice_cv_have_accept_decl=no
57694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57695 ice_re_word='(^|[^a-zA-Z0-9_])'
57696 for header in sys/types.h sys/socket.h; do
57697 # Check for ordinary declaration
57698 cat >conftest.$ac_ext <<_ACEOF
57701 cat confdefs.h >>conftest.$ac_ext
57702 cat >>conftest.$ac_ext <<_ACEOF
57703 /* end confdefs.h. */
57707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57708 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
57709 ice_cv_have_accept_decl=yes
57713 if test "$ice_cv_have_accept_decl" = yes; then
57716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57717 cat >conftest.$ac_ext <<_ACEOF
57720 cat confdefs.h >>conftest.$ac_ext
57721 cat >>conftest.$ac_ext <<_ACEOF
57722 /* end confdefs.h. */
57726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57727 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57728 ice_cv_have_accept_decl=yes
57732 if test "$ice_cv_have_accept_decl" = yes; then
57739 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
57740 $as_echo "$ice_cv_have_accept_decl" >&6; }
57741 if test "$ice_cv_have_accept_decl" = yes; then
57743 cat >>confdefs.h <<_ACEOF
57744 #define HAVE_ACCEPT_DECL 1
57750 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
57751 # for constant arguments. Useless!
57752 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
57753 $as_echo_n "checking for working alloca.h... " >&6; }
57754 if test "${ac_cv_working_alloca_h+set}" = set; then
57755 $as_echo_n "(cached) " >&6
57757 cat >conftest.$ac_ext <<_ACEOF
57760 cat confdefs.h >>conftest.$ac_ext
57761 cat >>conftest.$ac_ext <<_ACEOF
57762 /* end confdefs.h. */
57763 #include <alloca.h>
57767 char *p = (char *) alloca (2 * sizeof (int));
57773 rm -f conftest.$ac_objext conftest$ac_exeext
57774 if { (ac_try="$ac_link"
57775 case "(($ac_try" in
57776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57777 *) ac_try_echo=$ac_try;;
57779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57780 $as_echo "$ac_try_echo") >&5
57781 (eval "$ac_link") 2>conftest.er1
57783 grep -v '^ *+' conftest.er1 >conftest.err
57785 cat conftest.err >&5
57786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57787 (exit $ac_status); } && {
57788 test -z "$ac_c_werror_flag" ||
57789 test ! -s conftest.err
57790 } && test -s conftest$ac_exeext && {
57791 test "$cross_compiling" = yes ||
57792 $as_test_x conftest$ac_exeext
57794 ac_cv_working_alloca_h=yes
57796 $as_echo "$as_me: failed program was:" >&5
57797 sed 's/^/| /' conftest.$ac_ext >&5
57799 ac_cv_working_alloca_h=no
57802 rm -rf conftest.dSYM
57803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57804 conftest$ac_exeext conftest.$ac_ext
57806 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
57807 $as_echo "$ac_cv_working_alloca_h" >&6; }
57808 if test $ac_cv_working_alloca_h = yes; then
57810 cat >>confdefs.h <<\_ACEOF
57811 #define HAVE_ALLOCA_H 1
57816 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
57817 $as_echo_n "checking for alloca... " >&6; }
57818 if test "${ac_cv_func_alloca_works+set}" = set; then
57819 $as_echo_n "(cached) " >&6
57821 cat >conftest.$ac_ext <<_ACEOF
57824 cat confdefs.h >>conftest.$ac_ext
57825 cat >>conftest.$ac_ext <<_ACEOF
57826 /* end confdefs.h. */
57828 # define alloca __builtin_alloca
57831 # include <malloc.h>
57832 # define alloca _alloca
57834 # ifdef HAVE_ALLOCA_H
57835 # include <alloca.h>
57840 # ifndef alloca /* predefined by HP cc +Olibcalls */
57851 char *p = (char *) alloca (1);
57857 rm -f conftest.$ac_objext conftest$ac_exeext
57858 if { (ac_try="$ac_link"
57859 case "(($ac_try" in
57860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57861 *) ac_try_echo=$ac_try;;
57863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57864 $as_echo "$ac_try_echo") >&5
57865 (eval "$ac_link") 2>conftest.er1
57867 grep -v '^ *+' conftest.er1 >conftest.err
57869 cat conftest.err >&5
57870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57871 (exit $ac_status); } && {
57872 test -z "$ac_c_werror_flag" ||
57873 test ! -s conftest.err
57874 } && test -s conftest$ac_exeext && {
57875 test "$cross_compiling" = yes ||
57876 $as_test_x conftest$ac_exeext
57878 ac_cv_func_alloca_works=yes
57880 $as_echo "$as_me: failed program was:" >&5
57881 sed 's/^/| /' conftest.$ac_ext >&5
57883 ac_cv_func_alloca_works=no
57886 rm -rf conftest.dSYM
57887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57888 conftest$ac_exeext conftest.$ac_ext
57890 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
57891 $as_echo "$ac_cv_func_alloca_works" >&6; }
57893 if test $ac_cv_func_alloca_works = yes; then
57895 cat >>confdefs.h <<\_ACEOF
57896 #define HAVE_ALLOCA 1
57900 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
57901 # that cause trouble. Some versions do not even contain alloca or
57902 # contain a buggy version. If you still want to use their alloca,
57903 # use ar to extract alloca.o from them instead of compiling alloca.c.
57905 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57907 cat >>confdefs.h <<\_ACEOF
57912 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
57913 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
57914 if test "${ac_cv_os_cray+set}" = set; then
57915 $as_echo_n "(cached) " >&6
57917 cat >conftest.$ac_ext <<_ACEOF
57920 cat confdefs.h >>conftest.$ac_ext
57921 cat >>conftest.$ac_ext <<_ACEOF
57922 /* end confdefs.h. */
57923 #if defined CRAY && ! defined CRAY2
57930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57931 $EGREP "webecray" >/dev/null 2>&1; then
57939 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
57940 $as_echo "$ac_cv_os_cray" >&6; }
57941 if test $ac_cv_os_cray = yes; then
57942 for ac_func in _getb67 GETB67 getb67; do
57943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57944 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57945 $as_echo_n "checking for $ac_func... " >&6; }
57946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57947 $as_echo_n "(cached) " >&6
57949 cat >conftest.$ac_ext <<_ACEOF
57952 cat confdefs.h >>conftest.$ac_ext
57953 cat >>conftest.$ac_ext <<_ACEOF
57954 /* end confdefs.h. */
57955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57957 #define $ac_func innocuous_$ac_func
57959 /* System header to define __stub macros and hopefully few prototypes,
57960 which can conflict with char $ac_func (); below.
57961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57962 <limits.h> exists even on freestanding compilers. */
57965 # include <limits.h>
57967 # include <assert.h>
57972 /* Override any GCC internal prototype to avoid an error.
57973 Use char because int might match the return type of a GCC
57974 builtin and then its argument prototype would still apply. */
57979 /* The GNU C library defines this for functions which it implements
57980 to always fail with ENOSYS. Some functions are actually named
57981 something starting with __ and the normal name is an alias. */
57982 #if defined __stub_$ac_func || defined __stub___$ac_func
57989 return $ac_func ();
57994 rm -f conftest.$ac_objext conftest$ac_exeext
57995 if { (ac_try="$ac_link"
57996 case "(($ac_try" in
57997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57998 *) ac_try_echo=$ac_try;;
58000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58001 $as_echo "$ac_try_echo") >&5
58002 (eval "$ac_link") 2>conftest.er1
58004 grep -v '^ *+' conftest.er1 >conftest.err
58006 cat conftest.err >&5
58007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58008 (exit $ac_status); } && {
58009 test -z "$ac_c_werror_flag" ||
58010 test ! -s conftest.err
58011 } && test -s conftest$ac_exeext && {
58012 test "$cross_compiling" = yes ||
58013 $as_test_x conftest$ac_exeext
58015 eval "$as_ac_var=yes"
58017 $as_echo "$as_me: failed program was:" >&5
58018 sed 's/^/| /' conftest.$ac_ext >&5
58020 eval "$as_ac_var=no"
58023 rm -rf conftest.dSYM
58024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58025 conftest$ac_exeext conftest.$ac_ext
58027 ac_res=`eval 'as_val=${'$as_ac_var'}
58028 $as_echo "$as_val"'`
58029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58030 $as_echo "$ac_res" >&6; }
58031 as_val=`eval 'as_val=${'$as_ac_var'}
58032 $as_echo "$as_val"'`
58033 if test "x$as_val" = x""yes; then
58035 cat >>confdefs.h <<_ACEOF
58036 #define CRAY_STACKSEG_END $ac_func
58045 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
58046 $as_echo_n "checking stack direction for C alloca... " >&6; }
58047 if test "${ac_cv_c_stack_direction+set}" = set; then
58048 $as_echo_n "(cached) " >&6
58050 if test "$cross_compiling" = yes; then
58051 ac_cv_c_stack_direction=0
58053 cat >conftest.$ac_ext <<_ACEOF
58056 cat confdefs.h >>conftest.$ac_ext
58057 cat >>conftest.$ac_ext <<_ACEOF
58058 /* end confdefs.h. */
58059 $ac_includes_default
58061 find_stack_direction ()
58063 static char *addr = 0;
58068 return find_stack_direction ();
58071 return (&dummy > addr) ? 1 : -1;
58077 return find_stack_direction () < 0;
58080 rm -f conftest$ac_exeext
58081 if { (ac_try="$ac_link"
58082 case "(($ac_try" in
58083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58084 *) ac_try_echo=$ac_try;;
58086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58087 $as_echo "$ac_try_echo") >&5
58088 (eval "$ac_link") 2>&5
58090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58092 { (case "(($ac_try" in
58093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58094 *) ac_try_echo=$ac_try;;
58096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58097 $as_echo "$ac_try_echo") >&5
58098 (eval "$ac_try") 2>&5
58100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58101 (exit $ac_status); }; }; then
58102 ac_cv_c_stack_direction=1
58104 $as_echo "$as_me: program exited with status $ac_status" >&5
58105 $as_echo "$as_me: failed program was:" >&5
58106 sed 's/^/| /' conftest.$ac_ext >&5
58108 ( exit $ac_status )
58109 ac_cv_c_stack_direction=-1
58111 rm -rf conftest.dSYM
58112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58117 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
58118 $as_echo "$ac_cv_c_stack_direction" >&6; }
58120 cat >>confdefs.h <<_ACEOF
58121 #define STACK_DIRECTION $ac_cv_c_stack_direction
58128 for ac_func in atexit
58130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58131 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58132 $as_echo_n "checking for $ac_func... " >&6; }
58133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58134 $as_echo_n "(cached) " >&6
58136 cat >conftest.$ac_ext <<_ACEOF
58139 cat confdefs.h >>conftest.$ac_ext
58140 cat >>conftest.$ac_ext <<_ACEOF
58141 /* end confdefs.h. */
58142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58144 #define $ac_func innocuous_$ac_func
58146 /* System header to define __stub macros and hopefully few prototypes,
58147 which can conflict with char $ac_func (); below.
58148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58149 <limits.h> exists even on freestanding compilers. */
58152 # include <limits.h>
58154 # include <assert.h>
58159 /* Override any GCC internal prototype to avoid an error.
58160 Use char because int might match the return type of a GCC
58161 builtin and then its argument prototype would still apply. */
58166 /* The GNU C library defines this for functions which it implements
58167 to always fail with ENOSYS. Some functions are actually named
58168 something starting with __ and the normal name is an alias. */
58169 #if defined __stub_$ac_func || defined __stub___$ac_func
58176 return $ac_func ();
58181 rm -f conftest.$ac_objext conftest$ac_exeext
58182 if { (ac_try="$ac_link"
58183 case "(($ac_try" in
58184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58185 *) ac_try_echo=$ac_try;;
58187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58188 $as_echo "$ac_try_echo") >&5
58189 (eval "$ac_link") 2>conftest.er1
58191 grep -v '^ *+' conftest.er1 >conftest.err
58193 cat conftest.err >&5
58194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58195 (exit $ac_status); } && {
58196 test -z "$ac_c_werror_flag" ||
58197 test ! -s conftest.err
58198 } && test -s conftest$ac_exeext && {
58199 test "$cross_compiling" = yes ||
58200 $as_test_x conftest$ac_exeext
58202 eval "$as_ac_var=yes"
58204 $as_echo "$as_me: failed program was:" >&5
58205 sed 's/^/| /' conftest.$ac_ext >&5
58207 eval "$as_ac_var=no"
58210 rm -rf conftest.dSYM
58211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58212 conftest$ac_exeext conftest.$ac_ext
58214 ac_res=`eval 'as_val=${'$as_ac_var'}
58215 $as_echo "$as_val"'`
58216 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58217 $as_echo "$ac_res" >&6; }
58218 as_val=`eval 'as_val=${'$as_ac_var'}
58219 $as_echo "$as_val"'`
58220 if test "x$as_val" = x""yes; then
58221 cat >>confdefs.h <<_ACEOF
58222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58231 for ac_func in atof
58233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58235 $as_echo_n "checking for $ac_func... " >&6; }
58236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58237 $as_echo_n "(cached) " >&6
58239 cat >conftest.$ac_ext <<_ACEOF
58242 cat confdefs.h >>conftest.$ac_ext
58243 cat >>conftest.$ac_ext <<_ACEOF
58244 /* end confdefs.h. */
58245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58247 #define $ac_func innocuous_$ac_func
58249 /* System header to define __stub macros and hopefully few prototypes,
58250 which can conflict with char $ac_func (); below.
58251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58252 <limits.h> exists even on freestanding compilers. */
58255 # include <limits.h>
58257 # include <assert.h>
58262 /* Override any GCC internal prototype to avoid an error.
58263 Use char because int might match the return type of a GCC
58264 builtin and then its argument prototype would still apply. */
58269 /* The GNU C library defines this for functions which it implements
58270 to always fail with ENOSYS. Some functions are actually named
58271 something starting with __ and the normal name is an alias. */
58272 #if defined __stub_$ac_func || defined __stub___$ac_func
58279 return $ac_func ();
58284 rm -f conftest.$ac_objext conftest$ac_exeext
58285 if { (ac_try="$ac_link"
58286 case "(($ac_try" in
58287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58288 *) ac_try_echo=$ac_try;;
58290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58291 $as_echo "$ac_try_echo") >&5
58292 (eval "$ac_link") 2>conftest.er1
58294 grep -v '^ *+' conftest.er1 >conftest.err
58296 cat conftest.err >&5
58297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58298 (exit $ac_status); } && {
58299 test -z "$ac_c_werror_flag" ||
58300 test ! -s conftest.err
58301 } && test -s conftest$ac_exeext && {
58302 test "$cross_compiling" = yes ||
58303 $as_test_x conftest$ac_exeext
58305 eval "$as_ac_var=yes"
58307 $as_echo "$as_me: failed program was:" >&5
58308 sed 's/^/| /' conftest.$ac_ext >&5
58310 eval "$as_ac_var=no"
58313 rm -rf conftest.dSYM
58314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58315 conftest$ac_exeext conftest.$ac_ext
58317 ac_res=`eval 'as_val=${'$as_ac_var'}
58318 $as_echo "$as_val"'`
58319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58320 $as_echo "$ac_res" >&6; }
58321 as_val=`eval 'as_val=${'$as_ac_var'}
58322 $as_echo "$as_val"'`
58323 if test "x$as_val" = x""yes; then
58324 cat >>confdefs.h <<_ACEOF
58325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58331 if test "${ice_have_atof}" = yes; then
58332 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
58333 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
58334 if test "${ice_cv_have_atof_decl+set}" = set; then
58335 $as_echo_n "(cached) " >&6
58338 ice_cv_have_atof_decl=no
58339 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58340 ice_re_word='(^|[^a-zA-Z0-9_])'
58341 for header in stdlib.h; do
58342 # Check for ordinary declaration
58343 cat >conftest.$ac_ext <<_ACEOF
58346 cat confdefs.h >>conftest.$ac_ext
58347 cat >>conftest.$ac_ext <<_ACEOF
58348 /* end confdefs.h. */
58352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58353 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
58354 ice_cv_have_atof_decl=yes
58358 if test "$ice_cv_have_atof_decl" = yes; then
58361 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58362 cat >conftest.$ac_ext <<_ACEOF
58365 cat confdefs.h >>conftest.$ac_ext
58366 cat >>conftest.$ac_ext <<_ACEOF
58367 /* end confdefs.h. */
58371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58372 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58373 ice_cv_have_atof_decl=yes
58377 if test "$ice_cv_have_atof_decl" = yes; then
58384 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
58385 $as_echo "$ice_cv_have_atof_decl" >&6; }
58386 if test "$ice_cv_have_atof_decl" = yes; then
58388 cat >>confdefs.h <<_ACEOF
58389 #define HAVE_ATOF_DECL 1
58398 for ac_func in atol
58400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58401 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58402 $as_echo_n "checking for $ac_func... " >&6; }
58403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58404 $as_echo_n "(cached) " >&6
58406 cat >conftest.$ac_ext <<_ACEOF
58409 cat confdefs.h >>conftest.$ac_ext
58410 cat >>conftest.$ac_ext <<_ACEOF
58411 /* end confdefs.h. */
58412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58414 #define $ac_func innocuous_$ac_func
58416 /* System header to define __stub macros and hopefully few prototypes,
58417 which can conflict with char $ac_func (); below.
58418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58419 <limits.h> exists even on freestanding compilers. */
58422 # include <limits.h>
58424 # include <assert.h>
58429 /* Override any GCC internal prototype to avoid an error.
58430 Use char because int might match the return type of a GCC
58431 builtin and then its argument prototype would still apply. */
58436 /* The GNU C library defines this for functions which it implements
58437 to always fail with ENOSYS. Some functions are actually named
58438 something starting with __ and the normal name is an alias. */
58439 #if defined __stub_$ac_func || defined __stub___$ac_func
58446 return $ac_func ();
58451 rm -f conftest.$ac_objext conftest$ac_exeext
58452 if { (ac_try="$ac_link"
58453 case "(($ac_try" in
58454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58455 *) ac_try_echo=$ac_try;;
58457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58458 $as_echo "$ac_try_echo") >&5
58459 (eval "$ac_link") 2>conftest.er1
58461 grep -v '^ *+' conftest.er1 >conftest.err
58463 cat conftest.err >&5
58464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58465 (exit $ac_status); } && {
58466 test -z "$ac_c_werror_flag" ||
58467 test ! -s conftest.err
58468 } && test -s conftest$ac_exeext && {
58469 test "$cross_compiling" = yes ||
58470 $as_test_x conftest$ac_exeext
58472 eval "$as_ac_var=yes"
58474 $as_echo "$as_me: failed program was:" >&5
58475 sed 's/^/| /' conftest.$ac_ext >&5
58477 eval "$as_ac_var=no"
58480 rm -rf conftest.dSYM
58481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58482 conftest$ac_exeext conftest.$ac_ext
58484 ac_res=`eval 'as_val=${'$as_ac_var'}
58485 $as_echo "$as_val"'`
58486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58487 $as_echo "$ac_res" >&6; }
58488 as_val=`eval 'as_val=${'$as_ac_var'}
58489 $as_echo "$as_val"'`
58490 if test "x$as_val" = x""yes; then
58491 cat >>confdefs.h <<_ACEOF
58492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58498 if test "${ice_have_atol}" = yes; then
58499 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
58500 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
58501 if test "${ice_cv_have_atol_decl+set}" = set; then
58502 $as_echo_n "(cached) " >&6
58505 ice_cv_have_atol_decl=no
58506 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58507 ice_re_word='(^|[^a-zA-Z0-9_])'
58508 for header in stdlib.h; do
58509 # Check for ordinary declaration
58510 cat >conftest.$ac_ext <<_ACEOF
58513 cat confdefs.h >>conftest.$ac_ext
58514 cat >>conftest.$ac_ext <<_ACEOF
58515 /* end confdefs.h. */
58519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58520 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
58521 ice_cv_have_atol_decl=yes
58525 if test "$ice_cv_have_atol_decl" = yes; then
58528 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58529 cat >conftest.$ac_ext <<_ACEOF
58532 cat confdefs.h >>conftest.$ac_ext
58533 cat >>conftest.$ac_ext <<_ACEOF
58534 /* end confdefs.h. */
58538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58539 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58540 ice_cv_have_atol_decl=yes
58544 if test "$ice_cv_have_atol_decl" = yes; then
58551 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
58552 $as_echo "$ice_cv_have_atol_decl" >&6; }
58553 if test "$ice_cv_have_atol_decl" = yes; then
58555 cat >>confdefs.h <<_ACEOF
58556 #define HAVE_ATOL_DECL 1
58565 for ac_func in atoll
58567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58569 $as_echo_n "checking for $ac_func... " >&6; }
58570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58571 $as_echo_n "(cached) " >&6
58573 cat >conftest.$ac_ext <<_ACEOF
58576 cat confdefs.h >>conftest.$ac_ext
58577 cat >>conftest.$ac_ext <<_ACEOF
58578 /* end confdefs.h. */
58579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58581 #define $ac_func innocuous_$ac_func
58583 /* System header to define __stub macros and hopefully few prototypes,
58584 which can conflict with char $ac_func (); below.
58585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58586 <limits.h> exists even on freestanding compilers. */
58589 # include <limits.h>
58591 # include <assert.h>
58596 /* Override any GCC internal prototype to avoid an error.
58597 Use char because int might match the return type of a GCC
58598 builtin and then its argument prototype would still apply. */
58603 /* The GNU C library defines this for functions which it implements
58604 to always fail with ENOSYS. Some functions are actually named
58605 something starting with __ and the normal name is an alias. */
58606 #if defined __stub_$ac_func || defined __stub___$ac_func
58613 return $ac_func ();
58618 rm -f conftest.$ac_objext conftest$ac_exeext
58619 if { (ac_try="$ac_link"
58620 case "(($ac_try" in
58621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58622 *) ac_try_echo=$ac_try;;
58624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58625 $as_echo "$ac_try_echo") >&5
58626 (eval "$ac_link") 2>conftest.er1
58628 grep -v '^ *+' conftest.er1 >conftest.err
58630 cat conftest.err >&5
58631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58632 (exit $ac_status); } && {
58633 test -z "$ac_c_werror_flag" ||
58634 test ! -s conftest.err
58635 } && test -s conftest$ac_exeext && {
58636 test "$cross_compiling" = yes ||
58637 $as_test_x conftest$ac_exeext
58639 eval "$as_ac_var=yes"
58641 $as_echo "$as_me: failed program was:" >&5
58642 sed 's/^/| /' conftest.$ac_ext >&5
58644 eval "$as_ac_var=no"
58647 rm -rf conftest.dSYM
58648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58649 conftest$ac_exeext conftest.$ac_ext
58651 ac_res=`eval 'as_val=${'$as_ac_var'}
58652 $as_echo "$as_val"'`
58653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58654 $as_echo "$ac_res" >&6; }
58655 as_val=`eval 'as_val=${'$as_ac_var'}
58656 $as_echo "$as_val"'`
58657 if test "x$as_val" = x""yes; then
58658 cat >>confdefs.h <<_ACEOF
58659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58665 if test "${ice_have_atoll}" = yes; then
58666 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
58667 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
58668 if test "${ice_cv_have_atoll_decl+set}" = set; then
58669 $as_echo_n "(cached) " >&6
58672 ice_cv_have_atoll_decl=no
58673 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58674 ice_re_word='(^|[^a-zA-Z0-9_])'
58675 for header in stdlib.h; do
58676 # Check for ordinary declaration
58677 cat >conftest.$ac_ext <<_ACEOF
58680 cat confdefs.h >>conftest.$ac_ext
58681 cat >>conftest.$ac_ext <<_ACEOF
58682 /* end confdefs.h. */
58686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58687 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
58688 ice_cv_have_atoll_decl=yes
58692 if test "$ice_cv_have_atoll_decl" = yes; then
58695 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58696 cat >conftest.$ac_ext <<_ACEOF
58699 cat confdefs.h >>conftest.$ac_ext
58700 cat >>conftest.$ac_ext <<_ACEOF
58701 /* end confdefs.h. */
58705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58706 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58707 ice_cv_have_atoll_decl=yes
58711 if test "$ice_cv_have_atoll_decl" = yes; then
58718 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
58719 $as_echo "$ice_cv_have_atoll_decl" >&6; }
58720 if test "$ice_cv_have_atoll_decl" = yes; then
58722 cat >>confdefs.h <<_ACEOF
58723 #define HAVE_ATOLL_DECL 1
58732 for ac_func in strtol
58734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58736 $as_echo_n "checking for $ac_func... " >&6; }
58737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58738 $as_echo_n "(cached) " >&6
58740 cat >conftest.$ac_ext <<_ACEOF
58743 cat confdefs.h >>conftest.$ac_ext
58744 cat >>conftest.$ac_ext <<_ACEOF
58745 /* end confdefs.h. */
58746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58748 #define $ac_func innocuous_$ac_func
58750 /* System header to define __stub macros and hopefully few prototypes,
58751 which can conflict with char $ac_func (); below.
58752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58753 <limits.h> exists even on freestanding compilers. */
58756 # include <limits.h>
58758 # include <assert.h>
58763 /* Override any GCC internal prototype to avoid an error.
58764 Use char because int might match the return type of a GCC
58765 builtin and then its argument prototype would still apply. */
58770 /* The GNU C library defines this for functions which it implements
58771 to always fail with ENOSYS. Some functions are actually named
58772 something starting with __ and the normal name is an alias. */
58773 #if defined __stub_$ac_func || defined __stub___$ac_func
58780 return $ac_func ();
58785 rm -f conftest.$ac_objext conftest$ac_exeext
58786 if { (ac_try="$ac_link"
58787 case "(($ac_try" in
58788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58789 *) ac_try_echo=$ac_try;;
58791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58792 $as_echo "$ac_try_echo") >&5
58793 (eval "$ac_link") 2>conftest.er1
58795 grep -v '^ *+' conftest.er1 >conftest.err
58797 cat conftest.err >&5
58798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58799 (exit $ac_status); } && {
58800 test -z "$ac_c_werror_flag" ||
58801 test ! -s conftest.err
58802 } && test -s conftest$ac_exeext && {
58803 test "$cross_compiling" = yes ||
58804 $as_test_x conftest$ac_exeext
58806 eval "$as_ac_var=yes"
58808 $as_echo "$as_me: failed program was:" >&5
58809 sed 's/^/| /' conftest.$ac_ext >&5
58811 eval "$as_ac_var=no"
58814 rm -rf conftest.dSYM
58815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58816 conftest$ac_exeext conftest.$ac_ext
58818 ac_res=`eval 'as_val=${'$as_ac_var'}
58819 $as_echo "$as_val"'`
58820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58821 $as_echo "$ac_res" >&6; }
58822 as_val=`eval 'as_val=${'$as_ac_var'}
58823 $as_echo "$as_val"'`
58824 if test "x$as_val" = x""yes; then
58825 cat >>confdefs.h <<_ACEOF
58826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58828 ice_have_strtol=yes
58832 if test "${ice_have_strtol}" = yes; then
58833 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
58834 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
58835 if test "${ice_cv_have_strtol_decl+set}" = set; then
58836 $as_echo_n "(cached) " >&6
58839 ice_cv_have_strtol_decl=no
58840 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58841 ice_re_word='(^|[^a-zA-Z0-9_])'
58842 for header in stdlib.h; do
58843 # Check for ordinary declaration
58844 cat >conftest.$ac_ext <<_ACEOF
58847 cat confdefs.h >>conftest.$ac_ext
58848 cat >>conftest.$ac_ext <<_ACEOF
58849 /* end confdefs.h. */
58853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58854 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then
58855 ice_cv_have_strtol_decl=yes
58859 if test "$ice_cv_have_strtol_decl" = yes; then
58862 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58863 cat >conftest.$ac_ext <<_ACEOF
58866 cat confdefs.h >>conftest.$ac_ext
58867 cat >>conftest.$ac_ext <<_ACEOF
58868 /* end confdefs.h. */
58872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58873 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58874 ice_cv_have_strtol_decl=yes
58878 if test "$ice_cv_have_strtol_decl" = yes; then
58885 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
58886 $as_echo "$ice_cv_have_strtol_decl" >&6; }
58887 if test "$ice_cv_have_strtol_decl" = yes; then
58889 cat >>confdefs.h <<_ACEOF
58890 #define HAVE_STRTOL_DECL 1
58897 ice_have_strtoll=no
58899 for ac_func in strtoll
58901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58903 $as_echo_n "checking for $ac_func... " >&6; }
58904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58905 $as_echo_n "(cached) " >&6
58907 cat >conftest.$ac_ext <<_ACEOF
58910 cat confdefs.h >>conftest.$ac_ext
58911 cat >>conftest.$ac_ext <<_ACEOF
58912 /* end confdefs.h. */
58913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58915 #define $ac_func innocuous_$ac_func
58917 /* System header to define __stub macros and hopefully few prototypes,
58918 which can conflict with char $ac_func (); below.
58919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58920 <limits.h> exists even on freestanding compilers. */
58923 # include <limits.h>
58925 # include <assert.h>
58930 /* Override any GCC internal prototype to avoid an error.
58931 Use char because int might match the return type of a GCC
58932 builtin and then its argument prototype would still apply. */
58937 /* The GNU C library defines this for functions which it implements
58938 to always fail with ENOSYS. Some functions are actually named
58939 something starting with __ and the normal name is an alias. */
58940 #if defined __stub_$ac_func || defined __stub___$ac_func
58947 return $ac_func ();
58952 rm -f conftest.$ac_objext conftest$ac_exeext
58953 if { (ac_try="$ac_link"
58954 case "(($ac_try" in
58955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58956 *) ac_try_echo=$ac_try;;
58958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58959 $as_echo "$ac_try_echo") >&5
58960 (eval "$ac_link") 2>conftest.er1
58962 grep -v '^ *+' conftest.er1 >conftest.err
58964 cat conftest.err >&5
58965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58966 (exit $ac_status); } && {
58967 test -z "$ac_c_werror_flag" ||
58968 test ! -s conftest.err
58969 } && test -s conftest$ac_exeext && {
58970 test "$cross_compiling" = yes ||
58971 $as_test_x conftest$ac_exeext
58973 eval "$as_ac_var=yes"
58975 $as_echo "$as_me: failed program was:" >&5
58976 sed 's/^/| /' conftest.$ac_ext >&5
58978 eval "$as_ac_var=no"
58981 rm -rf conftest.dSYM
58982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58983 conftest$ac_exeext conftest.$ac_ext
58985 ac_res=`eval 'as_val=${'$as_ac_var'}
58986 $as_echo "$as_val"'`
58987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58988 $as_echo "$ac_res" >&6; }
58989 as_val=`eval 'as_val=${'$as_ac_var'}
58990 $as_echo "$as_val"'`
58991 if test "x$as_val" = x""yes; then
58992 cat >>confdefs.h <<_ACEOF
58993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58995 ice_have_strtoll=yes
58999 if test "${ice_have_strtoll}" = yes; then
59000 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
59001 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
59002 if test "${ice_cv_have_strtoll_decl+set}" = set; then
59003 $as_echo_n "(cached) " >&6
59006 ice_cv_have_strtoll_decl=no
59007 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59008 ice_re_word='(^|[^a-zA-Z0-9_])'
59009 for header in stdlib.h; do
59010 # Check for ordinary declaration
59011 cat >conftest.$ac_ext <<_ACEOF
59014 cat confdefs.h >>conftest.$ac_ext
59015 cat >>conftest.$ac_ext <<_ACEOF
59016 /* end confdefs.h. */
59020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59021 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then
59022 ice_cv_have_strtoll_decl=yes
59026 if test "$ice_cv_have_strtoll_decl" = yes; then
59029 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59030 cat >conftest.$ac_ext <<_ACEOF
59033 cat confdefs.h >>conftest.$ac_ext
59034 cat >>conftest.$ac_ext <<_ACEOF
59035 /* end confdefs.h. */
59039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59040 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59041 ice_cv_have_strtoll_decl=yes
59045 if test "$ice_cv_have_strtoll_decl" = yes; then
59052 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
59053 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
59054 if test "$ice_cv_have_strtoll_decl" = yes; then
59056 cat >>confdefs.h <<_ACEOF
59057 #define HAVE_STRTOLL_DECL 1
59064 for ac_func in basename
59066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59068 $as_echo_n "checking for $ac_func... " >&6; }
59069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59070 $as_echo_n "(cached) " >&6
59072 cat >conftest.$ac_ext <<_ACEOF
59075 cat confdefs.h >>conftest.$ac_ext
59076 cat >>conftest.$ac_ext <<_ACEOF
59077 /* end confdefs.h. */
59078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59080 #define $ac_func innocuous_$ac_func
59082 /* System header to define __stub macros and hopefully few prototypes,
59083 which can conflict with char $ac_func (); below.
59084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59085 <limits.h> exists even on freestanding compilers. */
59088 # include <limits.h>
59090 # include <assert.h>
59095 /* Override any GCC internal prototype to avoid an error.
59096 Use char because int might match the return type of a GCC
59097 builtin and then its argument prototype would still apply. */
59102 /* The GNU C library defines this for functions which it implements
59103 to always fail with ENOSYS. Some functions are actually named
59104 something starting with __ and the normal name is an alias. */
59105 #if defined __stub_$ac_func || defined __stub___$ac_func
59112 return $ac_func ();
59117 rm -f conftest.$ac_objext conftest$ac_exeext
59118 if { (ac_try="$ac_link"
59119 case "(($ac_try" in
59120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59121 *) ac_try_echo=$ac_try;;
59123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59124 $as_echo "$ac_try_echo") >&5
59125 (eval "$ac_link") 2>conftest.er1
59127 grep -v '^ *+' conftest.er1 >conftest.err
59129 cat conftest.err >&5
59130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59131 (exit $ac_status); } && {
59132 test -z "$ac_c_werror_flag" ||
59133 test ! -s conftest.err
59134 } && test -s conftest$ac_exeext && {
59135 test "$cross_compiling" = yes ||
59136 $as_test_x conftest$ac_exeext
59138 eval "$as_ac_var=yes"
59140 $as_echo "$as_me: failed program was:" >&5
59141 sed 's/^/| /' conftest.$ac_ext >&5
59143 eval "$as_ac_var=no"
59146 rm -rf conftest.dSYM
59147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59148 conftest$ac_exeext conftest.$ac_ext
59150 ac_res=`eval 'as_val=${'$as_ac_var'}
59151 $as_echo "$as_val"'`
59152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59153 $as_echo "$ac_res" >&6; }
59154 as_val=`eval 'as_val=${'$as_ac_var'}
59155 $as_echo "$as_val"'`
59156 if test "x$as_val" = x""yes; then
59157 cat >>confdefs.h <<_ACEOF
59158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59167 for ac_func in bind
59169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59171 $as_echo_n "checking for $ac_func... " >&6; }
59172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59173 $as_echo_n "(cached) " >&6
59175 cat >conftest.$ac_ext <<_ACEOF
59178 cat confdefs.h >>conftest.$ac_ext
59179 cat >>conftest.$ac_ext <<_ACEOF
59180 /* end confdefs.h. */
59181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59183 #define $ac_func innocuous_$ac_func
59185 /* System header to define __stub macros and hopefully few prototypes,
59186 which can conflict with char $ac_func (); below.
59187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59188 <limits.h> exists even on freestanding compilers. */
59191 # include <limits.h>
59193 # include <assert.h>
59198 /* Override any GCC internal prototype to avoid an error.
59199 Use char because int might match the return type of a GCC
59200 builtin and then its argument prototype would still apply. */
59205 /* The GNU C library defines this for functions which it implements
59206 to always fail with ENOSYS. Some functions are actually named
59207 something starting with __ and the normal name is an alias. */
59208 #if defined __stub_$ac_func || defined __stub___$ac_func
59215 return $ac_func ();
59220 rm -f conftest.$ac_objext conftest$ac_exeext
59221 if { (ac_try="$ac_link"
59222 case "(($ac_try" in
59223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59224 *) ac_try_echo=$ac_try;;
59226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59227 $as_echo "$ac_try_echo") >&5
59228 (eval "$ac_link") 2>conftest.er1
59230 grep -v '^ *+' conftest.er1 >conftest.err
59232 cat conftest.err >&5
59233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59234 (exit $ac_status); } && {
59235 test -z "$ac_c_werror_flag" ||
59236 test ! -s conftest.err
59237 } && test -s conftest$ac_exeext && {
59238 test "$cross_compiling" = yes ||
59239 $as_test_x conftest$ac_exeext
59241 eval "$as_ac_var=yes"
59243 $as_echo "$as_me: failed program was:" >&5
59244 sed 's/^/| /' conftest.$ac_ext >&5
59246 eval "$as_ac_var=no"
59249 rm -rf conftest.dSYM
59250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59251 conftest$ac_exeext conftest.$ac_ext
59253 ac_res=`eval 'as_val=${'$as_ac_var'}
59254 $as_echo "$as_val"'`
59255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59256 $as_echo "$ac_res" >&6; }
59257 as_val=`eval 'as_val=${'$as_ac_var'}
59258 $as_echo "$as_val"'`
59259 if test "x$as_val" = x""yes; then
59260 cat >>confdefs.h <<_ACEOF
59261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59267 if test "${ice_have_bind}" = yes; then
59268 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
59269 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
59270 if test "${ice_cv_have_bind_decl+set}" = set; then
59271 $as_echo_n "(cached) " >&6
59274 ice_cv_have_bind_decl=no
59275 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59276 ice_re_word='(^|[^a-zA-Z0-9_])'
59277 for header in sys/types.h sys/socket.h; do
59278 # Check for ordinary declaration
59279 cat >conftest.$ac_ext <<_ACEOF
59282 cat confdefs.h >>conftest.$ac_ext
59283 cat >>conftest.$ac_ext <<_ACEOF
59284 /* end confdefs.h. */
59288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59289 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
59290 ice_cv_have_bind_decl=yes
59294 if test "$ice_cv_have_bind_decl" = yes; then
59297 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59298 cat >conftest.$ac_ext <<_ACEOF
59301 cat confdefs.h >>conftest.$ac_ext
59302 cat >>conftest.$ac_ext <<_ACEOF
59303 /* end confdefs.h. */
59307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59308 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59309 ice_cv_have_bind_decl=yes
59313 if test "$ice_cv_have_bind_decl" = yes; then
59320 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
59321 $as_echo "$ice_cv_have_bind_decl" >&6; }
59322 if test "$ice_cv_have_bind_decl" = yes; then
59324 cat >>confdefs.h <<_ACEOF
59325 #define HAVE_BIND_DECL 1
59334 for ac_func in bcopy
59336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59338 $as_echo_n "checking for $ac_func... " >&6; }
59339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59340 $as_echo_n "(cached) " >&6
59342 cat >conftest.$ac_ext <<_ACEOF
59345 cat confdefs.h >>conftest.$ac_ext
59346 cat >>conftest.$ac_ext <<_ACEOF
59347 /* end confdefs.h. */
59348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59350 #define $ac_func innocuous_$ac_func
59352 /* System header to define __stub macros and hopefully few prototypes,
59353 which can conflict with char $ac_func (); below.
59354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59355 <limits.h> exists even on freestanding compilers. */
59358 # include <limits.h>
59360 # include <assert.h>
59365 /* Override any GCC internal prototype to avoid an error.
59366 Use char because int might match the return type of a GCC
59367 builtin and then its argument prototype would still apply. */
59372 /* The GNU C library defines this for functions which it implements
59373 to always fail with ENOSYS. Some functions are actually named
59374 something starting with __ and the normal name is an alias. */
59375 #if defined __stub_$ac_func || defined __stub___$ac_func
59382 return $ac_func ();
59387 rm -f conftest.$ac_objext conftest$ac_exeext
59388 if { (ac_try="$ac_link"
59389 case "(($ac_try" in
59390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59391 *) ac_try_echo=$ac_try;;
59393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59394 $as_echo "$ac_try_echo") >&5
59395 (eval "$ac_link") 2>conftest.er1
59397 grep -v '^ *+' conftest.er1 >conftest.err
59399 cat conftest.err >&5
59400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59401 (exit $ac_status); } && {
59402 test -z "$ac_c_werror_flag" ||
59403 test ! -s conftest.err
59404 } && test -s conftest$ac_exeext && {
59405 test "$cross_compiling" = yes ||
59406 $as_test_x conftest$ac_exeext
59408 eval "$as_ac_var=yes"
59410 $as_echo "$as_me: failed program was:" >&5
59411 sed 's/^/| /' conftest.$ac_ext >&5
59413 eval "$as_ac_var=no"
59416 rm -rf conftest.dSYM
59417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59418 conftest$ac_exeext conftest.$ac_ext
59420 ac_res=`eval 'as_val=${'$as_ac_var'}
59421 $as_echo "$as_val"'`
59422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59423 $as_echo "$ac_res" >&6; }
59424 as_val=`eval 'as_val=${'$as_ac_var'}
59425 $as_echo "$as_val"'`
59426 if test "x$as_val" = x""yes; then
59427 cat >>confdefs.h <<_ACEOF
59428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59434 if test "${ice_have_bcopy}" = yes; then
59435 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
59436 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
59437 if test "${ice_cv_have_bcopy_decl+set}" = set; then
59438 $as_echo_n "(cached) " >&6
59441 ice_cv_have_bcopy_decl=no
59442 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59443 ice_re_word='(^|[^a-zA-Z0-9_])'
59444 for header in string.h strings.h stdlib.h; do
59445 # Check for ordinary declaration
59446 cat >conftest.$ac_ext <<_ACEOF
59449 cat confdefs.h >>conftest.$ac_ext
59450 cat >>conftest.$ac_ext <<_ACEOF
59451 /* end confdefs.h. */
59455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59456 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
59457 ice_cv_have_bcopy_decl=yes
59461 if test "$ice_cv_have_bcopy_decl" = yes; then
59464 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59465 cat >conftest.$ac_ext <<_ACEOF
59468 cat confdefs.h >>conftest.$ac_ext
59469 cat >>conftest.$ac_ext <<_ACEOF
59470 /* end confdefs.h. */
59474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59475 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59476 ice_cv_have_bcopy_decl=yes
59480 if test "$ice_cv_have_bcopy_decl" = yes; then
59487 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
59488 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
59489 if test "$ice_cv_have_bcopy_decl" = yes; then
59491 cat >>confdefs.h <<_ACEOF
59492 #define HAVE_BCOPY_DECL 1
59501 for ac_func in bzero
59503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59504 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59505 $as_echo_n "checking for $ac_func... " >&6; }
59506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59507 $as_echo_n "(cached) " >&6
59509 cat >conftest.$ac_ext <<_ACEOF
59512 cat confdefs.h >>conftest.$ac_ext
59513 cat >>conftest.$ac_ext <<_ACEOF
59514 /* end confdefs.h. */
59515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59517 #define $ac_func innocuous_$ac_func
59519 /* System header to define __stub macros and hopefully few prototypes,
59520 which can conflict with char $ac_func (); below.
59521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59522 <limits.h> exists even on freestanding compilers. */
59525 # include <limits.h>
59527 # include <assert.h>
59532 /* Override any GCC internal prototype to avoid an error.
59533 Use char because int might match the return type of a GCC
59534 builtin and then its argument prototype would still apply. */
59539 /* The GNU C library defines this for functions which it implements
59540 to always fail with ENOSYS. Some functions are actually named
59541 something starting with __ and the normal name is an alias. */
59542 #if defined __stub_$ac_func || defined __stub___$ac_func
59549 return $ac_func ();
59554 rm -f conftest.$ac_objext conftest$ac_exeext
59555 if { (ac_try="$ac_link"
59556 case "(($ac_try" in
59557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59558 *) ac_try_echo=$ac_try;;
59560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59561 $as_echo "$ac_try_echo") >&5
59562 (eval "$ac_link") 2>conftest.er1
59564 grep -v '^ *+' conftest.er1 >conftest.err
59566 cat conftest.err >&5
59567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59568 (exit $ac_status); } && {
59569 test -z "$ac_c_werror_flag" ||
59570 test ! -s conftest.err
59571 } && test -s conftest$ac_exeext && {
59572 test "$cross_compiling" = yes ||
59573 $as_test_x conftest$ac_exeext
59575 eval "$as_ac_var=yes"
59577 $as_echo "$as_me: failed program was:" >&5
59578 sed 's/^/| /' conftest.$ac_ext >&5
59580 eval "$as_ac_var=no"
59583 rm -rf conftest.dSYM
59584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59585 conftest$ac_exeext conftest.$ac_ext
59587 ac_res=`eval 'as_val=${'$as_ac_var'}
59588 $as_echo "$as_val"'`
59589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59590 $as_echo "$ac_res" >&6; }
59591 as_val=`eval 'as_val=${'$as_ac_var'}
59592 $as_echo "$as_val"'`
59593 if test "x$as_val" = x""yes; then
59594 cat >>confdefs.h <<_ACEOF
59595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59601 if test "${ice_have_bzero}" = yes; then
59602 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
59603 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
59604 if test "${ice_cv_have_bzero_decl+set}" = set; then
59605 $as_echo_n "(cached) " >&6
59608 ice_cv_have_bzero_decl=no
59609 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59610 ice_re_word='(^|[^a-zA-Z0-9_])'
59611 for header in string.h strings.h stdlib.h; do
59612 # Check for ordinary declaration
59613 cat >conftest.$ac_ext <<_ACEOF
59616 cat confdefs.h >>conftest.$ac_ext
59617 cat >>conftest.$ac_ext <<_ACEOF
59618 /* end confdefs.h. */
59622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59623 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
59624 ice_cv_have_bzero_decl=yes
59628 if test "$ice_cv_have_bzero_decl" = yes; then
59631 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59632 cat >conftest.$ac_ext <<_ACEOF
59635 cat confdefs.h >>conftest.$ac_ext
59636 cat >>conftest.$ac_ext <<_ACEOF
59637 /* end confdefs.h. */
59641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59642 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59643 ice_cv_have_bzero_decl=yes
59647 if test "$ice_cv_have_bzero_decl" = yes; then
59654 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
59655 $as_echo "$ice_cv_have_bzero_decl" >&6; }
59656 if test "$ice_cv_have_bzero_decl" = yes; then
59658 cat >>confdefs.h <<_ACEOF
59659 #define HAVE_BZERO_DECL 1
59665 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
59666 $as_echo_n "checking whether closedir returns void... " >&6; }
59667 if test "${ac_cv_func_closedir_void+set}" = set; then
59668 $as_echo_n "(cached) " >&6
59670 if test "$cross_compiling" = yes; then
59671 ac_cv_func_closedir_void=yes
59673 cat >conftest.$ac_ext <<_ACEOF
59676 cat confdefs.h >>conftest.$ac_ext
59677 cat >>conftest.$ac_ext <<_ACEOF
59678 /* end confdefs.h. */
59679 $ac_includes_default
59680 #include <$ac_header_dirent>
59681 #ifndef __cplusplus
59688 return closedir (opendir (".")) != 0;
59693 rm -f conftest$ac_exeext
59694 if { (ac_try="$ac_link"
59695 case "(($ac_try" in
59696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59697 *) ac_try_echo=$ac_try;;
59699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59700 $as_echo "$ac_try_echo") >&5
59701 (eval "$ac_link") 2>&5
59703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59705 { (case "(($ac_try" in
59706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59707 *) ac_try_echo=$ac_try;;
59709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59710 $as_echo "$ac_try_echo") >&5
59711 (eval "$ac_try") 2>&5
59713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59714 (exit $ac_status); }; }; then
59715 ac_cv_func_closedir_void=no
59717 $as_echo "$as_me: program exited with status $ac_status" >&5
59718 $as_echo "$as_me: failed program was:" >&5
59719 sed 's/^/| /' conftest.$ac_ext >&5
59721 ( exit $ac_status )
59722 ac_cv_func_closedir_void=yes
59724 rm -rf conftest.dSYM
59725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59730 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
59731 $as_echo "$ac_cv_func_closedir_void" >&6; }
59732 if test $ac_cv_func_closedir_void = yes; then
59734 cat >>confdefs.h <<\_ACEOF
59735 #define CLOSEDIR_VOID 1
59741 ice_have_closelog=no
59743 for ac_func in closelog
59745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59746 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59747 $as_echo_n "checking for $ac_func... " >&6; }
59748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59749 $as_echo_n "(cached) " >&6
59751 cat >conftest.$ac_ext <<_ACEOF
59754 cat confdefs.h >>conftest.$ac_ext
59755 cat >>conftest.$ac_ext <<_ACEOF
59756 /* end confdefs.h. */
59757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59759 #define $ac_func innocuous_$ac_func
59761 /* System header to define __stub macros and hopefully few prototypes,
59762 which can conflict with char $ac_func (); below.
59763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59764 <limits.h> exists even on freestanding compilers. */
59767 # include <limits.h>
59769 # include <assert.h>
59774 /* Override any GCC internal prototype to avoid an error.
59775 Use char because int might match the return type of a GCC
59776 builtin and then its argument prototype would still apply. */
59781 /* The GNU C library defines this for functions which it implements
59782 to always fail with ENOSYS. Some functions are actually named
59783 something starting with __ and the normal name is an alias. */
59784 #if defined __stub_$ac_func || defined __stub___$ac_func
59791 return $ac_func ();
59796 rm -f conftest.$ac_objext conftest$ac_exeext
59797 if { (ac_try="$ac_link"
59798 case "(($ac_try" in
59799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59800 *) ac_try_echo=$ac_try;;
59802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59803 $as_echo "$ac_try_echo") >&5
59804 (eval "$ac_link") 2>conftest.er1
59806 grep -v '^ *+' conftest.er1 >conftest.err
59808 cat conftest.err >&5
59809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59810 (exit $ac_status); } && {
59811 test -z "$ac_c_werror_flag" ||
59812 test ! -s conftest.err
59813 } && test -s conftest$ac_exeext && {
59814 test "$cross_compiling" = yes ||
59815 $as_test_x conftest$ac_exeext
59817 eval "$as_ac_var=yes"
59819 $as_echo "$as_me: failed program was:" >&5
59820 sed 's/^/| /' conftest.$ac_ext >&5
59822 eval "$as_ac_var=no"
59825 rm -rf conftest.dSYM
59826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59827 conftest$ac_exeext conftest.$ac_ext
59829 ac_res=`eval 'as_val=${'$as_ac_var'}
59830 $as_echo "$as_val"'`
59831 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59832 $as_echo "$ac_res" >&6; }
59833 as_val=`eval 'as_val=${'$as_ac_var'}
59834 $as_echo "$as_val"'`
59835 if test "x$as_val" = x""yes; then
59836 cat >>confdefs.h <<_ACEOF
59837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59839 ice_have_closelog=yes
59843 if test "${ice_have_closelog}" = yes; then
59844 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
59845 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
59846 if test "${ice_cv_have_closelog_decl+set}" = set; then
59847 $as_echo_n "(cached) " >&6
59850 ice_cv_have_closelog_decl=no
59851 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59852 ice_re_word='(^|[^a-zA-Z0-9_])'
59853 for header in syslog.h; do
59854 # Check for ordinary declaration
59855 cat >conftest.$ac_ext <<_ACEOF
59858 cat confdefs.h >>conftest.$ac_ext
59859 cat >>conftest.$ac_ext <<_ACEOF
59860 /* end confdefs.h. */
59864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59865 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
59866 ice_cv_have_closelog_decl=yes
59870 if test "$ice_cv_have_closelog_decl" = yes; then
59873 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59874 cat >conftest.$ac_ext <<_ACEOF
59877 cat confdefs.h >>conftest.$ac_ext
59878 cat >>conftest.$ac_ext <<_ACEOF
59879 /* end confdefs.h. */
59883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59884 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59885 ice_cv_have_closelog_decl=yes
59889 if test "$ice_cv_have_closelog_decl" = yes; then
59896 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
59897 $as_echo "$ice_cv_have_closelog_decl" >&6; }
59898 if test "$ice_cv_have_closelog_decl" = yes; then
59900 cat >>confdefs.h <<_ACEOF
59901 #define HAVE_CLOSELOG_DECL 1
59908 ice_have_connect=no
59910 for ac_func in connect
59912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59914 $as_echo_n "checking for $ac_func... " >&6; }
59915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59916 $as_echo_n "(cached) " >&6
59918 cat >conftest.$ac_ext <<_ACEOF
59921 cat confdefs.h >>conftest.$ac_ext
59922 cat >>conftest.$ac_ext <<_ACEOF
59923 /* end confdefs.h. */
59924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59926 #define $ac_func innocuous_$ac_func
59928 /* System header to define __stub macros and hopefully few prototypes,
59929 which can conflict with char $ac_func (); below.
59930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59931 <limits.h> exists even on freestanding compilers. */
59934 # include <limits.h>
59936 # include <assert.h>
59941 /* Override any GCC internal prototype to avoid an error.
59942 Use char because int might match the return type of a GCC
59943 builtin and then its argument prototype would still apply. */
59948 /* The GNU C library defines this for functions which it implements
59949 to always fail with ENOSYS. Some functions are actually named
59950 something starting with __ and the normal name is an alias. */
59951 #if defined __stub_$ac_func || defined __stub___$ac_func
59958 return $ac_func ();
59963 rm -f conftest.$ac_objext conftest$ac_exeext
59964 if { (ac_try="$ac_link"
59965 case "(($ac_try" in
59966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59967 *) ac_try_echo=$ac_try;;
59969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59970 $as_echo "$ac_try_echo") >&5
59971 (eval "$ac_link") 2>conftest.er1
59973 grep -v '^ *+' conftest.er1 >conftest.err
59975 cat conftest.err >&5
59976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59977 (exit $ac_status); } && {
59978 test -z "$ac_c_werror_flag" ||
59979 test ! -s conftest.err
59980 } && test -s conftest$ac_exeext && {
59981 test "$cross_compiling" = yes ||
59982 $as_test_x conftest$ac_exeext
59984 eval "$as_ac_var=yes"
59986 $as_echo "$as_me: failed program was:" >&5
59987 sed 's/^/| /' conftest.$ac_ext >&5
59989 eval "$as_ac_var=no"
59992 rm -rf conftest.dSYM
59993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59994 conftest$ac_exeext conftest.$ac_ext
59996 ac_res=`eval 'as_val=${'$as_ac_var'}
59997 $as_echo "$as_val"'`
59998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59999 $as_echo "$ac_res" >&6; }
60000 as_val=`eval 'as_val=${'$as_ac_var'}
60001 $as_echo "$as_val"'`
60002 if test "x$as_val" = x""yes; then
60003 cat >>confdefs.h <<_ACEOF
60004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60006 ice_have_connect=yes
60010 if test "${ice_have_connect}" = yes; then
60011 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
60012 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
60013 if test "${ice_cv_have_connect_decl+set}" = set; then
60014 $as_echo_n "(cached) " >&6
60017 ice_cv_have_connect_decl=no
60018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60019 ice_re_word='(^|[^a-zA-Z0-9_])'
60020 for header in sys/types.h sys/socket.h; do
60021 # Check for ordinary declaration
60022 cat >conftest.$ac_ext <<_ACEOF
60025 cat confdefs.h >>conftest.$ac_ext
60026 cat >>conftest.$ac_ext <<_ACEOF
60027 /* end confdefs.h. */
60031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60032 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
60033 ice_cv_have_connect_decl=yes
60037 if test "$ice_cv_have_connect_decl" = yes; then
60040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60041 cat >conftest.$ac_ext <<_ACEOF
60044 cat confdefs.h >>conftest.$ac_ext
60045 cat >>conftest.$ac_ext <<_ACEOF
60046 /* end confdefs.h. */
60050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60051 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60052 ice_cv_have_connect_decl=yes
60056 if test "$ice_cv_have_connect_decl" = yes; then
60063 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
60064 $as_echo "$ice_cv_have_connect_decl" >&6; }
60065 if test "$ice_cv_have_connect_decl" = yes; then
60067 cat >>confdefs.h <<_ACEOF
60068 #define HAVE_CONNECT_DECL 1
60077 for ac_func in fclose
60079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60081 $as_echo_n "checking for $ac_func... " >&6; }
60082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60083 $as_echo_n "(cached) " >&6
60085 cat >conftest.$ac_ext <<_ACEOF
60088 cat confdefs.h >>conftest.$ac_ext
60089 cat >>conftest.$ac_ext <<_ACEOF
60090 /* end confdefs.h. */
60091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60093 #define $ac_func innocuous_$ac_func
60095 /* System header to define __stub macros and hopefully few prototypes,
60096 which can conflict with char $ac_func (); below.
60097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60098 <limits.h> exists even on freestanding compilers. */
60101 # include <limits.h>
60103 # include <assert.h>
60108 /* Override any GCC internal prototype to avoid an error.
60109 Use char because int might match the return type of a GCC
60110 builtin and then its argument prototype would still apply. */
60115 /* The GNU C library defines this for functions which it implements
60116 to always fail with ENOSYS. Some functions are actually named
60117 something starting with __ and the normal name is an alias. */
60118 #if defined __stub_$ac_func || defined __stub___$ac_func
60125 return $ac_func ();
60130 rm -f conftest.$ac_objext conftest$ac_exeext
60131 if { (ac_try="$ac_link"
60132 case "(($ac_try" in
60133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60134 *) ac_try_echo=$ac_try;;
60136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60137 $as_echo "$ac_try_echo") >&5
60138 (eval "$ac_link") 2>conftest.er1
60140 grep -v '^ *+' conftest.er1 >conftest.err
60142 cat conftest.err >&5
60143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60144 (exit $ac_status); } && {
60145 test -z "$ac_c_werror_flag" ||
60146 test ! -s conftest.err
60147 } && test -s conftest$ac_exeext && {
60148 test "$cross_compiling" = yes ||
60149 $as_test_x conftest$ac_exeext
60151 eval "$as_ac_var=yes"
60153 $as_echo "$as_me: failed program was:" >&5
60154 sed 's/^/| /' conftest.$ac_ext >&5
60156 eval "$as_ac_var=no"
60159 rm -rf conftest.dSYM
60160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60161 conftest$ac_exeext conftest.$ac_ext
60163 ac_res=`eval 'as_val=${'$as_ac_var'}
60164 $as_echo "$as_val"'`
60165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60166 $as_echo "$ac_res" >&6; }
60167 as_val=`eval 'as_val=${'$as_ac_var'}
60168 $as_echo "$as_val"'`
60169 if test "x$as_val" = x""yes; then
60170 cat >>confdefs.h <<_ACEOF
60171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60173 ice_have_fclose=yes
60177 if test "${ice_have_fclose}" = yes; then
60178 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
60179 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
60180 if test "${ice_cv_have_fclose_decl+set}" = set; then
60181 $as_echo_n "(cached) " >&6
60184 ice_cv_have_fclose_decl=no
60185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60186 ice_re_word='(^|[^a-zA-Z0-9_])'
60187 for header in stdio.h; do
60188 # Check for ordinary declaration
60189 cat >conftest.$ac_ext <<_ACEOF
60192 cat confdefs.h >>conftest.$ac_ext
60193 cat >>conftest.$ac_ext <<_ACEOF
60194 /* end confdefs.h. */
60198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60199 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
60200 ice_cv_have_fclose_decl=yes
60204 if test "$ice_cv_have_fclose_decl" = yes; then
60207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60208 cat >conftest.$ac_ext <<_ACEOF
60211 cat confdefs.h >>conftest.$ac_ext
60212 cat >>conftest.$ac_ext <<_ACEOF
60213 /* end confdefs.h. */
60217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60218 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60219 ice_cv_have_fclose_decl=yes
60223 if test "$ice_cv_have_fclose_decl" = yes; then
60230 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
60231 $as_echo "$ice_cv_have_fclose_decl" >&6; }
60232 if test "$ice_cv_have_fclose_decl" = yes; then
60234 cat >>confdefs.h <<_ACEOF
60235 #define HAVE_FCLOSE_DECL 1
60244 for ac_func in fflush
60246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60247 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60248 $as_echo_n "checking for $ac_func... " >&6; }
60249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60250 $as_echo_n "(cached) " >&6
60252 cat >conftest.$ac_ext <<_ACEOF
60255 cat confdefs.h >>conftest.$ac_ext
60256 cat >>conftest.$ac_ext <<_ACEOF
60257 /* end confdefs.h. */
60258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60260 #define $ac_func innocuous_$ac_func
60262 /* System header to define __stub macros and hopefully few prototypes,
60263 which can conflict with char $ac_func (); below.
60264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60265 <limits.h> exists even on freestanding compilers. */
60268 # include <limits.h>
60270 # include <assert.h>
60275 /* Override any GCC internal prototype to avoid an error.
60276 Use char because int might match the return type of a GCC
60277 builtin and then its argument prototype would still apply. */
60282 /* The GNU C library defines this for functions which it implements
60283 to always fail with ENOSYS. Some functions are actually named
60284 something starting with __ and the normal name is an alias. */
60285 #if defined __stub_$ac_func || defined __stub___$ac_func
60292 return $ac_func ();
60297 rm -f conftest.$ac_objext conftest$ac_exeext
60298 if { (ac_try="$ac_link"
60299 case "(($ac_try" in
60300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60301 *) ac_try_echo=$ac_try;;
60303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60304 $as_echo "$ac_try_echo") >&5
60305 (eval "$ac_link") 2>conftest.er1
60307 grep -v '^ *+' conftest.er1 >conftest.err
60309 cat conftest.err >&5
60310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60311 (exit $ac_status); } && {
60312 test -z "$ac_c_werror_flag" ||
60313 test ! -s conftest.err
60314 } && test -s conftest$ac_exeext && {
60315 test "$cross_compiling" = yes ||
60316 $as_test_x conftest$ac_exeext
60318 eval "$as_ac_var=yes"
60320 $as_echo "$as_me: failed program was:" >&5
60321 sed 's/^/| /' conftest.$ac_ext >&5
60323 eval "$as_ac_var=no"
60326 rm -rf conftest.dSYM
60327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60328 conftest$ac_exeext conftest.$ac_ext
60330 ac_res=`eval 'as_val=${'$as_ac_var'}
60331 $as_echo "$as_val"'`
60332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60333 $as_echo "$ac_res" >&6; }
60334 as_val=`eval 'as_val=${'$as_ac_var'}
60335 $as_echo "$as_val"'`
60336 if test "x$as_val" = x""yes; then
60337 cat >>confdefs.h <<_ACEOF
60338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60340 ice_have_fflush=yes
60344 if test "${ice_have_fflush}" = yes; then
60345 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
60346 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
60347 if test "${ice_cv_have_fflush_decl+set}" = set; then
60348 $as_echo_n "(cached) " >&6
60351 ice_cv_have_fflush_decl=no
60352 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60353 ice_re_word='(^|[^a-zA-Z0-9_])'
60354 for header in stdio.h; do
60355 # Check for ordinary declaration
60356 cat >conftest.$ac_ext <<_ACEOF
60359 cat confdefs.h >>conftest.$ac_ext
60360 cat >>conftest.$ac_ext <<_ACEOF
60361 /* end confdefs.h. */
60365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60366 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
60367 ice_cv_have_fflush_decl=yes
60371 if test "$ice_cv_have_fflush_decl" = yes; then
60374 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60375 cat >conftest.$ac_ext <<_ACEOF
60378 cat confdefs.h >>conftest.$ac_ext
60379 cat >>conftest.$ac_ext <<_ACEOF
60380 /* end confdefs.h. */
60384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60385 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60386 ice_cv_have_fflush_decl=yes
60390 if test "$ice_cv_have_fflush_decl" = yes; then
60397 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
60398 $as_echo "$ice_cv_have_fflush_decl" >&6; }
60399 if test "$ice_cv_have_fflush_decl" = yes; then
60401 cat >>confdefs.h <<_ACEOF
60402 #define HAVE_FFLUSH_DECL 1
60409 ice_have_fprintf=no
60411 for ac_func in fprintf
60413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60415 $as_echo_n "checking for $ac_func... " >&6; }
60416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60417 $as_echo_n "(cached) " >&6
60419 cat >conftest.$ac_ext <<_ACEOF
60422 cat confdefs.h >>conftest.$ac_ext
60423 cat >>conftest.$ac_ext <<_ACEOF
60424 /* end confdefs.h. */
60425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60427 #define $ac_func innocuous_$ac_func
60429 /* System header to define __stub macros and hopefully few prototypes,
60430 which can conflict with char $ac_func (); below.
60431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60432 <limits.h> exists even on freestanding compilers. */
60435 # include <limits.h>
60437 # include <assert.h>
60442 /* Override any GCC internal prototype to avoid an error.
60443 Use char because int might match the return type of a GCC
60444 builtin and then its argument prototype would still apply. */
60449 /* The GNU C library defines this for functions which it implements
60450 to always fail with ENOSYS. Some functions are actually named
60451 something starting with __ and the normal name is an alias. */
60452 #if defined __stub_$ac_func || defined __stub___$ac_func
60459 return $ac_func ();
60464 rm -f conftest.$ac_objext conftest$ac_exeext
60465 if { (ac_try="$ac_link"
60466 case "(($ac_try" in
60467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60468 *) ac_try_echo=$ac_try;;
60470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60471 $as_echo "$ac_try_echo") >&5
60472 (eval "$ac_link") 2>conftest.er1
60474 grep -v '^ *+' conftest.er1 >conftest.err
60476 cat conftest.err >&5
60477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60478 (exit $ac_status); } && {
60479 test -z "$ac_c_werror_flag" ||
60480 test ! -s conftest.err
60481 } && test -s conftest$ac_exeext && {
60482 test "$cross_compiling" = yes ||
60483 $as_test_x conftest$ac_exeext
60485 eval "$as_ac_var=yes"
60487 $as_echo "$as_me: failed program was:" >&5
60488 sed 's/^/| /' conftest.$ac_ext >&5
60490 eval "$as_ac_var=no"
60493 rm -rf conftest.dSYM
60494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60495 conftest$ac_exeext conftest.$ac_ext
60497 ac_res=`eval 'as_val=${'$as_ac_var'}
60498 $as_echo "$as_val"'`
60499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60500 $as_echo "$ac_res" >&6; }
60501 as_val=`eval 'as_val=${'$as_ac_var'}
60502 $as_echo "$as_val"'`
60503 if test "x$as_val" = x""yes; then
60504 cat >>confdefs.h <<_ACEOF
60505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60507 ice_have_fprintf=yes
60511 if test "${ice_have_fprintf}" = yes; then
60512 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
60513 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
60514 if test "${ice_cv_have_fprintf_decl+set}" = set; then
60515 $as_echo_n "(cached) " >&6
60518 ice_cv_have_fprintf_decl=no
60519 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60520 ice_re_word='(^|[^a-zA-Z0-9_])'
60521 for header in stdio.h; do
60522 # Check for ordinary declaration
60523 cat >conftest.$ac_ext <<_ACEOF
60526 cat confdefs.h >>conftest.$ac_ext
60527 cat >>conftest.$ac_ext <<_ACEOF
60528 /* end confdefs.h. */
60532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60533 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
60534 ice_cv_have_fprintf_decl=yes
60538 if test "$ice_cv_have_fprintf_decl" = yes; then
60541 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60542 cat >conftest.$ac_ext <<_ACEOF
60545 cat confdefs.h >>conftest.$ac_ext
60546 cat >>conftest.$ac_ext <<_ACEOF
60547 /* end confdefs.h. */
60551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60552 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60553 ice_cv_have_fprintf_decl=yes
60557 if test "$ice_cv_have_fprintf_decl" = yes; then
60564 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
60565 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
60566 if test "$ice_cv_have_fprintf_decl" = yes; then
60568 cat >>confdefs.h <<_ACEOF
60569 #define HAVE_FPRINTF_DECL 1
60578 for ac_func in fputc
60580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60582 $as_echo_n "checking for $ac_func... " >&6; }
60583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60584 $as_echo_n "(cached) " >&6
60586 cat >conftest.$ac_ext <<_ACEOF
60589 cat confdefs.h >>conftest.$ac_ext
60590 cat >>conftest.$ac_ext <<_ACEOF
60591 /* end confdefs.h. */
60592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60594 #define $ac_func innocuous_$ac_func
60596 /* System header to define __stub macros and hopefully few prototypes,
60597 which can conflict with char $ac_func (); below.
60598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60599 <limits.h> exists even on freestanding compilers. */
60602 # include <limits.h>
60604 # include <assert.h>
60609 /* Override any GCC internal prototype to avoid an error.
60610 Use char because int might match the return type of a GCC
60611 builtin and then its argument prototype would still apply. */
60616 /* The GNU C library defines this for functions which it implements
60617 to always fail with ENOSYS. Some functions are actually named
60618 something starting with __ and the normal name is an alias. */
60619 #if defined __stub_$ac_func || defined __stub___$ac_func
60626 return $ac_func ();
60631 rm -f conftest.$ac_objext conftest$ac_exeext
60632 if { (ac_try="$ac_link"
60633 case "(($ac_try" in
60634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60635 *) ac_try_echo=$ac_try;;
60637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60638 $as_echo "$ac_try_echo") >&5
60639 (eval "$ac_link") 2>conftest.er1
60641 grep -v '^ *+' conftest.er1 >conftest.err
60643 cat conftest.err >&5
60644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60645 (exit $ac_status); } && {
60646 test -z "$ac_c_werror_flag" ||
60647 test ! -s conftest.err
60648 } && test -s conftest$ac_exeext && {
60649 test "$cross_compiling" = yes ||
60650 $as_test_x conftest$ac_exeext
60652 eval "$as_ac_var=yes"
60654 $as_echo "$as_me: failed program was:" >&5
60655 sed 's/^/| /' conftest.$ac_ext >&5
60657 eval "$as_ac_var=no"
60660 rm -rf conftest.dSYM
60661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60662 conftest$ac_exeext conftest.$ac_ext
60664 ac_res=`eval 'as_val=${'$as_ac_var'}
60665 $as_echo "$as_val"'`
60666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60667 $as_echo "$ac_res" >&6; }
60668 as_val=`eval 'as_val=${'$as_ac_var'}
60669 $as_echo "$as_val"'`
60670 if test "x$as_val" = x""yes; then
60671 cat >>confdefs.h <<_ACEOF
60672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60678 if test "${ice_have_fputc}" = yes; then
60679 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
60680 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
60681 if test "${ice_cv_have_fputc_decl+set}" = set; then
60682 $as_echo_n "(cached) " >&6
60685 ice_cv_have_fputc_decl=no
60686 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60687 ice_re_word='(^|[^a-zA-Z0-9_])'
60688 for header in stdio.h; do
60689 # Check for ordinary declaration
60690 cat >conftest.$ac_ext <<_ACEOF
60693 cat confdefs.h >>conftest.$ac_ext
60694 cat >>conftest.$ac_ext <<_ACEOF
60695 /* end confdefs.h. */
60699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60700 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
60701 ice_cv_have_fputc_decl=yes
60705 if test "$ice_cv_have_fputc_decl" = yes; then
60708 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60709 cat >conftest.$ac_ext <<_ACEOF
60712 cat confdefs.h >>conftest.$ac_ext
60713 cat >>conftest.$ac_ext <<_ACEOF
60714 /* end confdefs.h. */
60718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60719 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60720 ice_cv_have_fputc_decl=yes
60724 if test "$ice_cv_have_fputc_decl" = yes; then
60731 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
60732 $as_echo "$ice_cv_have_fputc_decl" >&6; }
60733 if test "$ice_cv_have_fputc_decl" = yes; then
60735 cat >>confdefs.h <<_ACEOF
60736 #define HAVE_FPUTC_DECL 1
60745 for ac_func in fputs
60747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60748 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60749 $as_echo_n "checking for $ac_func... " >&6; }
60750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60751 $as_echo_n "(cached) " >&6
60753 cat >conftest.$ac_ext <<_ACEOF
60756 cat confdefs.h >>conftest.$ac_ext
60757 cat >>conftest.$ac_ext <<_ACEOF
60758 /* end confdefs.h. */
60759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60761 #define $ac_func innocuous_$ac_func
60763 /* System header to define __stub macros and hopefully few prototypes,
60764 which can conflict with char $ac_func (); below.
60765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60766 <limits.h> exists even on freestanding compilers. */
60769 # include <limits.h>
60771 # include <assert.h>
60776 /* Override any GCC internal prototype to avoid an error.
60777 Use char because int might match the return type of a GCC
60778 builtin and then its argument prototype would still apply. */
60783 /* The GNU C library defines this for functions which it implements
60784 to always fail with ENOSYS. Some functions are actually named
60785 something starting with __ and the normal name is an alias. */
60786 #if defined __stub_$ac_func || defined __stub___$ac_func
60793 return $ac_func ();
60798 rm -f conftest.$ac_objext conftest$ac_exeext
60799 if { (ac_try="$ac_link"
60800 case "(($ac_try" in
60801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60802 *) ac_try_echo=$ac_try;;
60804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60805 $as_echo "$ac_try_echo") >&5
60806 (eval "$ac_link") 2>conftest.er1
60808 grep -v '^ *+' conftest.er1 >conftest.err
60810 cat conftest.err >&5
60811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60812 (exit $ac_status); } && {
60813 test -z "$ac_c_werror_flag" ||
60814 test ! -s conftest.err
60815 } && test -s conftest$ac_exeext && {
60816 test "$cross_compiling" = yes ||
60817 $as_test_x conftest$ac_exeext
60819 eval "$as_ac_var=yes"
60821 $as_echo "$as_me: failed program was:" >&5
60822 sed 's/^/| /' conftest.$ac_ext >&5
60824 eval "$as_ac_var=no"
60827 rm -rf conftest.dSYM
60828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60829 conftest$ac_exeext conftest.$ac_ext
60831 ac_res=`eval 'as_val=${'$as_ac_var'}
60832 $as_echo "$as_val"'`
60833 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60834 $as_echo "$ac_res" >&6; }
60835 as_val=`eval 'as_val=${'$as_ac_var'}
60836 $as_echo "$as_val"'`
60837 if test "x$as_val" = x""yes; then
60838 cat >>confdefs.h <<_ACEOF
60839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60845 if test "${ice_have_fputs}" = yes; then
60846 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
60847 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
60848 if test "${ice_cv_have_fputs_decl+set}" = set; then
60849 $as_echo_n "(cached) " >&6
60852 ice_cv_have_fputs_decl=no
60853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60854 ice_re_word='(^|[^a-zA-Z0-9_])'
60855 for header in stdio.h; do
60856 # Check for ordinary declaration
60857 cat >conftest.$ac_ext <<_ACEOF
60860 cat confdefs.h >>conftest.$ac_ext
60861 cat >>conftest.$ac_ext <<_ACEOF
60862 /* end confdefs.h. */
60866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60867 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
60868 ice_cv_have_fputs_decl=yes
60872 if test "$ice_cv_have_fputs_decl" = yes; then
60875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60876 cat >conftest.$ac_ext <<_ACEOF
60879 cat confdefs.h >>conftest.$ac_ext
60880 cat >>conftest.$ac_ext <<_ACEOF
60881 /* end confdefs.h. */
60885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60886 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60887 ice_cv_have_fputs_decl=yes
60891 if test "$ice_cv_have_fputs_decl" = yes; then
60898 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
60899 $as_echo "$ice_cv_have_fputs_decl" >&6; }
60900 if test "$ice_cv_have_fputs_decl" = yes; then
60902 cat >>confdefs.h <<_ACEOF
60903 #define HAVE_FPUTS_DECL 1
60912 for ac_func in fread
60914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60916 $as_echo_n "checking for $ac_func... " >&6; }
60917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60918 $as_echo_n "(cached) " >&6
60920 cat >conftest.$ac_ext <<_ACEOF
60923 cat confdefs.h >>conftest.$ac_ext
60924 cat >>conftest.$ac_ext <<_ACEOF
60925 /* end confdefs.h. */
60926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
60928 #define $ac_func innocuous_$ac_func
60930 /* System header to define __stub macros and hopefully few prototypes,
60931 which can conflict with char $ac_func (); below.
60932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60933 <limits.h> exists even on freestanding compilers. */
60936 # include <limits.h>
60938 # include <assert.h>
60943 /* Override any GCC internal prototype to avoid an error.
60944 Use char because int might match the return type of a GCC
60945 builtin and then its argument prototype would still apply. */
60950 /* The GNU C library defines this for functions which it implements
60951 to always fail with ENOSYS. Some functions are actually named
60952 something starting with __ and the normal name is an alias. */
60953 #if defined __stub_$ac_func || defined __stub___$ac_func
60960 return $ac_func ();
60965 rm -f conftest.$ac_objext conftest$ac_exeext
60966 if { (ac_try="$ac_link"
60967 case "(($ac_try" in
60968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60969 *) ac_try_echo=$ac_try;;
60971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60972 $as_echo "$ac_try_echo") >&5
60973 (eval "$ac_link") 2>conftest.er1
60975 grep -v '^ *+' conftest.er1 >conftest.err
60977 cat conftest.err >&5
60978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60979 (exit $ac_status); } && {
60980 test -z "$ac_c_werror_flag" ||
60981 test ! -s conftest.err
60982 } && test -s conftest$ac_exeext && {
60983 test "$cross_compiling" = yes ||
60984 $as_test_x conftest$ac_exeext
60986 eval "$as_ac_var=yes"
60988 $as_echo "$as_me: failed program was:" >&5
60989 sed 's/^/| /' conftest.$ac_ext >&5
60991 eval "$as_ac_var=no"
60994 rm -rf conftest.dSYM
60995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60996 conftest$ac_exeext conftest.$ac_ext
60998 ac_res=`eval 'as_val=${'$as_ac_var'}
60999 $as_echo "$as_val"'`
61000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61001 $as_echo "$ac_res" >&6; }
61002 as_val=`eval 'as_val=${'$as_ac_var'}
61003 $as_echo "$as_val"'`
61004 if test "x$as_val" = x""yes; then
61005 cat >>confdefs.h <<_ACEOF
61006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61012 if test "${ice_have_fread}" = yes; then
61013 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
61014 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
61015 if test "${ice_cv_have_fread_decl+set}" = set; then
61016 $as_echo_n "(cached) " >&6
61019 ice_cv_have_fread_decl=no
61020 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61021 ice_re_word='(^|[^a-zA-Z0-9_])'
61022 for header in stdio.h stdlib.h; do
61023 # Check for ordinary declaration
61024 cat >conftest.$ac_ext <<_ACEOF
61027 cat confdefs.h >>conftest.$ac_ext
61028 cat >>conftest.$ac_ext <<_ACEOF
61029 /* end confdefs.h. */
61033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61034 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
61035 ice_cv_have_fread_decl=yes
61039 if test "$ice_cv_have_fread_decl" = yes; then
61042 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61043 cat >conftest.$ac_ext <<_ACEOF
61046 cat confdefs.h >>conftest.$ac_ext
61047 cat >>conftest.$ac_ext <<_ACEOF
61048 /* end confdefs.h. */
61052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61053 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61054 ice_cv_have_fread_decl=yes
61058 if test "$ice_cv_have_fread_decl" = yes; then
61065 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
61066 $as_echo "$ice_cv_have_fread_decl" >&6; }
61067 if test "$ice_cv_have_fread_decl" = yes; then
61069 cat >>confdefs.h <<_ACEOF
61070 #define HAVE_FREAD_DECL 1
61079 for ac_func in fseek
61081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61083 $as_echo_n "checking for $ac_func... " >&6; }
61084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61085 $as_echo_n "(cached) " >&6
61087 cat >conftest.$ac_ext <<_ACEOF
61090 cat confdefs.h >>conftest.$ac_ext
61091 cat >>conftest.$ac_ext <<_ACEOF
61092 /* end confdefs.h. */
61093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61095 #define $ac_func innocuous_$ac_func
61097 /* System header to define __stub macros and hopefully few prototypes,
61098 which can conflict with char $ac_func (); below.
61099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61100 <limits.h> exists even on freestanding compilers. */
61103 # include <limits.h>
61105 # include <assert.h>
61110 /* Override any GCC internal prototype to avoid an error.
61111 Use char because int might match the return type of a GCC
61112 builtin and then its argument prototype would still apply. */
61117 /* The GNU C library defines this for functions which it implements
61118 to always fail with ENOSYS. Some functions are actually named
61119 something starting with __ and the normal name is an alias. */
61120 #if defined __stub_$ac_func || defined __stub___$ac_func
61127 return $ac_func ();
61132 rm -f conftest.$ac_objext conftest$ac_exeext
61133 if { (ac_try="$ac_link"
61134 case "(($ac_try" in
61135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61136 *) ac_try_echo=$ac_try;;
61138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61139 $as_echo "$ac_try_echo") >&5
61140 (eval "$ac_link") 2>conftest.er1
61142 grep -v '^ *+' conftest.er1 >conftest.err
61144 cat conftest.err >&5
61145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61146 (exit $ac_status); } && {
61147 test -z "$ac_c_werror_flag" ||
61148 test ! -s conftest.err
61149 } && test -s conftest$ac_exeext && {
61150 test "$cross_compiling" = yes ||
61151 $as_test_x conftest$ac_exeext
61153 eval "$as_ac_var=yes"
61155 $as_echo "$as_me: failed program was:" >&5
61156 sed 's/^/| /' conftest.$ac_ext >&5
61158 eval "$as_ac_var=no"
61161 rm -rf conftest.dSYM
61162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61163 conftest$ac_exeext conftest.$ac_ext
61165 ac_res=`eval 'as_val=${'$as_ac_var'}
61166 $as_echo "$as_val"'`
61167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61168 $as_echo "$ac_res" >&6; }
61169 as_val=`eval 'as_val=${'$as_ac_var'}
61170 $as_echo "$as_val"'`
61171 if test "x$as_val" = x""yes; then
61172 cat >>confdefs.h <<_ACEOF
61173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61179 if test "${ice_have_fseek}" = yes; then
61180 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
61181 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
61182 if test "${ice_cv_have_fseek_decl+set}" = set; then
61183 $as_echo_n "(cached) " >&6
61186 ice_cv_have_fseek_decl=no
61187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61188 ice_re_word='(^|[^a-zA-Z0-9_])'
61189 for header in stdio.h; do
61190 # Check for ordinary declaration
61191 cat >conftest.$ac_ext <<_ACEOF
61194 cat confdefs.h >>conftest.$ac_ext
61195 cat >>conftest.$ac_ext <<_ACEOF
61196 /* end confdefs.h. */
61200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61201 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
61202 ice_cv_have_fseek_decl=yes
61206 if test "$ice_cv_have_fseek_decl" = yes; then
61209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61210 cat >conftest.$ac_ext <<_ACEOF
61213 cat confdefs.h >>conftest.$ac_ext
61214 cat >>conftest.$ac_ext <<_ACEOF
61215 /* end confdefs.h. */
61219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61220 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61221 ice_cv_have_fseek_decl=yes
61225 if test "$ice_cv_have_fseek_decl" = yes; then
61232 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
61233 $as_echo "$ice_cv_have_fseek_decl" >&6; }
61234 if test "$ice_cv_have_fseek_decl" = yes; then
61236 cat >>confdefs.h <<_ACEOF
61237 #define HAVE_FSEEK_DECL 1
61246 for ac_func in fwrite
61248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61250 $as_echo_n "checking for $ac_func... " >&6; }
61251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61252 $as_echo_n "(cached) " >&6
61254 cat >conftest.$ac_ext <<_ACEOF
61257 cat confdefs.h >>conftest.$ac_ext
61258 cat >>conftest.$ac_ext <<_ACEOF
61259 /* end confdefs.h. */
61260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61262 #define $ac_func innocuous_$ac_func
61264 /* System header to define __stub macros and hopefully few prototypes,
61265 which can conflict with char $ac_func (); below.
61266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61267 <limits.h> exists even on freestanding compilers. */
61270 # include <limits.h>
61272 # include <assert.h>
61277 /* Override any GCC internal prototype to avoid an error.
61278 Use char because int might match the return type of a GCC
61279 builtin and then its argument prototype would still apply. */
61284 /* The GNU C library defines this for functions which it implements
61285 to always fail with ENOSYS. Some functions are actually named
61286 something starting with __ and the normal name is an alias. */
61287 #if defined __stub_$ac_func || defined __stub___$ac_func
61294 return $ac_func ();
61299 rm -f conftest.$ac_objext conftest$ac_exeext
61300 if { (ac_try="$ac_link"
61301 case "(($ac_try" in
61302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61303 *) ac_try_echo=$ac_try;;
61305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61306 $as_echo "$ac_try_echo") >&5
61307 (eval "$ac_link") 2>conftest.er1
61309 grep -v '^ *+' conftest.er1 >conftest.err
61311 cat conftest.err >&5
61312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61313 (exit $ac_status); } && {
61314 test -z "$ac_c_werror_flag" ||
61315 test ! -s conftest.err
61316 } && test -s conftest$ac_exeext && {
61317 test "$cross_compiling" = yes ||
61318 $as_test_x conftest$ac_exeext
61320 eval "$as_ac_var=yes"
61322 $as_echo "$as_me: failed program was:" >&5
61323 sed 's/^/| /' conftest.$ac_ext >&5
61325 eval "$as_ac_var=no"
61328 rm -rf conftest.dSYM
61329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61330 conftest$ac_exeext conftest.$ac_ext
61332 ac_res=`eval 'as_val=${'$as_ac_var'}
61333 $as_echo "$as_val"'`
61334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61335 $as_echo "$ac_res" >&6; }
61336 as_val=`eval 'as_val=${'$as_ac_var'}
61337 $as_echo "$as_val"'`
61338 if test "x$as_val" = x""yes; then
61339 cat >>confdefs.h <<_ACEOF
61340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61342 ice_have_fwrite=yes
61346 if test "${ice_have_fwrite}" = yes; then
61347 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
61348 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
61349 if test "${ice_cv_have_fwrite_decl+set}" = set; then
61350 $as_echo_n "(cached) " >&6
61353 ice_cv_have_fwrite_decl=no
61354 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61355 ice_re_word='(^|[^a-zA-Z0-9_])'
61356 for header in stdio.h stdlib.h; do
61357 # Check for ordinary declaration
61358 cat >conftest.$ac_ext <<_ACEOF
61361 cat confdefs.h >>conftest.$ac_ext
61362 cat >>conftest.$ac_ext <<_ACEOF
61363 /* end confdefs.h. */
61367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61368 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
61369 ice_cv_have_fwrite_decl=yes
61373 if test "$ice_cv_have_fwrite_decl" = yes; then
61376 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61377 cat >conftest.$ac_ext <<_ACEOF
61380 cat confdefs.h >>conftest.$ac_ext
61381 cat >>conftest.$ac_ext <<_ACEOF
61382 /* end confdefs.h. */
61386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61387 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61388 ice_cv_have_fwrite_decl=yes
61392 if test "$ice_cv_have_fwrite_decl" = yes; then
61399 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
61400 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
61401 if test "$ice_cv_have_fwrite_decl" = yes; then
61403 cat >>confdefs.h <<_ACEOF
61404 #define HAVE_FWRITE_DECL 1
61411 for ac_func in getgrgid_r
61413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61414 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61415 $as_echo_n "checking for $ac_func... " >&6; }
61416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61417 $as_echo_n "(cached) " >&6
61419 cat >conftest.$ac_ext <<_ACEOF
61422 cat confdefs.h >>conftest.$ac_ext
61423 cat >>conftest.$ac_ext <<_ACEOF
61424 /* end confdefs.h. */
61425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61427 #define $ac_func innocuous_$ac_func
61429 /* System header to define __stub macros and hopefully few prototypes,
61430 which can conflict with char $ac_func (); below.
61431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61432 <limits.h> exists even on freestanding compilers. */
61435 # include <limits.h>
61437 # include <assert.h>
61442 /* Override any GCC internal prototype to avoid an error.
61443 Use char because int might match the return type of a GCC
61444 builtin and then its argument prototype would still apply. */
61449 /* The GNU C library defines this for functions which it implements
61450 to always fail with ENOSYS. Some functions are actually named
61451 something starting with __ and the normal name is an alias. */
61452 #if defined __stub_$ac_func || defined __stub___$ac_func
61459 return $ac_func ();
61464 rm -f conftest.$ac_objext conftest$ac_exeext
61465 if { (ac_try="$ac_link"
61466 case "(($ac_try" in
61467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61468 *) ac_try_echo=$ac_try;;
61470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61471 $as_echo "$ac_try_echo") >&5
61472 (eval "$ac_link") 2>conftest.er1
61474 grep -v '^ *+' conftest.er1 >conftest.err
61476 cat conftest.err >&5
61477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61478 (exit $ac_status); } && {
61479 test -z "$ac_c_werror_flag" ||
61480 test ! -s conftest.err
61481 } && test -s conftest$ac_exeext && {
61482 test "$cross_compiling" = yes ||
61483 $as_test_x conftest$ac_exeext
61485 eval "$as_ac_var=yes"
61487 $as_echo "$as_me: failed program was:" >&5
61488 sed 's/^/| /' conftest.$ac_ext >&5
61490 eval "$as_ac_var=no"
61493 rm -rf conftest.dSYM
61494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61495 conftest$ac_exeext conftest.$ac_ext
61497 ac_res=`eval 'as_val=${'$as_ac_var'}
61498 $as_echo "$as_val"'`
61499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61500 $as_echo "$ac_res" >&6; }
61501 as_val=`eval 'as_val=${'$as_ac_var'}
61502 $as_echo "$as_val"'`
61503 if test "x$as_val" = x""yes; then
61504 cat >>confdefs.h <<_ACEOF
61505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61512 for ac_func in getpwuid_r
61514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61516 $as_echo_n "checking for $ac_func... " >&6; }
61517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61518 $as_echo_n "(cached) " >&6
61520 cat >conftest.$ac_ext <<_ACEOF
61523 cat confdefs.h >>conftest.$ac_ext
61524 cat >>conftest.$ac_ext <<_ACEOF
61525 /* end confdefs.h. */
61526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61528 #define $ac_func innocuous_$ac_func
61530 /* System header to define __stub macros and hopefully few prototypes,
61531 which can conflict with char $ac_func (); below.
61532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61533 <limits.h> exists even on freestanding compilers. */
61536 # include <limits.h>
61538 # include <assert.h>
61543 /* Override any GCC internal prototype to avoid an error.
61544 Use char because int might match the return type of a GCC
61545 builtin and then its argument prototype would still apply. */
61550 /* The GNU C library defines this for functions which it implements
61551 to always fail with ENOSYS. Some functions are actually named
61552 something starting with __ and the normal name is an alias. */
61553 #if defined __stub_$ac_func || defined __stub___$ac_func
61560 return $ac_func ();
61565 rm -f conftest.$ac_objext conftest$ac_exeext
61566 if { (ac_try="$ac_link"
61567 case "(($ac_try" in
61568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61569 *) ac_try_echo=$ac_try;;
61571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61572 $as_echo "$ac_try_echo") >&5
61573 (eval "$ac_link") 2>conftest.er1
61575 grep -v '^ *+' conftest.er1 >conftest.err
61577 cat conftest.err >&5
61578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61579 (exit $ac_status); } && {
61580 test -z "$ac_c_werror_flag" ||
61581 test ! -s conftest.err
61582 } && test -s conftest$ac_exeext && {
61583 test "$cross_compiling" = yes ||
61584 $as_test_x conftest$ac_exeext
61586 eval "$as_ac_var=yes"
61588 $as_echo "$as_me: failed program was:" >&5
61589 sed 's/^/| /' conftest.$ac_ext >&5
61591 eval "$as_ac_var=no"
61594 rm -rf conftest.dSYM
61595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61596 conftest$ac_exeext conftest.$ac_ext
61598 ac_res=`eval 'as_val=${'$as_ac_var'}
61599 $as_echo "$as_val"'`
61600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61601 $as_echo "$ac_res" >&6; }
61602 as_val=`eval 'as_val=${'$as_ac_var'}
61603 $as_echo "$as_val"'`
61604 if test "x$as_val" = x""yes; then
61605 cat >>confdefs.h <<_ACEOF
61606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61613 ice_have_gethostname=no
61615 for ac_func in gethostname
61617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61619 $as_echo_n "checking for $ac_func... " >&6; }
61620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61621 $as_echo_n "(cached) " >&6
61623 cat >conftest.$ac_ext <<_ACEOF
61626 cat confdefs.h >>conftest.$ac_ext
61627 cat >>conftest.$ac_ext <<_ACEOF
61628 /* end confdefs.h. */
61629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61631 #define $ac_func innocuous_$ac_func
61633 /* System header to define __stub macros and hopefully few prototypes,
61634 which can conflict with char $ac_func (); below.
61635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61636 <limits.h> exists even on freestanding compilers. */
61639 # include <limits.h>
61641 # include <assert.h>
61646 /* Override any GCC internal prototype to avoid an error.
61647 Use char because int might match the return type of a GCC
61648 builtin and then its argument prototype would still apply. */
61653 /* The GNU C library defines this for functions which it implements
61654 to always fail with ENOSYS. Some functions are actually named
61655 something starting with __ and the normal name is an alias. */
61656 #if defined __stub_$ac_func || defined __stub___$ac_func
61663 return $ac_func ();
61668 rm -f conftest.$ac_objext conftest$ac_exeext
61669 if { (ac_try="$ac_link"
61670 case "(($ac_try" in
61671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61672 *) ac_try_echo=$ac_try;;
61674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61675 $as_echo "$ac_try_echo") >&5
61676 (eval "$ac_link") 2>conftest.er1
61678 grep -v '^ *+' conftest.er1 >conftest.err
61680 cat conftest.err >&5
61681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61682 (exit $ac_status); } && {
61683 test -z "$ac_c_werror_flag" ||
61684 test ! -s conftest.err
61685 } && test -s conftest$ac_exeext && {
61686 test "$cross_compiling" = yes ||
61687 $as_test_x conftest$ac_exeext
61689 eval "$as_ac_var=yes"
61691 $as_echo "$as_me: failed program was:" >&5
61692 sed 's/^/| /' conftest.$ac_ext >&5
61694 eval "$as_ac_var=no"
61697 rm -rf conftest.dSYM
61698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61699 conftest$ac_exeext conftest.$ac_ext
61701 ac_res=`eval 'as_val=${'$as_ac_var'}
61702 $as_echo "$as_val"'`
61703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61704 $as_echo "$ac_res" >&6; }
61705 as_val=`eval 'as_val=${'$as_ac_var'}
61706 $as_echo "$as_val"'`
61707 if test "x$as_val" = x""yes; then
61708 cat >>confdefs.h <<_ACEOF
61709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61711 ice_have_gethostname=yes
61715 if test "${ice_have_gethostname}" = yes; then
61716 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
61717 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
61718 if test "${ice_cv_have_gethostname_decl+set}" = set; then
61719 $as_echo_n "(cached) " >&6
61722 ice_cv_have_gethostname_decl=no
61723 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61724 ice_re_word='(^|[^a-zA-Z0-9_])'
61725 for header in unistd.h; do
61726 # Check for ordinary declaration
61727 cat >conftest.$ac_ext <<_ACEOF
61730 cat confdefs.h >>conftest.$ac_ext
61731 cat >>conftest.$ac_ext <<_ACEOF
61732 /* end confdefs.h. */
61736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61737 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
61738 ice_cv_have_gethostname_decl=yes
61742 if test "$ice_cv_have_gethostname_decl" = yes; then
61745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61746 cat >conftest.$ac_ext <<_ACEOF
61749 cat confdefs.h >>conftest.$ac_ext
61750 cat >>conftest.$ac_ext <<_ACEOF
61751 /* end confdefs.h. */
61755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61756 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61757 ice_cv_have_gethostname_decl=yes
61761 if test "$ice_cv_have_gethostname_decl" = yes; then
61768 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
61769 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
61770 if test "$ice_cv_have_gethostname_decl" = yes; then
61772 cat >>confdefs.h <<_ACEOF
61773 #define HAVE_GETHOSTNAME_DECL 1
61782 for ac_func in getopt
61784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61785 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61786 $as_echo_n "checking for $ac_func... " >&6; }
61787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61788 $as_echo_n "(cached) " >&6
61790 cat >conftest.$ac_ext <<_ACEOF
61793 cat confdefs.h >>conftest.$ac_ext
61794 cat >>conftest.$ac_ext <<_ACEOF
61795 /* end confdefs.h. */
61796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61798 #define $ac_func innocuous_$ac_func
61800 /* System header to define __stub macros and hopefully few prototypes,
61801 which can conflict with char $ac_func (); below.
61802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61803 <limits.h> exists even on freestanding compilers. */
61806 # include <limits.h>
61808 # include <assert.h>
61813 /* Override any GCC internal prototype to avoid an error.
61814 Use char because int might match the return type of a GCC
61815 builtin and then its argument prototype would still apply. */
61820 /* The GNU C library defines this for functions which it implements
61821 to always fail with ENOSYS. Some functions are actually named
61822 something starting with __ and the normal name is an alias. */
61823 #if defined __stub_$ac_func || defined __stub___$ac_func
61830 return $ac_func ();
61835 rm -f conftest.$ac_objext conftest$ac_exeext
61836 if { (ac_try="$ac_link"
61837 case "(($ac_try" in
61838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61839 *) ac_try_echo=$ac_try;;
61841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61842 $as_echo "$ac_try_echo") >&5
61843 (eval "$ac_link") 2>conftest.er1
61845 grep -v '^ *+' conftest.er1 >conftest.err
61847 cat conftest.err >&5
61848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61849 (exit $ac_status); } && {
61850 test -z "$ac_c_werror_flag" ||
61851 test ! -s conftest.err
61852 } && test -s conftest$ac_exeext && {
61853 test "$cross_compiling" = yes ||
61854 $as_test_x conftest$ac_exeext
61856 eval "$as_ac_var=yes"
61858 $as_echo "$as_me: failed program was:" >&5
61859 sed 's/^/| /' conftest.$ac_ext >&5
61861 eval "$as_ac_var=no"
61864 rm -rf conftest.dSYM
61865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61866 conftest$ac_exeext conftest.$ac_ext
61868 ac_res=`eval 'as_val=${'$as_ac_var'}
61869 $as_echo "$as_val"'`
61870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61871 $as_echo "$ac_res" >&6; }
61872 as_val=`eval 'as_val=${'$as_ac_var'}
61873 $as_echo "$as_val"'`
61874 if test "x$as_val" = x""yes; then
61875 cat >>confdefs.h <<_ACEOF
61876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61878 ice_have_getopt=yes
61882 if test "${ice_have_getopt}" = yes; then
61883 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
61884 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
61885 if test "${ice_cv_have_getopt_decl+set}" = set; then
61886 $as_echo_n "(cached) " >&6
61889 ice_cv_have_getopt_decl=no
61890 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61891 ice_re_word='(^|[^a-zA-Z0-9_])'
61892 for header in stdlib.h unistd.h libc.h; do
61893 # Check for ordinary declaration
61894 cat >conftest.$ac_ext <<_ACEOF
61897 cat confdefs.h >>conftest.$ac_ext
61898 cat >>conftest.$ac_ext <<_ACEOF
61899 /* end confdefs.h. */
61903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61904 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
61905 ice_cv_have_getopt_decl=yes
61909 if test "$ice_cv_have_getopt_decl" = yes; then
61912 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61913 cat >conftest.$ac_ext <<_ACEOF
61916 cat confdefs.h >>conftest.$ac_ext
61917 cat >>conftest.$ac_ext <<_ACEOF
61918 /* end confdefs.h. */
61922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61923 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61924 ice_cv_have_getopt_decl=yes
61928 if test "$ice_cv_have_getopt_decl" = yes; then
61935 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
61936 $as_echo "$ice_cv_have_getopt_decl" >&6; }
61937 if test "$ice_cv_have_getopt_decl" = yes; then
61939 cat >>confdefs.h <<_ACEOF
61940 #define HAVE_GETOPT_DECL 1
61947 ice_have_getpeername=no
61949 for ac_func in getpeername
61951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61952 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61953 $as_echo_n "checking for $ac_func... " >&6; }
61954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61955 $as_echo_n "(cached) " >&6
61957 cat >conftest.$ac_ext <<_ACEOF
61960 cat confdefs.h >>conftest.$ac_ext
61961 cat >>conftest.$ac_ext <<_ACEOF
61962 /* end confdefs.h. */
61963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61965 #define $ac_func innocuous_$ac_func
61967 /* System header to define __stub macros and hopefully few prototypes,
61968 which can conflict with char $ac_func (); below.
61969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61970 <limits.h> exists even on freestanding compilers. */
61973 # include <limits.h>
61975 # include <assert.h>
61980 /* Override any GCC internal prototype to avoid an error.
61981 Use char because int might match the return type of a GCC
61982 builtin and then its argument prototype would still apply. */
61987 /* The GNU C library defines this for functions which it implements
61988 to always fail with ENOSYS. Some functions are actually named
61989 something starting with __ and the normal name is an alias. */
61990 #if defined __stub_$ac_func || defined __stub___$ac_func
61997 return $ac_func ();
62002 rm -f conftest.$ac_objext conftest$ac_exeext
62003 if { (ac_try="$ac_link"
62004 case "(($ac_try" in
62005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62006 *) ac_try_echo=$ac_try;;
62008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62009 $as_echo "$ac_try_echo") >&5
62010 (eval "$ac_link") 2>conftest.er1
62012 grep -v '^ *+' conftest.er1 >conftest.err
62014 cat conftest.err >&5
62015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62016 (exit $ac_status); } && {
62017 test -z "$ac_c_werror_flag" ||
62018 test ! -s conftest.err
62019 } && test -s conftest$ac_exeext && {
62020 test "$cross_compiling" = yes ||
62021 $as_test_x conftest$ac_exeext
62023 eval "$as_ac_var=yes"
62025 $as_echo "$as_me: failed program was:" >&5
62026 sed 's/^/| /' conftest.$ac_ext >&5
62028 eval "$as_ac_var=no"
62031 rm -rf conftest.dSYM
62032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62033 conftest$ac_exeext conftest.$ac_ext
62035 ac_res=`eval 'as_val=${'$as_ac_var'}
62036 $as_echo "$as_val"'`
62037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62038 $as_echo "$ac_res" >&6; }
62039 as_val=`eval 'as_val=${'$as_ac_var'}
62040 $as_echo "$as_val"'`
62041 if test "x$as_val" = x""yes; then
62042 cat >>confdefs.h <<_ACEOF
62043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62045 ice_have_getpeername=yes
62049 if test "${ice_have_getpeername}" = yes; then
62050 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
62051 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
62052 if test "${ice_cv_have_getpeername_decl+set}" = set; then
62053 $as_echo_n "(cached) " >&6
62056 ice_cv_have_getpeername_decl=no
62057 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62058 ice_re_word='(^|[^a-zA-Z0-9_])'
62059 for header in sys/types.h sys/socket.h; do
62060 # Check for ordinary declaration
62061 cat >conftest.$ac_ext <<_ACEOF
62064 cat confdefs.h >>conftest.$ac_ext
62065 cat >>conftest.$ac_ext <<_ACEOF
62066 /* end confdefs.h. */
62070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62071 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
62072 ice_cv_have_getpeername_decl=yes
62076 if test "$ice_cv_have_getpeername_decl" = yes; then
62079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62080 cat >conftest.$ac_ext <<_ACEOF
62083 cat confdefs.h >>conftest.$ac_ext
62084 cat >>conftest.$ac_ext <<_ACEOF
62085 /* end confdefs.h. */
62089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62090 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62091 ice_cv_have_getpeername_decl=yes
62095 if test "$ice_cv_have_getpeername_decl" = yes; then
62102 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
62103 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
62104 if test "$ice_cv_have_getpeername_decl" = yes; then
62106 cat >>confdefs.h <<_ACEOF
62107 #define HAVE_GETPEERNAME_DECL 1
62113 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
62114 $as_echo_n "checking for getpgrp... " >&6; }
62115 if test "${ac_cv_func_getpgrp+set}" = set; then
62116 $as_echo_n "(cached) " >&6
62118 cat >conftest.$ac_ext <<_ACEOF
62121 cat confdefs.h >>conftest.$ac_ext
62122 cat >>conftest.$ac_ext <<_ACEOF
62123 /* end confdefs.h. */
62124 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
62125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62126 #define getpgrp innocuous_getpgrp
62128 /* System header to define __stub macros and hopefully few prototypes,
62129 which can conflict with char getpgrp (); below.
62130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62131 <limits.h> exists even on freestanding compilers. */
62134 # include <limits.h>
62136 # include <assert.h>
62141 /* Override any GCC internal prototype to avoid an error.
62142 Use char because int might match the return type of a GCC
62143 builtin and then its argument prototype would still apply. */
62148 /* The GNU C library defines this for functions which it implements
62149 to always fail with ENOSYS. Some functions are actually named
62150 something starting with __ and the normal name is an alias. */
62151 #if defined __stub_getpgrp || defined __stub___getpgrp
62163 rm -f conftest.$ac_objext conftest$ac_exeext
62164 if { (ac_try="$ac_link"
62165 case "(($ac_try" in
62166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62167 *) ac_try_echo=$ac_try;;
62169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62170 $as_echo "$ac_try_echo") >&5
62171 (eval "$ac_link") 2>conftest.er1
62173 grep -v '^ *+' conftest.er1 >conftest.err
62175 cat conftest.err >&5
62176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62177 (exit $ac_status); } && {
62178 test -z "$ac_c_werror_flag" ||
62179 test ! -s conftest.err
62180 } && test -s conftest$ac_exeext && {
62181 test "$cross_compiling" = yes ||
62182 $as_test_x conftest$ac_exeext
62184 ac_cv_func_getpgrp=yes
62186 $as_echo "$as_me: failed program was:" >&5
62187 sed 's/^/| /' conftest.$ac_ext >&5
62189 ac_cv_func_getpgrp=no
62192 rm -rf conftest.dSYM
62193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62194 conftest$ac_exeext conftest.$ac_ext
62196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
62197 $as_echo "$ac_cv_func_getpgrp" >&6; }
62199 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
62200 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
62201 if test "${ac_cv_func_getpgrp_void+set}" = set; then
62202 $as_echo_n "(cached) " >&6
62204 # Use it with a single arg.
62205 cat >conftest.$ac_ext <<_ACEOF
62208 cat confdefs.h >>conftest.$ac_ext
62209 cat >>conftest.$ac_ext <<_ACEOF
62210 /* end confdefs.h. */
62211 $ac_includes_default
62220 rm -f conftest.$ac_objext
62221 if { (ac_try="$ac_compile"
62222 case "(($ac_try" in
62223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62224 *) ac_try_echo=$ac_try;;
62226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62227 $as_echo "$ac_try_echo") >&5
62228 (eval "$ac_compile") 2>conftest.er1
62230 grep -v '^ *+' conftest.er1 >conftest.err
62232 cat conftest.err >&5
62233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62234 (exit $ac_status); } && {
62235 test -z "$ac_c_werror_flag" ||
62236 test ! -s conftest.err
62237 } && test -s conftest.$ac_objext; then
62238 ac_cv_func_getpgrp_void=no
62240 $as_echo "$as_me: failed program was:" >&5
62241 sed 's/^/| /' conftest.$ac_ext >&5
62243 ac_cv_func_getpgrp_void=yes
62246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62249 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
62250 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
62251 if test $ac_cv_func_getpgrp_void = yes; then
62253 cat >>confdefs.h <<\_ACEOF
62254 #define GETPGRP_VOID 1
62260 ice_have_getsockname=no
62262 for ac_func in getsockname
62264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62265 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62266 $as_echo_n "checking for $ac_func... " >&6; }
62267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62268 $as_echo_n "(cached) " >&6
62270 cat >conftest.$ac_ext <<_ACEOF
62273 cat confdefs.h >>conftest.$ac_ext
62274 cat >>conftest.$ac_ext <<_ACEOF
62275 /* end confdefs.h. */
62276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62278 #define $ac_func innocuous_$ac_func
62280 /* System header to define __stub macros and hopefully few prototypes,
62281 which can conflict with char $ac_func (); below.
62282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62283 <limits.h> exists even on freestanding compilers. */
62286 # include <limits.h>
62288 # include <assert.h>
62293 /* Override any GCC internal prototype to avoid an error.
62294 Use char because int might match the return type of a GCC
62295 builtin and then its argument prototype would still apply. */
62300 /* The GNU C library defines this for functions which it implements
62301 to always fail with ENOSYS. Some functions are actually named
62302 something starting with __ and the normal name is an alias. */
62303 #if defined __stub_$ac_func || defined __stub___$ac_func
62310 return $ac_func ();
62315 rm -f conftest.$ac_objext conftest$ac_exeext
62316 if { (ac_try="$ac_link"
62317 case "(($ac_try" in
62318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62319 *) ac_try_echo=$ac_try;;
62321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62322 $as_echo "$ac_try_echo") >&5
62323 (eval "$ac_link") 2>conftest.er1
62325 grep -v '^ *+' conftest.er1 >conftest.err
62327 cat conftest.err >&5
62328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62329 (exit $ac_status); } && {
62330 test -z "$ac_c_werror_flag" ||
62331 test ! -s conftest.err
62332 } && test -s conftest$ac_exeext && {
62333 test "$cross_compiling" = yes ||
62334 $as_test_x conftest$ac_exeext
62336 eval "$as_ac_var=yes"
62338 $as_echo "$as_me: failed program was:" >&5
62339 sed 's/^/| /' conftest.$ac_ext >&5
62341 eval "$as_ac_var=no"
62344 rm -rf conftest.dSYM
62345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62346 conftest$ac_exeext conftest.$ac_ext
62348 ac_res=`eval 'as_val=${'$as_ac_var'}
62349 $as_echo "$as_val"'`
62350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62351 $as_echo "$ac_res" >&6; }
62352 as_val=`eval 'as_val=${'$as_ac_var'}
62353 $as_echo "$as_val"'`
62354 if test "x$as_val" = x""yes; then
62355 cat >>confdefs.h <<_ACEOF
62356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62358 ice_have_getsockname=yes
62362 if test "${ice_have_getsockname}" = yes; then
62363 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
62364 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
62365 if test "${ice_cv_have_getsockname_decl+set}" = set; then
62366 $as_echo_n "(cached) " >&6
62369 ice_cv_have_getsockname_decl=no
62370 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62371 ice_re_word='(^|[^a-zA-Z0-9_])'
62372 for header in sys/types.h sys/socket.h; do
62373 # Check for ordinary declaration
62374 cat >conftest.$ac_ext <<_ACEOF
62377 cat confdefs.h >>conftest.$ac_ext
62378 cat >>conftest.$ac_ext <<_ACEOF
62379 /* end confdefs.h. */
62383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62384 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
62385 ice_cv_have_getsockname_decl=yes
62389 if test "$ice_cv_have_getsockname_decl" = yes; then
62392 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62393 cat >conftest.$ac_ext <<_ACEOF
62396 cat confdefs.h >>conftest.$ac_ext
62397 cat >>conftest.$ac_ext <<_ACEOF
62398 /* end confdefs.h. */
62402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62403 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62404 ice_cv_have_getsockname_decl=yes
62408 if test "$ice_cv_have_getsockname_decl" = yes; then
62415 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
62416 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
62417 if test "$ice_cv_have_getsockname_decl" = yes; then
62419 cat >>confdefs.h <<_ACEOF
62420 #define HAVE_GETSOCKNAME_DECL 1
62427 ice_have_getsockopt=no
62429 for ac_func in getsockopt
62431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62432 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62433 $as_echo_n "checking for $ac_func... " >&6; }
62434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62435 $as_echo_n "(cached) " >&6
62437 cat >conftest.$ac_ext <<_ACEOF
62440 cat confdefs.h >>conftest.$ac_ext
62441 cat >>conftest.$ac_ext <<_ACEOF
62442 /* end confdefs.h. */
62443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62445 #define $ac_func innocuous_$ac_func
62447 /* System header to define __stub macros and hopefully few prototypes,
62448 which can conflict with char $ac_func (); below.
62449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62450 <limits.h> exists even on freestanding compilers. */
62453 # include <limits.h>
62455 # include <assert.h>
62460 /* Override any GCC internal prototype to avoid an error.
62461 Use char because int might match the return type of a GCC
62462 builtin and then its argument prototype would still apply. */
62467 /* The GNU C library defines this for functions which it implements
62468 to always fail with ENOSYS. Some functions are actually named
62469 something starting with __ and the normal name is an alias. */
62470 #if defined __stub_$ac_func || defined __stub___$ac_func
62477 return $ac_func ();
62482 rm -f conftest.$ac_objext conftest$ac_exeext
62483 if { (ac_try="$ac_link"
62484 case "(($ac_try" in
62485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62486 *) ac_try_echo=$ac_try;;
62488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62489 $as_echo "$ac_try_echo") >&5
62490 (eval "$ac_link") 2>conftest.er1
62492 grep -v '^ *+' conftest.er1 >conftest.err
62494 cat conftest.err >&5
62495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62496 (exit $ac_status); } && {
62497 test -z "$ac_c_werror_flag" ||
62498 test ! -s conftest.err
62499 } && test -s conftest$ac_exeext && {
62500 test "$cross_compiling" = yes ||
62501 $as_test_x conftest$ac_exeext
62503 eval "$as_ac_var=yes"
62505 $as_echo "$as_me: failed program was:" >&5
62506 sed 's/^/| /' conftest.$ac_ext >&5
62508 eval "$as_ac_var=no"
62511 rm -rf conftest.dSYM
62512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62513 conftest$ac_exeext conftest.$ac_ext
62515 ac_res=`eval 'as_val=${'$as_ac_var'}
62516 $as_echo "$as_val"'`
62517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62518 $as_echo "$ac_res" >&6; }
62519 as_val=`eval 'as_val=${'$as_ac_var'}
62520 $as_echo "$as_val"'`
62521 if test "x$as_val" = x""yes; then
62522 cat >>confdefs.h <<_ACEOF
62523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62525 ice_have_getsockopt=yes
62529 if test "${ice_have_getsockopt}" = yes; then
62530 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
62531 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
62532 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
62533 $as_echo_n "(cached) " >&6
62536 ice_cv_have_getsockopt_decl=no
62537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62538 ice_re_word='(^|[^a-zA-Z0-9_])'
62539 for header in sys/types.h sys/socket.h; do
62540 # Check for ordinary declaration
62541 cat >conftest.$ac_ext <<_ACEOF
62544 cat confdefs.h >>conftest.$ac_ext
62545 cat >>conftest.$ac_ext <<_ACEOF
62546 /* end confdefs.h. */
62550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62551 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
62552 ice_cv_have_getsockopt_decl=yes
62556 if test "$ice_cv_have_getsockopt_decl" = yes; then
62559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62560 cat >conftest.$ac_ext <<_ACEOF
62563 cat confdefs.h >>conftest.$ac_ext
62564 cat >>conftest.$ac_ext <<_ACEOF
62565 /* end confdefs.h. */
62569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62570 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62571 ice_cv_have_getsockopt_decl=yes
62575 if test "$ice_cv_have_getsockopt_decl" = yes; then
62582 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
62583 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
62584 if test "$ice_cv_have_getsockopt_decl" = yes; then
62586 cat >>confdefs.h <<_ACEOF
62587 #define HAVE_GETSOCKOPT_DECL 1
62594 ice_have_initgroups=no
62596 for ac_func in initgroups
62598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62600 $as_echo_n "checking for $ac_func... " >&6; }
62601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62602 $as_echo_n "(cached) " >&6
62604 cat >conftest.$ac_ext <<_ACEOF
62607 cat confdefs.h >>conftest.$ac_ext
62608 cat >>conftest.$ac_ext <<_ACEOF
62609 /* end confdefs.h. */
62610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62612 #define $ac_func innocuous_$ac_func
62614 /* System header to define __stub macros and hopefully few prototypes,
62615 which can conflict with char $ac_func (); below.
62616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62617 <limits.h> exists even on freestanding compilers. */
62620 # include <limits.h>
62622 # include <assert.h>
62627 /* Override any GCC internal prototype to avoid an error.
62628 Use char because int might match the return type of a GCC
62629 builtin and then its argument prototype would still apply. */
62634 /* The GNU C library defines this for functions which it implements
62635 to always fail with ENOSYS. Some functions are actually named
62636 something starting with __ and the normal name is an alias. */
62637 #if defined __stub_$ac_func || defined __stub___$ac_func
62644 return $ac_func ();
62649 rm -f conftest.$ac_objext conftest$ac_exeext
62650 if { (ac_try="$ac_link"
62651 case "(($ac_try" in
62652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62653 *) ac_try_echo=$ac_try;;
62655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62656 $as_echo "$ac_try_echo") >&5
62657 (eval "$ac_link") 2>conftest.er1
62659 grep -v '^ *+' conftest.er1 >conftest.err
62661 cat conftest.err >&5
62662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62663 (exit $ac_status); } && {
62664 test -z "$ac_c_werror_flag" ||
62665 test ! -s conftest.err
62666 } && test -s conftest$ac_exeext && {
62667 test "$cross_compiling" = yes ||
62668 $as_test_x conftest$ac_exeext
62670 eval "$as_ac_var=yes"
62672 $as_echo "$as_me: failed program was:" >&5
62673 sed 's/^/| /' conftest.$ac_ext >&5
62675 eval "$as_ac_var=no"
62678 rm -rf conftest.dSYM
62679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62680 conftest$ac_exeext conftest.$ac_ext
62682 ac_res=`eval 'as_val=${'$as_ac_var'}
62683 $as_echo "$as_val"'`
62684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62685 $as_echo "$ac_res" >&6; }
62686 as_val=`eval 'as_val=${'$as_ac_var'}
62687 $as_echo "$as_val"'`
62688 if test "x$as_val" = x""yes; then
62689 cat >>confdefs.h <<_ACEOF
62690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62692 ice_have_initgroups=yes
62696 if test "${ice_have_initgroups}" = yes; then
62697 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
62698 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
62699 if test "${ice_cv_have_initgroups_decl+set}" = set; then
62700 $as_echo_n "(cached) " >&6
62703 ice_cv_have_initgroups_decl=no
62704 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62705 ice_re_word='(^|[^a-zA-Z0-9_])'
62706 for header in grp.h sys/types.h unistd.h libc.h; do
62707 # Check for ordinary declaration
62708 cat >conftest.$ac_ext <<_ACEOF
62711 cat confdefs.h >>conftest.$ac_ext
62712 cat >>conftest.$ac_ext <<_ACEOF
62713 /* end confdefs.h. */
62717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62718 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
62719 ice_cv_have_initgroups_decl=yes
62723 if test "$ice_cv_have_initgroups_decl" = yes; then
62726 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62727 cat >conftest.$ac_ext <<_ACEOF
62730 cat confdefs.h >>conftest.$ac_ext
62731 cat >>conftest.$ac_ext <<_ACEOF
62732 /* end confdefs.h. */
62736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62737 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62738 ice_cv_have_initgroups_decl=yes
62742 if test "$ice_cv_have_initgroups_decl" = yes; then
62749 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
62750 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
62751 if test "$ice_cv_have_initgroups_decl" = yes; then
62753 cat >>confdefs.h <<_ACEOF
62754 #define HAVE_INITGROUPS_DECL 1
62763 for ac_func in ioctl
62765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62767 $as_echo_n "checking for $ac_func... " >&6; }
62768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62769 $as_echo_n "(cached) " >&6
62771 cat >conftest.$ac_ext <<_ACEOF
62774 cat confdefs.h >>conftest.$ac_ext
62775 cat >>conftest.$ac_ext <<_ACEOF
62776 /* end confdefs.h. */
62777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62779 #define $ac_func innocuous_$ac_func
62781 /* System header to define __stub macros and hopefully few prototypes,
62782 which can conflict with char $ac_func (); below.
62783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62784 <limits.h> exists even on freestanding compilers. */
62787 # include <limits.h>
62789 # include <assert.h>
62794 /* Override any GCC internal prototype to avoid an error.
62795 Use char because int might match the return type of a GCC
62796 builtin and then its argument prototype would still apply. */
62801 /* The GNU C library defines this for functions which it implements
62802 to always fail with ENOSYS. Some functions are actually named
62803 something starting with __ and the normal name is an alias. */
62804 #if defined __stub_$ac_func || defined __stub___$ac_func
62811 return $ac_func ();
62816 rm -f conftest.$ac_objext conftest$ac_exeext
62817 if { (ac_try="$ac_link"
62818 case "(($ac_try" in
62819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62820 *) ac_try_echo=$ac_try;;
62822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62823 $as_echo "$ac_try_echo") >&5
62824 (eval "$ac_link") 2>conftest.er1
62826 grep -v '^ *+' conftest.er1 >conftest.err
62828 cat conftest.err >&5
62829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62830 (exit $ac_status); } && {
62831 test -z "$ac_c_werror_flag" ||
62832 test ! -s conftest.err
62833 } && test -s conftest$ac_exeext && {
62834 test "$cross_compiling" = yes ||
62835 $as_test_x conftest$ac_exeext
62837 eval "$as_ac_var=yes"
62839 $as_echo "$as_me: failed program was:" >&5
62840 sed 's/^/| /' conftest.$ac_ext >&5
62842 eval "$as_ac_var=no"
62845 rm -rf conftest.dSYM
62846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62847 conftest$ac_exeext conftest.$ac_ext
62849 ac_res=`eval 'as_val=${'$as_ac_var'}
62850 $as_echo "$as_val"'`
62851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62852 $as_echo "$ac_res" >&6; }
62853 as_val=`eval 'as_val=${'$as_ac_var'}
62854 $as_echo "$as_val"'`
62855 if test "x$as_val" = x""yes; then
62856 cat >>confdefs.h <<_ACEOF
62857 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62863 if test "${ice_have_ioctl}" = yes; then
62864 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
62865 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
62866 if test "${ice_cv_have_ioctl_decl+set}" = set; then
62867 $as_echo_n "(cached) " >&6
62870 ice_cv_have_ioctl_decl=no
62871 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62872 ice_re_word='(^|[^a-zA-Z0-9_])'
62873 for header in sys/ioctl.h unistd.h libc.h; do
62874 # Check for ordinary declaration
62875 cat >conftest.$ac_ext <<_ACEOF
62878 cat confdefs.h >>conftest.$ac_ext
62879 cat >>conftest.$ac_ext <<_ACEOF
62880 /* end confdefs.h. */
62884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62885 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
62886 ice_cv_have_ioctl_decl=yes
62890 if test "$ice_cv_have_ioctl_decl" = yes; then
62893 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62894 cat >conftest.$ac_ext <<_ACEOF
62897 cat confdefs.h >>conftest.$ac_ext
62898 cat >>conftest.$ac_ext <<_ACEOF
62899 /* end confdefs.h. */
62903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62904 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62905 ice_cv_have_ioctl_decl=yes
62909 if test "$ice_cv_have_ioctl_decl" = yes; then
62916 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
62917 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
62918 if test "$ice_cv_have_ioctl_decl" = yes; then
62920 cat >>confdefs.h <<_ACEOF
62921 #define HAVE_IOCTL_DECL 1
62928 ice_have_isnormal=no
62930 for ac_func in isnormal
62932 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62933 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62934 $as_echo_n "checking for $ac_func... " >&6; }
62935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62936 $as_echo_n "(cached) " >&6
62938 cat >conftest.$ac_ext <<_ACEOF
62941 cat confdefs.h >>conftest.$ac_ext
62942 cat >>conftest.$ac_ext <<_ACEOF
62943 /* end confdefs.h. */
62944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62946 #define $ac_func innocuous_$ac_func
62948 /* System header to define __stub macros and hopefully few prototypes,
62949 which can conflict with char $ac_func (); below.
62950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62951 <limits.h> exists even on freestanding compilers. */
62954 # include <limits.h>
62956 # include <assert.h>
62961 /* Override any GCC internal prototype to avoid an error.
62962 Use char because int might match the return type of a GCC
62963 builtin and then its argument prototype would still apply. */
62968 /* The GNU C library defines this for functions which it implements
62969 to always fail with ENOSYS. Some functions are actually named
62970 something starting with __ and the normal name is an alias. */
62971 #if defined __stub_$ac_func || defined __stub___$ac_func
62978 return $ac_func ();
62983 rm -f conftest.$ac_objext conftest$ac_exeext
62984 if { (ac_try="$ac_link"
62985 case "(($ac_try" in
62986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62987 *) ac_try_echo=$ac_try;;
62989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62990 $as_echo "$ac_try_echo") >&5
62991 (eval "$ac_link") 2>conftest.er1
62993 grep -v '^ *+' conftest.er1 >conftest.err
62995 cat conftest.err >&5
62996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62997 (exit $ac_status); } && {
62998 test -z "$ac_c_werror_flag" ||
62999 test ! -s conftest.err
63000 } && test -s conftest$ac_exeext && {
63001 test "$cross_compiling" = yes ||
63002 $as_test_x conftest$ac_exeext
63004 eval "$as_ac_var=yes"
63006 $as_echo "$as_me: failed program was:" >&5
63007 sed 's/^/| /' conftest.$ac_ext >&5
63009 eval "$as_ac_var=no"
63012 rm -rf conftest.dSYM
63013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63014 conftest$ac_exeext conftest.$ac_ext
63016 ac_res=`eval 'as_val=${'$as_ac_var'}
63017 $as_echo "$as_val"'`
63018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63019 $as_echo "$ac_res" >&6; }
63020 as_val=`eval 'as_val=${'$as_ac_var'}
63021 $as_echo "$as_val"'`
63022 if test "x$as_val" = x""yes; then
63023 cat >>confdefs.h <<_ACEOF
63024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63026 ice_have_isnormal=yes
63030 if test "${ice_have_isnormal}" = yes; then
63031 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
63032 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
63033 if test "${ice_cv_have_isnormal_decl+set}" = set; then
63034 $as_echo_n "(cached) " >&6
63037 ice_cv_have_isnormal_decl=no
63038 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63039 ice_re_word='(^|[^a-zA-Z0-9_])'
63040 for header in math.h; do
63041 # Check for ordinary declaration
63042 cat >conftest.$ac_ext <<_ACEOF
63045 cat confdefs.h >>conftest.$ac_ext
63046 cat >>conftest.$ac_ext <<_ACEOF
63047 /* end confdefs.h. */
63051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63052 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
63053 ice_cv_have_isnormal_decl=yes
63057 if test "$ice_cv_have_isnormal_decl" = yes; then
63060 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63061 cat >conftest.$ac_ext <<_ACEOF
63064 cat confdefs.h >>conftest.$ac_ext
63065 cat >>conftest.$ac_ext <<_ACEOF
63066 /* end confdefs.h. */
63070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63071 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63072 ice_cv_have_isnormal_decl=yes
63076 if test "$ice_cv_have_isnormal_decl" = yes; then
63083 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
63084 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
63085 if test "$ice_cv_have_isnormal_decl" = yes; then
63087 cat >>confdefs.h <<_ACEOF
63088 #define HAVE_ISNORMAL_DECL 1
63097 for ac_func in listen
63099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63101 $as_echo_n "checking for $ac_func... " >&6; }
63102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63103 $as_echo_n "(cached) " >&6
63105 cat >conftest.$ac_ext <<_ACEOF
63108 cat confdefs.h >>conftest.$ac_ext
63109 cat >>conftest.$ac_ext <<_ACEOF
63110 /* end confdefs.h. */
63111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63113 #define $ac_func innocuous_$ac_func
63115 /* System header to define __stub macros and hopefully few prototypes,
63116 which can conflict with char $ac_func (); below.
63117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63118 <limits.h> exists even on freestanding compilers. */
63121 # include <limits.h>
63123 # include <assert.h>
63128 /* Override any GCC internal prototype to avoid an error.
63129 Use char because int might match the return type of a GCC
63130 builtin and then its argument prototype would still apply. */
63135 /* The GNU C library defines this for functions which it implements
63136 to always fail with ENOSYS. Some functions are actually named
63137 something starting with __ and the normal name is an alias. */
63138 #if defined __stub_$ac_func || defined __stub___$ac_func
63145 return $ac_func ();
63150 rm -f conftest.$ac_objext conftest$ac_exeext
63151 if { (ac_try="$ac_link"
63152 case "(($ac_try" in
63153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63154 *) ac_try_echo=$ac_try;;
63156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63157 $as_echo "$ac_try_echo") >&5
63158 (eval "$ac_link") 2>conftest.er1
63160 grep -v '^ *+' conftest.er1 >conftest.err
63162 cat conftest.err >&5
63163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63164 (exit $ac_status); } && {
63165 test -z "$ac_c_werror_flag" ||
63166 test ! -s conftest.err
63167 } && test -s conftest$ac_exeext && {
63168 test "$cross_compiling" = yes ||
63169 $as_test_x conftest$ac_exeext
63171 eval "$as_ac_var=yes"
63173 $as_echo "$as_me: failed program was:" >&5
63174 sed 's/^/| /' conftest.$ac_ext >&5
63176 eval "$as_ac_var=no"
63179 rm -rf conftest.dSYM
63180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63181 conftest$ac_exeext conftest.$ac_ext
63183 ac_res=`eval 'as_val=${'$as_ac_var'}
63184 $as_echo "$as_val"'`
63185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63186 $as_echo "$ac_res" >&6; }
63187 as_val=`eval 'as_val=${'$as_ac_var'}
63188 $as_echo "$as_val"'`
63189 if test "x$as_val" = x""yes; then
63190 cat >>confdefs.h <<_ACEOF
63191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63193 ice_have_listen=yes
63197 if test "${ice_have_listen}" = yes; then
63198 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
63199 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
63200 if test "${ice_cv_have_listen_decl+set}" = set; then
63201 $as_echo_n "(cached) " >&6
63204 ice_cv_have_listen_decl=no
63205 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63206 ice_re_word='(^|[^a-zA-Z0-9_])'
63207 for header in sys/types.h sys/socket.h; do
63208 # Check for ordinary declaration
63209 cat >conftest.$ac_ext <<_ACEOF
63212 cat confdefs.h >>conftest.$ac_ext
63213 cat >>conftest.$ac_ext <<_ACEOF
63214 /* end confdefs.h. */
63218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63219 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
63220 ice_cv_have_listen_decl=yes
63224 if test "$ice_cv_have_listen_decl" = yes; then
63227 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63228 cat >conftest.$ac_ext <<_ACEOF
63231 cat confdefs.h >>conftest.$ac_ext
63232 cat >>conftest.$ac_ext <<_ACEOF
63233 /* end confdefs.h. */
63237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63238 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63239 ice_cv_have_listen_decl=yes
63243 if test "$ice_cv_have_listen_decl" = yes; then
63250 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
63251 $as_echo "$ice_cv_have_listen_decl" >&6; }
63252 if test "$ice_cv_have_listen_decl" = yes; then
63254 cat >>confdefs.h <<_ACEOF
63255 #define HAVE_LISTEN_DECL 1
63264 for ac_func in lstat
63266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63267 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63268 $as_echo_n "checking for $ac_func... " >&6; }
63269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63270 $as_echo_n "(cached) " >&6
63272 cat >conftest.$ac_ext <<_ACEOF
63275 cat confdefs.h >>conftest.$ac_ext
63276 cat >>conftest.$ac_ext <<_ACEOF
63277 /* end confdefs.h. */
63278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63280 #define $ac_func innocuous_$ac_func
63282 /* System header to define __stub macros and hopefully few prototypes,
63283 which can conflict with char $ac_func (); below.
63284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63285 <limits.h> exists even on freestanding compilers. */
63288 # include <limits.h>
63290 # include <assert.h>
63295 /* Override any GCC internal prototype to avoid an error.
63296 Use char because int might match the return type of a GCC
63297 builtin and then its argument prototype would still apply. */
63302 /* The GNU C library defines this for functions which it implements
63303 to always fail with ENOSYS. Some functions are actually named
63304 something starting with __ and the normal name is an alias. */
63305 #if defined __stub_$ac_func || defined __stub___$ac_func
63312 return $ac_func ();
63317 rm -f conftest.$ac_objext conftest$ac_exeext
63318 if { (ac_try="$ac_link"
63319 case "(($ac_try" in
63320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63321 *) ac_try_echo=$ac_try;;
63323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63324 $as_echo "$ac_try_echo") >&5
63325 (eval "$ac_link") 2>conftest.er1
63327 grep -v '^ *+' conftest.er1 >conftest.err
63329 cat conftest.err >&5
63330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63331 (exit $ac_status); } && {
63332 test -z "$ac_c_werror_flag" ||
63333 test ! -s conftest.err
63334 } && test -s conftest$ac_exeext && {
63335 test "$cross_compiling" = yes ||
63336 $as_test_x conftest$ac_exeext
63338 eval "$as_ac_var=yes"
63340 $as_echo "$as_me: failed program was:" >&5
63341 sed 's/^/| /' conftest.$ac_ext >&5
63343 eval "$as_ac_var=no"
63346 rm -rf conftest.dSYM
63347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63348 conftest$ac_exeext conftest.$ac_ext
63350 ac_res=`eval 'as_val=${'$as_ac_var'}
63351 $as_echo "$as_val"'`
63352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63353 $as_echo "$ac_res" >&6; }
63354 as_val=`eval 'as_val=${'$as_ac_var'}
63355 $as_echo "$as_val"'`
63356 if test "x$as_val" = x""yes; then
63357 cat >>confdefs.h <<_ACEOF
63358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63364 if test "${ice_have_lstat}" = yes; then
63365 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
63366 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
63367 if test "${ice_cv_have_lstat_decl+set}" = set; then
63368 $as_echo_n "(cached) " >&6
63371 ice_cv_have_lstat_decl=no
63372 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63373 ice_re_word='(^|[^a-zA-Z0-9_])'
63374 for header in sys/types.h sys/stat.h; do
63375 # Check for ordinary declaration
63376 cat >conftest.$ac_ext <<_ACEOF
63379 cat confdefs.h >>conftest.$ac_ext
63380 cat >>conftest.$ac_ext <<_ACEOF
63381 /* end confdefs.h. */
63385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63386 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
63387 ice_cv_have_lstat_decl=yes
63391 if test "$ice_cv_have_lstat_decl" = yes; then
63394 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63395 cat >conftest.$ac_ext <<_ACEOF
63398 cat confdefs.h >>conftest.$ac_ext
63399 cat >>conftest.$ac_ext <<_ACEOF
63400 /* end confdefs.h. */
63404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63405 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63406 ice_cv_have_lstat_decl=yes
63410 if test "$ice_cv_have_lstat_decl" = yes; then
63417 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
63418 $as_echo "$ice_cv_have_lstat_decl" >&6; }
63419 if test "$ice_cv_have_lstat_decl" = yes; then
63421 cat >>confdefs.h <<_ACEOF
63422 #define HAVE_LSTAT_DECL 1
63431 for ac_func in malloc
63433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63434 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63435 $as_echo_n "checking for $ac_func... " >&6; }
63436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63437 $as_echo_n "(cached) " >&6
63439 cat >conftest.$ac_ext <<_ACEOF
63442 cat confdefs.h >>conftest.$ac_ext
63443 cat >>conftest.$ac_ext <<_ACEOF
63444 /* end confdefs.h. */
63445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63447 #define $ac_func innocuous_$ac_func
63449 /* System header to define __stub macros and hopefully few prototypes,
63450 which can conflict with char $ac_func (); below.
63451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63452 <limits.h> exists even on freestanding compilers. */
63455 # include <limits.h>
63457 # include <assert.h>
63462 /* Override any GCC internal prototype to avoid an error.
63463 Use char because int might match the return type of a GCC
63464 builtin and then its argument prototype would still apply. */
63469 /* The GNU C library defines this for functions which it implements
63470 to always fail with ENOSYS. Some functions are actually named
63471 something starting with __ and the normal name is an alias. */
63472 #if defined __stub_$ac_func || defined __stub___$ac_func
63479 return $ac_func ();
63484 rm -f conftest.$ac_objext conftest$ac_exeext
63485 if { (ac_try="$ac_link"
63486 case "(($ac_try" in
63487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63488 *) ac_try_echo=$ac_try;;
63490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63491 $as_echo "$ac_try_echo") >&5
63492 (eval "$ac_link") 2>conftest.er1
63494 grep -v '^ *+' conftest.er1 >conftest.err
63496 cat conftest.err >&5
63497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63498 (exit $ac_status); } && {
63499 test -z "$ac_c_werror_flag" ||
63500 test ! -s conftest.err
63501 } && test -s conftest$ac_exeext && {
63502 test "$cross_compiling" = yes ||
63503 $as_test_x conftest$ac_exeext
63505 eval "$as_ac_var=yes"
63507 $as_echo "$as_me: failed program was:" >&5
63508 sed 's/^/| /' conftest.$ac_ext >&5
63510 eval "$as_ac_var=no"
63513 rm -rf conftest.dSYM
63514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63515 conftest$ac_exeext conftest.$ac_ext
63517 ac_res=`eval 'as_val=${'$as_ac_var'}
63518 $as_echo "$as_val"'`
63519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63520 $as_echo "$ac_res" >&6; }
63521 as_val=`eval 'as_val=${'$as_ac_var'}
63522 $as_echo "$as_val"'`
63523 if test "x$as_val" = x""yes; then
63524 cat >>confdefs.h <<_ACEOF
63525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63527 ice_have_malloc=yes
63531 if test "${ice_have_malloc}" = yes; then
63532 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
63533 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
63534 if test "${ice_cv_have_malloc_decl+set}" = set; then
63535 $as_echo_n "(cached) " >&6
63538 ice_cv_have_malloc_decl=no
63539 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63540 ice_re_word='(^|[^a-zA-Z0-9_])'
63541 for header in stdlib.h; do
63542 # Check for ordinary declaration
63543 cat >conftest.$ac_ext <<_ACEOF
63546 cat confdefs.h >>conftest.$ac_ext
63547 cat >>conftest.$ac_ext <<_ACEOF
63548 /* end confdefs.h. */
63552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63553 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
63554 ice_cv_have_malloc_decl=yes
63558 if test "$ice_cv_have_malloc_decl" = yes; then
63561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63562 cat >conftest.$ac_ext <<_ACEOF
63565 cat confdefs.h >>conftest.$ac_ext
63566 cat >>conftest.$ac_ext <<_ACEOF
63567 /* end confdefs.h. */
63571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63572 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63573 ice_cv_have_malloc_decl=yes
63577 if test "$ice_cv_have_malloc_decl" = yes; then
63584 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
63585 $as_echo "$ice_cv_have_malloc_decl" >&6; }
63586 if test "$ice_cv_have_malloc_decl" = yes; then
63588 cat >>confdefs.h <<_ACEOF
63589 #define HAVE_MALLOC_DECL 1
63596 ice_have_memmove=no
63598 for ac_func in memmove
63600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63601 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63602 $as_echo_n "checking for $ac_func... " >&6; }
63603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63604 $as_echo_n "(cached) " >&6
63606 cat >conftest.$ac_ext <<_ACEOF
63609 cat confdefs.h >>conftest.$ac_ext
63610 cat >>conftest.$ac_ext <<_ACEOF
63611 /* end confdefs.h. */
63612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63614 #define $ac_func innocuous_$ac_func
63616 /* System header to define __stub macros and hopefully few prototypes,
63617 which can conflict with char $ac_func (); below.
63618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63619 <limits.h> exists even on freestanding compilers. */
63622 # include <limits.h>
63624 # include <assert.h>
63629 /* Override any GCC internal prototype to avoid an error.
63630 Use char because int might match the return type of a GCC
63631 builtin and then its argument prototype would still apply. */
63636 /* The GNU C library defines this for functions which it implements
63637 to always fail with ENOSYS. Some functions are actually named
63638 something starting with __ and the normal name is an alias. */
63639 #if defined __stub_$ac_func || defined __stub___$ac_func
63646 return $ac_func ();
63651 rm -f conftest.$ac_objext conftest$ac_exeext
63652 if { (ac_try="$ac_link"
63653 case "(($ac_try" in
63654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63655 *) ac_try_echo=$ac_try;;
63657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63658 $as_echo "$ac_try_echo") >&5
63659 (eval "$ac_link") 2>conftest.er1
63661 grep -v '^ *+' conftest.er1 >conftest.err
63663 cat conftest.err >&5
63664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63665 (exit $ac_status); } && {
63666 test -z "$ac_c_werror_flag" ||
63667 test ! -s conftest.err
63668 } && test -s conftest$ac_exeext && {
63669 test "$cross_compiling" = yes ||
63670 $as_test_x conftest$ac_exeext
63672 eval "$as_ac_var=yes"
63674 $as_echo "$as_me: failed program was:" >&5
63675 sed 's/^/| /' conftest.$ac_ext >&5
63677 eval "$as_ac_var=no"
63680 rm -rf conftest.dSYM
63681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63682 conftest$ac_exeext conftest.$ac_ext
63684 ac_res=`eval 'as_val=${'$as_ac_var'}
63685 $as_echo "$as_val"'`
63686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63687 $as_echo "$ac_res" >&6; }
63688 as_val=`eval 'as_val=${'$as_ac_var'}
63689 $as_echo "$as_val"'`
63690 if test "x$as_val" = x""yes; then
63691 cat >>confdefs.h <<_ACEOF
63692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63694 ice_have_memmove=yes
63698 if test "${ice_have_memmove}" = yes; then
63699 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
63700 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
63701 if test "${ice_cv_have_memmove_decl+set}" = set; then
63702 $as_echo_n "(cached) " >&6
63705 ice_cv_have_memmove_decl=no
63706 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63707 ice_re_word='(^|[^a-zA-Z0-9_])'
63708 for header in string.h strings.h; do
63709 # Check for ordinary declaration
63710 cat >conftest.$ac_ext <<_ACEOF
63713 cat confdefs.h >>conftest.$ac_ext
63714 cat >>conftest.$ac_ext <<_ACEOF
63715 /* end confdefs.h. */
63719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63720 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
63721 ice_cv_have_memmove_decl=yes
63725 if test "$ice_cv_have_memmove_decl" = yes; then
63728 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63729 cat >conftest.$ac_ext <<_ACEOF
63732 cat confdefs.h >>conftest.$ac_ext
63733 cat >>conftest.$ac_ext <<_ACEOF
63734 /* end confdefs.h. */
63738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63739 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63740 ice_cv_have_memmove_decl=yes
63744 if test "$ice_cv_have_memmove_decl" = yes; then
63751 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
63752 $as_echo "$ice_cv_have_memmove_decl" >&6; }
63753 if test "$ice_cv_have_memmove_decl" = yes; then
63755 cat >>confdefs.h <<_ACEOF
63756 #define HAVE_MEMMOVE_DECL 1
63765 for ac_func in memset
63767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63768 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63769 $as_echo_n "checking for $ac_func... " >&6; }
63770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63771 $as_echo_n "(cached) " >&6
63773 cat >conftest.$ac_ext <<_ACEOF
63776 cat confdefs.h >>conftest.$ac_ext
63777 cat >>conftest.$ac_ext <<_ACEOF
63778 /* end confdefs.h. */
63779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63781 #define $ac_func innocuous_$ac_func
63783 /* System header to define __stub macros and hopefully few prototypes,
63784 which can conflict with char $ac_func (); below.
63785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63786 <limits.h> exists even on freestanding compilers. */
63789 # include <limits.h>
63791 # include <assert.h>
63796 /* Override any GCC internal prototype to avoid an error.
63797 Use char because int might match the return type of a GCC
63798 builtin and then its argument prototype would still apply. */
63803 /* The GNU C library defines this for functions which it implements
63804 to always fail with ENOSYS. Some functions are actually named
63805 something starting with __ and the normal name is an alias. */
63806 #if defined __stub_$ac_func || defined __stub___$ac_func
63813 return $ac_func ();
63818 rm -f conftest.$ac_objext conftest$ac_exeext
63819 if { (ac_try="$ac_link"
63820 case "(($ac_try" in
63821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63822 *) ac_try_echo=$ac_try;;
63824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63825 $as_echo "$ac_try_echo") >&5
63826 (eval "$ac_link") 2>conftest.er1
63828 grep -v '^ *+' conftest.er1 >conftest.err
63830 cat conftest.err >&5
63831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63832 (exit $ac_status); } && {
63833 test -z "$ac_c_werror_flag" ||
63834 test ! -s conftest.err
63835 } && test -s conftest$ac_exeext && {
63836 test "$cross_compiling" = yes ||
63837 $as_test_x conftest$ac_exeext
63839 eval "$as_ac_var=yes"
63841 $as_echo "$as_me: failed program was:" >&5
63842 sed 's/^/| /' conftest.$ac_ext >&5
63844 eval "$as_ac_var=no"
63847 rm -rf conftest.dSYM
63848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63849 conftest$ac_exeext conftest.$ac_ext
63851 ac_res=`eval 'as_val=${'$as_ac_var'}
63852 $as_echo "$as_val"'`
63853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63854 $as_echo "$ac_res" >&6; }
63855 as_val=`eval 'as_val=${'$as_ac_var'}
63856 $as_echo "$as_val"'`
63857 if test "x$as_val" = x""yes; then
63858 cat >>confdefs.h <<_ACEOF
63859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63861 ice_have_memset=yes
63865 if test "${ice_have_memset}" = yes; then
63866 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
63867 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
63868 if test "${ice_cv_have_memset_decl+set}" = set; then
63869 $as_echo_n "(cached) " >&6
63872 ice_cv_have_memset_decl=no
63873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63874 ice_re_word='(^|[^a-zA-Z0-9_])'
63875 for header in string.h strings.h; do
63876 # Check for ordinary declaration
63877 cat >conftest.$ac_ext <<_ACEOF
63880 cat confdefs.h >>conftest.$ac_ext
63881 cat >>conftest.$ac_ext <<_ACEOF
63882 /* end confdefs.h. */
63886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63887 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
63888 ice_cv_have_memset_decl=yes
63892 if test "$ice_cv_have_memset_decl" = yes; then
63895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63896 cat >conftest.$ac_ext <<_ACEOF
63899 cat confdefs.h >>conftest.$ac_ext
63900 cat >>conftest.$ac_ext <<_ACEOF
63901 /* end confdefs.h. */
63905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63906 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63907 ice_cv_have_memset_decl=yes
63911 if test "$ice_cv_have_memset_decl" = yes; then
63918 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
63919 $as_echo "$ice_cv_have_memset_decl" >&6; }
63920 if test "$ice_cv_have_memset_decl" = yes; then
63922 cat >>confdefs.h <<_ACEOF
63923 #define HAVE_MEMSET_DECL 1
63930 ice_have_mkstemp=no
63932 for ac_func in mkstemp
63934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63935 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63936 $as_echo_n "checking for $ac_func... " >&6; }
63937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63938 $as_echo_n "(cached) " >&6
63940 cat >conftest.$ac_ext <<_ACEOF
63943 cat confdefs.h >>conftest.$ac_ext
63944 cat >>conftest.$ac_ext <<_ACEOF
63945 /* end confdefs.h. */
63946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63948 #define $ac_func innocuous_$ac_func
63950 /* System header to define __stub macros and hopefully few prototypes,
63951 which can conflict with char $ac_func (); below.
63952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63953 <limits.h> exists even on freestanding compilers. */
63956 # include <limits.h>
63958 # include <assert.h>
63963 /* Override any GCC internal prototype to avoid an error.
63964 Use char because int might match the return type of a GCC
63965 builtin and then its argument prototype would still apply. */
63970 /* The GNU C library defines this for functions which it implements
63971 to always fail with ENOSYS. Some functions are actually named
63972 something starting with __ and the normal name is an alias. */
63973 #if defined __stub_$ac_func || defined __stub___$ac_func
63980 return $ac_func ();
63985 rm -f conftest.$ac_objext conftest$ac_exeext
63986 if { (ac_try="$ac_link"
63987 case "(($ac_try" in
63988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63989 *) ac_try_echo=$ac_try;;
63991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63992 $as_echo "$ac_try_echo") >&5
63993 (eval "$ac_link") 2>conftest.er1
63995 grep -v '^ *+' conftest.er1 >conftest.err
63997 cat conftest.err >&5
63998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63999 (exit $ac_status); } && {
64000 test -z "$ac_c_werror_flag" ||
64001 test ! -s conftest.err
64002 } && test -s conftest$ac_exeext && {
64003 test "$cross_compiling" = yes ||
64004 $as_test_x conftest$ac_exeext
64006 eval "$as_ac_var=yes"
64008 $as_echo "$as_me: failed program was:" >&5
64009 sed 's/^/| /' conftest.$ac_ext >&5
64011 eval "$as_ac_var=no"
64014 rm -rf conftest.dSYM
64015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64016 conftest$ac_exeext conftest.$ac_ext
64018 ac_res=`eval 'as_val=${'$as_ac_var'}
64019 $as_echo "$as_val"'`
64020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64021 $as_echo "$ac_res" >&6; }
64022 as_val=`eval 'as_val=${'$as_ac_var'}
64023 $as_echo "$as_val"'`
64024 if test "x$as_val" = x""yes; then
64025 cat >>confdefs.h <<_ACEOF
64026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64028 ice_have_mkstemp=yes
64032 if test "${ice_have_mkstemp}" = yes; then
64033 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
64034 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
64035 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
64036 $as_echo_n "(cached) " >&6
64039 ice_cv_have_mkstemp_decl=no
64040 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64041 ice_re_word='(^|[^a-zA-Z0-9_])'
64042 for header in stdlib.h; do
64043 # Check for ordinary declaration
64044 cat >conftest.$ac_ext <<_ACEOF
64047 cat confdefs.h >>conftest.$ac_ext
64048 cat >>conftest.$ac_ext <<_ACEOF
64049 /* end confdefs.h. */
64053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64054 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
64055 ice_cv_have_mkstemp_decl=yes
64059 if test "$ice_cv_have_mkstemp_decl" = yes; then
64062 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64063 cat >conftest.$ac_ext <<_ACEOF
64066 cat confdefs.h >>conftest.$ac_ext
64067 cat >>conftest.$ac_ext <<_ACEOF
64068 /* end confdefs.h. */
64072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64073 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64074 ice_cv_have_mkstemp_decl=yes
64078 if test "$ice_cv_have_mkstemp_decl" = yes; then
64085 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
64086 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
64087 if test "$ice_cv_have_mkstemp_decl" = yes; then
64089 cat >>confdefs.h <<_ACEOF
64090 #define HAVE_MKSTEMP_DECL 1
64099 for ac_func in mktemp
64101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64103 $as_echo_n "checking for $ac_func... " >&6; }
64104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64105 $as_echo_n "(cached) " >&6
64107 cat >conftest.$ac_ext <<_ACEOF
64110 cat confdefs.h >>conftest.$ac_ext
64111 cat >>conftest.$ac_ext <<_ACEOF
64112 /* end confdefs.h. */
64113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64115 #define $ac_func innocuous_$ac_func
64117 /* System header to define __stub macros and hopefully few prototypes,
64118 which can conflict with char $ac_func (); below.
64119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64120 <limits.h> exists even on freestanding compilers. */
64123 # include <limits.h>
64125 # include <assert.h>
64130 /* Override any GCC internal prototype to avoid an error.
64131 Use char because int might match the return type of a GCC
64132 builtin and then its argument prototype would still apply. */
64137 /* The GNU C library defines this for functions which it implements
64138 to always fail with ENOSYS. Some functions are actually named
64139 something starting with __ and the normal name is an alias. */
64140 #if defined __stub_$ac_func || defined __stub___$ac_func
64147 return $ac_func ();
64152 rm -f conftest.$ac_objext conftest$ac_exeext
64153 if { (ac_try="$ac_link"
64154 case "(($ac_try" in
64155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64156 *) ac_try_echo=$ac_try;;
64158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64159 $as_echo "$ac_try_echo") >&5
64160 (eval "$ac_link") 2>conftest.er1
64162 grep -v '^ *+' conftest.er1 >conftest.err
64164 cat conftest.err >&5
64165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64166 (exit $ac_status); } && {
64167 test -z "$ac_c_werror_flag" ||
64168 test ! -s conftest.err
64169 } && test -s conftest$ac_exeext && {
64170 test "$cross_compiling" = yes ||
64171 $as_test_x conftest$ac_exeext
64173 eval "$as_ac_var=yes"
64175 $as_echo "$as_me: failed program was:" >&5
64176 sed 's/^/| /' conftest.$ac_ext >&5
64178 eval "$as_ac_var=no"
64181 rm -rf conftest.dSYM
64182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64183 conftest$ac_exeext conftest.$ac_ext
64185 ac_res=`eval 'as_val=${'$as_ac_var'}
64186 $as_echo "$as_val"'`
64187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64188 $as_echo "$ac_res" >&6; }
64189 as_val=`eval 'as_val=${'$as_ac_var'}
64190 $as_echo "$as_val"'`
64191 if test "x$as_val" = x""yes; then
64192 cat >>confdefs.h <<_ACEOF
64193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64195 ice_have_mktemp=yes
64199 if test "${ice_have_mktemp}" = yes; then
64200 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
64201 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
64202 if test "${ice_cv_have_mktemp_decl+set}" = set; then
64203 $as_echo_n "(cached) " >&6
64206 ice_cv_have_mktemp_decl=no
64207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64208 ice_re_word='(^|[^a-zA-Z0-9_])'
64209 for header in stdlib.h; do
64210 # Check for ordinary declaration
64211 cat >conftest.$ac_ext <<_ACEOF
64214 cat confdefs.h >>conftest.$ac_ext
64215 cat >>conftest.$ac_ext <<_ACEOF
64216 /* end confdefs.h. */
64220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64221 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
64222 ice_cv_have_mktemp_decl=yes
64226 if test "$ice_cv_have_mktemp_decl" = yes; then
64229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64230 cat >conftest.$ac_ext <<_ACEOF
64233 cat confdefs.h >>conftest.$ac_ext
64234 cat >>conftest.$ac_ext <<_ACEOF
64235 /* end confdefs.h. */
64239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64240 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64241 ice_cv_have_mktemp_decl=yes
64245 if test "$ice_cv_have_mktemp_decl" = yes; then
64252 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
64253 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
64254 if test "$ice_cv_have_mktemp_decl" = yes; then
64256 cat >>confdefs.h <<_ACEOF
64257 #define HAVE_MKTEMP_DECL 1
64266 for ac_func in mktime
64268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64270 $as_echo_n "checking for $ac_func... " >&6; }
64271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64272 $as_echo_n "(cached) " >&6
64274 cat >conftest.$ac_ext <<_ACEOF
64277 cat confdefs.h >>conftest.$ac_ext
64278 cat >>conftest.$ac_ext <<_ACEOF
64279 /* end confdefs.h. */
64280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64282 #define $ac_func innocuous_$ac_func
64284 /* System header to define __stub macros and hopefully few prototypes,
64285 which can conflict with char $ac_func (); below.
64286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64287 <limits.h> exists even on freestanding compilers. */
64290 # include <limits.h>
64292 # include <assert.h>
64297 /* Override any GCC internal prototype to avoid an error.
64298 Use char because int might match the return type of a GCC
64299 builtin and then its argument prototype would still apply. */
64304 /* The GNU C library defines this for functions which it implements
64305 to always fail with ENOSYS. Some functions are actually named
64306 something starting with __ and the normal name is an alias. */
64307 #if defined __stub_$ac_func || defined __stub___$ac_func
64314 return $ac_func ();
64319 rm -f conftest.$ac_objext conftest$ac_exeext
64320 if { (ac_try="$ac_link"
64321 case "(($ac_try" in
64322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64323 *) ac_try_echo=$ac_try;;
64325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64326 $as_echo "$ac_try_echo") >&5
64327 (eval "$ac_link") 2>conftest.er1
64329 grep -v '^ *+' conftest.er1 >conftest.err
64331 cat conftest.err >&5
64332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64333 (exit $ac_status); } && {
64334 test -z "$ac_c_werror_flag" ||
64335 test ! -s conftest.err
64336 } && test -s conftest$ac_exeext && {
64337 test "$cross_compiling" = yes ||
64338 $as_test_x conftest$ac_exeext
64340 eval "$as_ac_var=yes"
64342 $as_echo "$as_me: failed program was:" >&5
64343 sed 's/^/| /' conftest.$ac_ext >&5
64345 eval "$as_ac_var=no"
64348 rm -rf conftest.dSYM
64349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64350 conftest$ac_exeext conftest.$ac_ext
64352 ac_res=`eval 'as_val=${'$as_ac_var'}
64353 $as_echo "$as_val"'`
64354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64355 $as_echo "$ac_res" >&6; }
64356 as_val=`eval 'as_val=${'$as_ac_var'}
64357 $as_echo "$as_val"'`
64358 if test "x$as_val" = x""yes; then
64359 cat >>confdefs.h <<_ACEOF
64360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64362 ice_have_mktime=yes
64366 if test "${ice_have_mktime}" = yes; then
64367 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
64368 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
64369 if test "${ice_cv_have_mktime_decl+set}" = set; then
64370 $as_echo_n "(cached) " >&6
64373 ice_cv_have_mktime_decl=no
64374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64375 ice_re_word='(^|[^a-zA-Z0-9_])'
64376 for header in time.h sys/time.h; do
64377 # Check for ordinary declaration
64378 cat >conftest.$ac_ext <<_ACEOF
64381 cat confdefs.h >>conftest.$ac_ext
64382 cat >>conftest.$ac_ext <<_ACEOF
64383 /* end confdefs.h. */
64387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64388 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
64389 ice_cv_have_mktime_decl=yes
64393 if test "$ice_cv_have_mktime_decl" = yes; then
64396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64397 cat >conftest.$ac_ext <<_ACEOF
64400 cat confdefs.h >>conftest.$ac_ext
64401 cat >>conftest.$ac_ext <<_ACEOF
64402 /* end confdefs.h. */
64406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64407 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64408 ice_cv_have_mktime_decl=yes
64412 if test "$ice_cv_have_mktime_decl" = yes; then
64419 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
64420 $as_echo "$ice_cv_have_mktime_decl" >&6; }
64421 if test "$ice_cv_have_mktime_decl" = yes; then
64423 cat >>confdefs.h <<_ACEOF
64424 #define HAVE_MKTIME_DECL 1
64431 for ac_func in on_exit
64433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64434 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64435 $as_echo_n "checking for $ac_func... " >&6; }
64436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64437 $as_echo_n "(cached) " >&6
64439 cat >conftest.$ac_ext <<_ACEOF
64442 cat confdefs.h >>conftest.$ac_ext
64443 cat >>conftest.$ac_ext <<_ACEOF
64444 /* end confdefs.h. */
64445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64447 #define $ac_func innocuous_$ac_func
64449 /* System header to define __stub macros and hopefully few prototypes,
64450 which can conflict with char $ac_func (); below.
64451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64452 <limits.h> exists even on freestanding compilers. */
64455 # include <limits.h>
64457 # include <assert.h>
64462 /* Override any GCC internal prototype to avoid an error.
64463 Use char because int might match the return type of a GCC
64464 builtin and then its argument prototype would still apply. */
64469 /* The GNU C library defines this for functions which it implements
64470 to always fail with ENOSYS. Some functions are actually named
64471 something starting with __ and the normal name is an alias. */
64472 #if defined __stub_$ac_func || defined __stub___$ac_func
64479 return $ac_func ();
64484 rm -f conftest.$ac_objext conftest$ac_exeext
64485 if { (ac_try="$ac_link"
64486 case "(($ac_try" in
64487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64488 *) ac_try_echo=$ac_try;;
64490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64491 $as_echo "$ac_try_echo") >&5
64492 (eval "$ac_link") 2>conftest.er1
64494 grep -v '^ *+' conftest.er1 >conftest.err
64496 cat conftest.err >&5
64497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64498 (exit $ac_status); } && {
64499 test -z "$ac_c_werror_flag" ||
64500 test ! -s conftest.err
64501 } && test -s conftest$ac_exeext && {
64502 test "$cross_compiling" = yes ||
64503 $as_test_x conftest$ac_exeext
64505 eval "$as_ac_var=yes"
64507 $as_echo "$as_me: failed program was:" >&5
64508 sed 's/^/| /' conftest.$ac_ext >&5
64510 eval "$as_ac_var=no"
64513 rm -rf conftest.dSYM
64514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64515 conftest$ac_exeext conftest.$ac_ext
64517 ac_res=`eval 'as_val=${'$as_ac_var'}
64518 $as_echo "$as_val"'`
64519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64520 $as_echo "$ac_res" >&6; }
64521 as_val=`eval 'as_val=${'$as_ac_var'}
64522 $as_echo "$as_val"'`
64523 if test "x$as_val" = x""yes; then
64524 cat >>confdefs.h <<_ACEOF
64525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64532 ice_have_openlog=no
64534 for ac_func in openlog
64536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64537 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64538 $as_echo_n "checking for $ac_func... " >&6; }
64539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64540 $as_echo_n "(cached) " >&6
64542 cat >conftest.$ac_ext <<_ACEOF
64545 cat confdefs.h >>conftest.$ac_ext
64546 cat >>conftest.$ac_ext <<_ACEOF
64547 /* end confdefs.h. */
64548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64550 #define $ac_func innocuous_$ac_func
64552 /* System header to define __stub macros and hopefully few prototypes,
64553 which can conflict with char $ac_func (); below.
64554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64555 <limits.h> exists even on freestanding compilers. */
64558 # include <limits.h>
64560 # include <assert.h>
64565 /* Override any GCC internal prototype to avoid an error.
64566 Use char because int might match the return type of a GCC
64567 builtin and then its argument prototype would still apply. */
64572 /* The GNU C library defines this for functions which it implements
64573 to always fail with ENOSYS. Some functions are actually named
64574 something starting with __ and the normal name is an alias. */
64575 #if defined __stub_$ac_func || defined __stub___$ac_func
64582 return $ac_func ();
64587 rm -f conftest.$ac_objext conftest$ac_exeext
64588 if { (ac_try="$ac_link"
64589 case "(($ac_try" in
64590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64591 *) ac_try_echo=$ac_try;;
64593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64594 $as_echo "$ac_try_echo") >&5
64595 (eval "$ac_link") 2>conftest.er1
64597 grep -v '^ *+' conftest.er1 >conftest.err
64599 cat conftest.err >&5
64600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64601 (exit $ac_status); } && {
64602 test -z "$ac_c_werror_flag" ||
64603 test ! -s conftest.err
64604 } && test -s conftest$ac_exeext && {
64605 test "$cross_compiling" = yes ||
64606 $as_test_x conftest$ac_exeext
64608 eval "$as_ac_var=yes"
64610 $as_echo "$as_me: failed program was:" >&5
64611 sed 's/^/| /' conftest.$ac_ext >&5
64613 eval "$as_ac_var=no"
64616 rm -rf conftest.dSYM
64617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64618 conftest$ac_exeext conftest.$ac_ext
64620 ac_res=`eval 'as_val=${'$as_ac_var'}
64621 $as_echo "$as_val"'`
64622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64623 $as_echo "$ac_res" >&6; }
64624 as_val=`eval 'as_val=${'$as_ac_var'}
64625 $as_echo "$as_val"'`
64626 if test "x$as_val" = x""yes; then
64627 cat >>confdefs.h <<_ACEOF
64628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64630 ice_have_openlog=yes
64634 if test "${ice_have_openlog}" = yes; then
64635 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
64636 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
64637 if test "${ice_cv_have_openlog_decl+set}" = set; then
64638 $as_echo_n "(cached) " >&6
64641 ice_cv_have_openlog_decl=no
64642 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64643 ice_re_word='(^|[^a-zA-Z0-9_])'
64644 for header in syslog.h; do
64645 # Check for ordinary declaration
64646 cat >conftest.$ac_ext <<_ACEOF
64649 cat confdefs.h >>conftest.$ac_ext
64650 cat >>conftest.$ac_ext <<_ACEOF
64651 /* end confdefs.h. */
64655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64656 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
64657 ice_cv_have_openlog_decl=yes
64661 if test "$ice_cv_have_openlog_decl" = yes; then
64664 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64665 cat >conftest.$ac_ext <<_ACEOF
64668 cat confdefs.h >>conftest.$ac_ext
64669 cat >>conftest.$ac_ext <<_ACEOF
64670 /* end confdefs.h. */
64674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64675 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64676 ice_cv_have_openlog_decl=yes
64680 if test "$ice_cv_have_openlog_decl" = yes; then
64687 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
64688 $as_echo "$ice_cv_have_openlog_decl" >&6; }
64689 if test "$ice_cv_have_openlog_decl" = yes; then
64691 cat >>confdefs.h <<_ACEOF
64692 #define HAVE_OPENLOG_DECL 1
64701 for ac_func in pclose
64703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64704 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64705 $as_echo_n "checking for $ac_func... " >&6; }
64706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64707 $as_echo_n "(cached) " >&6
64709 cat >conftest.$ac_ext <<_ACEOF
64712 cat confdefs.h >>conftest.$ac_ext
64713 cat >>conftest.$ac_ext <<_ACEOF
64714 /* end confdefs.h. */
64715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64717 #define $ac_func innocuous_$ac_func
64719 /* System header to define __stub macros and hopefully few prototypes,
64720 which can conflict with char $ac_func (); below.
64721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64722 <limits.h> exists even on freestanding compilers. */
64725 # include <limits.h>
64727 # include <assert.h>
64732 /* Override any GCC internal prototype to avoid an error.
64733 Use char because int might match the return type of a GCC
64734 builtin and then its argument prototype would still apply. */
64739 /* The GNU C library defines this for functions which it implements
64740 to always fail with ENOSYS. Some functions are actually named
64741 something starting with __ and the normal name is an alias. */
64742 #if defined __stub_$ac_func || defined __stub___$ac_func
64749 return $ac_func ();
64754 rm -f conftest.$ac_objext conftest$ac_exeext
64755 if { (ac_try="$ac_link"
64756 case "(($ac_try" in
64757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64758 *) ac_try_echo=$ac_try;;
64760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64761 $as_echo "$ac_try_echo") >&5
64762 (eval "$ac_link") 2>conftest.er1
64764 grep -v '^ *+' conftest.er1 >conftest.err
64766 cat conftest.err >&5
64767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64768 (exit $ac_status); } && {
64769 test -z "$ac_c_werror_flag" ||
64770 test ! -s conftest.err
64771 } && test -s conftest$ac_exeext && {
64772 test "$cross_compiling" = yes ||
64773 $as_test_x conftest$ac_exeext
64775 eval "$as_ac_var=yes"
64777 $as_echo "$as_me: failed program was:" >&5
64778 sed 's/^/| /' conftest.$ac_ext >&5
64780 eval "$as_ac_var=no"
64783 rm -rf conftest.dSYM
64784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64785 conftest$ac_exeext conftest.$ac_ext
64787 ac_res=`eval 'as_val=${'$as_ac_var'}
64788 $as_echo "$as_val"'`
64789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64790 $as_echo "$ac_res" >&6; }
64791 as_val=`eval 'as_val=${'$as_ac_var'}
64792 $as_echo "$as_val"'`
64793 if test "x$as_val" = x""yes; then
64794 cat >>confdefs.h <<_ACEOF
64795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64797 ice_have_pclose=yes
64801 if test "${ice_have_pclose}" = yes; then
64802 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
64803 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
64804 if test "${ice_cv_have_pclose_decl+set}" = set; then
64805 $as_echo_n "(cached) " >&6
64808 ice_cv_have_pclose_decl=no
64809 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64810 ice_re_word='(^|[^a-zA-Z0-9_])'
64811 for header in stdio.h; do
64812 # Check for ordinary declaration
64813 cat >conftest.$ac_ext <<_ACEOF
64816 cat confdefs.h >>conftest.$ac_ext
64817 cat >>conftest.$ac_ext <<_ACEOF
64818 /* end confdefs.h. */
64822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64823 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
64824 ice_cv_have_pclose_decl=yes
64828 if test "$ice_cv_have_pclose_decl" = yes; then
64831 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64832 cat >conftest.$ac_ext <<_ACEOF
64835 cat confdefs.h >>conftest.$ac_ext
64836 cat >>conftest.$ac_ext <<_ACEOF
64837 /* end confdefs.h. */
64841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64842 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64843 ice_cv_have_pclose_decl=yes
64847 if test "$ice_cv_have_pclose_decl" = yes; then
64854 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
64855 $as_echo "$ice_cv_have_pclose_decl" >&6; }
64856 if test "$ice_cv_have_pclose_decl" = yes; then
64858 cat >>confdefs.h <<_ACEOF
64859 #define HAVE_PCLOSE_DECL 1
64868 for ac_func in perror
64870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64871 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64872 $as_echo_n "checking for $ac_func... " >&6; }
64873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64874 $as_echo_n "(cached) " >&6
64876 cat >conftest.$ac_ext <<_ACEOF
64879 cat confdefs.h >>conftest.$ac_ext
64880 cat >>conftest.$ac_ext <<_ACEOF
64881 /* end confdefs.h. */
64882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64884 #define $ac_func innocuous_$ac_func
64886 /* System header to define __stub macros and hopefully few prototypes,
64887 which can conflict with char $ac_func (); below.
64888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64889 <limits.h> exists even on freestanding compilers. */
64892 # include <limits.h>
64894 # include <assert.h>
64899 /* Override any GCC internal prototype to avoid an error.
64900 Use char because int might match the return type of a GCC
64901 builtin and then its argument prototype would still apply. */
64906 /* The GNU C library defines this for functions which it implements
64907 to always fail with ENOSYS. Some functions are actually named
64908 something starting with __ and the normal name is an alias. */
64909 #if defined __stub_$ac_func || defined __stub___$ac_func
64916 return $ac_func ();
64921 rm -f conftest.$ac_objext conftest$ac_exeext
64922 if { (ac_try="$ac_link"
64923 case "(($ac_try" in
64924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64925 *) ac_try_echo=$ac_try;;
64927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64928 $as_echo "$ac_try_echo") >&5
64929 (eval "$ac_link") 2>conftest.er1
64931 grep -v '^ *+' conftest.er1 >conftest.err
64933 cat conftest.err >&5
64934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64935 (exit $ac_status); } && {
64936 test -z "$ac_c_werror_flag" ||
64937 test ! -s conftest.err
64938 } && test -s conftest$ac_exeext && {
64939 test "$cross_compiling" = yes ||
64940 $as_test_x conftest$ac_exeext
64942 eval "$as_ac_var=yes"
64944 $as_echo "$as_me: failed program was:" >&5
64945 sed 's/^/| /' conftest.$ac_ext >&5
64947 eval "$as_ac_var=no"
64950 rm -rf conftest.dSYM
64951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64952 conftest$ac_exeext conftest.$ac_ext
64954 ac_res=`eval 'as_val=${'$as_ac_var'}
64955 $as_echo "$as_val"'`
64956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64957 $as_echo "$ac_res" >&6; }
64958 as_val=`eval 'as_val=${'$as_ac_var'}
64959 $as_echo "$as_val"'`
64960 if test "x$as_val" = x""yes; then
64961 cat >>confdefs.h <<_ACEOF
64962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64964 ice_have_perror=yes
64968 if test "${ice_have_perror}" = yes; then
64969 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
64970 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
64971 if test "${ice_cv_have_perror_decl+set}" = set; then
64972 $as_echo_n "(cached) " >&6
64975 ice_cv_have_perror_decl=no
64976 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64977 ice_re_word='(^|[^a-zA-Z0-9_])'
64978 for header in stdio.h; do
64979 # Check for ordinary declaration
64980 cat >conftest.$ac_ext <<_ACEOF
64983 cat confdefs.h >>conftest.$ac_ext
64984 cat >>conftest.$ac_ext <<_ACEOF
64985 /* end confdefs.h. */
64989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64990 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
64991 ice_cv_have_perror_decl=yes
64995 if test "$ice_cv_have_perror_decl" = yes; then
64998 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64999 cat >conftest.$ac_ext <<_ACEOF
65002 cat confdefs.h >>conftest.$ac_ext
65003 cat >>conftest.$ac_ext <<_ACEOF
65004 /* end confdefs.h. */
65008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65009 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65010 ice_cv_have_perror_decl=yes
65014 if test "$ice_cv_have_perror_decl" = yes; then
65021 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
65022 $as_echo "$ice_cv_have_perror_decl" >&6; }
65023 if test "$ice_cv_have_perror_decl" = yes; then
65025 cat >>confdefs.h <<_ACEOF
65026 #define HAVE_PERROR_DECL 1
65035 for ac_func in printf
65037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65039 $as_echo_n "checking for $ac_func... " >&6; }
65040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65041 $as_echo_n "(cached) " >&6
65043 cat >conftest.$ac_ext <<_ACEOF
65046 cat confdefs.h >>conftest.$ac_ext
65047 cat >>conftest.$ac_ext <<_ACEOF
65048 /* end confdefs.h. */
65049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65051 #define $ac_func innocuous_$ac_func
65053 /* System header to define __stub macros and hopefully few prototypes,
65054 which can conflict with char $ac_func (); below.
65055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65056 <limits.h> exists even on freestanding compilers. */
65059 # include <limits.h>
65061 # include <assert.h>
65066 /* Override any GCC internal prototype to avoid an error.
65067 Use char because int might match the return type of a GCC
65068 builtin and then its argument prototype would still apply. */
65073 /* The GNU C library defines this for functions which it implements
65074 to always fail with ENOSYS. Some functions are actually named
65075 something starting with __ and the normal name is an alias. */
65076 #if defined __stub_$ac_func || defined __stub___$ac_func
65083 return $ac_func ();
65088 rm -f conftest.$ac_objext conftest$ac_exeext
65089 if { (ac_try="$ac_link"
65090 case "(($ac_try" in
65091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65092 *) ac_try_echo=$ac_try;;
65094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65095 $as_echo "$ac_try_echo") >&5
65096 (eval "$ac_link") 2>conftest.er1
65098 grep -v '^ *+' conftest.er1 >conftest.err
65100 cat conftest.err >&5
65101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65102 (exit $ac_status); } && {
65103 test -z "$ac_c_werror_flag" ||
65104 test ! -s conftest.err
65105 } && test -s conftest$ac_exeext && {
65106 test "$cross_compiling" = yes ||
65107 $as_test_x conftest$ac_exeext
65109 eval "$as_ac_var=yes"
65111 $as_echo "$as_me: failed program was:" >&5
65112 sed 's/^/| /' conftest.$ac_ext >&5
65114 eval "$as_ac_var=no"
65117 rm -rf conftest.dSYM
65118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65119 conftest$ac_exeext conftest.$ac_ext
65121 ac_res=`eval 'as_val=${'$as_ac_var'}
65122 $as_echo "$as_val"'`
65123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65124 $as_echo "$ac_res" >&6; }
65125 as_val=`eval 'as_val=${'$as_ac_var'}
65126 $as_echo "$as_val"'`
65127 if test "x$as_val" = x""yes; then
65128 cat >>confdefs.h <<_ACEOF
65129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65131 ice_have_printf=yes
65135 if test "${ice_have_printf}" = yes; then
65136 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
65137 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
65138 if test "${ice_cv_have_printf_decl+set}" = set; then
65139 $as_echo_n "(cached) " >&6
65142 ice_cv_have_printf_decl=no
65143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65144 ice_re_word='(^|[^a-zA-Z0-9_])'
65145 for header in stdio.h; do
65146 # Check for ordinary declaration
65147 cat >conftest.$ac_ext <<_ACEOF
65150 cat confdefs.h >>conftest.$ac_ext
65151 cat >>conftest.$ac_ext <<_ACEOF
65152 /* end confdefs.h. */
65156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65157 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
65158 ice_cv_have_printf_decl=yes
65162 if test "$ice_cv_have_printf_decl" = yes; then
65165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65166 cat >conftest.$ac_ext <<_ACEOF
65169 cat confdefs.h >>conftest.$ac_ext
65170 cat >>conftest.$ac_ext <<_ACEOF
65171 /* end confdefs.h. */
65175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65176 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65177 ice_cv_have_printf_decl=yes
65181 if test "$ice_cv_have_printf_decl" = yes; then
65188 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
65189 $as_echo "$ice_cv_have_printf_decl" >&6; }
65190 if test "$ice_cv_have_printf_decl" = yes; then
65192 cat >>confdefs.h <<_ACEOF
65193 #define HAVE_PRINTF_DECL 1
65200 for ac_func in putenv
65202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65203 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65204 $as_echo_n "checking for $ac_func... " >&6; }
65205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65206 $as_echo_n "(cached) " >&6
65208 cat >conftest.$ac_ext <<_ACEOF
65211 cat confdefs.h >>conftest.$ac_ext
65212 cat >>conftest.$ac_ext <<_ACEOF
65213 /* end confdefs.h. */
65214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65216 #define $ac_func innocuous_$ac_func
65218 /* System header to define __stub macros and hopefully few prototypes,
65219 which can conflict with char $ac_func (); below.
65220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65221 <limits.h> exists even on freestanding compilers. */
65224 # include <limits.h>
65226 # include <assert.h>
65231 /* Override any GCC internal prototype to avoid an error.
65232 Use char because int might match the return type of a GCC
65233 builtin and then its argument prototype would still apply. */
65238 /* The GNU C library defines this for functions which it implements
65239 to always fail with ENOSYS. Some functions are actually named
65240 something starting with __ and the normal name is an alias. */
65241 #if defined __stub_$ac_func || defined __stub___$ac_func
65248 return $ac_func ();
65253 rm -f conftest.$ac_objext conftest$ac_exeext
65254 if { (ac_try="$ac_link"
65255 case "(($ac_try" in
65256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65257 *) ac_try_echo=$ac_try;;
65259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65260 $as_echo "$ac_try_echo") >&5
65261 (eval "$ac_link") 2>conftest.er1
65263 grep -v '^ *+' conftest.er1 >conftest.err
65265 cat conftest.err >&5
65266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65267 (exit $ac_status); } && {
65268 test -z "$ac_c_werror_flag" ||
65269 test ! -s conftest.err
65270 } && test -s conftest$ac_exeext && {
65271 test "$cross_compiling" = yes ||
65272 $as_test_x conftest$ac_exeext
65274 eval "$as_ac_var=yes"
65276 $as_echo "$as_me: failed program was:" >&5
65277 sed 's/^/| /' conftest.$ac_ext >&5
65279 eval "$as_ac_var=no"
65282 rm -rf conftest.dSYM
65283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65284 conftest$ac_exeext conftest.$ac_ext
65286 ac_res=`eval 'as_val=${'$as_ac_var'}
65287 $as_echo "$as_val"'`
65288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65289 $as_echo "$ac_res" >&6; }
65290 as_val=`eval 'as_val=${'$as_ac_var'}
65291 $as_echo "$as_val"'`
65292 if test "x$as_val" = x""yes; then
65293 cat >>confdefs.h <<_ACEOF
65294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65303 for ac_func in puts
65305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65306 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65307 $as_echo_n "checking for $ac_func... " >&6; }
65308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65309 $as_echo_n "(cached) " >&6
65311 cat >conftest.$ac_ext <<_ACEOF
65314 cat confdefs.h >>conftest.$ac_ext
65315 cat >>conftest.$ac_ext <<_ACEOF
65316 /* end confdefs.h. */
65317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65319 #define $ac_func innocuous_$ac_func
65321 /* System header to define __stub macros and hopefully few prototypes,
65322 which can conflict with char $ac_func (); below.
65323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65324 <limits.h> exists even on freestanding compilers. */
65327 # include <limits.h>
65329 # include <assert.h>
65334 /* Override any GCC internal prototype to avoid an error.
65335 Use char because int might match the return type of a GCC
65336 builtin and then its argument prototype would still apply. */
65341 /* The GNU C library defines this for functions which it implements
65342 to always fail with ENOSYS. Some functions are actually named
65343 something starting with __ and the normal name is an alias. */
65344 #if defined __stub_$ac_func || defined __stub___$ac_func
65351 return $ac_func ();
65356 rm -f conftest.$ac_objext conftest$ac_exeext
65357 if { (ac_try="$ac_link"
65358 case "(($ac_try" in
65359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65360 *) ac_try_echo=$ac_try;;
65362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65363 $as_echo "$ac_try_echo") >&5
65364 (eval "$ac_link") 2>conftest.er1
65366 grep -v '^ *+' conftest.er1 >conftest.err
65368 cat conftest.err >&5
65369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65370 (exit $ac_status); } && {
65371 test -z "$ac_c_werror_flag" ||
65372 test ! -s conftest.err
65373 } && test -s conftest$ac_exeext && {
65374 test "$cross_compiling" = yes ||
65375 $as_test_x conftest$ac_exeext
65377 eval "$as_ac_var=yes"
65379 $as_echo "$as_me: failed program was:" >&5
65380 sed 's/^/| /' conftest.$ac_ext >&5
65382 eval "$as_ac_var=no"
65385 rm -rf conftest.dSYM
65386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65387 conftest$ac_exeext conftest.$ac_ext
65389 ac_res=`eval 'as_val=${'$as_ac_var'}
65390 $as_echo "$as_val"'`
65391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65392 $as_echo "$ac_res" >&6; }
65393 as_val=`eval 'as_val=${'$as_ac_var'}
65394 $as_echo "$as_val"'`
65395 if test "x$as_val" = x""yes; then
65396 cat >>confdefs.h <<_ACEOF
65397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65403 if test "${ice_have_puts}" = yes; then
65404 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
65405 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
65406 if test "${ice_cv_have_puts_decl+set}" = set; then
65407 $as_echo_n "(cached) " >&6
65410 ice_cv_have_puts_decl=no
65411 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65412 ice_re_word='(^|[^a-zA-Z0-9_])'
65413 for header in stdio.h; do
65414 # Check for ordinary declaration
65415 cat >conftest.$ac_ext <<_ACEOF
65418 cat confdefs.h >>conftest.$ac_ext
65419 cat >>conftest.$ac_ext <<_ACEOF
65420 /* end confdefs.h. */
65424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65425 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
65426 ice_cv_have_puts_decl=yes
65430 if test "$ice_cv_have_puts_decl" = yes; then
65433 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65434 cat >conftest.$ac_ext <<_ACEOF
65437 cat confdefs.h >>conftest.$ac_ext
65438 cat >>conftest.$ac_ext <<_ACEOF
65439 /* end confdefs.h. */
65443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65444 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65445 ice_cv_have_puts_decl=yes
65449 if test "$ice_cv_have_puts_decl" = yes; then
65456 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
65457 $as_echo "$ice_cv_have_puts_decl" >&6; }
65458 if test "$ice_cv_have_puts_decl" = yes; then
65460 cat >>confdefs.h <<_ACEOF
65461 #define HAVE_PUTS_DECL 1
65468 ice_have_realloc=no
65470 for ac_func in realloc
65472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65474 $as_echo_n "checking for $ac_func... " >&6; }
65475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65476 $as_echo_n "(cached) " >&6
65478 cat >conftest.$ac_ext <<_ACEOF
65481 cat confdefs.h >>conftest.$ac_ext
65482 cat >>conftest.$ac_ext <<_ACEOF
65483 /* end confdefs.h. */
65484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65486 #define $ac_func innocuous_$ac_func
65488 /* System header to define __stub macros and hopefully few prototypes,
65489 which can conflict with char $ac_func (); below.
65490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65491 <limits.h> exists even on freestanding compilers. */
65494 # include <limits.h>
65496 # include <assert.h>
65501 /* Override any GCC internal prototype to avoid an error.
65502 Use char because int might match the return type of a GCC
65503 builtin and then its argument prototype would still apply. */
65508 /* The GNU C library defines this for functions which it implements
65509 to always fail with ENOSYS. Some functions are actually named
65510 something starting with __ and the normal name is an alias. */
65511 #if defined __stub_$ac_func || defined __stub___$ac_func
65518 return $ac_func ();
65523 rm -f conftest.$ac_objext conftest$ac_exeext
65524 if { (ac_try="$ac_link"
65525 case "(($ac_try" in
65526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65527 *) ac_try_echo=$ac_try;;
65529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65530 $as_echo "$ac_try_echo") >&5
65531 (eval "$ac_link") 2>conftest.er1
65533 grep -v '^ *+' conftest.er1 >conftest.err
65535 cat conftest.err >&5
65536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65537 (exit $ac_status); } && {
65538 test -z "$ac_c_werror_flag" ||
65539 test ! -s conftest.err
65540 } && test -s conftest$ac_exeext && {
65541 test "$cross_compiling" = yes ||
65542 $as_test_x conftest$ac_exeext
65544 eval "$as_ac_var=yes"
65546 $as_echo "$as_me: failed program was:" >&5
65547 sed 's/^/| /' conftest.$ac_ext >&5
65549 eval "$as_ac_var=no"
65552 rm -rf conftest.dSYM
65553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65554 conftest$ac_exeext conftest.$ac_ext
65556 ac_res=`eval 'as_val=${'$as_ac_var'}
65557 $as_echo "$as_val"'`
65558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65559 $as_echo "$ac_res" >&6; }
65560 as_val=`eval 'as_val=${'$as_ac_var'}
65561 $as_echo "$as_val"'`
65562 if test "x$as_val" = x""yes; then
65563 cat >>confdefs.h <<_ACEOF
65564 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65566 ice_have_realloc=yes
65570 if test "${ice_have_realloc}" = yes; then
65571 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
65572 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
65573 if test "${ice_cv_have_realloc_decl+set}" = set; then
65574 $as_echo_n "(cached) " >&6
65577 ice_cv_have_realloc_decl=no
65578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65579 ice_re_word='(^|[^a-zA-Z0-9_])'
65580 for header in stdlib.h; do
65581 # Check for ordinary declaration
65582 cat >conftest.$ac_ext <<_ACEOF
65585 cat confdefs.h >>conftest.$ac_ext
65586 cat >>conftest.$ac_ext <<_ACEOF
65587 /* end confdefs.h. */
65591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65592 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
65593 ice_cv_have_realloc_decl=yes
65597 if test "$ice_cv_have_realloc_decl" = yes; then
65600 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65601 cat >conftest.$ac_ext <<_ACEOF
65604 cat confdefs.h >>conftest.$ac_ext
65605 cat >>conftest.$ac_ext <<_ACEOF
65606 /* end confdefs.h. */
65610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65611 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65612 ice_cv_have_realloc_decl=yes
65616 if test "$ice_cv_have_realloc_decl" = yes; then
65623 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
65624 $as_echo "$ice_cv_have_realloc_decl" >&6; }
65625 if test "$ice_cv_have_realloc_decl" = yes; then
65627 cat >>confdefs.h <<_ACEOF
65628 #define HAVE_REALLOC_DECL 1
65635 ice_have_recvfrom=no
65637 for ac_func in recvfrom
65639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65640 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65641 $as_echo_n "checking for $ac_func... " >&6; }
65642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65643 $as_echo_n "(cached) " >&6
65645 cat >conftest.$ac_ext <<_ACEOF
65648 cat confdefs.h >>conftest.$ac_ext
65649 cat >>conftest.$ac_ext <<_ACEOF
65650 /* end confdefs.h. */
65651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65653 #define $ac_func innocuous_$ac_func
65655 /* System header to define __stub macros and hopefully few prototypes,
65656 which can conflict with char $ac_func (); below.
65657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65658 <limits.h> exists even on freestanding compilers. */
65661 # include <limits.h>
65663 # include <assert.h>
65668 /* Override any GCC internal prototype to avoid an error.
65669 Use char because int might match the return type of a GCC
65670 builtin and then its argument prototype would still apply. */
65675 /* The GNU C library defines this for functions which it implements
65676 to always fail with ENOSYS. Some functions are actually named
65677 something starting with __ and the normal name is an alias. */
65678 #if defined __stub_$ac_func || defined __stub___$ac_func
65685 return $ac_func ();
65690 rm -f conftest.$ac_objext conftest$ac_exeext
65691 if { (ac_try="$ac_link"
65692 case "(($ac_try" in
65693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65694 *) ac_try_echo=$ac_try;;
65696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65697 $as_echo "$ac_try_echo") >&5
65698 (eval "$ac_link") 2>conftest.er1
65700 grep -v '^ *+' conftest.er1 >conftest.err
65702 cat conftest.err >&5
65703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65704 (exit $ac_status); } && {
65705 test -z "$ac_c_werror_flag" ||
65706 test ! -s conftest.err
65707 } && test -s conftest$ac_exeext && {
65708 test "$cross_compiling" = yes ||
65709 $as_test_x conftest$ac_exeext
65711 eval "$as_ac_var=yes"
65713 $as_echo "$as_me: failed program was:" >&5
65714 sed 's/^/| /' conftest.$ac_ext >&5
65716 eval "$as_ac_var=no"
65719 rm -rf conftest.dSYM
65720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65721 conftest$ac_exeext conftest.$ac_ext
65723 ac_res=`eval 'as_val=${'$as_ac_var'}
65724 $as_echo "$as_val"'`
65725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65726 $as_echo "$ac_res" >&6; }
65727 as_val=`eval 'as_val=${'$as_ac_var'}
65728 $as_echo "$as_val"'`
65729 if test "x$as_val" = x""yes; then
65730 cat >>confdefs.h <<_ACEOF
65731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65733 ice_have_recvfrom=yes
65737 if test "${ice_have_recvfrom}" = yes; then
65738 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
65739 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
65740 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
65741 $as_echo_n "(cached) " >&6
65744 ice_cv_have_recvfrom_decl=no
65745 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65746 ice_re_word='(^|[^a-zA-Z0-9_])'
65747 for header in sys/types.h sys/socket.h; do
65748 # Check for ordinary declaration
65749 cat >conftest.$ac_ext <<_ACEOF
65752 cat confdefs.h >>conftest.$ac_ext
65753 cat >>conftest.$ac_ext <<_ACEOF
65754 /* end confdefs.h. */
65758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65759 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
65760 ice_cv_have_recvfrom_decl=yes
65764 if test "$ice_cv_have_recvfrom_decl" = yes; then
65767 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65768 cat >conftest.$ac_ext <<_ACEOF
65771 cat confdefs.h >>conftest.$ac_ext
65772 cat >>conftest.$ac_ext <<_ACEOF
65773 /* end confdefs.h. */
65777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65778 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65779 ice_cv_have_recvfrom_decl=yes
65783 if test "$ice_cv_have_recvfrom_decl" = yes; then
65790 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
65791 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
65792 if test "$ice_cv_have_recvfrom_decl" = yes; then
65794 cat >>confdefs.h <<_ACEOF
65795 #define HAVE_RECVFROM_DECL 1
65804 for ac_func in remove
65806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65807 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65808 $as_echo_n "checking for $ac_func... " >&6; }
65809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65810 $as_echo_n "(cached) " >&6
65812 cat >conftest.$ac_ext <<_ACEOF
65815 cat confdefs.h >>conftest.$ac_ext
65816 cat >>conftest.$ac_ext <<_ACEOF
65817 /* end confdefs.h. */
65818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65820 #define $ac_func innocuous_$ac_func
65822 /* System header to define __stub macros and hopefully few prototypes,
65823 which can conflict with char $ac_func (); below.
65824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65825 <limits.h> exists even on freestanding compilers. */
65828 # include <limits.h>
65830 # include <assert.h>
65835 /* Override any GCC internal prototype to avoid an error.
65836 Use char because int might match the return type of a GCC
65837 builtin and then its argument prototype would still apply. */
65842 /* The GNU C library defines this for functions which it implements
65843 to always fail with ENOSYS. Some functions are actually named
65844 something starting with __ and the normal name is an alias. */
65845 #if defined __stub_$ac_func || defined __stub___$ac_func
65852 return $ac_func ();
65857 rm -f conftest.$ac_objext conftest$ac_exeext
65858 if { (ac_try="$ac_link"
65859 case "(($ac_try" in
65860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65861 *) ac_try_echo=$ac_try;;
65863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65864 $as_echo "$ac_try_echo") >&5
65865 (eval "$ac_link") 2>conftest.er1
65867 grep -v '^ *+' conftest.er1 >conftest.err
65869 cat conftest.err >&5
65870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65871 (exit $ac_status); } && {
65872 test -z "$ac_c_werror_flag" ||
65873 test ! -s conftest.err
65874 } && test -s conftest$ac_exeext && {
65875 test "$cross_compiling" = yes ||
65876 $as_test_x conftest$ac_exeext
65878 eval "$as_ac_var=yes"
65880 $as_echo "$as_me: failed program was:" >&5
65881 sed 's/^/| /' conftest.$ac_ext >&5
65883 eval "$as_ac_var=no"
65886 rm -rf conftest.dSYM
65887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65888 conftest$ac_exeext conftest.$ac_ext
65890 ac_res=`eval 'as_val=${'$as_ac_var'}
65891 $as_echo "$as_val"'`
65892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65893 $as_echo "$ac_res" >&6; }
65894 as_val=`eval 'as_val=${'$as_ac_var'}
65895 $as_echo "$as_val"'`
65896 if test "x$as_val" = x""yes; then
65897 cat >>confdefs.h <<_ACEOF
65898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65900 ice_have_remove=yes
65904 if test "${ice_have_remove}" = yes; then
65905 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
65906 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
65907 if test "${ice_cv_have_remove_decl+set}" = set; then
65908 $as_echo_n "(cached) " >&6
65911 ice_cv_have_remove_decl=no
65912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65913 ice_re_word='(^|[^a-zA-Z0-9_])'
65914 for header in stdio.h; do
65915 # Check for ordinary declaration
65916 cat >conftest.$ac_ext <<_ACEOF
65919 cat confdefs.h >>conftest.$ac_ext
65920 cat >>conftest.$ac_ext <<_ACEOF
65921 /* end confdefs.h. */
65925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65926 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
65927 ice_cv_have_remove_decl=yes
65931 if test "$ice_cv_have_remove_decl" = yes; then
65934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65935 cat >conftest.$ac_ext <<_ACEOF
65938 cat confdefs.h >>conftest.$ac_ext
65939 cat >>conftest.$ac_ext <<_ACEOF
65940 /* end confdefs.h. */
65944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65945 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65946 ice_cv_have_remove_decl=yes
65950 if test "$ice_cv_have_remove_decl" = yes; then
65957 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
65958 $as_echo "$ice_cv_have_remove_decl" >&6; }
65959 if test "$ice_cv_have_remove_decl" = yes; then
65961 cat >>confdefs.h <<_ACEOF
65962 #define HAVE_REMOVE_DECL 1
65971 for ac_func in rename
65973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65974 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65975 $as_echo_n "checking for $ac_func... " >&6; }
65976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65977 $as_echo_n "(cached) " >&6
65979 cat >conftest.$ac_ext <<_ACEOF
65982 cat confdefs.h >>conftest.$ac_ext
65983 cat >>conftest.$ac_ext <<_ACEOF
65984 /* end confdefs.h. */
65985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65987 #define $ac_func innocuous_$ac_func
65989 /* System header to define __stub macros and hopefully few prototypes,
65990 which can conflict with char $ac_func (); below.
65991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65992 <limits.h> exists even on freestanding compilers. */
65995 # include <limits.h>
65997 # include <assert.h>
66002 /* Override any GCC internal prototype to avoid an error.
66003 Use char because int might match the return type of a GCC
66004 builtin and then its argument prototype would still apply. */
66009 /* The GNU C library defines this for functions which it implements
66010 to always fail with ENOSYS. Some functions are actually named
66011 something starting with __ and the normal name is an alias. */
66012 #if defined __stub_$ac_func || defined __stub___$ac_func
66019 return $ac_func ();
66024 rm -f conftest.$ac_objext conftest$ac_exeext
66025 if { (ac_try="$ac_link"
66026 case "(($ac_try" in
66027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66028 *) ac_try_echo=$ac_try;;
66030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66031 $as_echo "$ac_try_echo") >&5
66032 (eval "$ac_link") 2>conftest.er1
66034 grep -v '^ *+' conftest.er1 >conftest.err
66036 cat conftest.err >&5
66037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66038 (exit $ac_status); } && {
66039 test -z "$ac_c_werror_flag" ||
66040 test ! -s conftest.err
66041 } && test -s conftest$ac_exeext && {
66042 test "$cross_compiling" = yes ||
66043 $as_test_x conftest$ac_exeext
66045 eval "$as_ac_var=yes"
66047 $as_echo "$as_me: failed program was:" >&5
66048 sed 's/^/| /' conftest.$ac_ext >&5
66050 eval "$as_ac_var=no"
66053 rm -rf conftest.dSYM
66054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66055 conftest$ac_exeext conftest.$ac_ext
66057 ac_res=`eval 'as_val=${'$as_ac_var'}
66058 $as_echo "$as_val"'`
66059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66060 $as_echo "$ac_res" >&6; }
66061 as_val=`eval 'as_val=${'$as_ac_var'}
66062 $as_echo "$as_val"'`
66063 if test "x$as_val" = x""yes; then
66064 cat >>confdefs.h <<_ACEOF
66065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66067 ice_have_rename=yes
66071 if test "${ice_have_rename}" = yes; then
66072 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
66073 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
66074 if test "${ice_cv_have_rename_decl+set}" = set; then
66075 $as_echo_n "(cached) " >&6
66078 ice_cv_have_rename_decl=no
66079 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66080 ice_re_word='(^|[^a-zA-Z0-9_])'
66081 for header in stdio.h; do
66082 # Check for ordinary declaration
66083 cat >conftest.$ac_ext <<_ACEOF
66086 cat confdefs.h >>conftest.$ac_ext
66087 cat >>conftest.$ac_ext <<_ACEOF
66088 /* end confdefs.h. */
66092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66093 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
66094 ice_cv_have_rename_decl=yes
66098 if test "$ice_cv_have_rename_decl" = yes; then
66101 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66102 cat >conftest.$ac_ext <<_ACEOF
66105 cat confdefs.h >>conftest.$ac_ext
66106 cat >>conftest.$ac_ext <<_ACEOF
66107 /* end confdefs.h. */
66111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66112 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66113 ice_cv_have_rename_decl=yes
66117 if test "$ice_cv_have_rename_decl" = yes; then
66124 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
66125 $as_echo "$ice_cv_have_rename_decl" >&6; }
66126 if test "$ice_cv_have_rename_decl" = yes; then
66128 cat >>confdefs.h <<_ACEOF
66129 #define HAVE_RENAME_DECL 1
66138 for ac_func in rewind
66140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66141 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66142 $as_echo_n "checking for $ac_func... " >&6; }
66143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66144 $as_echo_n "(cached) " >&6
66146 cat >conftest.$ac_ext <<_ACEOF
66149 cat confdefs.h >>conftest.$ac_ext
66150 cat >>conftest.$ac_ext <<_ACEOF
66151 /* end confdefs.h. */
66152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66154 #define $ac_func innocuous_$ac_func
66156 /* System header to define __stub macros and hopefully few prototypes,
66157 which can conflict with char $ac_func (); below.
66158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66159 <limits.h> exists even on freestanding compilers. */
66162 # include <limits.h>
66164 # include <assert.h>
66169 /* Override any GCC internal prototype to avoid an error.
66170 Use char because int might match the return type of a GCC
66171 builtin and then its argument prototype would still apply. */
66176 /* The GNU C library defines this for functions which it implements
66177 to always fail with ENOSYS. Some functions are actually named
66178 something starting with __ and the normal name is an alias. */
66179 #if defined __stub_$ac_func || defined __stub___$ac_func
66186 return $ac_func ();
66191 rm -f conftest.$ac_objext conftest$ac_exeext
66192 if { (ac_try="$ac_link"
66193 case "(($ac_try" in
66194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66195 *) ac_try_echo=$ac_try;;
66197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66198 $as_echo "$ac_try_echo") >&5
66199 (eval "$ac_link") 2>conftest.er1
66201 grep -v '^ *+' conftest.er1 >conftest.err
66203 cat conftest.err >&5
66204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66205 (exit $ac_status); } && {
66206 test -z "$ac_c_werror_flag" ||
66207 test ! -s conftest.err
66208 } && test -s conftest$ac_exeext && {
66209 test "$cross_compiling" = yes ||
66210 $as_test_x conftest$ac_exeext
66212 eval "$as_ac_var=yes"
66214 $as_echo "$as_me: failed program was:" >&5
66215 sed 's/^/| /' conftest.$ac_ext >&5
66217 eval "$as_ac_var=no"
66220 rm -rf conftest.dSYM
66221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66222 conftest$ac_exeext conftest.$ac_ext
66224 ac_res=`eval 'as_val=${'$as_ac_var'}
66225 $as_echo "$as_val"'`
66226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66227 $as_echo "$ac_res" >&6; }
66228 as_val=`eval 'as_val=${'$as_ac_var'}
66229 $as_echo "$as_val"'`
66230 if test "x$as_val" = x""yes; then
66231 cat >>confdefs.h <<_ACEOF
66232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66234 ice_have_rewind=yes
66238 if test "${ice_have_rewind}" = yes; then
66239 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
66240 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
66241 if test "${ice_cv_have_rewind_decl+set}" = set; then
66242 $as_echo_n "(cached) " >&6
66245 ice_cv_have_rewind_decl=no
66246 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66247 ice_re_word='(^|[^a-zA-Z0-9_])'
66248 for header in stdio.h; do
66249 # Check for ordinary declaration
66250 cat >conftest.$ac_ext <<_ACEOF
66253 cat confdefs.h >>conftest.$ac_ext
66254 cat >>conftest.$ac_ext <<_ACEOF
66255 /* end confdefs.h. */
66259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66260 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
66261 ice_cv_have_rewind_decl=yes
66265 if test "$ice_cv_have_rewind_decl" = yes; then
66268 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66269 cat >conftest.$ac_ext <<_ACEOF
66272 cat confdefs.h >>conftest.$ac_ext
66273 cat >>conftest.$ac_ext <<_ACEOF
66274 /* end confdefs.h. */
66278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66279 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66280 ice_cv_have_rewind_decl=yes
66284 if test "$ice_cv_have_rewind_decl" = yes; then
66291 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
66292 $as_echo "$ice_cv_have_rewind_decl" >&6; }
66293 if test "$ice_cv_have_rewind_decl" = yes; then
66295 cat >>confdefs.h <<_ACEOF
66296 #define HAVE_REWIND_DECL 1
66303 ice_have_ruserok=no
66305 for ac_func in ruserok
66307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66309 $as_echo_n "checking for $ac_func... " >&6; }
66310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66311 $as_echo_n "(cached) " >&6
66313 cat >conftest.$ac_ext <<_ACEOF
66316 cat confdefs.h >>conftest.$ac_ext
66317 cat >>conftest.$ac_ext <<_ACEOF
66318 /* end confdefs.h. */
66319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66321 #define $ac_func innocuous_$ac_func
66323 /* System header to define __stub macros and hopefully few prototypes,
66324 which can conflict with char $ac_func (); below.
66325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66326 <limits.h> exists even on freestanding compilers. */
66329 # include <limits.h>
66331 # include <assert.h>
66336 /* Override any GCC internal prototype to avoid an error.
66337 Use char because int might match the return type of a GCC
66338 builtin and then its argument prototype would still apply. */
66343 /* The GNU C library defines this for functions which it implements
66344 to always fail with ENOSYS. Some functions are actually named
66345 something starting with __ and the normal name is an alias. */
66346 #if defined __stub_$ac_func || defined __stub___$ac_func
66353 return $ac_func ();
66358 rm -f conftest.$ac_objext conftest$ac_exeext
66359 if { (ac_try="$ac_link"
66360 case "(($ac_try" in
66361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66362 *) ac_try_echo=$ac_try;;
66364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66365 $as_echo "$ac_try_echo") >&5
66366 (eval "$ac_link") 2>conftest.er1
66368 grep -v '^ *+' conftest.er1 >conftest.err
66370 cat conftest.err >&5
66371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66372 (exit $ac_status); } && {
66373 test -z "$ac_c_werror_flag" ||
66374 test ! -s conftest.err
66375 } && test -s conftest$ac_exeext && {
66376 test "$cross_compiling" = yes ||
66377 $as_test_x conftest$ac_exeext
66379 eval "$as_ac_var=yes"
66381 $as_echo "$as_me: failed program was:" >&5
66382 sed 's/^/| /' conftest.$ac_ext >&5
66384 eval "$as_ac_var=no"
66387 rm -rf conftest.dSYM
66388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66389 conftest$ac_exeext conftest.$ac_ext
66391 ac_res=`eval 'as_val=${'$as_ac_var'}
66392 $as_echo "$as_val"'`
66393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66394 $as_echo "$ac_res" >&6; }
66395 as_val=`eval 'as_val=${'$as_ac_var'}
66396 $as_echo "$as_val"'`
66397 if test "x$as_val" = x""yes; then
66398 cat >>confdefs.h <<_ACEOF
66399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66401 ice_have_ruserok=yes
66405 if test "${ice_have_ruserok}" = yes; then
66406 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
66407 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
66408 if test "${ice_cv_have_ruserok_decl+set}" = set; then
66409 $as_echo_n "(cached) " >&6
66412 ice_cv_have_ruserok_decl=no
66413 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66414 ice_re_word='(^|[^a-zA-Z0-9_])'
66415 for header in netdb.h sys/socket.h libc.h unistd.h; do
66416 # Check for ordinary declaration
66417 cat >conftest.$ac_ext <<_ACEOF
66420 cat confdefs.h >>conftest.$ac_ext
66421 cat >>conftest.$ac_ext <<_ACEOF
66422 /* end confdefs.h. */
66426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66427 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
66428 ice_cv_have_ruserok_decl=yes
66432 if test "$ice_cv_have_ruserok_decl" = yes; then
66435 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66436 cat >conftest.$ac_ext <<_ACEOF
66439 cat confdefs.h >>conftest.$ac_ext
66440 cat >>conftest.$ac_ext <<_ACEOF
66441 /* end confdefs.h. */
66445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66446 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66447 ice_cv_have_ruserok_decl=yes
66451 if test "$ice_cv_have_ruserok_decl" = yes; then
66458 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
66459 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
66460 if test "$ice_cv_have_ruserok_decl" = yes; then
66462 cat >>confdefs.h <<_ACEOF
66463 #define HAVE_RUSEROK_DECL 1
66472 for ac_func in select
66474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66475 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66476 $as_echo_n "checking for $ac_func... " >&6; }
66477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66478 $as_echo_n "(cached) " >&6
66480 cat >conftest.$ac_ext <<_ACEOF
66483 cat confdefs.h >>conftest.$ac_ext
66484 cat >>conftest.$ac_ext <<_ACEOF
66485 /* end confdefs.h. */
66486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66488 #define $ac_func innocuous_$ac_func
66490 /* System header to define __stub macros and hopefully few prototypes,
66491 which can conflict with char $ac_func (); below.
66492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66493 <limits.h> exists even on freestanding compilers. */
66496 # include <limits.h>
66498 # include <assert.h>
66503 /* Override any GCC internal prototype to avoid an error.
66504 Use char because int might match the return type of a GCC
66505 builtin and then its argument prototype would still apply. */
66510 /* The GNU C library defines this for functions which it implements
66511 to always fail with ENOSYS. Some functions are actually named
66512 something starting with __ and the normal name is an alias. */
66513 #if defined __stub_$ac_func || defined __stub___$ac_func
66520 return $ac_func ();
66525 rm -f conftest.$ac_objext conftest$ac_exeext
66526 if { (ac_try="$ac_link"
66527 case "(($ac_try" in
66528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66529 *) ac_try_echo=$ac_try;;
66531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66532 $as_echo "$ac_try_echo") >&5
66533 (eval "$ac_link") 2>conftest.er1
66535 grep -v '^ *+' conftest.er1 >conftest.err
66537 cat conftest.err >&5
66538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66539 (exit $ac_status); } && {
66540 test -z "$ac_c_werror_flag" ||
66541 test ! -s conftest.err
66542 } && test -s conftest$ac_exeext && {
66543 test "$cross_compiling" = yes ||
66544 $as_test_x conftest$ac_exeext
66546 eval "$as_ac_var=yes"
66548 $as_echo "$as_me: failed program was:" >&5
66549 sed 's/^/| /' conftest.$ac_ext >&5
66551 eval "$as_ac_var=no"
66554 rm -rf conftest.dSYM
66555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66556 conftest$ac_exeext conftest.$ac_ext
66558 ac_res=`eval 'as_val=${'$as_ac_var'}
66559 $as_echo "$as_val"'`
66560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66561 $as_echo "$ac_res" >&6; }
66562 as_val=`eval 'as_val=${'$as_ac_var'}
66563 $as_echo "$as_val"'`
66564 if test "x$as_val" = x""yes; then
66565 cat >>confdefs.h <<_ACEOF
66566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66568 ice_have_select=yes
66572 if test "${ice_have_select}" = yes; then
66573 { $as_echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
66574 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
66575 if test "${ice_cv_have_select_decl+set}" = set; then
66576 $as_echo_n "(cached) " >&6
66579 ice_cv_have_select_decl=no
66580 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66581 ice_re_word='(^|[^a-zA-Z0-9_])'
66582 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
66583 # Check for ordinary declaration
66584 cat >conftest.$ac_ext <<_ACEOF
66587 cat confdefs.h >>conftest.$ac_ext
66588 cat >>conftest.$ac_ext <<_ACEOF
66589 /* end confdefs.h. */
66593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66594 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
66595 ice_cv_have_select_decl=yes
66599 if test "$ice_cv_have_select_decl" = yes; then
66602 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66603 cat >conftest.$ac_ext <<_ACEOF
66606 cat confdefs.h >>conftest.$ac_ext
66607 cat >>conftest.$ac_ext <<_ACEOF
66608 /* end confdefs.h. */
66612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66613 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66614 ice_cv_have_select_decl=yes
66618 if test "$ice_cv_have_select_decl" = yes; then
66625 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
66626 $as_echo "$ice_cv_have_select_decl" >&6; }
66627 if test "$ice_cv_have_select_decl" = yes; then
66629 cat >>confdefs.h <<_ACEOF
66630 #define HAVE_SELECT_DECL 1
66643 for ac_header in sys/time.h \
66650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
66651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66653 $as_echo_n "checking for $ac_header... " >&6; }
66654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66655 $as_echo_n "(cached) " >&6
66657 ac_res=`eval 'as_val=${'$as_ac_Header'}
66658 $as_echo "$as_val"'`
66659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66660 $as_echo "$ac_res" >&6; }
66662 # Is the header compilable?
66663 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
66664 $as_echo_n "checking $ac_header usability... " >&6; }
66665 cat >conftest.$ac_ext <<_ACEOF
66668 cat confdefs.h >>conftest.$ac_ext
66669 cat >>conftest.$ac_ext <<_ACEOF
66670 /* end confdefs.h. */
66671 $ac_includes_default
66672 #include <$ac_header>
66674 rm -f conftest.$ac_objext
66675 if { (ac_try="$ac_compile"
66676 case "(($ac_try" in
66677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66678 *) ac_try_echo=$ac_try;;
66680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66681 $as_echo "$ac_try_echo") >&5
66682 (eval "$ac_compile") 2>conftest.er1
66684 grep -v '^ *+' conftest.er1 >conftest.err
66686 cat conftest.err >&5
66687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66688 (exit $ac_status); } && {
66689 test -z "$ac_c_werror_flag" ||
66690 test ! -s conftest.err
66691 } && test -s conftest.$ac_objext; then
66692 ac_header_compiler=yes
66694 $as_echo "$as_me: failed program was:" >&5
66695 sed 's/^/| /' conftest.$ac_ext >&5
66697 ac_header_compiler=no
66700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66702 $as_echo "$ac_header_compiler" >&6; }
66704 # Is the header present?
66705 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
66706 $as_echo_n "checking $ac_header presence... " >&6; }
66707 cat >conftest.$ac_ext <<_ACEOF
66710 cat confdefs.h >>conftest.$ac_ext
66711 cat >>conftest.$ac_ext <<_ACEOF
66712 /* end confdefs.h. */
66713 #include <$ac_header>
66715 if { (ac_try="$ac_cpp conftest.$ac_ext"
66716 case "(($ac_try" in
66717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66718 *) ac_try_echo=$ac_try;;
66720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66721 $as_echo "$ac_try_echo") >&5
66722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66724 grep -v '^ *+' conftest.er1 >conftest.err
66726 cat conftest.err >&5
66727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66728 (exit $ac_status); } >/dev/null && {
66729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66730 test ! -s conftest.err
66732 ac_header_preproc=yes
66734 $as_echo "$as_me: failed program was:" >&5
66735 sed 's/^/| /' conftest.$ac_ext >&5
66737 ac_header_preproc=no
66740 rm -f conftest.err conftest.$ac_ext
66741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66742 $as_echo "$ac_header_preproc" >&6; }
66744 # So? What about this header?
66745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66748 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66750 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66751 ac_header_preproc=yes
66754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66755 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66757 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66759 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66761 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66765 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66770 $as_echo_n "checking for $ac_header... " >&6; }
66771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66772 $as_echo_n "(cached) " >&6
66774 eval "$as_ac_Header=\$ac_header_preproc"
66776 ac_res=`eval 'as_val=${'$as_ac_Header'}
66777 $as_echo "$as_val"'`
66778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66779 $as_echo "$ac_res" >&6; }
66782 as_val=`eval 'as_val=${'$as_ac_Header'}
66783 $as_echo "$as_val"'`
66784 if test "x$as_val" = x""yes; then
66785 cat >>confdefs.h <<_ACEOF
66786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
66794 { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
66795 $as_echo_n "checking for select() argument type... " >&6; }
66796 if test "${amanda_cv_select_arg_type+set}" = set; then
66797 $as_echo_n "(cached) " >&6
66801 cat <<EOF >conftest.$ac_ext
66802 #include "confdefs.h"
66803 #ifdef TIME_WITH_SYS_TIME
66804 # include <sys/time.h>
66807 # ifdef HAVE_SYS_TIME_H
66808 # include <sys/time.h>
66813 #ifdef HAVE_SYS_TYPES_H
66814 # include <sys/types.h>
66816 #ifdef HAVE_SYS_SELECT_H
66817 # include <sys/select.h>
66819 #ifdef HAVE_SYS_SOCKET_H
66820 # include <sys/socket.h>
66822 #ifdef HAVE_UNISTD_H
66823 # include <unistd.h>
66828 #ifdef FD_SET_POINTER
66829 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
66831 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
66837 # Figure out the select argument type by first trying to
66838 # compile with the fd_set argument. If the compile fails,
66839 # then we know to use the int. If it suceeds, then try to
66840 # use the int. If the int fails, then use fd_set. If
66841 # both suceeed, then do a line count on the number of
66842 # lines that the compiler spit out, assuming that the
66843 # compile outputing more lines had more errors.
66844 amanda_cv_select_arg_type=no
66845 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
66846 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
66847 if test $? -ne 0; then
66848 amanda_cv_select_arg_type=int
66850 if test "$amanda_cv_select_arg_type" = no; then
66851 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
66852 if test $? -ne 0; then
66853 amanda_cv_select_arg_type=fd_set
66856 if test "$amanda_cv_select_arg_type" = no; then
66857 wc_fdset=`wc -l <conftest.fd_set`
66858 wc_int=`wc -l <conftest.int`
66859 if test "$wc_fdset" -le "$wc_int"; then
66860 amanda_cv_select_arg_type=fd_set
66862 amanda_cv_select_arg_type=int
66869 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
66870 $as_echo "$amanda_cv_select_arg_type" >&6; }
66872 cat >>confdefs.h <<_ACEOF
66873 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
66881 for ac_func in sendto
66883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66885 $as_echo_n "checking for $ac_func... " >&6; }
66886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66887 $as_echo_n "(cached) " >&6
66889 cat >conftest.$ac_ext <<_ACEOF
66892 cat confdefs.h >>conftest.$ac_ext
66893 cat >>conftest.$ac_ext <<_ACEOF
66894 /* end confdefs.h. */
66895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66897 #define $ac_func innocuous_$ac_func
66899 /* System header to define __stub macros and hopefully few prototypes,
66900 which can conflict with char $ac_func (); below.
66901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66902 <limits.h> exists even on freestanding compilers. */
66905 # include <limits.h>
66907 # include <assert.h>
66912 /* Override any GCC internal prototype to avoid an error.
66913 Use char because int might match the return type of a GCC
66914 builtin and then its argument prototype would still apply. */
66919 /* The GNU C library defines this for functions which it implements
66920 to always fail with ENOSYS. Some functions are actually named
66921 something starting with __ and the normal name is an alias. */
66922 #if defined __stub_$ac_func || defined __stub___$ac_func
66929 return $ac_func ();
66934 rm -f conftest.$ac_objext conftest$ac_exeext
66935 if { (ac_try="$ac_link"
66936 case "(($ac_try" in
66937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66938 *) ac_try_echo=$ac_try;;
66940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66941 $as_echo "$ac_try_echo") >&5
66942 (eval "$ac_link") 2>conftest.er1
66944 grep -v '^ *+' conftest.er1 >conftest.err
66946 cat conftest.err >&5
66947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66948 (exit $ac_status); } && {
66949 test -z "$ac_c_werror_flag" ||
66950 test ! -s conftest.err
66951 } && test -s conftest$ac_exeext && {
66952 test "$cross_compiling" = yes ||
66953 $as_test_x conftest$ac_exeext
66955 eval "$as_ac_var=yes"
66957 $as_echo "$as_me: failed program was:" >&5
66958 sed 's/^/| /' conftest.$ac_ext >&5
66960 eval "$as_ac_var=no"
66963 rm -rf conftest.dSYM
66964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66965 conftest$ac_exeext conftest.$ac_ext
66967 ac_res=`eval 'as_val=${'$as_ac_var'}
66968 $as_echo "$as_val"'`
66969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66970 $as_echo "$ac_res" >&6; }
66971 as_val=`eval 'as_val=${'$as_ac_var'}
66972 $as_echo "$as_val"'`
66973 if test "x$as_val" = x""yes; then
66974 cat >>confdefs.h <<_ACEOF
66975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66977 ice_have_sendto=yes
66981 if test "${ice_have_sendto}" = yes; then
66982 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
66983 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
66984 if test "${ice_cv_have_sendto_decl+set}" = set; then
66985 $as_echo_n "(cached) " >&6
66988 ice_cv_have_sendto_decl=no
66989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66990 ice_re_word='(^|[^a-zA-Z0-9_])'
66991 for header in sys/types.h sys/socket.h; do
66992 # Check for ordinary declaration
66993 cat >conftest.$ac_ext <<_ACEOF
66996 cat confdefs.h >>conftest.$ac_ext
66997 cat >>conftest.$ac_ext <<_ACEOF
66998 /* end confdefs.h. */
67002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67003 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
67004 ice_cv_have_sendto_decl=yes
67008 if test "$ice_cv_have_sendto_decl" = yes; then
67011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67012 cat >conftest.$ac_ext <<_ACEOF
67015 cat confdefs.h >>conftest.$ac_ext
67016 cat >>conftest.$ac_ext <<_ACEOF
67017 /* end confdefs.h. */
67021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67022 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67023 ice_cv_have_sendto_decl=yes
67027 if test "$ice_cv_have_sendto_decl" = yes; then
67034 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
67035 $as_echo "$ice_cv_have_sendto_decl" >&6; }
67036 if test "$ice_cv_have_sendto_decl" = yes; then
67038 cat >>confdefs.h <<_ACEOF
67039 #define HAVE_SENDTO_DECL 1
67046 ice_have_setegid=no
67048 for ac_func in setegid
67050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67051 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67052 $as_echo_n "checking for $ac_func... " >&6; }
67053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67054 $as_echo_n "(cached) " >&6
67056 cat >conftest.$ac_ext <<_ACEOF
67059 cat confdefs.h >>conftest.$ac_ext
67060 cat >>conftest.$ac_ext <<_ACEOF
67061 /* end confdefs.h. */
67062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67064 #define $ac_func innocuous_$ac_func
67066 /* System header to define __stub macros and hopefully few prototypes,
67067 which can conflict with char $ac_func (); below.
67068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67069 <limits.h> exists even on freestanding compilers. */
67072 # include <limits.h>
67074 # include <assert.h>
67079 /* Override any GCC internal prototype to avoid an error.
67080 Use char because int might match the return type of a GCC
67081 builtin and then its argument prototype would still apply. */
67086 /* The GNU C library defines this for functions which it implements
67087 to always fail with ENOSYS. Some functions are actually named
67088 something starting with __ and the normal name is an alias. */
67089 #if defined __stub_$ac_func || defined __stub___$ac_func
67096 return $ac_func ();
67101 rm -f conftest.$ac_objext conftest$ac_exeext
67102 if { (ac_try="$ac_link"
67103 case "(($ac_try" in
67104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67105 *) ac_try_echo=$ac_try;;
67107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67108 $as_echo "$ac_try_echo") >&5
67109 (eval "$ac_link") 2>conftest.er1
67111 grep -v '^ *+' conftest.er1 >conftest.err
67113 cat conftest.err >&5
67114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67115 (exit $ac_status); } && {
67116 test -z "$ac_c_werror_flag" ||
67117 test ! -s conftest.err
67118 } && test -s conftest$ac_exeext && {
67119 test "$cross_compiling" = yes ||
67120 $as_test_x conftest$ac_exeext
67122 eval "$as_ac_var=yes"
67124 $as_echo "$as_me: failed program was:" >&5
67125 sed 's/^/| /' conftest.$ac_ext >&5
67127 eval "$as_ac_var=no"
67130 rm -rf conftest.dSYM
67131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67132 conftest$ac_exeext conftest.$ac_ext
67134 ac_res=`eval 'as_val=${'$as_ac_var'}
67135 $as_echo "$as_val"'`
67136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67137 $as_echo "$ac_res" >&6; }
67138 as_val=`eval 'as_val=${'$as_ac_var'}
67139 $as_echo "$as_val"'`
67140 if test "x$as_val" = x""yes; then
67141 cat >>confdefs.h <<_ACEOF
67142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67144 ice_have_setegid=yes
67148 if test "${ice_have_setegid}" = yes; then
67149 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
67150 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
67151 if test "${ice_cv_have_setegid_decl+set}" = set; then
67152 $as_echo_n "(cached) " >&6
67155 ice_cv_have_setegid_decl=no
67156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67157 ice_re_word='(^|[^a-zA-Z0-9_])'
67158 for header in unistd.h; do
67159 # Check for ordinary declaration
67160 cat >conftest.$ac_ext <<_ACEOF
67163 cat confdefs.h >>conftest.$ac_ext
67164 cat >>conftest.$ac_ext <<_ACEOF
67165 /* end confdefs.h. */
67169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67170 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
67171 ice_cv_have_setegid_decl=yes
67175 if test "$ice_cv_have_setegid_decl" = yes; then
67178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67179 cat >conftest.$ac_ext <<_ACEOF
67182 cat confdefs.h >>conftest.$ac_ext
67183 cat >>conftest.$ac_ext <<_ACEOF
67184 /* end confdefs.h. */
67188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67189 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67190 ice_cv_have_setegid_decl=yes
67194 if test "$ice_cv_have_setegid_decl" = yes; then
67201 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
67202 $as_echo "$ice_cv_have_setegid_decl" >&6; }
67203 if test "$ice_cv_have_setegid_decl" = yes; then
67205 cat >>confdefs.h <<_ACEOF
67206 #define HAVE_SETEGID_DECL 1
67213 ice_have_seteuid=no
67215 for ac_func in seteuid
67217 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67219 $as_echo_n "checking for $ac_func... " >&6; }
67220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67221 $as_echo_n "(cached) " >&6
67223 cat >conftest.$ac_ext <<_ACEOF
67226 cat confdefs.h >>conftest.$ac_ext
67227 cat >>conftest.$ac_ext <<_ACEOF
67228 /* end confdefs.h. */
67229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67231 #define $ac_func innocuous_$ac_func
67233 /* System header to define __stub macros and hopefully few prototypes,
67234 which can conflict with char $ac_func (); below.
67235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67236 <limits.h> exists even on freestanding compilers. */
67239 # include <limits.h>
67241 # include <assert.h>
67246 /* Override any GCC internal prototype to avoid an error.
67247 Use char because int might match the return type of a GCC
67248 builtin and then its argument prototype would still apply. */
67253 /* The GNU C library defines this for functions which it implements
67254 to always fail with ENOSYS. Some functions are actually named
67255 something starting with __ and the normal name is an alias. */
67256 #if defined __stub_$ac_func || defined __stub___$ac_func
67263 return $ac_func ();
67268 rm -f conftest.$ac_objext conftest$ac_exeext
67269 if { (ac_try="$ac_link"
67270 case "(($ac_try" in
67271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67272 *) ac_try_echo=$ac_try;;
67274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67275 $as_echo "$ac_try_echo") >&5
67276 (eval "$ac_link") 2>conftest.er1
67278 grep -v '^ *+' conftest.er1 >conftest.err
67280 cat conftest.err >&5
67281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67282 (exit $ac_status); } && {
67283 test -z "$ac_c_werror_flag" ||
67284 test ! -s conftest.err
67285 } && test -s conftest$ac_exeext && {
67286 test "$cross_compiling" = yes ||
67287 $as_test_x conftest$ac_exeext
67289 eval "$as_ac_var=yes"
67291 $as_echo "$as_me: failed program was:" >&5
67292 sed 's/^/| /' conftest.$ac_ext >&5
67294 eval "$as_ac_var=no"
67297 rm -rf conftest.dSYM
67298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67299 conftest$ac_exeext conftest.$ac_ext
67301 ac_res=`eval 'as_val=${'$as_ac_var'}
67302 $as_echo "$as_val"'`
67303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67304 $as_echo "$ac_res" >&6; }
67305 as_val=`eval 'as_val=${'$as_ac_var'}
67306 $as_echo "$as_val"'`
67307 if test "x$as_val" = x""yes; then
67308 cat >>confdefs.h <<_ACEOF
67309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67311 ice_have_seteuid=yes
67315 if test "${ice_have_seteuid}" = yes; then
67316 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
67317 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
67318 if test "${ice_cv_have_seteuid_decl+set}" = set; then
67319 $as_echo_n "(cached) " >&6
67322 ice_cv_have_seteuid_decl=no
67323 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67324 ice_re_word='(^|[^a-zA-Z0-9_])'
67325 for header in unistd.h; do
67326 # Check for ordinary declaration
67327 cat >conftest.$ac_ext <<_ACEOF
67330 cat confdefs.h >>conftest.$ac_ext
67331 cat >>conftest.$ac_ext <<_ACEOF
67332 /* end confdefs.h. */
67336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67337 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
67338 ice_cv_have_seteuid_decl=yes
67342 if test "$ice_cv_have_seteuid_decl" = yes; then
67345 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67346 cat >conftest.$ac_ext <<_ACEOF
67349 cat confdefs.h >>conftest.$ac_ext
67350 cat >>conftest.$ac_ext <<_ACEOF
67351 /* end confdefs.h. */
67355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67356 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67357 ice_cv_have_seteuid_decl=yes
67361 if test "$ice_cv_have_seteuid_decl" = yes; then
67368 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
67369 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
67370 if test "$ice_cv_have_seteuid_decl" = yes; then
67372 cat >>confdefs.h <<_ACEOF
67373 #define HAVE_SETEUID_DECL 1
67380 ice_have_setresgid=no
67382 for ac_func in setresgid
67384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67386 $as_echo_n "checking for $ac_func... " >&6; }
67387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67388 $as_echo_n "(cached) " >&6
67390 cat >conftest.$ac_ext <<_ACEOF
67393 cat confdefs.h >>conftest.$ac_ext
67394 cat >>conftest.$ac_ext <<_ACEOF
67395 /* end confdefs.h. */
67396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67398 #define $ac_func innocuous_$ac_func
67400 /* System header to define __stub macros and hopefully few prototypes,
67401 which can conflict with char $ac_func (); below.
67402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67403 <limits.h> exists even on freestanding compilers. */
67406 # include <limits.h>
67408 # include <assert.h>
67413 /* Override any GCC internal prototype to avoid an error.
67414 Use char because int might match the return type of a GCC
67415 builtin and then its argument prototype would still apply. */
67420 /* The GNU C library defines this for functions which it implements
67421 to always fail with ENOSYS. Some functions are actually named
67422 something starting with __ and the normal name is an alias. */
67423 #if defined __stub_$ac_func || defined __stub___$ac_func
67430 return $ac_func ();
67435 rm -f conftest.$ac_objext conftest$ac_exeext
67436 if { (ac_try="$ac_link"
67437 case "(($ac_try" in
67438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67439 *) ac_try_echo=$ac_try;;
67441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67442 $as_echo "$ac_try_echo") >&5
67443 (eval "$ac_link") 2>conftest.er1
67445 grep -v '^ *+' conftest.er1 >conftest.err
67447 cat conftest.err >&5
67448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67449 (exit $ac_status); } && {
67450 test -z "$ac_c_werror_flag" ||
67451 test ! -s conftest.err
67452 } && test -s conftest$ac_exeext && {
67453 test "$cross_compiling" = yes ||
67454 $as_test_x conftest$ac_exeext
67456 eval "$as_ac_var=yes"
67458 $as_echo "$as_me: failed program was:" >&5
67459 sed 's/^/| /' conftest.$ac_ext >&5
67461 eval "$as_ac_var=no"
67464 rm -rf conftest.dSYM
67465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67466 conftest$ac_exeext conftest.$ac_ext
67468 ac_res=`eval 'as_val=${'$as_ac_var'}
67469 $as_echo "$as_val"'`
67470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67471 $as_echo "$ac_res" >&6; }
67472 as_val=`eval 'as_val=${'$as_ac_var'}
67473 $as_echo "$as_val"'`
67474 if test "x$as_val" = x""yes; then
67475 cat >>confdefs.h <<_ACEOF
67476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67478 ice_have_setresgid=yes
67482 if test "${ice_have_setresgid}" = yes; then
67483 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
67484 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
67485 if test "${ice_cv_have_setresgid_decl+set}" = set; then
67486 $as_echo_n "(cached) " >&6
67489 ice_cv_have_setresgid_decl=no
67490 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67491 ice_re_word='(^|[^a-zA-Z0-9_])'
67492 for header in unistd.h; do
67493 # Check for ordinary declaration
67494 cat >conftest.$ac_ext <<_ACEOF
67497 cat confdefs.h >>conftest.$ac_ext
67498 cat >>conftest.$ac_ext <<_ACEOF
67499 /* end confdefs.h. */
67503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67504 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
67505 ice_cv_have_setresgid_decl=yes
67509 if test "$ice_cv_have_setresgid_decl" = yes; then
67512 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67513 cat >conftest.$ac_ext <<_ACEOF
67516 cat confdefs.h >>conftest.$ac_ext
67517 cat >>conftest.$ac_ext <<_ACEOF
67518 /* end confdefs.h. */
67522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67523 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67524 ice_cv_have_setresgid_decl=yes
67528 if test "$ice_cv_have_setresgid_decl" = yes; then
67535 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
67536 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
67537 if test "$ice_cv_have_setresgid_decl" = yes; then
67539 cat >>confdefs.h <<_ACEOF
67540 #define HAVE_SETRESGID_DECL 1
67547 ice_have_setresuid=no
67549 for ac_func in setresuid
67551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67552 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67553 $as_echo_n "checking for $ac_func... " >&6; }
67554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67555 $as_echo_n "(cached) " >&6
67557 cat >conftest.$ac_ext <<_ACEOF
67560 cat confdefs.h >>conftest.$ac_ext
67561 cat >>conftest.$ac_ext <<_ACEOF
67562 /* end confdefs.h. */
67563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67565 #define $ac_func innocuous_$ac_func
67567 /* System header to define __stub macros and hopefully few prototypes,
67568 which can conflict with char $ac_func (); below.
67569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67570 <limits.h> exists even on freestanding compilers. */
67573 # include <limits.h>
67575 # include <assert.h>
67580 /* Override any GCC internal prototype to avoid an error.
67581 Use char because int might match the return type of a GCC
67582 builtin and then its argument prototype would still apply. */
67587 /* The GNU C library defines this for functions which it implements
67588 to always fail with ENOSYS. Some functions are actually named
67589 something starting with __ and the normal name is an alias. */
67590 #if defined __stub_$ac_func || defined __stub___$ac_func
67597 return $ac_func ();
67602 rm -f conftest.$ac_objext conftest$ac_exeext
67603 if { (ac_try="$ac_link"
67604 case "(($ac_try" in
67605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67606 *) ac_try_echo=$ac_try;;
67608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67609 $as_echo "$ac_try_echo") >&5
67610 (eval "$ac_link") 2>conftest.er1
67612 grep -v '^ *+' conftest.er1 >conftest.err
67614 cat conftest.err >&5
67615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67616 (exit $ac_status); } && {
67617 test -z "$ac_c_werror_flag" ||
67618 test ! -s conftest.err
67619 } && test -s conftest$ac_exeext && {
67620 test "$cross_compiling" = yes ||
67621 $as_test_x conftest$ac_exeext
67623 eval "$as_ac_var=yes"
67625 $as_echo "$as_me: failed program was:" >&5
67626 sed 's/^/| /' conftest.$ac_ext >&5
67628 eval "$as_ac_var=no"
67631 rm -rf conftest.dSYM
67632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67633 conftest$ac_exeext conftest.$ac_ext
67635 ac_res=`eval 'as_val=${'$as_ac_var'}
67636 $as_echo "$as_val"'`
67637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67638 $as_echo "$ac_res" >&6; }
67639 as_val=`eval 'as_val=${'$as_ac_var'}
67640 $as_echo "$as_val"'`
67641 if test "x$as_val" = x""yes; then
67642 cat >>confdefs.h <<_ACEOF
67643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67645 ice_have_setresuid=yes
67649 if test "${ice_have_setresuid}" = yes; then
67650 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
67651 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
67652 if test "${ice_cv_have_setresuid_decl+set}" = set; then
67653 $as_echo_n "(cached) " >&6
67656 ice_cv_have_setresuid_decl=no
67657 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67658 ice_re_word='(^|[^a-zA-Z0-9_])'
67659 for header in unistd.h; do
67660 # Check for ordinary declaration
67661 cat >conftest.$ac_ext <<_ACEOF
67664 cat confdefs.h >>conftest.$ac_ext
67665 cat >>conftest.$ac_ext <<_ACEOF
67666 /* end confdefs.h. */
67670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67671 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
67672 ice_cv_have_setresuid_decl=yes
67676 if test "$ice_cv_have_setresuid_decl" = yes; then
67679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67680 cat >conftest.$ac_ext <<_ACEOF
67683 cat confdefs.h >>conftest.$ac_ext
67684 cat >>conftest.$ac_ext <<_ACEOF
67685 /* end confdefs.h. */
67689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67690 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67691 ice_cv_have_setresuid_decl=yes
67695 if test "$ice_cv_have_setresuid_decl" = yes; then
67702 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
67703 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
67704 if test "$ice_cv_have_setresuid_decl" = yes; then
67706 cat >>confdefs.h <<_ACEOF
67707 #define HAVE_SETRESUID_DECL 1
67714 ice_have_snprintf=no
67716 for ac_func in snprintf
67718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67720 $as_echo_n "checking for $ac_func... " >&6; }
67721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67722 $as_echo_n "(cached) " >&6
67724 cat >conftest.$ac_ext <<_ACEOF
67727 cat confdefs.h >>conftest.$ac_ext
67728 cat >>conftest.$ac_ext <<_ACEOF
67729 /* end confdefs.h. */
67730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67732 #define $ac_func innocuous_$ac_func
67734 /* System header to define __stub macros and hopefully few prototypes,
67735 which can conflict with char $ac_func (); below.
67736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67737 <limits.h> exists even on freestanding compilers. */
67740 # include <limits.h>
67742 # include <assert.h>
67747 /* Override any GCC internal prototype to avoid an error.
67748 Use char because int might match the return type of a GCC
67749 builtin and then its argument prototype would still apply. */
67754 /* The GNU C library defines this for functions which it implements
67755 to always fail with ENOSYS. Some functions are actually named
67756 something starting with __ and the normal name is an alias. */
67757 #if defined __stub_$ac_func || defined __stub___$ac_func
67764 return $ac_func ();
67769 rm -f conftest.$ac_objext conftest$ac_exeext
67770 if { (ac_try="$ac_link"
67771 case "(($ac_try" in
67772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67773 *) ac_try_echo=$ac_try;;
67775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67776 $as_echo "$ac_try_echo") >&5
67777 (eval "$ac_link") 2>conftest.er1
67779 grep -v '^ *+' conftest.er1 >conftest.err
67781 cat conftest.err >&5
67782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67783 (exit $ac_status); } && {
67784 test -z "$ac_c_werror_flag" ||
67785 test ! -s conftest.err
67786 } && test -s conftest$ac_exeext && {
67787 test "$cross_compiling" = yes ||
67788 $as_test_x conftest$ac_exeext
67790 eval "$as_ac_var=yes"
67792 $as_echo "$as_me: failed program was:" >&5
67793 sed 's/^/| /' conftest.$ac_ext >&5
67795 eval "$as_ac_var=no"
67798 rm -rf conftest.dSYM
67799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67800 conftest$ac_exeext conftest.$ac_ext
67802 ac_res=`eval 'as_val=${'$as_ac_var'}
67803 $as_echo "$as_val"'`
67804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67805 $as_echo "$ac_res" >&6; }
67806 as_val=`eval 'as_val=${'$as_ac_var'}
67807 $as_echo "$as_val"'`
67808 if test "x$as_val" = x""yes; then
67809 cat >>confdefs.h <<_ACEOF
67810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67812 ice_have_snprintf=yes
67816 if test "${ice_have_snprintf}" = yes; then
67817 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
67818 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
67819 if test "${ice_cv_have_snprintf_decl+set}" = set; then
67820 $as_echo_n "(cached) " >&6
67823 ice_cv_have_snprintf_decl=no
67824 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67825 ice_re_word='(^|[^a-zA-Z0-9_])'
67826 for header in stdio.h; do
67827 # Check for ordinary declaration
67828 cat >conftest.$ac_ext <<_ACEOF
67831 cat confdefs.h >>conftest.$ac_ext
67832 cat >>conftest.$ac_ext <<_ACEOF
67833 /* end confdefs.h. */
67837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67838 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
67839 ice_cv_have_snprintf_decl=yes
67843 if test "$ice_cv_have_snprintf_decl" = yes; then
67846 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67847 cat >conftest.$ac_ext <<_ACEOF
67850 cat confdefs.h >>conftest.$ac_ext
67851 cat >>conftest.$ac_ext <<_ACEOF
67852 /* end confdefs.h. */
67856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67857 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67858 ice_cv_have_snprintf_decl=yes
67862 if test "$ice_cv_have_snprintf_decl" = yes; then
67869 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
67870 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
67871 if test "$ice_cv_have_snprintf_decl" = yes; then
67873 cat >>confdefs.h <<_ACEOF
67874 #define HAVE_SNPRINTF_DECL 1
67881 ice_have_vsnprintf=no
67883 for ac_func in vsnprintf
67885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67887 $as_echo_n "checking for $ac_func... " >&6; }
67888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67889 $as_echo_n "(cached) " >&6
67891 cat >conftest.$ac_ext <<_ACEOF
67894 cat confdefs.h >>conftest.$ac_ext
67895 cat >>conftest.$ac_ext <<_ACEOF
67896 /* end confdefs.h. */
67897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67899 #define $ac_func innocuous_$ac_func
67901 /* System header to define __stub macros and hopefully few prototypes,
67902 which can conflict with char $ac_func (); below.
67903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67904 <limits.h> exists even on freestanding compilers. */
67907 # include <limits.h>
67909 # include <assert.h>
67914 /* Override any GCC internal prototype to avoid an error.
67915 Use char because int might match the return type of a GCC
67916 builtin and then its argument prototype would still apply. */
67921 /* The GNU C library defines this for functions which it implements
67922 to always fail with ENOSYS. Some functions are actually named
67923 something starting with __ and the normal name is an alias. */
67924 #if defined __stub_$ac_func || defined __stub___$ac_func
67931 return $ac_func ();
67936 rm -f conftest.$ac_objext conftest$ac_exeext
67937 if { (ac_try="$ac_link"
67938 case "(($ac_try" in
67939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67940 *) ac_try_echo=$ac_try;;
67942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67943 $as_echo "$ac_try_echo") >&5
67944 (eval "$ac_link") 2>conftest.er1
67946 grep -v '^ *+' conftest.er1 >conftest.err
67948 cat conftest.err >&5
67949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67950 (exit $ac_status); } && {
67951 test -z "$ac_c_werror_flag" ||
67952 test ! -s conftest.err
67953 } && test -s conftest$ac_exeext && {
67954 test "$cross_compiling" = yes ||
67955 $as_test_x conftest$ac_exeext
67957 eval "$as_ac_var=yes"
67959 $as_echo "$as_me: failed program was:" >&5
67960 sed 's/^/| /' conftest.$ac_ext >&5
67962 eval "$as_ac_var=no"
67965 rm -rf conftest.dSYM
67966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67967 conftest$ac_exeext conftest.$ac_ext
67969 ac_res=`eval 'as_val=${'$as_ac_var'}
67970 $as_echo "$as_val"'`
67971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67972 $as_echo "$ac_res" >&6; }
67973 as_val=`eval 'as_val=${'$as_ac_var'}
67974 $as_echo "$as_val"'`
67975 if test "x$as_val" = x""yes; then
67976 cat >>confdefs.h <<_ACEOF
67977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67979 ice_have_vsnprintf=yes
67983 if test "${ice_have_vsnprintf}" = yes; then
67984 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
67985 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
67986 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
67987 $as_echo_n "(cached) " >&6
67990 ice_cv_have_vsnprintf_decl=no
67991 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67992 ice_re_word='(^|[^a-zA-Z0-9_])'
67993 for header in stdio.h; do
67994 # Check for ordinary declaration
67995 cat >conftest.$ac_ext <<_ACEOF
67998 cat confdefs.h >>conftest.$ac_ext
67999 cat >>conftest.$ac_ext <<_ACEOF
68000 /* end confdefs.h. */
68004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68005 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
68006 ice_cv_have_vsnprintf_decl=yes
68010 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68013 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68014 cat >conftest.$ac_ext <<_ACEOF
68017 cat confdefs.h >>conftest.$ac_ext
68018 cat >>conftest.$ac_ext <<_ACEOF
68019 /* end confdefs.h. */
68023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68024 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68025 ice_cv_have_vsnprintf_decl=yes
68029 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68036 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
68037 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
68038 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68040 cat >>confdefs.h <<_ACEOF
68041 #define HAVE_VSNPRINTF_DECL 1
68048 { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
68049 $as_echo_n "checking for setpgid... " >&6; }
68050 if test "${ac_cv_func_setpgid+set}" = set; then
68051 $as_echo_n "(cached) " >&6
68053 cat >conftest.$ac_ext <<_ACEOF
68056 cat confdefs.h >>conftest.$ac_ext
68057 cat >>conftest.$ac_ext <<_ACEOF
68058 /* end confdefs.h. */
68059 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
68060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68061 #define setpgid innocuous_setpgid
68063 /* System header to define __stub macros and hopefully few prototypes,
68064 which can conflict with char setpgid (); below.
68065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68066 <limits.h> exists even on freestanding compilers. */
68069 # include <limits.h>
68071 # include <assert.h>
68076 /* Override any GCC internal prototype to avoid an error.
68077 Use char because int might match the return type of a GCC
68078 builtin and then its argument prototype would still apply. */
68083 /* The GNU C library defines this for functions which it implements
68084 to always fail with ENOSYS. Some functions are actually named
68085 something starting with __ and the normal name is an alias. */
68086 #if defined __stub_setpgid || defined __stub___setpgid
68098 rm -f conftest.$ac_objext conftest$ac_exeext
68099 if { (ac_try="$ac_link"
68100 case "(($ac_try" in
68101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68102 *) ac_try_echo=$ac_try;;
68104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68105 $as_echo "$ac_try_echo") >&5
68106 (eval "$ac_link") 2>conftest.er1
68108 grep -v '^ *+' conftest.er1 >conftest.err
68110 cat conftest.err >&5
68111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68112 (exit $ac_status); } && {
68113 test -z "$ac_c_werror_flag" ||
68114 test ! -s conftest.err
68115 } && test -s conftest$ac_exeext && {
68116 test "$cross_compiling" = yes ||
68117 $as_test_x conftest$ac_exeext
68119 ac_cv_func_setpgid=yes
68121 $as_echo "$as_me: failed program was:" >&5
68122 sed 's/^/| /' conftest.$ac_ext >&5
68124 ac_cv_func_setpgid=no
68127 rm -rf conftest.dSYM
68128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68129 conftest$ac_exeext conftest.$ac_ext
68131 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68132 $as_echo "$ac_cv_func_setpgid" >&6; }
68133 if test "x$ac_cv_func_setpgid" = x""yes; then
68136 cat >>confdefs.h <<\_ACEOF
68137 #define HAVE_SETPGID 1
68141 ice_have_setpgid=no
68143 for ac_func in setpgid
68145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68146 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68147 $as_echo_n "checking for $ac_func... " >&6; }
68148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68149 $as_echo_n "(cached) " >&6
68151 cat >conftest.$ac_ext <<_ACEOF
68154 cat confdefs.h >>conftest.$ac_ext
68155 cat >>conftest.$ac_ext <<_ACEOF
68156 /* end confdefs.h. */
68157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68159 #define $ac_func innocuous_$ac_func
68161 /* System header to define __stub macros and hopefully few prototypes,
68162 which can conflict with char $ac_func (); below.
68163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68164 <limits.h> exists even on freestanding compilers. */
68167 # include <limits.h>
68169 # include <assert.h>
68174 /* Override any GCC internal prototype to avoid an error.
68175 Use char because int might match the return type of a GCC
68176 builtin and then its argument prototype would still apply. */
68181 /* The GNU C library defines this for functions which it implements
68182 to always fail with ENOSYS. Some functions are actually named
68183 something starting with __ and the normal name is an alias. */
68184 #if defined __stub_$ac_func || defined __stub___$ac_func
68191 return $ac_func ();
68196 rm -f conftest.$ac_objext conftest$ac_exeext
68197 if { (ac_try="$ac_link"
68198 case "(($ac_try" in
68199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68200 *) ac_try_echo=$ac_try;;
68202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68203 $as_echo "$ac_try_echo") >&5
68204 (eval "$ac_link") 2>conftest.er1
68206 grep -v '^ *+' conftest.er1 >conftest.err
68208 cat conftest.err >&5
68209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68210 (exit $ac_status); } && {
68211 test -z "$ac_c_werror_flag" ||
68212 test ! -s conftest.err
68213 } && test -s conftest$ac_exeext && {
68214 test "$cross_compiling" = yes ||
68215 $as_test_x conftest$ac_exeext
68217 eval "$as_ac_var=yes"
68219 $as_echo "$as_me: failed program was:" >&5
68220 sed 's/^/| /' conftest.$ac_ext >&5
68222 eval "$as_ac_var=no"
68225 rm -rf conftest.dSYM
68226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68227 conftest$ac_exeext conftest.$ac_ext
68229 ac_res=`eval 'as_val=${'$as_ac_var'}
68230 $as_echo "$as_val"'`
68231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68232 $as_echo "$ac_res" >&6; }
68233 as_val=`eval 'as_val=${'$as_ac_var'}
68234 $as_echo "$as_val"'`
68235 if test "x$as_val" = x""yes; then
68236 cat >>confdefs.h <<_ACEOF
68237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68239 ice_have_setpgid=yes
68243 if test "${ice_have_setpgid}" = yes; then
68244 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
68245 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
68246 if test "${ice_cv_have_setpgid_decl+set}" = set; then
68247 $as_echo_n "(cached) " >&6
68250 ice_cv_have_setpgid_decl=no
68251 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68252 ice_re_word='(^|[^a-zA-Z0-9_])'
68253 for header in sys/types.h unistd.h; do
68254 # Check for ordinary declaration
68255 cat >conftest.$ac_ext <<_ACEOF
68258 cat confdefs.h >>conftest.$ac_ext
68259 cat >>conftest.$ac_ext <<_ACEOF
68260 /* end confdefs.h. */
68264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68265 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
68266 ice_cv_have_setpgid_decl=yes
68270 if test "$ice_cv_have_setpgid_decl" = yes; then
68273 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68274 cat >conftest.$ac_ext <<_ACEOF
68277 cat confdefs.h >>conftest.$ac_ext
68278 cat >>conftest.$ac_ext <<_ACEOF
68279 /* end confdefs.h. */
68283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68284 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68285 ice_cv_have_setpgid_decl=yes
68289 if test "$ice_cv_have_setpgid_decl" = yes; then
68296 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
68297 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
68298 if test "$ice_cv_have_setpgid_decl" = yes; then
68300 cat >>confdefs.h <<_ACEOF
68301 #define HAVE_SETPGID_DECL 1
68311 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
68312 $as_echo_n "checking for setpgrp... " >&6; }
68313 if test "${ac_cv_func_setpgrp+set}" = set; then
68314 $as_echo_n "(cached) " >&6
68316 cat >conftest.$ac_ext <<_ACEOF
68319 cat confdefs.h >>conftest.$ac_ext
68320 cat >>conftest.$ac_ext <<_ACEOF
68321 /* end confdefs.h. */
68322 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
68323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68324 #define setpgrp innocuous_setpgrp
68326 /* System header to define __stub macros and hopefully few prototypes,
68327 which can conflict with char setpgrp (); below.
68328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68329 <limits.h> exists even on freestanding compilers. */
68332 # include <limits.h>
68334 # include <assert.h>
68339 /* Override any GCC internal prototype to avoid an error.
68340 Use char because int might match the return type of a GCC
68341 builtin and then its argument prototype would still apply. */
68346 /* The GNU C library defines this for functions which it implements
68347 to always fail with ENOSYS. Some functions are actually named
68348 something starting with __ and the normal name is an alias. */
68349 #if defined __stub_setpgrp || defined __stub___setpgrp
68361 rm -f conftest.$ac_objext conftest$ac_exeext
68362 if { (ac_try="$ac_link"
68363 case "(($ac_try" in
68364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68365 *) ac_try_echo=$ac_try;;
68367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68368 $as_echo "$ac_try_echo") >&5
68369 (eval "$ac_link") 2>conftest.er1
68371 grep -v '^ *+' conftest.er1 >conftest.err
68373 cat conftest.err >&5
68374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68375 (exit $ac_status); } && {
68376 test -z "$ac_c_werror_flag" ||
68377 test ! -s conftest.err
68378 } && test -s conftest$ac_exeext && {
68379 test "$cross_compiling" = yes ||
68380 $as_test_x conftest$ac_exeext
68382 ac_cv_func_setpgrp=yes
68384 $as_echo "$as_me: failed program was:" >&5
68385 sed 's/^/| /' conftest.$ac_ext >&5
68387 ac_cv_func_setpgrp=no
68390 rm -rf conftest.dSYM
68391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68392 conftest$ac_exeext conftest.$ac_ext
68394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
68395 $as_echo "$ac_cv_func_setpgrp" >&6; }
68396 if test "x$ac_cv_func_setpgrp" = x""yes; then
68397 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
68398 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
68399 if test "${ac_cv_func_setpgrp_void+set}" = set; then
68400 $as_echo_n "(cached) " >&6
68402 if test "$cross_compiling" = yes; then
68403 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
68404 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
68405 { (exit 1); exit 1; }; }
68407 cat >conftest.$ac_ext <<_ACEOF
68410 cat confdefs.h >>conftest.$ac_ext
68411 cat >>conftest.$ac_ext <<_ACEOF
68412 /* end confdefs.h. */
68413 $ac_includes_default
68417 /* If this system has a BSD-style setpgrp which takes arguments,
68418 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
68419 exit successfully. */
68420 return setpgrp (1,1) != -1;
68425 rm -f conftest$ac_exeext
68426 if { (ac_try="$ac_link"
68427 case "(($ac_try" in
68428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68429 *) ac_try_echo=$ac_try;;
68431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68432 $as_echo "$ac_try_echo") >&5
68433 (eval "$ac_link") 2>&5
68435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
68437 { (case "(($ac_try" in
68438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68439 *) ac_try_echo=$ac_try;;
68441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68442 $as_echo "$ac_try_echo") >&5
68443 (eval "$ac_try") 2>&5
68445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68446 (exit $ac_status); }; }; then
68447 ac_cv_func_setpgrp_void=no
68449 $as_echo "$as_me: program exited with status $ac_status" >&5
68450 $as_echo "$as_me: failed program was:" >&5
68451 sed 's/^/| /' conftest.$ac_ext >&5
68453 ( exit $ac_status )
68454 ac_cv_func_setpgrp_void=yes
68456 rm -rf conftest.dSYM
68457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68462 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
68463 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
68464 if test $ac_cv_func_setpgrp_void = yes; then
68466 cat >>confdefs.h <<\_ACEOF
68467 #define SETPGRP_VOID 1
68475 ice_have_setpgrp=no
68477 for ac_func in setpgrp
68479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68481 $as_echo_n "checking for $ac_func... " >&6; }
68482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68483 $as_echo_n "(cached) " >&6
68485 cat >conftest.$ac_ext <<_ACEOF
68488 cat confdefs.h >>conftest.$ac_ext
68489 cat >>conftest.$ac_ext <<_ACEOF
68490 /* end confdefs.h. */
68491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68493 #define $ac_func innocuous_$ac_func
68495 /* System header to define __stub macros and hopefully few prototypes,
68496 which can conflict with char $ac_func (); below.
68497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68498 <limits.h> exists even on freestanding compilers. */
68501 # include <limits.h>
68503 # include <assert.h>
68508 /* Override any GCC internal prototype to avoid an error.
68509 Use char because int might match the return type of a GCC
68510 builtin and then its argument prototype would still apply. */
68515 /* The GNU C library defines this for functions which it implements
68516 to always fail with ENOSYS. Some functions are actually named
68517 something starting with __ and the normal name is an alias. */
68518 #if defined __stub_$ac_func || defined __stub___$ac_func
68525 return $ac_func ();
68530 rm -f conftest.$ac_objext conftest$ac_exeext
68531 if { (ac_try="$ac_link"
68532 case "(($ac_try" in
68533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68534 *) ac_try_echo=$ac_try;;
68536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68537 $as_echo "$ac_try_echo") >&5
68538 (eval "$ac_link") 2>conftest.er1
68540 grep -v '^ *+' conftest.er1 >conftest.err
68542 cat conftest.err >&5
68543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68544 (exit $ac_status); } && {
68545 test -z "$ac_c_werror_flag" ||
68546 test ! -s conftest.err
68547 } && test -s conftest$ac_exeext && {
68548 test "$cross_compiling" = yes ||
68549 $as_test_x conftest$ac_exeext
68551 eval "$as_ac_var=yes"
68553 $as_echo "$as_me: failed program was:" >&5
68554 sed 's/^/| /' conftest.$ac_ext >&5
68556 eval "$as_ac_var=no"
68559 rm -rf conftest.dSYM
68560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68561 conftest$ac_exeext conftest.$ac_ext
68563 ac_res=`eval 'as_val=${'$as_ac_var'}
68564 $as_echo "$as_val"'`
68565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68566 $as_echo "$ac_res" >&6; }
68567 as_val=`eval 'as_val=${'$as_ac_var'}
68568 $as_echo "$as_val"'`
68569 if test "x$as_val" = x""yes; then
68570 cat >>confdefs.h <<_ACEOF
68571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68573 ice_have_setpgrp=yes
68577 if test "${ice_have_setpgrp}" = yes; then
68578 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
68579 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
68580 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
68581 $as_echo_n "(cached) " >&6
68584 ice_cv_have_setpgrp_decl=no
68585 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68586 ice_re_word='(^|[^a-zA-Z0-9_])'
68587 for header in sys/types.h unistd.h libc.h; do
68588 # Check for ordinary declaration
68589 cat >conftest.$ac_ext <<_ACEOF
68592 cat confdefs.h >>conftest.$ac_ext
68593 cat >>conftest.$ac_ext <<_ACEOF
68594 /* end confdefs.h. */
68598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68599 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
68600 ice_cv_have_setpgrp_decl=yes
68604 if test "$ice_cv_have_setpgrp_decl" = yes; then
68607 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68608 cat >conftest.$ac_ext <<_ACEOF
68611 cat confdefs.h >>conftest.$ac_ext
68612 cat >>conftest.$ac_ext <<_ACEOF
68613 /* end confdefs.h. */
68617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68618 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68619 ice_cv_have_setpgrp_decl=yes
68623 if test "$ice_cv_have_setpgrp_decl" = yes; then
68630 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
68631 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
68632 if test "$ice_cv_have_setpgrp_decl" = yes; then
68634 cat >>confdefs.h <<_ACEOF
68635 #define HAVE_SETPGRP_DECL 1
68642 ice_have_setsockopt=no
68644 for ac_func in setsockopt
68646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68648 $as_echo_n "checking for $ac_func... " >&6; }
68649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68650 $as_echo_n "(cached) " >&6
68652 cat >conftest.$ac_ext <<_ACEOF
68655 cat confdefs.h >>conftest.$ac_ext
68656 cat >>conftest.$ac_ext <<_ACEOF
68657 /* end confdefs.h. */
68658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68660 #define $ac_func innocuous_$ac_func
68662 /* System header to define __stub macros and hopefully few prototypes,
68663 which can conflict with char $ac_func (); below.
68664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68665 <limits.h> exists even on freestanding compilers. */
68668 # include <limits.h>
68670 # include <assert.h>
68675 /* Override any GCC internal prototype to avoid an error.
68676 Use char because int might match the return type of a GCC
68677 builtin and then its argument prototype would still apply. */
68682 /* The GNU C library defines this for functions which it implements
68683 to always fail with ENOSYS. Some functions are actually named
68684 something starting with __ and the normal name is an alias. */
68685 #if defined __stub_$ac_func || defined __stub___$ac_func
68692 return $ac_func ();
68697 rm -f conftest.$ac_objext conftest$ac_exeext
68698 if { (ac_try="$ac_link"
68699 case "(($ac_try" in
68700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68701 *) ac_try_echo=$ac_try;;
68703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68704 $as_echo "$ac_try_echo") >&5
68705 (eval "$ac_link") 2>conftest.er1
68707 grep -v '^ *+' conftest.er1 >conftest.err
68709 cat conftest.err >&5
68710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68711 (exit $ac_status); } && {
68712 test -z "$ac_c_werror_flag" ||
68713 test ! -s conftest.err
68714 } && test -s conftest$ac_exeext && {
68715 test "$cross_compiling" = yes ||
68716 $as_test_x conftest$ac_exeext
68718 eval "$as_ac_var=yes"
68720 $as_echo "$as_me: failed program was:" >&5
68721 sed 's/^/| /' conftest.$ac_ext >&5
68723 eval "$as_ac_var=no"
68726 rm -rf conftest.dSYM
68727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68728 conftest$ac_exeext conftest.$ac_ext
68730 ac_res=`eval 'as_val=${'$as_ac_var'}
68731 $as_echo "$as_val"'`
68732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68733 $as_echo "$ac_res" >&6; }
68734 as_val=`eval 'as_val=${'$as_ac_var'}
68735 $as_echo "$as_val"'`
68736 if test "x$as_val" = x""yes; then
68737 cat >>confdefs.h <<_ACEOF
68738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68740 ice_have_setsockopt=yes
68744 if test "${ice_have_setsockopt}" = yes; then
68745 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
68746 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
68747 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
68748 $as_echo_n "(cached) " >&6
68751 ice_cv_have_setsockopt_decl=no
68752 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68753 ice_re_word='(^|[^a-zA-Z0-9_])'
68754 for header in sys/types.h sys/socket.h; do
68755 # Check for ordinary declaration
68756 cat >conftest.$ac_ext <<_ACEOF
68759 cat confdefs.h >>conftest.$ac_ext
68760 cat >>conftest.$ac_ext <<_ACEOF
68761 /* end confdefs.h. */
68765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68766 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
68767 ice_cv_have_setsockopt_decl=yes
68771 if test "$ice_cv_have_setsockopt_decl" = yes; then
68774 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68775 cat >conftest.$ac_ext <<_ACEOF
68778 cat confdefs.h >>conftest.$ac_ext
68779 cat >>conftest.$ac_ext <<_ACEOF
68780 /* end confdefs.h. */
68784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68785 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68786 ice_cv_have_setsockopt_decl=yes
68790 if test "$ice_cv_have_setsockopt_decl" = yes; then
68797 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
68798 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
68799 if test "$ice_cv_have_setsockopt_decl" = yes; then
68801 cat >>confdefs.h <<_ACEOF
68802 #define HAVE_SETSOCKOPT_DECL 1
68811 for ac_func in sigaction sigemptyset sigvec
68813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68814 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68815 $as_echo_n "checking for $ac_func... " >&6; }
68816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68817 $as_echo_n "(cached) " >&6
68819 cat >conftest.$ac_ext <<_ACEOF
68822 cat confdefs.h >>conftest.$ac_ext
68823 cat >>conftest.$ac_ext <<_ACEOF
68824 /* end confdefs.h. */
68825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68827 #define $ac_func innocuous_$ac_func
68829 /* System header to define __stub macros and hopefully few prototypes,
68830 which can conflict with char $ac_func (); below.
68831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68832 <limits.h> exists even on freestanding compilers. */
68835 # include <limits.h>
68837 # include <assert.h>
68842 /* Override any GCC internal prototype to avoid an error.
68843 Use char because int might match the return type of a GCC
68844 builtin and then its argument prototype would still apply. */
68849 /* The GNU C library defines this for functions which it implements
68850 to always fail with ENOSYS. Some functions are actually named
68851 something starting with __ and the normal name is an alias. */
68852 #if defined __stub_$ac_func || defined __stub___$ac_func
68859 return $ac_func ();
68864 rm -f conftest.$ac_objext conftest$ac_exeext
68865 if { (ac_try="$ac_link"
68866 case "(($ac_try" in
68867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68868 *) ac_try_echo=$ac_try;;
68870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68871 $as_echo "$ac_try_echo") >&5
68872 (eval "$ac_link") 2>conftest.er1
68874 grep -v '^ *+' conftest.er1 >conftest.err
68876 cat conftest.err >&5
68877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68878 (exit $ac_status); } && {
68879 test -z "$ac_c_werror_flag" ||
68880 test ! -s conftest.err
68881 } && test -s conftest$ac_exeext && {
68882 test "$cross_compiling" = yes ||
68883 $as_test_x conftest$ac_exeext
68885 eval "$as_ac_var=yes"
68887 $as_echo "$as_me: failed program was:" >&5
68888 sed 's/^/| /' conftest.$ac_ext >&5
68890 eval "$as_ac_var=no"
68893 rm -rf conftest.dSYM
68894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68895 conftest$ac_exeext conftest.$ac_ext
68897 ac_res=`eval 'as_val=${'$as_ac_var'}
68898 $as_echo "$as_val"'`
68899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68900 $as_echo "$ac_res" >&6; }
68901 as_val=`eval 'as_val=${'$as_ac_var'}
68902 $as_echo "$as_val"'`
68903 if test "x$as_val" = x""yes; then
68904 cat >>confdefs.h <<_ACEOF
68905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68914 for ac_func in socket
68916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68918 $as_echo_n "checking for $ac_func... " >&6; }
68919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68920 $as_echo_n "(cached) " >&6
68922 cat >conftest.$ac_ext <<_ACEOF
68925 cat confdefs.h >>conftest.$ac_ext
68926 cat >>conftest.$ac_ext <<_ACEOF
68927 /* end confdefs.h. */
68928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68930 #define $ac_func innocuous_$ac_func
68932 /* System header to define __stub macros and hopefully few prototypes,
68933 which can conflict with char $ac_func (); below.
68934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68935 <limits.h> exists even on freestanding compilers. */
68938 # include <limits.h>
68940 # include <assert.h>
68945 /* Override any GCC internal prototype to avoid an error.
68946 Use char because int might match the return type of a GCC
68947 builtin and then its argument prototype would still apply. */
68952 /* The GNU C library defines this for functions which it implements
68953 to always fail with ENOSYS. Some functions are actually named
68954 something starting with __ and the normal name is an alias. */
68955 #if defined __stub_$ac_func || defined __stub___$ac_func
68962 return $ac_func ();
68967 rm -f conftest.$ac_objext conftest$ac_exeext
68968 if { (ac_try="$ac_link"
68969 case "(($ac_try" in
68970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68971 *) ac_try_echo=$ac_try;;
68973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68974 $as_echo "$ac_try_echo") >&5
68975 (eval "$ac_link") 2>conftest.er1
68977 grep -v '^ *+' conftest.er1 >conftest.err
68979 cat conftest.err >&5
68980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68981 (exit $ac_status); } && {
68982 test -z "$ac_c_werror_flag" ||
68983 test ! -s conftest.err
68984 } && test -s conftest$ac_exeext && {
68985 test "$cross_compiling" = yes ||
68986 $as_test_x conftest$ac_exeext
68988 eval "$as_ac_var=yes"
68990 $as_echo "$as_me: failed program was:" >&5
68991 sed 's/^/| /' conftest.$ac_ext >&5
68993 eval "$as_ac_var=no"
68996 rm -rf conftest.dSYM
68997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68998 conftest$ac_exeext conftest.$ac_ext
69000 ac_res=`eval 'as_val=${'$as_ac_var'}
69001 $as_echo "$as_val"'`
69002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69003 $as_echo "$ac_res" >&6; }
69004 as_val=`eval 'as_val=${'$as_ac_var'}
69005 $as_echo "$as_val"'`
69006 if test "x$as_val" = x""yes; then
69007 cat >>confdefs.h <<_ACEOF
69008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69010 ice_have_socket=yes
69014 if test "${ice_have_socket}" = yes; then
69015 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
69016 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
69017 if test "${ice_cv_have_socket_decl+set}" = set; then
69018 $as_echo_n "(cached) " >&6
69021 ice_cv_have_socket_decl=no
69022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69023 ice_re_word='(^|[^a-zA-Z0-9_])'
69024 for header in sys/types.h sys/socket.h; do
69025 # Check for ordinary declaration
69026 cat >conftest.$ac_ext <<_ACEOF
69029 cat confdefs.h >>conftest.$ac_ext
69030 cat >>conftest.$ac_ext <<_ACEOF
69031 /* end confdefs.h. */
69035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69036 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
69037 ice_cv_have_socket_decl=yes
69041 if test "$ice_cv_have_socket_decl" = yes; then
69044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69045 cat >conftest.$ac_ext <<_ACEOF
69048 cat confdefs.h >>conftest.$ac_ext
69049 cat >>conftest.$ac_ext <<_ACEOF
69050 /* end confdefs.h. */
69054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69055 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69056 ice_cv_have_socket_decl=yes
69060 if test "$ice_cv_have_socket_decl" = yes; then
69067 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
69068 $as_echo "$ice_cv_have_socket_decl" >&6; }
69069 if test "$ice_cv_have_socket_decl" = yes; then
69071 cat >>confdefs.h <<_ACEOF
69072 #define HAVE_SOCKET_DECL 1
69079 ice_have_socketpair=no
69081 for ac_func in socketpair
69083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69085 $as_echo_n "checking for $ac_func... " >&6; }
69086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69087 $as_echo_n "(cached) " >&6
69089 cat >conftest.$ac_ext <<_ACEOF
69092 cat confdefs.h >>conftest.$ac_ext
69093 cat >>conftest.$ac_ext <<_ACEOF
69094 /* end confdefs.h. */
69095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69097 #define $ac_func innocuous_$ac_func
69099 /* System header to define __stub macros and hopefully few prototypes,
69100 which can conflict with char $ac_func (); below.
69101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69102 <limits.h> exists even on freestanding compilers. */
69105 # include <limits.h>
69107 # include <assert.h>
69112 /* Override any GCC internal prototype to avoid an error.
69113 Use char because int might match the return type of a GCC
69114 builtin and then its argument prototype would still apply. */
69119 /* The GNU C library defines this for functions which it implements
69120 to always fail with ENOSYS. Some functions are actually named
69121 something starting with __ and the normal name is an alias. */
69122 #if defined __stub_$ac_func || defined __stub___$ac_func
69129 return $ac_func ();
69134 rm -f conftest.$ac_objext conftest$ac_exeext
69135 if { (ac_try="$ac_link"
69136 case "(($ac_try" in
69137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69138 *) ac_try_echo=$ac_try;;
69140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69141 $as_echo "$ac_try_echo") >&5
69142 (eval "$ac_link") 2>conftest.er1
69144 grep -v '^ *+' conftest.er1 >conftest.err
69146 cat conftest.err >&5
69147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69148 (exit $ac_status); } && {
69149 test -z "$ac_c_werror_flag" ||
69150 test ! -s conftest.err
69151 } && test -s conftest$ac_exeext && {
69152 test "$cross_compiling" = yes ||
69153 $as_test_x conftest$ac_exeext
69155 eval "$as_ac_var=yes"
69157 $as_echo "$as_me: failed program was:" >&5
69158 sed 's/^/| /' conftest.$ac_ext >&5
69160 eval "$as_ac_var=no"
69163 rm -rf conftest.dSYM
69164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69165 conftest$ac_exeext conftest.$ac_ext
69167 ac_res=`eval 'as_val=${'$as_ac_var'}
69168 $as_echo "$as_val"'`
69169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69170 $as_echo "$ac_res" >&6; }
69171 as_val=`eval 'as_val=${'$as_ac_var'}
69172 $as_echo "$as_val"'`
69173 if test "x$as_val" = x""yes; then
69174 cat >>confdefs.h <<_ACEOF
69175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69177 ice_have_socketpair=yes
69181 if test "${ice_have_socketpair}" = yes; then
69182 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
69183 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
69184 if test "${ice_cv_have_socketpair_decl+set}" = set; then
69185 $as_echo_n "(cached) " >&6
69188 ice_cv_have_socketpair_decl=no
69189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69190 ice_re_word='(^|[^a-zA-Z0-9_])'
69191 for header in sys/types.h sys/socket.h; do
69192 # Check for ordinary declaration
69193 cat >conftest.$ac_ext <<_ACEOF
69196 cat confdefs.h >>conftest.$ac_ext
69197 cat >>conftest.$ac_ext <<_ACEOF
69198 /* end confdefs.h. */
69202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69203 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
69204 ice_cv_have_socketpair_decl=yes
69208 if test "$ice_cv_have_socketpair_decl" = yes; then
69211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69212 cat >conftest.$ac_ext <<_ACEOF
69215 cat confdefs.h >>conftest.$ac_ext
69216 cat >>conftest.$ac_ext <<_ACEOF
69217 /* end confdefs.h. */
69221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69222 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69223 ice_cv_have_socketpair_decl=yes
69227 if test "$ice_cv_have_socketpair_decl" = yes; then
69234 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
69235 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
69236 if test "$ice_cv_have_socketpair_decl" = yes; then
69238 cat >>confdefs.h <<_ACEOF
69239 #define HAVE_SOCKETPAIR_DECL 1
69248 for ac_func in sscanf
69250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69252 $as_echo_n "checking for $ac_func... " >&6; }
69253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69254 $as_echo_n "(cached) " >&6
69256 cat >conftest.$ac_ext <<_ACEOF
69259 cat confdefs.h >>conftest.$ac_ext
69260 cat >>conftest.$ac_ext <<_ACEOF
69261 /* end confdefs.h. */
69262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69264 #define $ac_func innocuous_$ac_func
69266 /* System header to define __stub macros and hopefully few prototypes,
69267 which can conflict with char $ac_func (); below.
69268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69269 <limits.h> exists even on freestanding compilers. */
69272 # include <limits.h>
69274 # include <assert.h>
69279 /* Override any GCC internal prototype to avoid an error.
69280 Use char because int might match the return type of a GCC
69281 builtin and then its argument prototype would still apply. */
69286 /* The GNU C library defines this for functions which it implements
69287 to always fail with ENOSYS. Some functions are actually named
69288 something starting with __ and the normal name is an alias. */
69289 #if defined __stub_$ac_func || defined __stub___$ac_func
69296 return $ac_func ();
69301 rm -f conftest.$ac_objext conftest$ac_exeext
69302 if { (ac_try="$ac_link"
69303 case "(($ac_try" in
69304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69305 *) ac_try_echo=$ac_try;;
69307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69308 $as_echo "$ac_try_echo") >&5
69309 (eval "$ac_link") 2>conftest.er1
69311 grep -v '^ *+' conftest.er1 >conftest.err
69313 cat conftest.err >&5
69314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69315 (exit $ac_status); } && {
69316 test -z "$ac_c_werror_flag" ||
69317 test ! -s conftest.err
69318 } && test -s conftest$ac_exeext && {
69319 test "$cross_compiling" = yes ||
69320 $as_test_x conftest$ac_exeext
69322 eval "$as_ac_var=yes"
69324 $as_echo "$as_me: failed program was:" >&5
69325 sed 's/^/| /' conftest.$ac_ext >&5
69327 eval "$as_ac_var=no"
69330 rm -rf conftest.dSYM
69331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69332 conftest$ac_exeext conftest.$ac_ext
69334 ac_res=`eval 'as_val=${'$as_ac_var'}
69335 $as_echo "$as_val"'`
69336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69337 $as_echo "$ac_res" >&6; }
69338 as_val=`eval 'as_val=${'$as_ac_var'}
69339 $as_echo "$as_val"'`
69340 if test "x$as_val" = x""yes; then
69341 cat >>confdefs.h <<_ACEOF
69342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69344 ice_have_sscanf=yes
69348 if test "${ice_have_sscanf}" = yes; then
69349 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
69350 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
69351 if test "${ice_cv_have_sscanf_decl+set}" = set; then
69352 $as_echo_n "(cached) " >&6
69355 ice_cv_have_sscanf_decl=no
69356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69357 ice_re_word='(^|[^a-zA-Z0-9_])'
69358 for header in stdio.h; do
69359 # Check for ordinary declaration
69360 cat >conftest.$ac_ext <<_ACEOF
69363 cat confdefs.h >>conftest.$ac_ext
69364 cat >>conftest.$ac_ext <<_ACEOF
69365 /* end confdefs.h. */
69369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69370 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
69371 ice_cv_have_sscanf_decl=yes
69375 if test "$ice_cv_have_sscanf_decl" = yes; then
69378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69379 cat >conftest.$ac_ext <<_ACEOF
69382 cat confdefs.h >>conftest.$ac_ext
69383 cat >>conftest.$ac_ext <<_ACEOF
69384 /* end confdefs.h. */
69388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69389 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69390 ice_cv_have_sscanf_decl=yes
69394 if test "$ice_cv_have_sscanf_decl" = yes; then
69401 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
69402 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
69403 if test "$ice_cv_have_sscanf_decl" = yes; then
69405 cat >>confdefs.h <<_ACEOF
69406 #define HAVE_SSCANF_DECL 1
69413 ice_have_strerror=no
69415 for ac_func in strerror
69417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69419 $as_echo_n "checking for $ac_func... " >&6; }
69420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69421 $as_echo_n "(cached) " >&6
69423 cat >conftest.$ac_ext <<_ACEOF
69426 cat confdefs.h >>conftest.$ac_ext
69427 cat >>conftest.$ac_ext <<_ACEOF
69428 /* end confdefs.h. */
69429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69431 #define $ac_func innocuous_$ac_func
69433 /* System header to define __stub macros and hopefully few prototypes,
69434 which can conflict with char $ac_func (); below.
69435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69436 <limits.h> exists even on freestanding compilers. */
69439 # include <limits.h>
69441 # include <assert.h>
69446 /* Override any GCC internal prototype to avoid an error.
69447 Use char because int might match the return type of a GCC
69448 builtin and then its argument prototype would still apply. */
69453 /* The GNU C library defines this for functions which it implements
69454 to always fail with ENOSYS. Some functions are actually named
69455 something starting with __ and the normal name is an alias. */
69456 #if defined __stub_$ac_func || defined __stub___$ac_func
69463 return $ac_func ();
69468 rm -f conftest.$ac_objext conftest$ac_exeext
69469 if { (ac_try="$ac_link"
69470 case "(($ac_try" in
69471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69472 *) ac_try_echo=$ac_try;;
69474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69475 $as_echo "$ac_try_echo") >&5
69476 (eval "$ac_link") 2>conftest.er1
69478 grep -v '^ *+' conftest.er1 >conftest.err
69480 cat conftest.err >&5
69481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69482 (exit $ac_status); } && {
69483 test -z "$ac_c_werror_flag" ||
69484 test ! -s conftest.err
69485 } && test -s conftest$ac_exeext && {
69486 test "$cross_compiling" = yes ||
69487 $as_test_x conftest$ac_exeext
69489 eval "$as_ac_var=yes"
69491 $as_echo "$as_me: failed program was:" >&5
69492 sed 's/^/| /' conftest.$ac_ext >&5
69494 eval "$as_ac_var=no"
69497 rm -rf conftest.dSYM
69498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69499 conftest$ac_exeext conftest.$ac_ext
69501 ac_res=`eval 'as_val=${'$as_ac_var'}
69502 $as_echo "$as_val"'`
69503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69504 $as_echo "$ac_res" >&6; }
69505 as_val=`eval 'as_val=${'$as_ac_var'}
69506 $as_echo "$as_val"'`
69507 if test "x$as_val" = x""yes; then
69508 cat >>confdefs.h <<_ACEOF
69509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69511 ice_have_strerror=yes
69515 if test "${ice_have_strerror}" = yes; then
69516 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
69517 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
69518 if test "${ice_cv_have_strerror_decl+set}" = set; then
69519 $as_echo_n "(cached) " >&6
69522 ice_cv_have_strerror_decl=no
69523 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69524 ice_re_word='(^|[^a-zA-Z0-9_])'
69525 for header in string.h strings.h; do
69526 # Check for ordinary declaration
69527 cat >conftest.$ac_ext <<_ACEOF
69530 cat confdefs.h >>conftest.$ac_ext
69531 cat >>conftest.$ac_ext <<_ACEOF
69532 /* end confdefs.h. */
69536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69537 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
69538 ice_cv_have_strerror_decl=yes
69542 if test "$ice_cv_have_strerror_decl" = yes; then
69545 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69546 cat >conftest.$ac_ext <<_ACEOF
69549 cat confdefs.h >>conftest.$ac_ext
69550 cat >>conftest.$ac_ext <<_ACEOF
69551 /* end confdefs.h. */
69555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69556 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69557 ice_cv_have_strerror_decl=yes
69561 if test "$ice_cv_have_strerror_decl" = yes; then
69568 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
69569 $as_echo "$ice_cv_have_strerror_decl" >&6; }
69570 if test "$ice_cv_have_strerror_decl" = yes; then
69572 cat >>confdefs.h <<_ACEOF
69573 #define HAVE_STRERROR_DECL 1
69580 for ac_func in strftime
69582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69584 $as_echo_n "checking for $ac_func... " >&6; }
69585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69586 $as_echo_n "(cached) " >&6
69588 cat >conftest.$ac_ext <<_ACEOF
69591 cat confdefs.h >>conftest.$ac_ext
69592 cat >>conftest.$ac_ext <<_ACEOF
69593 /* end confdefs.h. */
69594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69596 #define $ac_func innocuous_$ac_func
69598 /* System header to define __stub macros and hopefully few prototypes,
69599 which can conflict with char $ac_func (); below.
69600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69601 <limits.h> exists even on freestanding compilers. */
69604 # include <limits.h>
69606 # include <assert.h>
69611 /* Override any GCC internal prototype to avoid an error.
69612 Use char because int might match the return type of a GCC
69613 builtin and then its argument prototype would still apply. */
69618 /* The GNU C library defines this for functions which it implements
69619 to always fail with ENOSYS. Some functions are actually named
69620 something starting with __ and the normal name is an alias. */
69621 #if defined __stub_$ac_func || defined __stub___$ac_func
69628 return $ac_func ();
69633 rm -f conftest.$ac_objext conftest$ac_exeext
69634 if { (ac_try="$ac_link"
69635 case "(($ac_try" in
69636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69637 *) ac_try_echo=$ac_try;;
69639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69640 $as_echo "$ac_try_echo") >&5
69641 (eval "$ac_link") 2>conftest.er1
69643 grep -v '^ *+' conftest.er1 >conftest.err
69645 cat conftest.err >&5
69646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69647 (exit $ac_status); } && {
69648 test -z "$ac_c_werror_flag" ||
69649 test ! -s conftest.err
69650 } && test -s conftest$ac_exeext && {
69651 test "$cross_compiling" = yes ||
69652 $as_test_x conftest$ac_exeext
69654 eval "$as_ac_var=yes"
69656 $as_echo "$as_me: failed program was:" >&5
69657 sed 's/^/| /' conftest.$ac_ext >&5
69659 eval "$as_ac_var=no"
69662 rm -rf conftest.dSYM
69663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69664 conftest$ac_exeext conftest.$ac_ext
69666 ac_res=`eval 'as_val=${'$as_ac_var'}
69667 $as_echo "$as_val"'`
69668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69669 $as_echo "$ac_res" >&6; }
69670 as_val=`eval 'as_val=${'$as_ac_var'}
69671 $as_echo "$as_val"'`
69672 if test "x$as_val" = x""yes; then
69673 cat >>confdefs.h <<_ACEOF
69674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69678 # strftime is in -lintl on SCO UNIX.
69679 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
69680 $as_echo_n "checking for strftime in -lintl... " >&6; }
69681 if test "${ac_cv_lib_intl_strftime+set}" = set; then
69682 $as_echo_n "(cached) " >&6
69684 ac_check_lib_save_LIBS=$LIBS
69685 LIBS="-lintl $LIBS"
69686 cat >conftest.$ac_ext <<_ACEOF
69689 cat confdefs.h >>conftest.$ac_ext
69690 cat >>conftest.$ac_ext <<_ACEOF
69691 /* end confdefs.h. */
69693 /* Override any GCC internal prototype to avoid an error.
69694 Use char because int might match the return type of a GCC
69695 builtin and then its argument prototype would still apply. */
69703 return strftime ();
69708 rm -f conftest.$ac_objext conftest$ac_exeext
69709 if { (ac_try="$ac_link"
69710 case "(($ac_try" in
69711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69712 *) ac_try_echo=$ac_try;;
69714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69715 $as_echo "$ac_try_echo") >&5
69716 (eval "$ac_link") 2>conftest.er1
69718 grep -v '^ *+' conftest.er1 >conftest.err
69720 cat conftest.err >&5
69721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69722 (exit $ac_status); } && {
69723 test -z "$ac_c_werror_flag" ||
69724 test ! -s conftest.err
69725 } && test -s conftest$ac_exeext && {
69726 test "$cross_compiling" = yes ||
69727 $as_test_x conftest$ac_exeext
69729 ac_cv_lib_intl_strftime=yes
69731 $as_echo "$as_me: failed program was:" >&5
69732 sed 's/^/| /' conftest.$ac_ext >&5
69734 ac_cv_lib_intl_strftime=no
69737 rm -rf conftest.dSYM
69738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69739 conftest$ac_exeext conftest.$ac_ext
69740 LIBS=$ac_check_lib_save_LIBS
69742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
69743 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
69744 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
69745 cat >>confdefs.h <<\_ACEOF
69746 #define HAVE_STRFTIME 1
69749 LIBS="-lintl $LIBS"
69756 ice_have_strftime=no
69758 for ac_func in strftime
69760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69761 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69762 $as_echo_n "checking for $ac_func... " >&6; }
69763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69764 $as_echo_n "(cached) " >&6
69766 cat >conftest.$ac_ext <<_ACEOF
69769 cat confdefs.h >>conftest.$ac_ext
69770 cat >>conftest.$ac_ext <<_ACEOF
69771 /* end confdefs.h. */
69772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69774 #define $ac_func innocuous_$ac_func
69776 /* System header to define __stub macros and hopefully few prototypes,
69777 which can conflict with char $ac_func (); below.
69778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69779 <limits.h> exists even on freestanding compilers. */
69782 # include <limits.h>
69784 # include <assert.h>
69789 /* Override any GCC internal prototype to avoid an error.
69790 Use char because int might match the return type of a GCC
69791 builtin and then its argument prototype would still apply. */
69796 /* The GNU C library defines this for functions which it implements
69797 to always fail with ENOSYS. Some functions are actually named
69798 something starting with __ and the normal name is an alias. */
69799 #if defined __stub_$ac_func || defined __stub___$ac_func
69806 return $ac_func ();
69811 rm -f conftest.$ac_objext conftest$ac_exeext
69812 if { (ac_try="$ac_link"
69813 case "(($ac_try" in
69814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69815 *) ac_try_echo=$ac_try;;
69817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69818 $as_echo "$ac_try_echo") >&5
69819 (eval "$ac_link") 2>conftest.er1
69821 grep -v '^ *+' conftest.er1 >conftest.err
69823 cat conftest.err >&5
69824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69825 (exit $ac_status); } && {
69826 test -z "$ac_c_werror_flag" ||
69827 test ! -s conftest.err
69828 } && test -s conftest$ac_exeext && {
69829 test "$cross_compiling" = yes ||
69830 $as_test_x conftest$ac_exeext
69832 eval "$as_ac_var=yes"
69834 $as_echo "$as_me: failed program was:" >&5
69835 sed 's/^/| /' conftest.$ac_ext >&5
69837 eval "$as_ac_var=no"
69840 rm -rf conftest.dSYM
69841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69842 conftest$ac_exeext conftest.$ac_ext
69844 ac_res=`eval 'as_val=${'$as_ac_var'}
69845 $as_echo "$as_val"'`
69846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69847 $as_echo "$ac_res" >&6; }
69848 as_val=`eval 'as_val=${'$as_ac_var'}
69849 $as_echo "$as_val"'`
69850 if test "x$as_val" = x""yes; then
69851 cat >>confdefs.h <<_ACEOF
69852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69854 ice_have_strftime=yes
69858 if test "${ice_have_strftime}" = yes; then
69859 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
69860 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
69861 if test "${ice_cv_have_strftime_decl+set}" = set; then
69862 $as_echo_n "(cached) " >&6
69865 ice_cv_have_strftime_decl=no
69866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69867 ice_re_word='(^|[^a-zA-Z0-9_])'
69868 for header in time.h sys/time.h; do
69869 # Check for ordinary declaration
69870 cat >conftest.$ac_ext <<_ACEOF
69873 cat confdefs.h >>conftest.$ac_ext
69874 cat >>conftest.$ac_ext <<_ACEOF
69875 /* end confdefs.h. */
69879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69880 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
69881 ice_cv_have_strftime_decl=yes
69885 if test "$ice_cv_have_strftime_decl" = yes; then
69888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69889 cat >conftest.$ac_ext <<_ACEOF
69892 cat confdefs.h >>conftest.$ac_ext
69893 cat >>conftest.$ac_ext <<_ACEOF
69894 /* end confdefs.h. */
69898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69899 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69900 ice_cv_have_strftime_decl=yes
69904 if test "$ice_cv_have_strftime_decl" = yes; then
69911 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
69912 $as_echo "$ice_cv_have_strftime_decl" >&6; }
69913 if test "$ice_cv_have_strftime_decl" = yes; then
69915 cat >>confdefs.h <<_ACEOF
69916 #define HAVE_STRFTIME_DECL 1
69923 ice_have_strncasecmp=no
69925 for ac_func in strncasecmp
69927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69929 $as_echo_n "checking for $ac_func... " >&6; }
69930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69931 $as_echo_n "(cached) " >&6
69933 cat >conftest.$ac_ext <<_ACEOF
69936 cat confdefs.h >>conftest.$ac_ext
69937 cat >>conftest.$ac_ext <<_ACEOF
69938 /* end confdefs.h. */
69939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69941 #define $ac_func innocuous_$ac_func
69943 /* System header to define __stub macros and hopefully few prototypes,
69944 which can conflict with char $ac_func (); below.
69945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69946 <limits.h> exists even on freestanding compilers. */
69949 # include <limits.h>
69951 # include <assert.h>
69956 /* Override any GCC internal prototype to avoid an error.
69957 Use char because int might match the return type of a GCC
69958 builtin and then its argument prototype would still apply. */
69963 /* The GNU C library defines this for functions which it implements
69964 to always fail with ENOSYS. Some functions are actually named
69965 something starting with __ and the normal name is an alias. */
69966 #if defined __stub_$ac_func || defined __stub___$ac_func
69973 return $ac_func ();
69978 rm -f conftest.$ac_objext conftest$ac_exeext
69979 if { (ac_try="$ac_link"
69980 case "(($ac_try" in
69981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69982 *) ac_try_echo=$ac_try;;
69984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69985 $as_echo "$ac_try_echo") >&5
69986 (eval "$ac_link") 2>conftest.er1
69988 grep -v '^ *+' conftest.er1 >conftest.err
69990 cat conftest.err >&5
69991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69992 (exit $ac_status); } && {
69993 test -z "$ac_c_werror_flag" ||
69994 test ! -s conftest.err
69995 } && test -s conftest$ac_exeext && {
69996 test "$cross_compiling" = yes ||
69997 $as_test_x conftest$ac_exeext
69999 eval "$as_ac_var=yes"
70001 $as_echo "$as_me: failed program was:" >&5
70002 sed 's/^/| /' conftest.$ac_ext >&5
70004 eval "$as_ac_var=no"
70007 rm -rf conftest.dSYM
70008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70009 conftest$ac_exeext conftest.$ac_ext
70011 ac_res=`eval 'as_val=${'$as_ac_var'}
70012 $as_echo "$as_val"'`
70013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70014 $as_echo "$ac_res" >&6; }
70015 as_val=`eval 'as_val=${'$as_ac_var'}
70016 $as_echo "$as_val"'`
70017 if test "x$as_val" = x""yes; then
70018 cat >>confdefs.h <<_ACEOF
70019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70021 ice_have_strncasecmp=yes
70025 if test "${ice_have_strncasecmp}" = yes; then
70026 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
70027 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
70028 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
70029 $as_echo_n "(cached) " >&6
70032 ice_cv_have_strncasecmp_decl=no
70033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70034 ice_re_word='(^|[^a-zA-Z0-9_])'
70035 for header in string.h strings.h; do
70036 # Check for ordinary declaration
70037 cat >conftest.$ac_ext <<_ACEOF
70040 cat confdefs.h >>conftest.$ac_ext
70041 cat >>conftest.$ac_ext <<_ACEOF
70042 /* end confdefs.h. */
70046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70047 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
70048 ice_cv_have_strncasecmp_decl=yes
70052 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70056 cat >conftest.$ac_ext <<_ACEOF
70059 cat confdefs.h >>conftest.$ac_ext
70060 cat >>conftest.$ac_ext <<_ACEOF
70061 /* end confdefs.h. */
70065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70066 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70067 ice_cv_have_strncasecmp_decl=yes
70071 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70078 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
70079 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
70080 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70082 cat >>confdefs.h <<_ACEOF
70083 #define HAVE_STRNCASECMP_DECL 1
70092 for ac_func in syslog
70094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70095 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70096 $as_echo_n "checking for $ac_func... " >&6; }
70097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70098 $as_echo_n "(cached) " >&6
70100 cat >conftest.$ac_ext <<_ACEOF
70103 cat confdefs.h >>conftest.$ac_ext
70104 cat >>conftest.$ac_ext <<_ACEOF
70105 /* end confdefs.h. */
70106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70108 #define $ac_func innocuous_$ac_func
70110 /* System header to define __stub macros and hopefully few prototypes,
70111 which can conflict with char $ac_func (); below.
70112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70113 <limits.h> exists even on freestanding compilers. */
70116 # include <limits.h>
70118 # include <assert.h>
70123 /* Override any GCC internal prototype to avoid an error.
70124 Use char because int might match the return type of a GCC
70125 builtin and then its argument prototype would still apply. */
70130 /* The GNU C library defines this for functions which it implements
70131 to always fail with ENOSYS. Some functions are actually named
70132 something starting with __ and the normal name is an alias. */
70133 #if defined __stub_$ac_func || defined __stub___$ac_func
70140 return $ac_func ();
70145 rm -f conftest.$ac_objext conftest$ac_exeext
70146 if { (ac_try="$ac_link"
70147 case "(($ac_try" in
70148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70149 *) ac_try_echo=$ac_try;;
70151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70152 $as_echo "$ac_try_echo") >&5
70153 (eval "$ac_link") 2>conftest.er1
70155 grep -v '^ *+' conftest.er1 >conftest.err
70157 cat conftest.err >&5
70158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70159 (exit $ac_status); } && {
70160 test -z "$ac_c_werror_flag" ||
70161 test ! -s conftest.err
70162 } && test -s conftest$ac_exeext && {
70163 test "$cross_compiling" = yes ||
70164 $as_test_x conftest$ac_exeext
70166 eval "$as_ac_var=yes"
70168 $as_echo "$as_me: failed program was:" >&5
70169 sed 's/^/| /' conftest.$ac_ext >&5
70171 eval "$as_ac_var=no"
70174 rm -rf conftest.dSYM
70175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70176 conftest$ac_exeext conftest.$ac_ext
70178 ac_res=`eval 'as_val=${'$as_ac_var'}
70179 $as_echo "$as_val"'`
70180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70181 $as_echo "$ac_res" >&6; }
70182 as_val=`eval 'as_val=${'$as_ac_var'}
70183 $as_echo "$as_val"'`
70184 if test "x$as_val" = x""yes; then
70185 cat >>confdefs.h <<_ACEOF
70186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70188 ice_have_syslog=yes
70192 if test "${ice_have_syslog}" = yes; then
70193 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
70194 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
70195 if test "${ice_cv_have_syslog_decl+set}" = set; then
70196 $as_echo_n "(cached) " >&6
70199 ice_cv_have_syslog_decl=no
70200 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70201 ice_re_word='(^|[^a-zA-Z0-9_])'
70202 for header in syslog.h; do
70203 # Check for ordinary declaration
70204 cat >conftest.$ac_ext <<_ACEOF
70207 cat confdefs.h >>conftest.$ac_ext
70208 cat >>conftest.$ac_ext <<_ACEOF
70209 /* end confdefs.h. */
70213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70214 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
70215 ice_cv_have_syslog_decl=yes
70219 if test "$ice_cv_have_syslog_decl" = yes; then
70222 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70223 cat >conftest.$ac_ext <<_ACEOF
70226 cat confdefs.h >>conftest.$ac_ext
70227 cat >>conftest.$ac_ext <<_ACEOF
70228 /* end confdefs.h. */
70232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70233 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70234 ice_cv_have_syslog_decl=yes
70238 if test "$ice_cv_have_syslog_decl" = yes; then
70245 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
70246 $as_echo "$ice_cv_have_syslog_decl" >&6; }
70247 if test "$ice_cv_have_syslog_decl" = yes; then
70249 cat >>confdefs.h <<_ACEOF
70250 #define HAVE_SYSLOG_DECL 1
70259 for ac_func in system
70261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70263 $as_echo_n "checking for $ac_func... " >&6; }
70264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70265 $as_echo_n "(cached) " >&6
70267 cat >conftest.$ac_ext <<_ACEOF
70270 cat confdefs.h >>conftest.$ac_ext
70271 cat >>conftest.$ac_ext <<_ACEOF
70272 /* end confdefs.h. */
70273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70275 #define $ac_func innocuous_$ac_func
70277 /* System header to define __stub macros and hopefully few prototypes,
70278 which can conflict with char $ac_func (); below.
70279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70280 <limits.h> exists even on freestanding compilers. */
70283 # include <limits.h>
70285 # include <assert.h>
70290 /* Override any GCC internal prototype to avoid an error.
70291 Use char because int might match the return type of a GCC
70292 builtin and then its argument prototype would still apply. */
70297 /* The GNU C library defines this for functions which it implements
70298 to always fail with ENOSYS. Some functions are actually named
70299 something starting with __ and the normal name is an alias. */
70300 #if defined __stub_$ac_func || defined __stub___$ac_func
70307 return $ac_func ();
70312 rm -f conftest.$ac_objext conftest$ac_exeext
70313 if { (ac_try="$ac_link"
70314 case "(($ac_try" in
70315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70316 *) ac_try_echo=$ac_try;;
70318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70319 $as_echo "$ac_try_echo") >&5
70320 (eval "$ac_link") 2>conftest.er1
70322 grep -v '^ *+' conftest.er1 >conftest.err
70324 cat conftest.err >&5
70325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70326 (exit $ac_status); } && {
70327 test -z "$ac_c_werror_flag" ||
70328 test ! -s conftest.err
70329 } && test -s conftest$ac_exeext && {
70330 test "$cross_compiling" = yes ||
70331 $as_test_x conftest$ac_exeext
70333 eval "$as_ac_var=yes"
70335 $as_echo "$as_me: failed program was:" >&5
70336 sed 's/^/| /' conftest.$ac_ext >&5
70338 eval "$as_ac_var=no"
70341 rm -rf conftest.dSYM
70342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70343 conftest$ac_exeext conftest.$ac_ext
70345 ac_res=`eval 'as_val=${'$as_ac_var'}
70346 $as_echo "$as_val"'`
70347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70348 $as_echo "$ac_res" >&6; }
70349 as_val=`eval 'as_val=${'$as_ac_var'}
70350 $as_echo "$as_val"'`
70351 if test "x$as_val" = x""yes; then
70352 cat >>confdefs.h <<_ACEOF
70353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70355 ice_have_system=yes
70359 if test "${ice_have_system}" = yes; then
70360 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
70361 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
70362 if test "${ice_cv_have_system_decl+set}" = set; then
70363 $as_echo_n "(cached) " >&6
70366 ice_cv_have_system_decl=no
70367 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70368 ice_re_word='(^|[^a-zA-Z0-9_])'
70369 for header in stdlib.h; do
70370 # Check for ordinary declaration
70371 cat >conftest.$ac_ext <<_ACEOF
70374 cat confdefs.h >>conftest.$ac_ext
70375 cat >>conftest.$ac_ext <<_ACEOF
70376 /* end confdefs.h. */
70380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70381 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
70382 ice_cv_have_system_decl=yes
70386 if test "$ice_cv_have_system_decl" = yes; then
70389 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70390 cat >conftest.$ac_ext <<_ACEOF
70393 cat confdefs.h >>conftest.$ac_ext
70394 cat >>conftest.$ac_ext <<_ACEOF
70395 /* end confdefs.h. */
70399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70400 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70401 ice_cv_have_system_decl=yes
70405 if test "$ice_cv_have_system_decl" = yes; then
70412 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
70413 $as_echo "$ice_cv_have_system_decl" >&6; }
70414 if test "$ice_cv_have_system_decl" = yes; then
70416 cat >>confdefs.h <<_ACEOF
70417 #define HAVE_SYSTEM_DECL 1
70426 for ac_func in time
70428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70429 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70430 $as_echo_n "checking for $ac_func... " >&6; }
70431 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70432 $as_echo_n "(cached) " >&6
70434 cat >conftest.$ac_ext <<_ACEOF
70437 cat confdefs.h >>conftest.$ac_ext
70438 cat >>conftest.$ac_ext <<_ACEOF
70439 /* end confdefs.h. */
70440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70442 #define $ac_func innocuous_$ac_func
70444 /* System header to define __stub macros and hopefully few prototypes,
70445 which can conflict with char $ac_func (); below.
70446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70447 <limits.h> exists even on freestanding compilers. */
70450 # include <limits.h>
70452 # include <assert.h>
70457 /* Override any GCC internal prototype to avoid an error.
70458 Use char because int might match the return type of a GCC
70459 builtin and then its argument prototype would still apply. */
70464 /* The GNU C library defines this for functions which it implements
70465 to always fail with ENOSYS. Some functions are actually named
70466 something starting with __ and the normal name is an alias. */
70467 #if defined __stub_$ac_func || defined __stub___$ac_func
70474 return $ac_func ();
70479 rm -f conftest.$ac_objext conftest$ac_exeext
70480 if { (ac_try="$ac_link"
70481 case "(($ac_try" in
70482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70483 *) ac_try_echo=$ac_try;;
70485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70486 $as_echo "$ac_try_echo") >&5
70487 (eval "$ac_link") 2>conftest.er1
70489 grep -v '^ *+' conftest.er1 >conftest.err
70491 cat conftest.err >&5
70492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70493 (exit $ac_status); } && {
70494 test -z "$ac_c_werror_flag" ||
70495 test ! -s conftest.err
70496 } && test -s conftest$ac_exeext && {
70497 test "$cross_compiling" = yes ||
70498 $as_test_x conftest$ac_exeext
70500 eval "$as_ac_var=yes"
70502 $as_echo "$as_me: failed program was:" >&5
70503 sed 's/^/| /' conftest.$ac_ext >&5
70505 eval "$as_ac_var=no"
70508 rm -rf conftest.dSYM
70509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70510 conftest$ac_exeext conftest.$ac_ext
70512 ac_res=`eval 'as_val=${'$as_ac_var'}
70513 $as_echo "$as_val"'`
70514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70515 $as_echo "$ac_res" >&6; }
70516 as_val=`eval 'as_val=${'$as_ac_var'}
70517 $as_echo "$as_val"'`
70518 if test "x$as_val" = x""yes; then
70519 cat >>confdefs.h <<_ACEOF
70520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70526 if test "${ice_have_time}" = yes; then
70527 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
70528 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
70529 if test "${ice_cv_have_time_decl+set}" = set; then
70530 $as_echo_n "(cached) " >&6
70533 ice_cv_have_time_decl=no
70534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70535 ice_re_word='(^|[^a-zA-Z0-9_])'
70536 for header in time.h sys/time.h; do
70537 # Check for ordinary declaration
70538 cat >conftest.$ac_ext <<_ACEOF
70541 cat confdefs.h >>conftest.$ac_ext
70542 cat >>conftest.$ac_ext <<_ACEOF
70543 /* end confdefs.h. */
70547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70548 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
70549 ice_cv_have_time_decl=yes
70553 if test "$ice_cv_have_time_decl" = yes; then
70556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70557 cat >conftest.$ac_ext <<_ACEOF
70560 cat confdefs.h >>conftest.$ac_ext
70561 cat >>conftest.$ac_ext <<_ACEOF
70562 /* end confdefs.h. */
70566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70567 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70568 ice_cv_have_time_decl=yes
70572 if test "$ice_cv_have_time_decl" = yes; then
70579 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
70580 $as_echo "$ice_cv_have_time_decl" >&6; }
70581 if test "$ice_cv_have_time_decl" = yes; then
70583 cat >>confdefs.h <<_ACEOF
70584 #define HAVE_TIME_DECL 1
70591 ice_have_tolower=no
70593 for ac_func in tolower
70595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70597 $as_echo_n "checking for $ac_func... " >&6; }
70598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70599 $as_echo_n "(cached) " >&6
70601 cat >conftest.$ac_ext <<_ACEOF
70604 cat confdefs.h >>conftest.$ac_ext
70605 cat >>conftest.$ac_ext <<_ACEOF
70606 /* end confdefs.h. */
70607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70609 #define $ac_func innocuous_$ac_func
70611 /* System header to define __stub macros and hopefully few prototypes,
70612 which can conflict with char $ac_func (); below.
70613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70614 <limits.h> exists even on freestanding compilers. */
70617 # include <limits.h>
70619 # include <assert.h>
70624 /* Override any GCC internal prototype to avoid an error.
70625 Use char because int might match the return type of a GCC
70626 builtin and then its argument prototype would still apply. */
70631 /* The GNU C library defines this for functions which it implements
70632 to always fail with ENOSYS. Some functions are actually named
70633 something starting with __ and the normal name is an alias. */
70634 #if defined __stub_$ac_func || defined __stub___$ac_func
70641 return $ac_func ();
70646 rm -f conftest.$ac_objext conftest$ac_exeext
70647 if { (ac_try="$ac_link"
70648 case "(($ac_try" in
70649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70650 *) ac_try_echo=$ac_try;;
70652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70653 $as_echo "$ac_try_echo") >&5
70654 (eval "$ac_link") 2>conftest.er1
70656 grep -v '^ *+' conftest.er1 >conftest.err
70658 cat conftest.err >&5
70659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70660 (exit $ac_status); } && {
70661 test -z "$ac_c_werror_flag" ||
70662 test ! -s conftest.err
70663 } && test -s conftest$ac_exeext && {
70664 test "$cross_compiling" = yes ||
70665 $as_test_x conftest$ac_exeext
70667 eval "$as_ac_var=yes"
70669 $as_echo "$as_me: failed program was:" >&5
70670 sed 's/^/| /' conftest.$ac_ext >&5
70672 eval "$as_ac_var=no"
70675 rm -rf conftest.dSYM
70676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70677 conftest$ac_exeext conftest.$ac_ext
70679 ac_res=`eval 'as_val=${'$as_ac_var'}
70680 $as_echo "$as_val"'`
70681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70682 $as_echo "$ac_res" >&6; }
70683 as_val=`eval 'as_val=${'$as_ac_var'}
70684 $as_echo "$as_val"'`
70685 if test "x$as_val" = x""yes; then
70686 cat >>confdefs.h <<_ACEOF
70687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70689 ice_have_tolower=yes
70693 if test "${ice_have_tolower}" = yes; then
70694 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
70695 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
70696 if test "${ice_cv_have_tolower_decl+set}" = set; then
70697 $as_echo_n "(cached) " >&6
70700 ice_cv_have_tolower_decl=no
70701 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70702 ice_re_word='(^|[^a-zA-Z0-9_])'
70703 for header in ctype.h; do
70704 # Check for ordinary declaration
70705 cat >conftest.$ac_ext <<_ACEOF
70708 cat confdefs.h >>conftest.$ac_ext
70709 cat >>conftest.$ac_ext <<_ACEOF
70710 /* end confdefs.h. */
70714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70715 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
70716 ice_cv_have_tolower_decl=yes
70720 if test "$ice_cv_have_tolower_decl" = yes; then
70723 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70724 cat >conftest.$ac_ext <<_ACEOF
70727 cat confdefs.h >>conftest.$ac_ext
70728 cat >>conftest.$ac_ext <<_ACEOF
70729 /* end confdefs.h. */
70733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70734 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70735 ice_cv_have_tolower_decl=yes
70739 if test "$ice_cv_have_tolower_decl" = yes; then
70746 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
70747 $as_echo "$ice_cv_have_tolower_decl" >&6; }
70748 if test "$ice_cv_have_tolower_decl" = yes; then
70750 cat >>confdefs.h <<_ACEOF
70751 #define HAVE_TOLOWER_DECL 1
70758 ice_have_toupper=no
70760 for ac_func in toupper
70762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70763 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70764 $as_echo_n "checking for $ac_func... " >&6; }
70765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70766 $as_echo_n "(cached) " >&6
70768 cat >conftest.$ac_ext <<_ACEOF
70771 cat confdefs.h >>conftest.$ac_ext
70772 cat >>conftest.$ac_ext <<_ACEOF
70773 /* end confdefs.h. */
70774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70776 #define $ac_func innocuous_$ac_func
70778 /* System header to define __stub macros and hopefully few prototypes,
70779 which can conflict with char $ac_func (); below.
70780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70781 <limits.h> exists even on freestanding compilers. */
70784 # include <limits.h>
70786 # include <assert.h>
70791 /* Override any GCC internal prototype to avoid an error.
70792 Use char because int might match the return type of a GCC
70793 builtin and then its argument prototype would still apply. */
70798 /* The GNU C library defines this for functions which it implements
70799 to always fail with ENOSYS. Some functions are actually named
70800 something starting with __ and the normal name is an alias. */
70801 #if defined __stub_$ac_func || defined __stub___$ac_func
70808 return $ac_func ();
70813 rm -f conftest.$ac_objext conftest$ac_exeext
70814 if { (ac_try="$ac_link"
70815 case "(($ac_try" in
70816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70817 *) ac_try_echo=$ac_try;;
70819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70820 $as_echo "$ac_try_echo") >&5
70821 (eval "$ac_link") 2>conftest.er1
70823 grep -v '^ *+' conftest.er1 >conftest.err
70825 cat conftest.err >&5
70826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70827 (exit $ac_status); } && {
70828 test -z "$ac_c_werror_flag" ||
70829 test ! -s conftest.err
70830 } && test -s conftest$ac_exeext && {
70831 test "$cross_compiling" = yes ||
70832 $as_test_x conftest$ac_exeext
70834 eval "$as_ac_var=yes"
70836 $as_echo "$as_me: failed program was:" >&5
70837 sed 's/^/| /' conftest.$ac_ext >&5
70839 eval "$as_ac_var=no"
70842 rm -rf conftest.dSYM
70843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70844 conftest$ac_exeext conftest.$ac_ext
70846 ac_res=`eval 'as_val=${'$as_ac_var'}
70847 $as_echo "$as_val"'`
70848 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70849 $as_echo "$ac_res" >&6; }
70850 as_val=`eval 'as_val=${'$as_ac_var'}
70851 $as_echo "$as_val"'`
70852 if test "x$as_val" = x""yes; then
70853 cat >>confdefs.h <<_ACEOF
70854 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70856 ice_have_toupper=yes
70860 if test "${ice_have_toupper}" = yes; then
70861 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
70862 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
70863 if test "${ice_cv_have_toupper_decl+set}" = set; then
70864 $as_echo_n "(cached) " >&6
70867 ice_cv_have_toupper_decl=no
70868 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70869 ice_re_word='(^|[^a-zA-Z0-9_])'
70870 for header in ctype.h; do
70871 # Check for ordinary declaration
70872 cat >conftest.$ac_ext <<_ACEOF
70875 cat confdefs.h >>conftest.$ac_ext
70876 cat >>conftest.$ac_ext <<_ACEOF
70877 /* end confdefs.h. */
70881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70882 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
70883 ice_cv_have_toupper_decl=yes
70887 if test "$ice_cv_have_toupper_decl" = yes; then
70890 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70891 cat >conftest.$ac_ext <<_ACEOF
70894 cat confdefs.h >>conftest.$ac_ext
70895 cat >>conftest.$ac_ext <<_ACEOF
70896 /* end confdefs.h. */
70900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70901 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70902 ice_cv_have_toupper_decl=yes
70906 if test "$ice_cv_have_toupper_decl" = yes; then
70913 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
70914 $as_echo "$ice_cv_have_toupper_decl" >&6; }
70915 if test "$ice_cv_have_toupper_decl" = yes; then
70917 cat >>confdefs.h <<_ACEOF
70918 #define HAVE_TOUPPER_DECL 1
70927 for ac_func in ungetc
70929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70930 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70931 $as_echo_n "checking for $ac_func... " >&6; }
70932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70933 $as_echo_n "(cached) " >&6
70935 cat >conftest.$ac_ext <<_ACEOF
70938 cat confdefs.h >>conftest.$ac_ext
70939 cat >>conftest.$ac_ext <<_ACEOF
70940 /* end confdefs.h. */
70941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70943 #define $ac_func innocuous_$ac_func
70945 /* System header to define __stub macros and hopefully few prototypes,
70946 which can conflict with char $ac_func (); below.
70947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70948 <limits.h> exists even on freestanding compilers. */
70951 # include <limits.h>
70953 # include <assert.h>
70958 /* Override any GCC internal prototype to avoid an error.
70959 Use char because int might match the return type of a GCC
70960 builtin and then its argument prototype would still apply. */
70965 /* The GNU C library defines this for functions which it implements
70966 to always fail with ENOSYS. Some functions are actually named
70967 something starting with __ and the normal name is an alias. */
70968 #if defined __stub_$ac_func || defined __stub___$ac_func
70975 return $ac_func ();
70980 rm -f conftest.$ac_objext conftest$ac_exeext
70981 if { (ac_try="$ac_link"
70982 case "(($ac_try" in
70983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70984 *) ac_try_echo=$ac_try;;
70986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70987 $as_echo "$ac_try_echo") >&5
70988 (eval "$ac_link") 2>conftest.er1
70990 grep -v '^ *+' conftest.er1 >conftest.err
70992 cat conftest.err >&5
70993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70994 (exit $ac_status); } && {
70995 test -z "$ac_c_werror_flag" ||
70996 test ! -s conftest.err
70997 } && test -s conftest$ac_exeext && {
70998 test "$cross_compiling" = yes ||
70999 $as_test_x conftest$ac_exeext
71001 eval "$as_ac_var=yes"
71003 $as_echo "$as_me: failed program was:" >&5
71004 sed 's/^/| /' conftest.$ac_ext >&5
71006 eval "$as_ac_var=no"
71009 rm -rf conftest.dSYM
71010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71011 conftest$ac_exeext conftest.$ac_ext
71013 ac_res=`eval 'as_val=${'$as_ac_var'}
71014 $as_echo "$as_val"'`
71015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71016 $as_echo "$ac_res" >&6; }
71017 as_val=`eval 'as_val=${'$as_ac_var'}
71018 $as_echo "$as_val"'`
71019 if test "x$as_val" = x""yes; then
71020 cat >>confdefs.h <<_ACEOF
71021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71023 ice_have_ungetc=yes
71027 if test "${ice_have_ungetc}" = yes; then
71028 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
71029 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
71030 if test "${ice_cv_have_ungetc_decl+set}" = set; then
71031 $as_echo_n "(cached) " >&6
71034 ice_cv_have_ungetc_decl=no
71035 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71036 ice_re_word='(^|[^a-zA-Z0-9_])'
71037 for header in stdio.h; do
71038 # Check for ordinary declaration
71039 cat >conftest.$ac_ext <<_ACEOF
71042 cat confdefs.h >>conftest.$ac_ext
71043 cat >>conftest.$ac_ext <<_ACEOF
71044 /* end confdefs.h. */
71048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71049 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
71050 ice_cv_have_ungetc_decl=yes
71054 if test "$ice_cv_have_ungetc_decl" = yes; then
71057 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71058 cat >conftest.$ac_ext <<_ACEOF
71061 cat confdefs.h >>conftest.$ac_ext
71062 cat >>conftest.$ac_ext <<_ACEOF
71063 /* end confdefs.h. */
71067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71068 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71069 ice_cv_have_ungetc_decl=yes
71073 if test "$ice_cv_have_ungetc_decl" = yes; then
71080 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
71081 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
71082 if test "$ice_cv_have_ungetc_decl" = yes; then
71084 cat >>confdefs.h <<_ACEOF
71085 #define HAVE_UNGETC_DECL 1
71092 ice_have_vfprintf=no
71094 for ac_func in vfprintf
71096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71097 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71098 $as_echo_n "checking for $ac_func... " >&6; }
71099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71100 $as_echo_n "(cached) " >&6
71102 cat >conftest.$ac_ext <<_ACEOF
71105 cat confdefs.h >>conftest.$ac_ext
71106 cat >>conftest.$ac_ext <<_ACEOF
71107 /* end confdefs.h. */
71108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71110 #define $ac_func innocuous_$ac_func
71112 /* System header to define __stub macros and hopefully few prototypes,
71113 which can conflict with char $ac_func (); below.
71114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71115 <limits.h> exists even on freestanding compilers. */
71118 # include <limits.h>
71120 # include <assert.h>
71125 /* Override any GCC internal prototype to avoid an error.
71126 Use char because int might match the return type of a GCC
71127 builtin and then its argument prototype would still apply. */
71132 /* The GNU C library defines this for functions which it implements
71133 to always fail with ENOSYS. Some functions are actually named
71134 something starting with __ and the normal name is an alias. */
71135 #if defined __stub_$ac_func || defined __stub___$ac_func
71142 return $ac_func ();
71147 rm -f conftest.$ac_objext conftest$ac_exeext
71148 if { (ac_try="$ac_link"
71149 case "(($ac_try" in
71150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71151 *) ac_try_echo=$ac_try;;
71153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71154 $as_echo "$ac_try_echo") >&5
71155 (eval "$ac_link") 2>conftest.er1
71157 grep -v '^ *+' conftest.er1 >conftest.err
71159 cat conftest.err >&5
71160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71161 (exit $ac_status); } && {
71162 test -z "$ac_c_werror_flag" ||
71163 test ! -s conftest.err
71164 } && test -s conftest$ac_exeext && {
71165 test "$cross_compiling" = yes ||
71166 $as_test_x conftest$ac_exeext
71168 eval "$as_ac_var=yes"
71170 $as_echo "$as_me: failed program was:" >&5
71171 sed 's/^/| /' conftest.$ac_ext >&5
71173 eval "$as_ac_var=no"
71176 rm -rf conftest.dSYM
71177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71178 conftest$ac_exeext conftest.$ac_ext
71180 ac_res=`eval 'as_val=${'$as_ac_var'}
71181 $as_echo "$as_val"'`
71182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71183 $as_echo "$ac_res" >&6; }
71184 as_val=`eval 'as_val=${'$as_ac_var'}
71185 $as_echo "$as_val"'`
71186 if test "x$as_val" = x""yes; then
71187 cat >>confdefs.h <<_ACEOF
71188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71190 ice_have_vfprintf=yes
71194 if test "${ice_have_vfprintf}" = yes; then
71195 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
71196 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
71197 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
71198 $as_echo_n "(cached) " >&6
71201 ice_cv_have_vfprintf_decl=no
71202 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71203 ice_re_word='(^|[^a-zA-Z0-9_])'
71204 for header in stdio.h stdlib.h; do
71205 # Check for ordinary declaration
71206 cat >conftest.$ac_ext <<_ACEOF
71209 cat confdefs.h >>conftest.$ac_ext
71210 cat >>conftest.$ac_ext <<_ACEOF
71211 /* end confdefs.h. */
71215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71216 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
71217 ice_cv_have_vfprintf_decl=yes
71221 if test "$ice_cv_have_vfprintf_decl" = yes; then
71224 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71225 cat >conftest.$ac_ext <<_ACEOF
71228 cat confdefs.h >>conftest.$ac_ext
71229 cat >>conftest.$ac_ext <<_ACEOF
71230 /* end confdefs.h. */
71234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71235 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71236 ice_cv_have_vfprintf_decl=yes
71240 if test "$ice_cv_have_vfprintf_decl" = yes; then
71247 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
71248 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
71249 if test "$ice_cv_have_vfprintf_decl" = yes; then
71251 cat >>confdefs.h <<_ACEOF
71252 #define HAVE_VFPRINTF_DECL 1
71259 ice_have_vprintf=no
71261 for ac_func in vprintf
71263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71265 $as_echo_n "checking for $ac_func... " >&6; }
71266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71267 $as_echo_n "(cached) " >&6
71269 cat >conftest.$ac_ext <<_ACEOF
71272 cat confdefs.h >>conftest.$ac_ext
71273 cat >>conftest.$ac_ext <<_ACEOF
71274 /* end confdefs.h. */
71275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71277 #define $ac_func innocuous_$ac_func
71279 /* System header to define __stub macros and hopefully few prototypes,
71280 which can conflict with char $ac_func (); below.
71281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71282 <limits.h> exists even on freestanding compilers. */
71285 # include <limits.h>
71287 # include <assert.h>
71292 /* Override any GCC internal prototype to avoid an error.
71293 Use char because int might match the return type of a GCC
71294 builtin and then its argument prototype would still apply. */
71299 /* The GNU C library defines this for functions which it implements
71300 to always fail with ENOSYS. Some functions are actually named
71301 something starting with __ and the normal name is an alias. */
71302 #if defined __stub_$ac_func || defined __stub___$ac_func
71309 return $ac_func ();
71314 rm -f conftest.$ac_objext conftest$ac_exeext
71315 if { (ac_try="$ac_link"
71316 case "(($ac_try" in
71317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71318 *) ac_try_echo=$ac_try;;
71320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71321 $as_echo "$ac_try_echo") >&5
71322 (eval "$ac_link") 2>conftest.er1
71324 grep -v '^ *+' conftest.er1 >conftest.err
71326 cat conftest.err >&5
71327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71328 (exit $ac_status); } && {
71329 test -z "$ac_c_werror_flag" ||
71330 test ! -s conftest.err
71331 } && test -s conftest$ac_exeext && {
71332 test "$cross_compiling" = yes ||
71333 $as_test_x conftest$ac_exeext
71335 eval "$as_ac_var=yes"
71337 $as_echo "$as_me: failed program was:" >&5
71338 sed 's/^/| /' conftest.$ac_ext >&5
71340 eval "$as_ac_var=no"
71343 rm -rf conftest.dSYM
71344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71345 conftest$ac_exeext conftest.$ac_ext
71347 ac_res=`eval 'as_val=${'$as_ac_var'}
71348 $as_echo "$as_val"'`
71349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71350 $as_echo "$ac_res" >&6; }
71351 as_val=`eval 'as_val=${'$as_ac_var'}
71352 $as_echo "$as_val"'`
71353 if test "x$as_val" = x""yes; then
71354 cat >>confdefs.h <<_ACEOF
71355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71357 ice_have_vprintf=yes
71361 if test "${ice_have_vprintf}" = yes; then
71362 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
71363 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
71364 if test "${ice_cv_have_vprintf_decl+set}" = set; then
71365 $as_echo_n "(cached) " >&6
71368 ice_cv_have_vprintf_decl=no
71369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71370 ice_re_word='(^|[^a-zA-Z0-9_])'
71371 for header in stdio.h stdlib.h; do
71372 # Check for ordinary declaration
71373 cat >conftest.$ac_ext <<_ACEOF
71376 cat confdefs.h >>conftest.$ac_ext
71377 cat >>conftest.$ac_ext <<_ACEOF
71378 /* end confdefs.h. */
71382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71383 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
71384 ice_cv_have_vprintf_decl=yes
71388 if test "$ice_cv_have_vprintf_decl" = yes; then
71391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71392 cat >conftest.$ac_ext <<_ACEOF
71395 cat confdefs.h >>conftest.$ac_ext
71396 cat >>conftest.$ac_ext <<_ACEOF
71397 /* end confdefs.h. */
71401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71402 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71403 ice_cv_have_vprintf_decl=yes
71407 if test "$ice_cv_have_vprintf_decl" = yes; then
71414 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
71415 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
71416 if test "$ice_cv_have_vprintf_decl" = yes; then
71418 cat >>confdefs.h <<_ACEOF
71419 #define HAVE_VPRINTF_DECL 1
71425 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
71426 $as_echo_n "checking for wait4... " >&6; }
71427 if test "${ac_cv_func_wait4+set}" = set; then
71428 $as_echo_n "(cached) " >&6
71430 cat >conftest.$ac_ext <<_ACEOF
71433 cat confdefs.h >>conftest.$ac_ext
71434 cat >>conftest.$ac_ext <<_ACEOF
71435 /* end confdefs.h. */
71436 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
71437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71438 #define wait4 innocuous_wait4
71440 /* System header to define __stub macros and hopefully few prototypes,
71441 which can conflict with char wait4 (); below.
71442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71443 <limits.h> exists even on freestanding compilers. */
71446 # include <limits.h>
71448 # include <assert.h>
71453 /* Override any GCC internal prototype to avoid an error.
71454 Use char because int might match the return type of a GCC
71455 builtin and then its argument prototype would still apply. */
71460 /* The GNU C library defines this for functions which it implements
71461 to always fail with ENOSYS. Some functions are actually named
71462 something starting with __ and the normal name is an alias. */
71463 #if defined __stub_wait4 || defined __stub___wait4
71475 rm -f conftest.$ac_objext conftest$ac_exeext
71476 if { (ac_try="$ac_link"
71477 case "(($ac_try" in
71478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71479 *) ac_try_echo=$ac_try;;
71481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71482 $as_echo "$ac_try_echo") >&5
71483 (eval "$ac_link") 2>conftest.er1
71485 grep -v '^ *+' conftest.er1 >conftest.err
71487 cat conftest.err >&5
71488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71489 (exit $ac_status); } && {
71490 test -z "$ac_c_werror_flag" ||
71491 test ! -s conftest.err
71492 } && test -s conftest$ac_exeext && {
71493 test "$cross_compiling" = yes ||
71494 $as_test_x conftest$ac_exeext
71496 ac_cv_func_wait4=yes
71498 $as_echo "$as_me: failed program was:" >&5
71499 sed 's/^/| /' conftest.$ac_ext >&5
71501 ac_cv_func_wait4=no
71504 rm -rf conftest.dSYM
71505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71506 conftest$ac_exeext conftest.$ac_ext
71508 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
71509 $as_echo "$ac_cv_func_wait4" >&6; }
71514 for ac_func in writev
71516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71517 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71518 $as_echo_n "checking for $ac_func... " >&6; }
71519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71520 $as_echo_n "(cached) " >&6
71522 cat >conftest.$ac_ext <<_ACEOF
71525 cat confdefs.h >>conftest.$ac_ext
71526 cat >>conftest.$ac_ext <<_ACEOF
71527 /* end confdefs.h. */
71528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71530 #define $ac_func innocuous_$ac_func
71532 /* System header to define __stub macros and hopefully few prototypes,
71533 which can conflict with char $ac_func (); below.
71534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71535 <limits.h> exists even on freestanding compilers. */
71538 # include <limits.h>
71540 # include <assert.h>
71545 /* Override any GCC internal prototype to avoid an error.
71546 Use char because int might match the return type of a GCC
71547 builtin and then its argument prototype would still apply. */
71552 /* The GNU C library defines this for functions which it implements
71553 to always fail with ENOSYS. Some functions are actually named
71554 something starting with __ and the normal name is an alias. */
71555 #if defined __stub_$ac_func || defined __stub___$ac_func
71562 return $ac_func ();
71567 rm -f conftest.$ac_objext conftest$ac_exeext
71568 if { (ac_try="$ac_link"
71569 case "(($ac_try" in
71570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71571 *) ac_try_echo=$ac_try;;
71573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71574 $as_echo "$ac_try_echo") >&5
71575 (eval "$ac_link") 2>conftest.er1
71577 grep -v '^ *+' conftest.er1 >conftest.err
71579 cat conftest.err >&5
71580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71581 (exit $ac_status); } && {
71582 test -z "$ac_c_werror_flag" ||
71583 test ! -s conftest.err
71584 } && test -s conftest$ac_exeext && {
71585 test "$cross_compiling" = yes ||
71586 $as_test_x conftest$ac_exeext
71588 eval "$as_ac_var=yes"
71590 $as_echo "$as_me: failed program was:" >&5
71591 sed 's/^/| /' conftest.$ac_ext >&5
71593 eval "$as_ac_var=no"
71596 rm -rf conftest.dSYM
71597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71598 conftest$ac_exeext conftest.$ac_ext
71600 ac_res=`eval 'as_val=${'$as_ac_var'}
71601 $as_echo "$as_val"'`
71602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71603 $as_echo "$ac_res" >&6; }
71604 as_val=`eval 'as_val=${'$as_ac_var'}
71605 $as_echo "$as_val"'`
71606 if test "x$as_val" = x""yes; then
71607 cat >>confdefs.h <<_ACEOF
71608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71610 ice_have_writev=yes
71614 if test "${ice_have_writev}" = yes; then
71615 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
71616 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
71617 if test "${ice_cv_have_writev_decl+set}" = set; then
71618 $as_echo_n "(cached) " >&6
71621 ice_cv_have_writev_decl=no
71622 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71623 ice_re_word='(^|[^a-zA-Z0-9_])'
71624 for header in unistd.h sys/uio.h; do
71625 # Check for ordinary declaration
71626 cat >conftest.$ac_ext <<_ACEOF
71629 cat confdefs.h >>conftest.$ac_ext
71630 cat >>conftest.$ac_ext <<_ACEOF
71631 /* end confdefs.h. */
71635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71636 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
71637 ice_cv_have_writev_decl=yes
71641 if test "$ice_cv_have_writev_decl" = yes; then
71644 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71645 cat >conftest.$ac_ext <<_ACEOF
71648 cat confdefs.h >>conftest.$ac_ext
71649 cat >>conftest.$ac_ext <<_ACEOF
71650 /* end confdefs.h. */
71654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71655 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71656 ice_cv_have_writev_decl=yes
71660 if test "$ice_cv_have_writev_decl" = yes; then
71667 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
71668 $as_echo "$ice_cv_have_writev_decl" >&6; }
71669 if test "$ice_cv_have_writev_decl" = yes; then
71671 cat >>confdefs.h <<_ACEOF
71672 #define HAVE_WRITEV_DECL 1
71679 ice_have_strcasecmp=no
71681 for ac_func in strcasecmp
71683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71685 $as_echo_n "checking for $ac_func... " >&6; }
71686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71687 $as_echo_n "(cached) " >&6
71689 cat >conftest.$ac_ext <<_ACEOF
71692 cat confdefs.h >>conftest.$ac_ext
71693 cat >>conftest.$ac_ext <<_ACEOF
71694 /* end confdefs.h. */
71695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71697 #define $ac_func innocuous_$ac_func
71699 /* System header to define __stub macros and hopefully few prototypes,
71700 which can conflict with char $ac_func (); below.
71701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71702 <limits.h> exists even on freestanding compilers. */
71705 # include <limits.h>
71707 # include <assert.h>
71712 /* Override any GCC internal prototype to avoid an error.
71713 Use char because int might match the return type of a GCC
71714 builtin and then its argument prototype would still apply. */
71719 /* The GNU C library defines this for functions which it implements
71720 to always fail with ENOSYS. Some functions are actually named
71721 something starting with __ and the normal name is an alias. */
71722 #if defined __stub_$ac_func || defined __stub___$ac_func
71729 return $ac_func ();
71734 rm -f conftest.$ac_objext conftest$ac_exeext
71735 if { (ac_try="$ac_link"
71736 case "(($ac_try" in
71737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71738 *) ac_try_echo=$ac_try;;
71740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71741 $as_echo "$ac_try_echo") >&5
71742 (eval "$ac_link") 2>conftest.er1
71744 grep -v '^ *+' conftest.er1 >conftest.err
71746 cat conftest.err >&5
71747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71748 (exit $ac_status); } && {
71749 test -z "$ac_c_werror_flag" ||
71750 test ! -s conftest.err
71751 } && test -s conftest$ac_exeext && {
71752 test "$cross_compiling" = yes ||
71753 $as_test_x conftest$ac_exeext
71755 eval "$as_ac_var=yes"
71757 $as_echo "$as_me: failed program was:" >&5
71758 sed 's/^/| /' conftest.$ac_ext >&5
71760 eval "$as_ac_var=no"
71763 rm -rf conftest.dSYM
71764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71765 conftest$ac_exeext conftest.$ac_ext
71767 ac_res=`eval 'as_val=${'$as_ac_var'}
71768 $as_echo "$as_val"'`
71769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71770 $as_echo "$ac_res" >&6; }
71771 as_val=`eval 'as_val=${'$as_ac_var'}
71772 $as_echo "$as_val"'`
71773 if test "x$as_val" = x""yes; then
71774 cat >>confdefs.h <<_ACEOF
71775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71777 ice_have_strcasecmp=yes
71781 if test "${ice_have_strcasecmp}" = yes; then
71782 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
71783 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
71784 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
71785 $as_echo_n "(cached) " >&6
71788 ice_cv_have_strcasecmp_decl=no
71789 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71790 ice_re_word='(^|[^a-zA-Z0-9_])'
71791 for header in string.h strings.h; do
71792 # Check for ordinary declaration
71793 cat >conftest.$ac_ext <<_ACEOF
71796 cat confdefs.h >>conftest.$ac_ext
71797 cat >>conftest.$ac_ext <<_ACEOF
71798 /* end confdefs.h. */
71802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71803 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
71804 ice_cv_have_strcasecmp_decl=yes
71808 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71812 cat >conftest.$ac_ext <<_ACEOF
71815 cat confdefs.h >>conftest.$ac_ext
71816 cat >>conftest.$ac_ext <<_ACEOF
71817 /* end confdefs.h. */
71821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71822 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71823 ice_cv_have_strcasecmp_decl=yes
71827 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71834 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
71835 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
71836 if test "$ice_cv_have_strcasecmp_decl" = yes; then
71838 cat >>confdefs.h <<_ACEOF
71839 #define HAVE_STRCASECMP_DECL 1
71847 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile common-src/versuff.c config/Makefile device-src/Makefile application-src/Makefile example/Makefile example/amanda-client.conf example/amanda.conf example/xinetd.amandaclient example/xinetd.amandaserver example/inetd.conf.amandaclient example/inetd.conf.amandaserver example/chg-mcutil.conf example/template.d/advanced.conf example/template.d/amanda-S3.conf example/template.d/amanda-harddisk.conf example/template.d/amanda-single-tape.conf example/template.d/amanda-tape-changer.conf gnulib/Makefile installcheck/Makefile man/Makefile oldrecover-src/Makefile packaging/Makefile perl/Makefile po/Makefile recover-src/Makefile restore-src/Makefile server-src/Makefile xfer-src/Makefile"
71850 cat >confcache <<\_ACEOF
71851 # This file is a shell script that caches the results of configure
71852 # tests run on this system so they can be shared between configure
71853 # scripts and configure runs, see configure's option --config-cache.
71854 # It is not useful on other systems. If it contains results you don't
71855 # want to keep, you may remove or edit it.
71857 # config.status only pays attention to the cache file if you give it
71858 # the --recheck option to rerun configure.
71860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
71861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
71862 # following values.
71866 # The following way of writing the cache mishandles newlines in values,
71867 # but we know of no workaround that is simple, portable, and efficient.
71868 # So, we kill variables containing newlines.
71869 # Ultrix sh set writes to stderr and can't be redirected directly,
71870 # and sets the high bit in the cache file unless we assign to the vars.
71872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
71873 eval ac_val=\$$ac_var
71877 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
71878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
71881 _ | IFS | as_nl) ;; #(
71882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
71883 *) $as_unset $ac_var ;;
71889 case $as_nl`(ac_space=' '; set) 2>&1` in #(
71890 *${as_nl}ac_space=\ *)
71891 # `set' does not quote correctly, so add quotes (double-quote
71892 # substitution turns \\\\ into \\, and sed turns \\ into \).
71895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
71898 # `set' quotes correctly as required by POSIX, so do not add quotes.
71899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
71910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
71912 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
71913 if test -w "$cache_file"; then
71914 test "x$cache_file" != "x/dev/null" &&
71915 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
71916 $as_echo "$as_me: updating cache $cache_file" >&6;}
71917 cat confcache >$cache_file
71919 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
71920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
71926 # Let make expand exec_prefix.
71927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
71929 DEFS=-DHAVE_CONFIG_H
71933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
71934 # 1. Remove the extension, and $U if already installed.
71935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
71936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
71937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
71938 # will be set to the directory where LIBOBJS objects are built.
71939 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
71940 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
71942 LIBOBJS=$ac_libobjs
71944 LTLIBOBJS=$ac_ltlibobjs
71947 if test -n "$EXEEXT"; then
71949 am__EXEEXT_FALSE='#'
71951 am__EXEEXT_TRUE='#'
71955 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
71956 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
71957 Usually this means the macro was only invoked conditionally." >&5
71958 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
71959 Usually this means the macro was only invoked conditionally." >&2;}
71960 { (exit 1); exit 1; }; }
71962 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
71963 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
71964 Usually this means the macro was only invoked conditionally." >&5
71965 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
71966 Usually this means the macro was only invoked conditionally." >&2;}
71967 { (exit 1); exit 1; }; }
71969 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
71970 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71971 Usually this means the macro was only invoked conditionally." >&5
71972 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
71973 Usually this means the macro was only invoked conditionally." >&2;}
71974 { (exit 1); exit 1; }; }
71979 if test -n "$gl_LIBOBJS"; then
71980 # Remove the extension.
71981 sed_drop_objext='s/\.o$//;s/\.obj$//'
71982 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71983 gl_libobjs="$gl_libobjs $i.$ac_objext"
71984 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
71987 gl_LIBOBJS=$gl_libobjs
71989 gl_LTLIBOBJS=$gl_ltlibobjs
71995 if test -n "$gltests_LIBOBJS"; then
71996 # Remove the extension.
71997 sed_drop_objext='s/\.o$//;s/\.obj$//'
71998 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
71999 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
72000 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
72003 gltests_LIBOBJS=$gltests_libobjs
72005 gltests_LTLIBOBJS=$gltests_ltlibobjs
72008 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
72009 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
72010 Usually this means the macro was only invoked conditionally." >&5
72011 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
72012 Usually this means the macro was only invoked conditionally." >&2;}
72013 { (exit 1); exit 1; }; }
72015 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
72016 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
72017 Usually this means the macro was only invoked conditionally." >&5
72018 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
72019 Usually this means the macro was only invoked conditionally." >&2;}
72020 { (exit 1); exit 1; }; }
72022 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
72023 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
72024 Usually this means the macro was only invoked conditionally." >&5
72025 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
72026 Usually this means the macro was only invoked conditionally." >&2;}
72027 { (exit 1); exit 1; }; }
72029 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
72030 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
72031 Usually this means the macro was only invoked conditionally." >&5
72032 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
72033 Usually this means the macro was only invoked conditionally." >&2;}
72034 { (exit 1); exit 1; }; }
72036 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
72037 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
72038 Usually this means the macro was only invoked conditionally." >&5
72039 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
72040 Usually this means the macro was only invoked conditionally." >&2;}
72041 { (exit 1); exit 1; }; }
72043 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
72044 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
72045 Usually this means the macro was only invoked conditionally." >&5
72046 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
72047 Usually this means the macro was only invoked conditionally." >&2;}
72048 { (exit 1); exit 1; }; }
72050 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
72051 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
72052 Usually this means the macro was only invoked conditionally." >&5
72053 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
72054 Usually this means the macro was only invoked conditionally." >&2;}
72055 { (exit 1); exit 1; }; }
72057 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
72058 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
72059 Usually this means the macro was only invoked conditionally." >&5
72060 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
72061 Usually this means the macro was only invoked conditionally." >&2;}
72062 { (exit 1); exit 1; }; }
72064 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
72065 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
72066 Usually this means the macro was only invoked conditionally." >&5
72067 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
72068 Usually this means the macro was only invoked conditionally." >&2;}
72069 { (exit 1); exit 1; }; }
72071 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
72072 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
72073 Usually this means the macro was only invoked conditionally." >&5
72074 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
72075 Usually this means the macro was only invoked conditionally." >&2;}
72076 { (exit 1); exit 1; }; }
72078 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
72079 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
72080 Usually this means the macro was only invoked conditionally." >&5
72081 $as_echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
72082 Usually this means the macro was only invoked conditionally." >&2;}
72083 { (exit 1); exit 1; }; }
72085 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
72086 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
72087 Usually this means the macro was only invoked conditionally." >&5
72088 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
72089 Usually this means the macro was only invoked conditionally." >&2;}
72090 { (exit 1); exit 1; }; }
72092 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
72093 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
72094 Usually this means the macro was only invoked conditionally." >&5
72095 $as_echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
72096 Usually this means the macro was only invoked conditionally." >&2;}
72097 { (exit 1); exit 1; }; }
72099 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
72100 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72101 Usually this means the macro was only invoked conditionally." >&5
72102 $as_echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
72103 Usually this means the macro was only invoked conditionally." >&2;}
72104 { (exit 1); exit 1; }; }
72106 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
72107 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
72108 Usually this means the macro was only invoked conditionally." >&5
72109 $as_echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
72110 Usually this means the macro was only invoked conditionally." >&2;}
72111 { (exit 1); exit 1; }; }
72113 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
72114 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
72115 Usually this means the macro was only invoked conditionally." >&5
72116 $as_echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
72117 Usually this means the macro was only invoked conditionally." >&2;}
72118 { (exit 1); exit 1; }; }
72120 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
72121 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
72122 Usually this means the macro was only invoked conditionally." >&5
72123 $as_echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
72124 Usually this means the macro was only invoked conditionally." >&2;}
72125 { (exit 1); exit 1; }; }
72127 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
72128 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72129 Usually this means the macro was only invoked conditionally." >&5
72130 $as_echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
72131 Usually this means the macro was only invoked conditionally." >&2;}
72132 { (exit 1); exit 1; }; }
72134 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
72135 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72136 Usually this means the macro was only invoked conditionally." >&5
72137 $as_echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
72138 Usually this means the macro was only invoked conditionally." >&2;}
72139 { (exit 1); exit 1; }; }
72141 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
72142 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72143 Usually this means the macro was only invoked conditionally." >&5
72144 $as_echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
72145 Usually this means the macro was only invoked conditionally." >&2;}
72146 { (exit 1); exit 1; }; }
72148 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
72149 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72150 Usually this means the macro was only invoked conditionally." >&5
72151 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
72152 Usually this means the macro was only invoked conditionally." >&2;}
72153 { (exit 1); exit 1; }; }
72155 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
72156 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72157 Usually this means the macro was only invoked conditionally." >&5
72158 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
72159 Usually this means the macro was only invoked conditionally." >&2;}
72160 { (exit 1); exit 1; }; }
72162 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
72163 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72164 Usually this means the macro was only invoked conditionally." >&5
72165 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
72166 Usually this means the macro was only invoked conditionally." >&2;}
72167 { (exit 1); exit 1; }; }
72169 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
72170 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72171 Usually this means the macro was only invoked conditionally." >&5
72172 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
72173 Usually this means the macro was only invoked conditionally." >&2;}
72174 { (exit 1); exit 1; }; }
72176 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
72177 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72178 Usually this means the macro was only invoked conditionally." >&5
72179 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
72180 Usually this means the macro was only invoked conditionally." >&2;}
72181 { (exit 1); exit 1; }; }
72183 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
72184 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
72185 Usually this means the macro was only invoked conditionally." >&5
72186 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
72187 Usually this means the macro was only invoked conditionally." >&2;}
72188 { (exit 1); exit 1; }; }
72190 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
72191 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72192 Usually this means the macro was only invoked conditionally." >&5
72193 $as_echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
72194 Usually this means the macro was only invoked conditionally." >&2;}
72195 { (exit 1); exit 1; }; }
72197 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
72198 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
72199 Usually this means the macro was only invoked conditionally." >&5
72200 $as_echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
72201 Usually this means the macro was only invoked conditionally." >&2;}
72202 { (exit 1); exit 1; }; }
72204 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
72205 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72206 Usually this means the macro was only invoked conditionally." >&5
72207 $as_echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
72208 Usually this means the macro was only invoked conditionally." >&2;}
72209 { (exit 1); exit 1; }; }
72211 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
72212 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72213 Usually this means the macro was only invoked conditionally." >&5
72214 $as_echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
72215 Usually this means the macro was only invoked conditionally." >&2;}
72216 { (exit 1); exit 1; }; }
72218 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
72219 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72220 Usually this means the macro was only invoked conditionally." >&5
72221 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
72222 Usually this means the macro was only invoked conditionally." >&2;}
72223 { (exit 1); exit 1; }; }
72225 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
72226 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72227 Usually this means the macro was only invoked conditionally." >&5
72228 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
72229 Usually this means the macro was only invoked conditionally." >&2;}
72230 { (exit 1); exit 1; }; }
72232 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
72233 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72234 Usually this means the macro was only invoked conditionally." >&5
72235 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
72236 Usually this means the macro was only invoked conditionally." >&2;}
72237 { (exit 1); exit 1; }; }
72239 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
72240 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72241 Usually this means the macro was only invoked conditionally." >&5
72242 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
72243 Usually this means the macro was only invoked conditionally." >&2;}
72244 { (exit 1); exit 1; }; }
72246 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
72247 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72248 Usually this means the macro was only invoked conditionally." >&5
72249 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
72250 Usually this means the macro was only invoked conditionally." >&2;}
72251 { (exit 1); exit 1; }; }
72253 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
72254 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72255 Usually this means the macro was only invoked conditionally." >&5
72256 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
72257 Usually this means the macro was only invoked conditionally." >&2;}
72258 { (exit 1); exit 1; }; }
72260 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
72261 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72262 Usually this means the macro was only invoked conditionally." >&5
72263 $as_echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
72264 Usually this means the macro was only invoked conditionally." >&2;}
72265 { (exit 1); exit 1; }; }
72267 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
72268 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72269 Usually this means the macro was only invoked conditionally." >&5
72270 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
72271 Usually this means the macro was only invoked conditionally." >&2;}
72272 { (exit 1); exit 1; }; }
72274 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
72275 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
72276 Usually this means the macro was only invoked conditionally." >&5
72277 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
72278 Usually this means the macro was only invoked conditionally." >&2;}
72279 { (exit 1); exit 1; }; }
72282 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
72283 { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
72284 Usually this means the macro was only invoked conditionally." >&5
72285 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
72286 Usually this means the macro was only invoked conditionally." >&2;}
72287 { (exit 1); exit 1; }; }
72289 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
72290 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
72291 Usually this means the macro was only invoked conditionally." >&5
72292 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
72293 Usually this means the macro was only invoked conditionally." >&2;}
72294 { (exit 1); exit 1; }; }
72297 : ${CONFIG_STATUS=./config.status}
72299 ac_clean_files_save=$ac_clean_files
72300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
72301 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
72302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
72303 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72305 # Generated by $as_me.
72306 # Run this file to recreate the current configuration.
72307 # Compiler output produced by configure, useful for debugging
72308 # configure, is in config.log if it exists.
72311 ac_cs_recheck=false
72313 SHELL=\${CONFIG_SHELL-$SHELL}
72316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72317 ## --------------------- ##
72318 ## M4sh Initialization. ##
72319 ## --------------------- ##
72321 # Be more Bourne compatible
72322 DUALCASE=1; export DUALCASE # for MKS sh
72323 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
72326 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
72327 # is contrary to our usage. Disable this feature.
72328 alias -g '${1+"$@"}'='"$@"'
72329 setopt NO_GLOB_SUBST
72331 case `(set -o) 2>/dev/null` in
72332 *posix*) set -o posix ;;
72341 # Avoid depending upon Character Ranges.
72342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
72343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
72344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
72345 as_cr_digits='0123456789'
72346 as_cr_alnum=$as_cr_Letters$as_cr_digits
72351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
72352 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
72353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
72354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
72355 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
72356 as_echo='printf %s\n'
72357 as_echo_n='printf %s'
72359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
72360 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
72361 as_echo_n='/usr/ucb/echo -n'
72363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
72364 as_echo_n_body='eval
72368 expr "X$arg" : "X\\(.*\\)$as_nl";
72369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
72371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72373 export as_echo_n_body
72374 as_echo_n='sh -c $as_echo_n_body as_echo'
72376 export as_echo_body
72377 as_echo='sh -c $as_echo_body as_echo'
72380 # The user is always right.
72381 if test "${PATH_SEPARATOR+set}" != set; then
72383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
72384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
72389 # Support unset when possible.
72390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
72398 # We need space, tab and new line, in precisely that order. Quoting is
72399 # there to prevent editors from complaining about space-tab.
72400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
72401 # splitting by setting IFS to empty value.)
72404 # Find who we are. Look in the path if we contain no directory separator.
72406 *[\\/]* ) as_myself=$0 ;;
72407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72408 for as_dir in $PATH
72411 test -z "$as_dir" && as_dir=.
72412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
72418 # We did not find ourselves, most probably we were run as `sh COMMAND'
72419 # in which case we are not to be found in the path.
72420 if test "x$as_myself" = x; then
72423 if test ! -f "$as_myself"; then
72424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
72425 { (exit 1); exit 1; }
72428 # Work around bugs in pre-3.0 UWIN ksh.
72429 for as_var in ENV MAIL MAILPATH
72430 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
72442 # Required to use basename.
72443 if expr a : '\(a\)' >/dev/null 2>&1 &&
72444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
72450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
72451 as_basename=basename
72457 # Name of the executable.
72458 as_me=`$as_basename -- "$0" ||
72459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72460 X"$0" : 'X\(//\)$' \| \
72461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72463 sed '/^.*\/\([^/][^/]*\)\/*$/{
72482 as_lineno_1=$LINENO
72483 as_lineno_2=$LINENO
72484 test "x$as_lineno_1" != "x$as_lineno_2" &&
72485 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
72487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
72488 # uniformly replaced by the line number. The first 'sed' inserts a
72489 # line-number line after each line using $LINENO; the second 'sed'
72490 # does the real work. The second script uses 'N' to pair each
72491 # line-number line with the line containing $LINENO, and appends
72492 # trailing '-' during substitution so that $LINENO is not a special
72493 # case at line end.
72494 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
72495 # scripts with optimization help from Paolo Bonzini. Blame Lee
72496 # E. McMahon (1931-1989) for sed's syntax. :-)
72508 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
72511 ' >$as_me.lineno &&
72512 chmod +x "$as_me.lineno" ||
72513 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
72514 { (exit 1); exit 1; }; }
72516 # Don't try to exec as it changes $[0], causing all sort of problems
72517 # (the dirname of $[0] is not the place where we might find the
72518 # original and so on. Autoconf is especially sensitive to this).
72519 . "./$as_me.lineno"
72520 # Exit status is that of the last command.
72525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
72531 ECHO_C= ECHO_N= ECHO_T=
72532 case `echo -n x` in
72534 case `echo 'x\c'` in
72535 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
72541 if expr a : '\(a\)' >/dev/null 2>&1 &&
72542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
72548 rm -f conf$$ conf$$.exe conf$$.file
72549 if test -d conf$$.dir; then
72550 rm -f conf$$.dir/conf$$.file
72553 mkdir conf$$.dir 2>/dev/null
72555 if (echo >conf$$.file) 2>/dev/null; then
72556 if ln -s conf$$.file conf$$ 2>/dev/null; then
72558 # ... but there are two gotchas:
72559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
72560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
72561 # In both cases, we have to default to `cp -p'.
72562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
72564 elif ln conf$$.file conf$$ 2>/dev/null; then
72572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
72573 rmdir conf$$.dir 2>/dev/null
72575 if mkdir -p . 2>/dev/null; then
72578 test -d ./-p && rmdir ./-p
72582 if test -x / >/dev/null 2>&1; then
72583 as_test_x='test -x'
72585 if ls -dL / >/dev/null 2>&1; then
72592 if test -d "$1"; then
72598 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
72599 ???[sx]*):;;*)false;;esac;fi
72603 as_executable_p=$as_test_x
72605 # Sed expression to map a string onto a valid CPP name.
72606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
72608 # Sed expression to map a string onto a valid variable name.
72609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
72614 # Save the log message, to keep $[0] and so on meaningful, and to
72615 # report actual input values of CONFIG_FILES etc. instead of their
72616 # values after options handling.
72618 This file was extended by $as_me, which was
72619 generated by GNU Autoconf 2.63. Invocation command line was
72621 CONFIG_FILES = $CONFIG_FILES
72622 CONFIG_HEADERS = $CONFIG_HEADERS
72623 CONFIG_LINKS = $CONFIG_LINKS
72624 CONFIG_COMMANDS = $CONFIG_COMMANDS
72627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
72632 case $ac_config_files in *"
72633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
72636 case $ac_config_headers in *"
72637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
72641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72642 # Files that config.status was made for.
72643 config_files="$ac_config_files"
72644 config_headers="$ac_config_headers"
72645 config_commands="$ac_config_commands"
72649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72651 \`$as_me' instantiates files from templates according to the
72652 current configuration.
72654 Usage: $0 [OPTION]... [FILE]...
72656 -h, --help print this help, then exit
72657 -V, --version print version number and configuration settings, then exit
72658 -q, --quiet, --silent
72659 do not print progress messages
72660 -d, --debug don't remove temporary files
72661 --recheck update $as_me by reconfiguring in the same conditions
72662 --file=FILE[:TEMPLATE]
72663 instantiate the configuration file FILE
72664 --header=FILE[:TEMPLATE]
72665 instantiate the configuration header FILE
72667 Configuration files:
72670 Configuration headers:
72673 Configuration commands:
72676 Report bugs to <bug-autoconf@gnu.org>."
72679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72682 configured by $0, generated by GNU Autoconf 2.63,
72683 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
72685 Copyright (C) 2008 Free Software Foundation, Inc.
72686 This config.status script is free software; the Free Software Foundation
72687 gives unlimited permission to copy, distribute and modify it."
72694 test -n "\$AWK" || AWK=awk
72697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72698 # The default lists apply if the user does not specify any file.
72704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
72705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
72716 # Handling of the options.
72717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
72720 $as_echo "$ac_cs_version"; exit ;;
72721 --debug | --debu | --deb | --de | --d | -d )
72723 --file | --fil | --fi | --f )
72726 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72728 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
72729 ac_need_defaults=false;;
72730 --header | --heade | --head | --hea )
72733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72735 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
72736 ac_need_defaults=false;;
72738 # Conflict between --help and --header
72739 { $as_echo "$as_me: error: ambiguous option: $1
72740 Try \`$0 --help' for more information." >&2
72741 { (exit 1); exit 1; }; };;
72742 --help | --hel | -h )
72743 $as_echo "$ac_cs_usage"; exit ;;
72744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72745 | -silent | --silent | --silen | --sile | --sil | --si | --s)
72748 # This is an error.
72749 -*) { $as_echo "$as_me: error: unrecognized option: $1
72750 Try \`$0 --help' for more information." >&2
72751 { (exit 1); exit 1; }; } ;;
72753 *) ac_config_targets="$ac_config_targets $1"
72754 ac_need_defaults=false ;;
72760 ac_configure_extra_args=
72762 if $ac_cs_silent; then
72764 ac_configure_extra_args="$ac_configure_extra_args --silent"
72768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72769 if \$ac_cs_recheck; then
72770 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72772 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
72773 CONFIG_SHELL='$SHELL'
72774 export CONFIG_SHELL
72779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72784 ## Running $as_me. ##
72790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
72795 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
72796 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
72797 # from automake < 1.5.
72798 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
72799 # Capture the value of LINGUAS because we need it to compute CATALOGS.
72800 LINGUAS="${LINGUAS-%UNSET%}"
72805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
72807 # Handling of arguments.
72808 for ac_config_target in $ac_config_targets
72810 case $ac_config_target in
72811 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
72812 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
72813 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
72814 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
72815 "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
72816 "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
72817 "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
72818 "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
72819 "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
72820 "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
72821 "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
72822 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
72823 "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
72824 "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
72825 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
72826 "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
72827 "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
72828 "example/xinetd.amandaclient") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaclient" ;;
72829 "example/xinetd.amandaserver") CONFIG_FILES="$CONFIG_FILES example/xinetd.amandaserver" ;;
72830 "example/inetd.conf.amandaclient") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaclient" ;;
72831 "example/inetd.conf.amandaserver") CONFIG_FILES="$CONFIG_FILES example/inetd.conf.amandaserver" ;;
72832 "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
72833 "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
72834 "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
72835 "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
72836 "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
72837 "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
72838 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
72839 "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
72840 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
72841 "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
72842 "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
72843 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
72844 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
72845 "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
72846 "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
72847 "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
72848 "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
72850 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
72851 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
72852 { (exit 1); exit 1; }; };;
72857 # If the user did not use the arguments to specify the items to instantiate,
72858 # then the envvar interface is used. Set only those that are not.
72859 # We use the long form for the default assignment because of an extremely
72860 # bizarre bug on SunOS 4.1.3.
72861 if $ac_need_defaults; then
72862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
72864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
72867 # Have a temporary directory for convenience. Make it in the build tree
72868 # simply because there is no reason against having it here, and in addition,
72869 # creating and moving files from /tmp can sometimes cause problems.
72870 # Hook for its removal unless debugging.
72871 # Note that there is a small window in which the directory will not be cleaned:
72872 # after its creation but before its name has been assigned to `$tmp'.
72876 trap 'exit_status=$?
72877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
72879 trap '{ (exit 1); exit 1; }' 1 2 13 15
72881 # Create a (secure) tmp directory for tmp files.
72884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
72885 test -n "$tmp" && test -d "$tmp"
72888 tmp=./conf$$-$RANDOM
72889 (umask 077 && mkdir "$tmp")
72892 $as_echo "$as_me: cannot create a temporary directory in ." >&2
72893 { (exit 1); exit 1; }
72896 # Set up the scripts for CONFIG_FILES section.
72897 # No need to generate them if there are no CONFIG_FILES.
72898 # This happens for instance with `./config.status config.h'.
72899 if test -n "$CONFIG_FILES"; then
72903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
72904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
72907 ac_cs_awk_cr=$ac_cr
72910 echo 'BEGIN {' >"$tmp/subs1.awk" &&
72915 echo "cat >conf$$subs.awk <<_ACEOF" &&
72916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
72918 } >conf$$subs.sh ||
72919 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72920 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72921 { (exit 1); exit 1; }; }
72922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
72924 for ac_last_try in false false false false false :; do
72925 . ./conf$$subs.sh ||
72926 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72927 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72928 { (exit 1); exit 1; }; }
72930 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
72931 if test $ac_delim_n = $ac_delim_num; then
72933 elif $ac_last_try; then
72934 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
72935 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
72936 { (exit 1); exit 1; }; }
72938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
72941 rm -f conf$$subs.sh
72943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72944 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
72948 s/^/S["/; s/!.*/"]=/
72958 s/\(.\{148\}\).*/\1/
72960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
72965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72972 s/\(.\{148\}\).*/\1/
72974 s/["\\]/\\&/g; s/^/"/; s/$/"/
72978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
72983 ' <conf$$subs.awk | sed '
72988 ' >>$CONFIG_STATUS || ac_write_fail=1
72989 rm -f conf$$subs.awk
72990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
72992 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
72993 for (key in S) S_is_set[key] = 1
72999 nfields = split(line, field, "@")
73001 len = length(field[1])
73002 for (i = 2; i < nfields; i++) {
73004 keylen = length(key)
73005 if (S_is_set[key]) {
73007 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
73008 len += length(value) + length(field[++i])
73019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
73021 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
73024 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
73025 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
73026 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
73027 { (exit 1); exit 1; }; }
73030 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73031 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73032 # trailing colons and then remove the whole line if VPATH becomes empty
73033 # (actually we leave an empty line to preserve line numbers).
73034 if test "x$srcdir" = x.; then
73035 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73036 s/:*\$(srcdir):*/:/
73037 s/:*\${srcdir}:*/:/
73039 s/^\([^=]*=[ ]*\):*/\1/
73045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73046 fi # test -n "$CONFIG_FILES"
73048 # Set up the scripts for CONFIG_HEADERS section.
73049 # No need to generate them if there are no CONFIG_HEADERS.
73050 # This happens for instance with `./config.status Makefile'.
73051 if test -n "$CONFIG_HEADERS"; then
73052 cat >"$tmp/defines.awk" <<\_ACAWK ||
73056 # Transform confdefs.h into an awk script `defines.awk', embedded as
73057 # here-document in config.status, that substitutes the proper values into
73058 # config.h.in to produce config.h.
73060 # Create a delimiter string that does not exist in confdefs.h, to ease
73061 # handling of long lines.
73063 for ac_last_try in false false :; do
73064 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
73065 if test -z "$ac_t"; then
73067 elif $ac_last_try; then
73068 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
73069 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
73070 { (exit 1); exit 1; }; }
73072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
73076 # For the awk script, D is an array of macro values keyed by name,
73077 # likewise P contains macro parameters if any. Preserve backslash
73078 # newline sequences.
73080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
73082 s/.\{148\}/&'"$ac_delim"'/g
73085 s/^[ ]*#[ ]*define[ ][ ]*/ /
73092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
73094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
73098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
73099 D["\1"]=" \3\\\\\\n"\\/p
73101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
73106 s/.\{148\}/&'"$ac_delim"'/g
73111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
73114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
73116 ' <confdefs.h | sed '
73117 s/'"$ac_delim"'/"\\\
73118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
73120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73121 for (key in D) D_is_set[key] = 1
73124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
73126 split(line, arg, " ")
73127 if (arg[1] == "#") {
73131 defundef = substr(arg[1], 2)
73134 split(mac1, mac2, "(") #)
73136 prefix = substr(line, 1, index(line, defundef) - 1)
73137 if (D_is_set[macro]) {
73138 # Preserve the white space surrounding the "#".
73139 print prefix "define", macro P[macro] D[macro]
73142 # Replace #undef with comments. This is necessary, for example,
73143 # in the case of _POSIX_SOURCE, which is predefined and required
73144 # on some systems where configure will not decide to define it.
73145 if (defundef == "undef") {
73146 print "/*", prefix defundef, macro, "*/"
73154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73155 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
73156 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
73157 { (exit 1); exit 1; }; }
73158 fi # test -n "$CONFIG_HEADERS"
73161 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
73166 :[FHLC]) ac_mode=$ac_tag; continue;;
73168 case $ac_mode$ac_tag in
73170 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
73171 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
73172 { (exit 1); exit 1; }; };;
73173 :[FH]-) ac_tag=-:-;;
73174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
73191 -) ac_f="$tmp/stdin";;
73192 *) # Look for the file first in the build tree, then in the source tree
73193 # (if the path is not absolute). The absolute path cannot be DOS-style,
73194 # because $ac_f cannot contain `:'.
73198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
73200 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
73201 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
73202 { (exit 1); exit 1; }; };;
73204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
73205 ac_file_inputs="$ac_file_inputs '$ac_f'"
73208 # Let's still pretend it is `configure' which instantiates (i.e., don't
73209 # use $as_me), people would be surprised to read:
73210 # /* config.h. Generated by config.status. */
73211 configure_input='Generated from '`
73212 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
73214 if test x"$ac_file" != x-; then
73215 configure_input="$ac_file. $configure_input"
73216 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
73217 $as_echo "$as_me: creating $ac_file" >&6;}
73219 # Neutralize special characters interpreted by sed in replacement strings.
73220 case $configure_input in #(
73221 *\&* | *\|* | *\\* )
73222 ac_sed_conf_input=`$as_echo "$configure_input" |
73223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
73224 *) ac_sed_conf_input=$configure_input;;
73228 *:-:* | *:-) cat >"$tmp/stdin" \
73229 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73230 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73231 { (exit 1); exit 1; }; } ;;
73236 ac_dir=`$as_dirname -- "$ac_file" ||
73237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73238 X"$ac_file" : 'X\(//\)[^/]' \| \
73239 X"$ac_file" : 'X\(//\)$' \| \
73240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
73241 $as_echo X"$ac_file" |
73242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73246 /^X\(\/\/\)[^/].*/{
73261 -*) as_dir=./$as_dir;;
73263 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73268 *) as_qdir=$as_dir;;
73270 as_dirs="'$as_qdir' $as_dirs"
73271 as_dir=`$as_dirname -- "$as_dir" ||
73272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73273 X"$as_dir" : 'X\(//\)[^/]' \| \
73274 X"$as_dir" : 'X\(//\)$' \| \
73275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73276 $as_echo X"$as_dir" |
73277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73281 /^X\(\/\/\)[^/].*/{
73294 test -d "$as_dir" && break
73296 test -z "$as_dirs" || eval "mkdir $as_dirs"
73297 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73298 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73299 { (exit 1); exit 1; }; }; }
73303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
73305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
73306 # A ".." for each directory in $ac_dir_suffix.
73307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
73308 case $ac_top_builddir_sub in
73309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
73310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
73313 ac_abs_top_builddir=$ac_pwd
73314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
73315 # for backward compatibility:
73316 ac_top_builddir=$ac_top_build_prefix
73319 .) # We are building in place.
73321 ac_top_srcdir=$ac_top_builddir_sub
73322 ac_abs_top_srcdir=$ac_pwd ;;
73323 [\\/]* | ?:[\\/]* ) # Absolute name.
73324 ac_srcdir=$srcdir$ac_dir_suffix;
73325 ac_top_srcdir=$srcdir
73326 ac_abs_top_srcdir=$srcdir ;;
73327 *) # Relative name.
73328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
73329 ac_top_srcdir=$ac_top_build_prefix$srcdir
73330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
73332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
73342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
73343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
73345 ac_MKDIR_P=$MKDIR_P
73347 [\\/$]* | ?:[\\/]* ) ;;
73348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
73352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73353 # If the template does not know about datarootdir, expand it.
73354 # FIXME: This hack should be removed a few years after 2.60.
73355 ac_datarootdir_hack=; ac_datarootdir_seen=
73368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
73369 *datarootdir*) ac_datarootdir_seen=yes;;
73370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
73371 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
73372 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
73374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73375 ac_datarootdir_hack='
73376 s&@datadir@&$datadir&g
73377 s&@docdir@&$docdir&g
73378 s&@infodir@&$infodir&g
73379 s&@localedir@&$localedir&g
73380 s&@mandir@&$mandir&g
73381 s&\\\${datarootdir}&$datarootdir&g' ;;
73385 # Neutralize VPATH when `$srcdir' = `.'.
73386 # Shell code in configure.ac might set extrasub.
73387 # FIXME: do we really want to maintain this feature?
73388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73389 ac_sed_extra="$ac_vpsub
73392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
73395 s|@configure_input@|$ac_sed_conf_input|;t t
73396 s&@top_builddir@&$ac_top_builddir_sub&;t t
73397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
73398 s&@srcdir@&$ac_srcdir&;t t
73399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
73400 s&@top_srcdir@&$ac_top_srcdir&;t t
73401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
73402 s&@builddir@&$ac_builddir&;t t
73403 s&@abs_builddir@&$ac_abs_builddir&;t t
73404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
73405 s&@INSTALL@&$ac_INSTALL&;t t
73406 s&@MKDIR_P@&$ac_MKDIR_P&;t t
73407 $ac_datarootdir_hack
73409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
73410 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73411 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73412 { (exit 1); exit 1; }; }
73414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73415 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
73416 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
73417 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73418 which seems to be undefined. Please make sure it is defined." >&5
73419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73420 which seems to be undefined. Please make sure it is defined." >&2;}
73424 -) cat "$tmp/out" && rm -f "$tmp/out";;
73425 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
73427 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73428 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73429 { (exit 1); exit 1; }; }
73435 if test x"$ac_file" != x-; then
73437 $as_echo "/* $configure_input */" \
73438 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
73439 } >"$tmp/config.h" \
73440 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73441 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73442 { (exit 1); exit 1; }; }
73443 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
73444 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
73445 $as_echo "$as_me: $ac_file is unchanged" >&6;}
73448 mv "$tmp/config.h" "$ac_file" \
73449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
73450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
73451 { (exit 1); exit 1; }; }
73454 $as_echo "/* $configure_input */" \
73455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
73456 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
73457 $as_echo "$as_me: error: could not create -" >&2;}
73458 { (exit 1); exit 1; }; }
73460 # Compute "$ac_file"'s index in $config_headers.
73463 for _am_header in $config_headers :; do
73464 case $_am_header in
73465 $_am_arg | $_am_arg:* )
73468 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
73471 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
73472 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73473 X"$_am_arg" : 'X\(//\)[^/]' \| \
73474 X"$_am_arg" : 'X\(//\)$' \| \
73475 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
73476 $as_echo X"$_am_arg" |
73477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73481 /^X\(\/\/\)[^/].*/{
73493 s/.*/./; q'`/stamp-h$_am_stamp_count
73496 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
73497 $as_echo "$as_me: executing $ac_file commands" >&6;}
73502 case $ac_file$ac_mode in
73503 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
73504 # Autoconf 2.62 quotes --file arguments for eval, but not when files
73505 # are listed without --file. Let's play safe and only enable the eval
73506 # if we detect the quoting.
73507 case $CONFIG_FILES in
73508 *\'*) eval set x "$CONFIG_FILES" ;;
73509 *) set x $CONFIG_FILES ;;
73514 # Strip MF so we end up with the name of the file.
73515 mf=`echo "$mf" | sed -e 's/:.*$//'`
73516 # Check whether this is an Automake generated Makefile or not.
73517 # We used to match only the files named `Makefile.in', but
73518 # some people rename them; so instead we look at the file content.
73519 # Grep'ing the first line is not enough: some people post-process
73520 # each Makefile.in and add a new line on top of each file to say so.
73521 # Grep'ing the whole file is not good either: AIX grep has a line
73522 # limit of 2048, but all sed's we know have understand at least 4000.
73523 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
73524 dirpart=`$as_dirname -- "$mf" ||
73525 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73526 X"$mf" : 'X\(//\)[^/]' \| \
73527 X"$mf" : 'X\(//\)$' \| \
73528 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
73530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73534 /^X\(\/\/\)[^/].*/{
73550 # Extract the definition of DEPDIR, am__include, and am__quote
73551 # from the Makefile without running `make'.
73552 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
73553 test -z "$DEPDIR" && continue
73554 am__include=`sed -n 's/^am__include = //p' < "$mf"`
73555 test -z "am__include" && continue
73556 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
73557 # When using ansi2knr, U may be empty or an underscore; expand it
73558 U=`sed -n 's/^U = //p' < "$mf"`
73559 # Find all dependency output files, they are included files with
73560 # $(DEPDIR) in their names. We invoke sed twice because it is the
73561 # simplest approach to changing $(DEPDIR) to its actual value in the
73563 for file in `sed -n "
73564 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73565 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
73566 # Make sure the directory exists.
73567 test -f "$dirpart/$file" && continue
73568 fdir=`$as_dirname -- "$file" ||
73569 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73570 X"$file" : 'X\(//\)[^/]' \| \
73571 X"$file" : 'X\(//\)$' \| \
73572 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
73573 $as_echo X"$file" |
73574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73578 /^X\(\/\/\)[^/].*/{
73591 { as_dir=$dirpart/$fdir
73593 -*) as_dir=./$as_dir;;
73595 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
73599 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
73600 *) as_qdir=$as_dir;;
73602 as_dirs="'$as_qdir' $as_dirs"
73603 as_dir=`$as_dirname -- "$as_dir" ||
73604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73605 X"$as_dir" : 'X\(//\)[^/]' \| \
73606 X"$as_dir" : 'X\(//\)$' \| \
73607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
73608 $as_echo X"$as_dir" |
73609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
73613 /^X\(\/\/\)[^/].*/{
73626 test -d "$as_dir" && break
73628 test -z "$as_dirs" || eval "mkdir $as_dirs"
73629 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
73630 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
73631 { (exit 1); exit 1; }; }; }
73632 # echo "creating $dirpart/$file"
73633 echo '# dummy' > "$dirpart/$file"
73638 "po-directories":C)
73639 for ac_file in $CONFIG_FILES; do
73640 # Support "outfile[:infile[:infile...]]"
73642 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
73644 # PO directories have a Makefile.in generated from Makefile.in.in.
73645 case "$ac_file" in */Makefile.in)
73646 # Adjust a relative srcdir.
73647 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
73648 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
73649 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
73650 # In autoconf-2.13 it is called $ac_given_srcdir.
73651 # In autoconf-2.50 it is called $srcdir.
73652 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
73653 case "$ac_given_srcdir" in
73654 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
73655 /*) top_srcdir="$ac_given_srcdir" ;;
73656 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
73658 # Treat a directory as a PO directory if and only if it has a
73659 # POTFILES.in file. This allows packages to have multiple PO
73660 # directories under different names or in different locations.
73661 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
73662 rm -f "$ac_dir/POTFILES"
73663 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
73664 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
73665 POMAKEFILEDEPS="POTFILES.in"
73666 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
73667 # on $ac_dir but don't depend on user-specified configuration
73669 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
73670 # The LINGUAS file contains the set of available languages.
73671 if test -n "$OBSOLETE_ALL_LINGUAS"; then
73672 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
73674 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
73675 # Hide the ALL_LINGUAS assigment from automake < 1.5.
73676 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
73677 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
73679 # The set of available languages was given in configure.in.
73680 # Hide the ALL_LINGUAS assigment from automake < 1.5.
73681 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
73684 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
73685 # Compute UPDATEPOFILES
73686 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
73687 # Compute DUMMYPOFILES
73688 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
73690 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
73691 case "$ac_given_srcdir" in
73693 *) srcdirpre='$(srcdir)/' ;;
73699 for lang in $ALL_LINGUAS; do
73700 POFILES="$POFILES $srcdirpre$lang.po"
73701 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
73702 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
73703 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
73705 # CATALOGS depends on both $ac_dir and the user's LINGUAS
73706 # environment variable.
73708 if test -n "$ALL_LINGUAS"; then
73709 for presentlang in $ALL_LINGUAS; do
73711 if test "%UNSET%" != "$LINGUAS"; then
73712 desiredlanguages="$LINGUAS"
73714 desiredlanguages="$ALL_LINGUAS"
73716 for desiredlang in $desiredlanguages; do
73717 # Use the presentlang catalog if desiredlang is
73718 # a. equal to presentlang, or
73719 # b. a variant of presentlang (because in this case,
73720 # presentlang can be used as a fallback for messages
73721 # which are not translated in the desiredlang catalog).
73722 case "$desiredlang" in
73723 "$presentlang"*) useit=yes;;
73726 if test $useit = yes; then
73727 INST_LINGUAS="$INST_LINGUAS $presentlang"
73732 if test -n "$INST_LINGUAS"; then
73733 for lang in $INST_LINGUAS; do
73734 CATALOGS="$CATALOGS $lang.gmo"
73737 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
73738 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
73739 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
73740 if test -f "$f"; then
73742 *.orig | *.bak | *~) ;;
73743 *) cat "$f" >> "$ac_dir/Makefile" ;;
73756 { (exit 0); exit 0; }
73758 chmod +x $CONFIG_STATUS
73759 ac_clean_files=$ac_clean_files_save
73761 test $ac_write_fail = 0 ||
73762 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
73763 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
73764 { (exit 1); exit 1; }; }
73767 # configure is writing to config.log, and then calls config.status.
73768 # config.status does its own redirection, appending to config.log.
73769 # Unfortunately, on DOS this fails, as config.log is still kept open
73770 # by configure, so config.status won't be able to write to it; its
73771 # output is simply discarded. So we exec the FD to /dev/null,
73772 # effectively closing config.log, so it can be properly (re)opened and
73773 # appended to by config.status. When coming back to configure, we
73774 # need to make the FD available again.
73775 if test "$no_create" != yes; then
73777 ac_config_status_args=
73778 test "$silent" = yes &&
73779 ac_config_status_args="$ac_config_status_args --quiet"
73781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
73783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
73784 # would make configure fail if this is the last instruction.
73785 $ac_cs_success || { (exit 1); exit 1; }
73787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
73788 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
73789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
73796 # Extract the first word of "svn", so it can be a program name with args.
73797 set dummy svn; ac_word=$2
73798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
73799 $as_echo_n "checking for $ac_word... " >&6; }
73800 if test "${ac_cv_path_SVN+set}" = set; then
73801 $as_echo_n "(cached) " >&6
73805 ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
73808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73809 for as_dir in $LOCSYSPATH
73812 test -z "$as_dir" && as_dir=.
73813 for ac_exec_ext in '' $ac_executable_extensions; do
73814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
73815 ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
73816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
73826 SVN=$ac_cv_path_SVN
73827 if test -n "$SVN"; then
73828 { $as_echo "$as_me:$LINENO: result: $SVN" >&5
73829 $as_echo "$SVN" >&6; }
73831 { $as_echo "$as_me:$LINENO: result: no" >&5
73832 $as_echo "no" >&6; }
73836 { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
73837 $as_echo_n "checking Subversion revision information... " >&6; }
73838 if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
73839 rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
73840 url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
73841 ( echo '#define BUILT_REV "'$rev'"'
73842 echo '#define BUILT_BRANCH "'`basename "$url"`'"'
73843 ) > common-src/svn-info.h
73845 { $as_echo "$as_me:$LINENO: result: updated" >&5
73846 $as_echo "updated" >&6; }
73848 # Makefiles will be upset if the file doesn't exist, so double-check
73849 if test -f common-src/svn-info.h; then
73851 { $as_echo "$as_me:$LINENO: result: not changed" >&5
73852 $as_echo "not changed" >&6; }
73854 echo '/* no information available */' > common-src/svn-info.h
73855 { $as_echo "$as_me:$LINENO: result: not available" >&5
73856 $as_echo "not available" >&6; }
73864 echo "Compiler Flags:"
73865 echo " CFLAGS: ${CFLAGS-(none)}"
73866 echo " CPPFLAGS: ${CPPFLAGS-(none)}"
73867 echo " LDFLAGS: ${LDFLAGS-(none)}"
73868 echo " LIBS: ${LIBS-(none)}"
73872 if $WANT_SERVER; then
73873 components="$components server";
73875 components="$components (no server)";
73877 if $WANT_RESTORE; then
73878 components="$components restore";
73880 components="$components (no restore)";
73882 if $WANT_CLIENT; then
73883 components="$components client";
73885 components="$components (no client)";
73887 if $WANT_RECOVER; then
73888 components="$components amrecover";
73890 components="$components (no amrecover)";
73893 echo "Amanda Components: $components"
73896 echo "Working IPv6:" $WORKING_IPV6
73899 echo "Build documentation:" $ENABLE_MANPAGE_BUILD
73902 echo "Directories:"
73903 echo " Application: $APPLICATION_DIR"
73904 echo " Configuration: $CONFIG_DIR"
73905 echo " GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
73906 echo " Perl modules (amperldir): $amperldir"
73907 echo " Template and example data files (amdatadir): $amdatadir"
73908 echo " Temporary: $AMANDA_TMPDIR"
73910 if test -f config.warnings; then
73912 cat config.warnings | sed -e 's/^/ /g'