2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="common-src/amanda.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CONFIGURE_COMMAND INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE GREP EGREP AMLINT AMLINTFLAGS DUMPER_DIR CONFIG_DIR USE_VERSION_SUFFIXES CLIENT_SCRIPTS_OPT DEFAULT_SERVER CLIENT_LOGIN SETUID_GROUP BINARY_OWNER DEFAULT_CONFIG DEFAULT_TAPE_SERVER DEFAULT_TAPE_DEVICE DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX GNUTAR_LISTED_INCREMENTAL_DIR MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_SUFFIX MT_FILE_FLAG CPP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GNUTAR SAMBA_CLIENT GZIP SORT MAILER MT CHIO CHS MTX MCUTIL PRINT PCAT PERL DUMP RESTORE XFSDUMP XFSRESTORE VXDUMP VXRESTORE VDUMP VRESTORE AMPLOT_COMPRESS AMPLOT_CAT_GZIP AMPLOT_CAT_COMPRESS AMPLOT_CAT_PACK LL_FMT LL_RFMT LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT READLINE_LIBS DB_EXT ALLOCA LIBOBJS ac_n ac_c WANT_CLIENT_TRUE WANT_CLIENT_FALSE WANT_SAMBA_TRUE WANT_SAMBA_FALSE WANT_RESTORE_TRUE WANT_RESTORE_FALSE WANT_SERVER_TRUE WANT_SERVER_FALSE WANT_RECOVER_TRUE WANT_RECOVER_FALSE WANT_TAPE_TRUE WANT_TAPE_FALSE WANT_AMPLOT_TRUE WANT_AMPLOT_FALSE WANT_CHG_SCSI_TRUE WANT_CHG_SCSI_FALSE WANT_CHIO_SCSI_TRUE WANT_CHIO_SCSI_FALSE WANT_RUNTIME_PSEUDO_RELOC_TRUE WANT_RUNTIME_PSEUDO_RELOC_FALSE WANT_SETUID_CLIENT_TRUE WANT_SETUID_CLIENT_FALSE WANT_SSH_SECURITY_TRUE WANT_SSH_SECURITY_FALSE LTLIBOBJS LTALLOCA DOC_BUILD_DATE BUILD_MAN_PAGES_TRUE BUILD_MAN_PAGES_FALSE XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE AM_CFLAGS'
469 # Initialize some variables set by options.
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name=s,x,x,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
541 cache_file=config.cache ;;
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 datadir=$ac_optarg ;;
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
584 -help | --help | --hel | --he | -h)
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
608 -libdir | --libdir | --libdi | --libd)
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 # Obsolete; use --without-fp.
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 sbindir=$ac_optarg ;;
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 sharedstatedir=$ac_optarg ;;
712 -site | --site | --sit)
714 -site=* | --site=* | --sit=*)
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 -version | --version | --versio | --versi | --vers | -V)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
815 eval ac_val=$`echo $ac_var`
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val=$`echo $ac_var`
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856 test "$silent" = yes && exec 6>/dev/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --disable-largefile omit support for large files
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-cflags=CFLAGS arguments to the c compiler (-Wall, -g, etc)
1042 --with-includes=DIR site header files for readline, etc in DIR
1043 --with-libraries=DIR site library directories for readline, etc in DIR
1044 --with-dumperdir=DIR where we install the dumpers [EPREFIX/dumper]
1045 --with-configdir=DIR runtime config files in DIR [sysconfdir/amanda]
1046 --with-indexdir deprecated, use indexdir in amanda.conf
1047 --with-dbdir deprecated, use infofile in amanda.conf
1048 --with-logdir deprecated, use logfile in amanda.conf
1049 --with-suffixes install binaries with version string appended to name
1050 --with-client-only deprecated, use --without-server
1051 --with-server-only deprecated, use --without-client
1052 --without-client do not build client stuff
1053 --without-server do not build server stuff (set --without-restore)
1054 --without-restore do not build amrestore nor amidxtaped
1055 --without-amrecover do not build amrecover
1056 --with-index-server=HOST default amanda index server [`uname -n`]
1057 --without-force-uid do not force the uid to --with-user
1058 --with-user=USER force execution to USER on client systems [required]
1059 --with-group=GROUP group allowed to execute setuid-root programs [required]
1060 --with-owner=USER force ownership of files to USER [default == --with-user value]
1061 --with-rundump use rundump (setuid-root) to invoke dump
1062 --with-config=CONFIG default configuration [DailySet1]
1063 --with-tape-server=HOST default restoring tape server is HOST [same as --with-index-server]
1064 --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1065 --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1066 --with-rew-tape deprecated, use --with-tape-device
1067 --with-norew-tape=ARG deprecated, use --with-tape-device
1068 --with-changer-device=ARG default tape changer device [/dev/ch0 if it exists]
1069 --with-fqdn use FQDN's to backup multiple networks
1070 --with-broken-fsf only enable if tape fsf calls fail mid-file
1071 --without-reuseaddr Don't closed network connections to be reused until full timeout period.
1072 --with-gnutar[=PROG] use PROG as GNU tar executable [default: looks for one]
1073 --with-smbclient[=PROG] use PROG as Samba's smbclient executable [default: looks for one]
1074 --with-samba-user was deprecated
1075 --with-gnutar-listdir=DIR gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1076 --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1077 --without-bsd-security do not use BSD rsh/rlogin style security
1078 --without-amandahosts use .rhosts instead of .amandahosts
1079 --with-dbmalloc=DIR Location of dbmalloc libs and headers
1080 --with-ipv6 If IPv6 must be enabled (Default)
1081 --without-ipv6 If IPv6 must be disable
1082 --with-krb4-security=DIR Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1083 --with-rsh-security use rsh as a transport
1084 --with-ssh-security use ssh as a transport
1085 --with-bsdtcp-security use tcp as a transport
1086 --with-bsdudp-security use udp as a transport
1087 --with-server-principal=ARG server host principal ["amanda"]
1088 --with-server-instance=ARG server host instance ["amanda"]
1089 --with-server-keyfile=ARG server host key file ["/.amanda"]
1090 --with-client-principal=ARG client host principal ["rcmd"]
1091 --with-client-instance=ARG client host instance [HOSTNAME_INSTANCE]
1092 --with-client-keyfile=ARG client host key file [KEYFILE]
1093 --with-ticket-lifetime=ARG ticket lifetime [128]
1094 --with-krb5-security=DIR Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1095 --with-low-tcpportrange=low,high bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1096 --with-tcpportrange=low,high bind unreserved TCP server sockets to ports within this range [unlimited]
1097 --with-udpportrange=low,high bind reserved UDP server sockets to ports within this range [unlimited]
1098 --with-maxtapeblocksize=kb Maximum size of a tape block
1099 --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1100 --with-mmap force use of mmap instead of shared memory support
1101 --with-buffered-dump buffer the dumping sockets on the server for speed
1102 --with-assertions compile assertions into code
1103 --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1104 --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1105 --with-debug-days=NN number of days to keep debugging files [default=4]
1106 --with-testing[=suffix] use alternate service names
1107 --with-dump-honor-nodump if dump supports -h, use it for level0s too
1108 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1109 --with-pic try to use only PIC/non-PIC objects [default=use
1112 include additional configurations [automatic]
1113 --without-built-manpages Do not build manpages from XML source.
1115 Some influential environment variables:
1116 CC C compiler command
1117 CFLAGS C compiler flags
1118 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1119 nonstandard directory <lib dir>
1120 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1121 headers in a nonstandard directory <include dir>
1123 CXX C++ compiler command
1124 CXXFLAGS C++ compiler flags
1125 CXXCPP C++ preprocessor
1126 F77 Fortran 77 compiler command
1127 FFLAGS Fortran 77 compiler flags
1129 Use these variables to override the choices made by `configure' or to help
1130 it to find libraries and programs with nonstandard names/locations.
1135 if test "$ac_init_help" = "recursive"; then
1136 # If there are subdirs, report their specific --help.
1138 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1139 test -d $ac_dir || continue
1142 if test "$ac_dir" != .; then
1143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1144 # A "../" for each directory in $ac_dir_suffix.
1145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1147 ac_dir_suffix= ac_top_builddir=
1151 .) # No --srcdir option. We are building in place.
1153 if test -z "$ac_top_builddir"; then
1156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1158 [\\/]* | ?:[\\/]* ) # Absolute path.
1159 ac_srcdir=$srcdir$ac_dir_suffix;
1160 ac_top_srcdir=$srcdir ;;
1162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1166 # Do not use `cd foo && pwd` to compute absolute paths, because
1167 # the directories may not exist.
1169 .) ac_abs_builddir="$ac_dir";;
1172 .) ac_abs_builddir=`pwd`;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1174 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1180 case ${ac_top_builddir}. in
1181 .) ac_abs_top_builddir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1183 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1186 case $ac_abs_builddir in
1187 .) ac_abs_srcdir=$ac_srcdir;;
1190 .) ac_abs_srcdir=$ac_abs_builddir;;
1191 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1192 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1195 case $ac_abs_builddir in
1196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1198 case $ac_top_srcdir in
1199 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1200 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1201 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1206 # Check for guested configure; otherwise get Cygnus style configure.
1207 if test -f $ac_srcdir/configure.gnu; then
1209 $SHELL $ac_srcdir/configure.gnu --help=recursive
1210 elif test -f $ac_srcdir/configure; then
1212 $SHELL $ac_srcdir/configure --help=recursive
1213 elif test -f $ac_srcdir/configure.ac ||
1214 test -f $ac_srcdir/configure.in; then
1216 $ac_configure --help
1218 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1224 test -n "$ac_init_help" && exit 0
1225 if $ac_init_version; then
1228 Copyright (C) 2003 Free Software Foundation, Inc.
1229 This configure script is free software; the Free Software Foundation
1230 gives unlimited permission to copy, distribute and modify it.
1236 This file contains any messages produced by compilers while
1237 running configure, to aid debugging if configure makes a mistake.
1239 It was created by $as_me, which was
1240 generated by GNU Autoconf 2.59. Invocation command line was
1251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1263 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 test -z "$as_dir" && as_dir=.
1275 echo "PATH: $as_dir"
1290 # Keep a trace of the command line.
1291 # Strip out --no-create and --no-recursion so they do not pile up.
1292 # Strip out --silent because we don't want to record it for future runs.
1293 # Also quote any args containing shell meta-characters.
1294 # Make two passes to allow for proper duplicate-argument suppression.
1299 ac_must_keep_next=false
1305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1309 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1315 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1316 if test $ac_must_keep_next = true; then
1317 ac_must_keep_next=false # Got value, back to normal.
1320 *=* | --config-cache | -C | -disable-* | --disable-* \
1321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1323 | -with-* | --with-* | -without-* | --without-* | --x)
1324 case "$ac_configure_args0 " in
1325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1328 -* ) ac_must_keep_next=true ;;
1331 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1332 # Get rid of the leading space.
1338 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1339 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1341 # When interrupted or exit'd, cleanup temporary files, and complete
1342 # config.log. We remove comments because anyway the quotes in there
1343 # would cause problems or look ugly.
1344 # WARNING: Be sure not to use single quotes in there, as some shells,
1345 # such as our DU 5.0 friend, will then `close' the trap.
1346 trap 'exit_status=$?
1347 # Save into config.log some information that might help in debugging.
1352 ## ---------------- ##
1353 ## Cache variables. ##
1354 ## ---------------- ##
1357 # The following way of writing the cache mishandles newlines in values,
1360 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1363 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1368 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1375 ## ----------------- ##
1376 ## Output variables. ##
1377 ## ----------------- ##
1380 for ac_var in $ac_subst_vars
1382 eval ac_val=$`echo $ac_var`
1383 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -n "$ac_subst_files"; then
1394 for ac_var in $ac_subst_files
1396 eval ac_val=$`echo $ac_var`
1397 echo "$ac_var='"'"'$ac_val'"'"'"
1402 if test -s confdefs.h; then
1409 sed "/^$/d" confdefs.h | sort
1412 test "$ac_signal" != 0 &&
1413 echo "$as_me: caught signal $ac_signal"
1414 echo "$as_me: exit $exit_status"
1416 rm -f core *.core &&
1417 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1420 for ac_signal in 1 2 13 15; do
1421 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1425 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1426 rm -rf conftest* confdefs.h
1427 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1430 # Predefined preprocessor variables.
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_NAME "$PACKAGE_NAME"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_STRING "$PACKAGE_STRING"
1452 cat >>confdefs.h <<_ACEOF
1453 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1457 # Let the site file select an alternate cache file if it wants to.
1458 # Prefer explicitly selected file to automatically selected ones.
1459 if test -z "$CONFIG_SITE"; then
1460 if test "x$prefix" != xNONE; then
1461 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1463 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1466 for ac_site_file in $CONFIG_SITE; do
1467 if test -r "$ac_site_file"; then
1468 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1469 echo "$as_me: loading site script $ac_site_file" >&6;}
1470 sed 's/^/| /' "$ac_site_file" >&5
1475 if test -r "$cache_file"; then
1476 # Some versions of bash will fail to source /dev/null (special
1477 # files actually), so we avoid doing that.
1478 if test -f "$cache_file"; then
1479 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1480 echo "$as_me: loading cache $cache_file" >&6;}
1482 [\\/]* | ?:[\\/]* ) . $cache_file;;
1483 *) . ./$cache_file;;
1487 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1488 echo "$as_me: creating cache $cache_file" >&6;}
1492 # Check that the precious variables saved in the cache have kept the same
1494 ac_cache_corrupted=false
1495 for ac_var in `(set) 2>&1 |
1496 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1497 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1498 eval ac_new_set=\$ac_env_${ac_var}_set
1499 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1500 eval ac_new_val="\$ac_env_${ac_var}_value"
1501 case $ac_old_set,$ac_new_set in
1503 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1504 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1505 ac_cache_corrupted=: ;;
1507 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1508 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1509 ac_cache_corrupted=: ;;
1512 if test "x$ac_old_val" != "x$ac_new_val"; then
1513 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1514 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1515 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1516 echo "$as_me: former value: $ac_old_val" >&2;}
1517 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1518 echo "$as_me: current value: $ac_new_val" >&2;}
1519 ac_cache_corrupted=:
1522 # Pass precious variables to config.status.
1523 if test "$ac_new_set" = set; then
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1526 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 *) ac_arg=$ac_var=$ac_new_val ;;
1529 case " $ac_configure_args " in
1530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1531 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1535 if $ac_cache_corrupted; then
1536 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1537 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1538 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1539 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1540 { (exit 1); exit 1; }; }
1544 ac_cpp='$CPP $CPPFLAGS'
1545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1569 for ac_dir in config $srcdir/config; do
1570 if test -f $ac_dir/install-sh; then
1572 ac_install_sh="$ac_aux_dir/install-sh -c"
1574 elif test -f $ac_dir/install.sh; then
1576 ac_install_sh="$ac_aux_dir/install.sh -c"
1578 elif test -f $ac_dir/shtool; then
1580 ac_install_sh="$ac_aux_dir/shtool install -c"
1584 if test -z "$ac_aux_dir"; then
1585 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1586 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1587 { (exit 1); exit 1; }; }
1589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1593 # Make sure we can run config.sub.
1594 $ac_config_sub sun4 >/dev/null 2>&1 ||
1595 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1596 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1597 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: checking build system type" >&5
1600 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1601 if test "${ac_cv_build+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 ac_cv_build_alias=$build_alias
1605 test -z "$ac_cv_build_alias" &&
1606 ac_cv_build_alias=`$ac_config_guess`
1607 test -z "$ac_cv_build_alias" &&
1608 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1609 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1610 { (exit 1); exit 1; }; }
1611 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1613 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1618 echo "${ECHO_T}$ac_cv_build" >&6
1620 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625 echo "$as_me:$LINENO: checking host system type" >&5
1626 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1627 if test "${ac_cv_host+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 ac_cv_host_alias=$host_alias
1631 test -z "$ac_cv_host_alias" &&
1632 ac_cv_host_alias=$ac_cv_build_alias
1633 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1639 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1640 echo "${ECHO_T}$ac_cv_host" >&6
1642 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647 echo "$as_me:$LINENO: checking target system type" >&5
1648 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1649 if test "${ac_cv_target+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 ac_cv_target_alias=$target_alias
1653 test "x$ac_cv_target_alias" = "x" &&
1654 ac_cv_target_alias=$ac_cv_host_alias
1655 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1661 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1662 echo "${ECHO_T}$ac_cv_target" >&6
1663 target=$ac_cv_target
1664 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 # The aliases save the names the user supplied, while $host etc.
1670 # will get canonicalized.
1671 test -n "$target_alias" &&
1672 test "$program_prefix$program_suffix$program_transform_name" = \
1674 program_prefix=${target_alias}-
1677 CONFIGURE_COMMAND="'$0'"
1679 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1682 cat >>confdefs.h <<_ACEOF
1683 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1688 am__api_version="1.9"
1689 # Find a good install program. We prefer a C program (faster),
1690 # so one script is as good as another. But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # OS/2's system install, which has a completely different semantic
1701 # ./install, which can be erroneously created by make from ./install.sh.
1702 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1704 if test -z "$INSTALL"; then
1705 if test "${ac_cv_path_install+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 # Account for people who put trailing slashes in PATH elements.
1715 ./ | .// | /cC/* | \
1716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1720 # OSF1 and SCO ODT 3.0 have their own names for install.
1721 # Don't use installbsd from OSF since it installs stuff as root
1723 for ac_prog in ginstall scoinst install; do
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1726 if test $ac_prog = install &&
1727 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1728 # AIX install. It has an incompatible calling convention.
1730 elif test $ac_prog = install &&
1731 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # program-specific install script used by HP pwplus--don't use.
1735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747 if test "${ac_cv_path_install+set}" = set; then
1748 INSTALL=$ac_cv_path_install
1750 # As a last resort, use the slow shell script. We don't cache a
1751 # path for INSTALL within a source directory, because that will
1752 # break other packages using the cache if that directory is
1753 # removed, or if the path is relative.
1754 INSTALL=$ac_install_sh
1757 echo "$as_me:$LINENO: result: $INSTALL" >&5
1758 echo "${ECHO_T}$INSTALL" >&6
1760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1761 # It thinks the first close brace ends the variable substitution.
1762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1772 echo timestamp > conftest.file
1773 # Do `set' in a subshell so we don't clobber the current shell's
1774 # arguments. Must try -L first in case configure is actually a
1775 # symlink; some systems play weird games with the mod time of symlinks
1776 # (eg FreeBSD returns the mod time of the symlink's containing
1779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1780 if test "$*" = "X"; then
1782 set X `ls -t $srcdir/configure conftest.file`
1785 if test "$*" != "X $srcdir/configure conftest.file" \
1786 && test "$*" != "X conftest.file $srcdir/configure"; then
1788 # If neither matched, then we have a broken ls. This can happen
1789 # if, for instance, CONFIG_SHELL is bash and it inherits a
1790 # broken ls alias from the environment. This has actually
1791 # happened. Such a system could not be considered "sane".
1792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1793 alias in your environment" >&5
1794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1795 alias in your environment" >&2;}
1796 { (exit 1); exit 1; }; }
1799 test "$2" = conftest.file
1805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1806 Check your system clock" >&5
1807 echo "$as_me: error: newly created file is older than distributed files!
1808 Check your system clock" >&2;}
1809 { (exit 1); exit 1; }; }
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813 test "$program_prefix" != NONE &&
1814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE &&
1817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1818 # Double any \ or $. echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF >conftest.sed
1821 s/[\\$]/&&/g;s/;s,x,x,$//
1823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1826 # expand $ac_aux_dir to an absolute path
1827 am_aux_dir=`cd $ac_aux_dir && pwd`
1829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1830 # Use eval to expand $SHELL
1831 if eval "$MISSING --run true"; then
1832 am_missing_run="$MISSING --run "
1835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1840 # We used to keeping the `.' as first argument, in order to
1841 # allow $(mkdir_p) to be used without argument. As in
1842 # $(mkdir_p) $(somedir)
1843 # where $(somedir) is conditionally defined. However this is wrong
1845 # 1. if the package is installed by a user who cannot write `.'
1846 # make install will fail,
1847 # 2. the above comment should most certainly read
1848 # $(mkdir_p) $(DESTDIR)$(somedir)
1849 # so it does not work when $(somedir) is undefined and
1850 # $(DESTDIR) is not.
1851 # To support the latter case, we have to write
1852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1853 # so the `.' trick is pointless.
1854 mkdir_p='mkdir -p --'
1856 # On NextStep and OpenStep, the `mkdir' command does not
1857 # recognize any option. It will interpret all options as
1858 # directories to create, and then abort because `.' already
1860 for d in ./-p ./--version;
1862 test -d $d && rmdir $d
1864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1865 if test -f "$ac_aux_dir/mkinstalldirs"; then
1866 mkdir_p='$(mkinstalldirs)'
1868 mkdir_p='$(install_sh) -d'
1872 for ac_prog in gawk mawk nawk awk
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_AWK+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$AWK"; then
1882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_AWK="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 if test -n "$AWK"; then
1902 echo "$as_me:$LINENO: result: $AWK" >&5
1903 echo "${ECHO_T}$AWK" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$AWK" && break
1912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 cat >conftest.make <<\_ACEOF
1920 @echo 'ac_maketemp="$(MAKE)"'
1922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1924 if test -n "$ac_maketemp"; then
1925 eval ac_cv_prog_make_${ac_make}_set=yes
1927 eval ac_cv_prog_make_${ac_make}_set=no
1931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1932 echo "$as_me:$LINENO: result: yes" >&5
1933 echo "${ECHO_T}yes" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 SET_MAKE="MAKE=${MAKE-make}"
1941 rm -rf .tst 2>/dev/null
1942 mkdir .tst 2>/dev/null
1943 if test -d .tst; then
1948 rmdir .tst 2>/dev/null
1950 # test to see if srcdir already configured
1951 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1952 test -f $srcdir/config.status; then
1953 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1954 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # test whether we have cygpath
1959 if test -z "$CYGPATH_W"; then
1960 if (cygpath --version) >/dev/null 2>/dev/null; then
1961 CYGPATH_W='cygpath -w'
1968 # Define the identity of the package.
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE "$PACKAGE"
1978 cat >>confdefs.h <<_ACEOF
1979 #define VERSION "$VERSION"
1982 # Some tools Automake needs.
1984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1998 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2000 # Installed binaries are usually stripped using `strip' when the user
2001 # run `make install-strip'. However `strip' might not be the right
2002 # tool to use in cross-compilation environments, therefore Automake
2003 # will honor the `STRIP' environment variable to overrule this program.
2004 if test "$cross_compiling" != no; then
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}strip; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_STRIP+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$STRIP"; then
2014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 STRIP=$ac_cv_prog_STRIP
2033 if test -n "$STRIP"; then
2034 echo "$as_me:$LINENO: result: $STRIP" >&5
2035 echo "${ECHO_T}$STRIP" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_STRIP"; then
2044 # Extract the first word of "strip", so it can be a program name with args.
2045 set dummy strip; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_STRIP"; then
2052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_STRIP="strip"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2072 if test -n "$ac_ct_STRIP"; then
2073 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2074 echo "${ECHO_T}$ac_ct_STRIP" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2082 STRIP="$ac_cv_prog_STRIP"
2086 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2088 # We need awk for the "check" target. The system "awk" is bad on
2090 # Always define AMTAR for backward compatibility.
2092 AMTAR=${AMTAR-"${am_missing_run}tar"}
2094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2100 ac_config_headers="$ac_config_headers config/config.h"
2104 if test -f "$srcdir/SNAPSHOT"; then
2105 cat < "$srcdir/SNAPSHOT"
2107 snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2109 test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2110 SNAPSHOT_STAMP=SNAPSHOT
2116 if test -f config.local; then
2117 echo "running local script ./config.local"
2122 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2123 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2124 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2125 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2128 VERSION_SUFFIX="$VERSION"
2135 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2138 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2139 eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2141 SYSLOCPATH="$SYSPATH:$LOCPATH"
2142 LOCSYSPATH="$LOCPATH:$SYSPATH"
2146 # Check whether --with-cflags or --without-cflags was given.
2147 if test "${with_cflags+set}" = set; then
2148 withval="$with_cflags"
2151 "" | y | ye | yes | n | no)
2152 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2153 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2154 { (exit 1); exit 1; }; }
2161 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168 if test -n "$ac_tool_prefix"; then
2169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2170 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test -n "$CC"; then
2197 echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6
2200 echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2205 if test -z "$ac_cv_prog_CC"; then
2207 # Extract the first word of "gcc", so it can be a program name with args.
2208 set dummy gcc; ac_word=$2
2209 echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test -n "$ac_ct_CC"; then
2215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 ac_cv_prog_ac_ct_CC="gcc"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6
2238 echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2247 if test -z "$CC"; then
2248 if test -n "$ac_tool_prefix"; then
2249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2250 set dummy ${ac_tool_prefix}cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$CC"; then
2257 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_prog_CC="${ac_tool_prefix}cc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 if test -n "$CC"; then
2277 echo "$as_me:$LINENO: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6
2280 echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2285 if test -z "$ac_cv_prog_CC"; then
2287 # Extract the first word of "cc", so it can be a program name with args.
2288 set dummy cc; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_ac_ct_CC="cc"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 echo "${ECHO_T}$ac_ct_CC" >&6
2318 echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2328 if test -z "$CC"; then
2329 # Extract the first word of "cc", so it can be a program name with args.
2330 set dummy cc; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2348 ac_prog_rejected=yes
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 if test $ac_prog_rejected = yes; then
2359 # We found a bogon in the path, so make sure we never use it.
2360 set dummy $ac_cv_prog_CC
2362 if test $# != 0; then
2363 # We chose a different compiler from the bogus one.
2364 # However, it has the same basename, so the bogon will be chosen
2365 # first if we set CC to just the basename; use the full file name.
2367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2373 if test -n "$CC"; then
2374 echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2377 echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2382 if test -z "$CC"; then
2383 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$CC"; then
2414 echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6
2417 echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2421 test -n "$CC" && break
2424 if test -z "$CC"; then
2428 # Extract the first word of "$ac_prog", so it can be a program name with args.
2429 set dummy $ac_prog; ac_word=$2
2430 echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$ac_ct_CC"; then
2436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_ac_ct_CC="$ac_prog"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6
2459 echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2463 test -n "$ac_ct_CC" && break
2472 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: no acceptable C compiler found in \$PATH
2475 See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }
2478 # Provide some information about the compiler.
2479 echo "$as_me:$LINENO:" \
2480 "checking for C compiler version" >&5
2481 ac_compiler=`set X $ac_compile; echo $2`
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2483 (eval $ac_compiler --version </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2488 (eval $ac_compiler -v </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2493 (eval $ac_compiler -V </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 ac_clean_files_save=$ac_clean_files
2514 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2515 # Try to create an executable without -o first, disregard a.out.
2516 # It will help us diagnose broken compilers, and finding out an intuition
2518 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2519 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2520 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2521 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2522 (eval $ac_link_default) 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 # Find the output, starting from the most likely. This scheme is
2527 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2530 # Be careful to initialize this variable, since it used to be cached.
2531 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2533 # b.out is created by i960 compilers.
2534 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2536 test -f "$ac_file" || continue
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2541 # This is the source file.
2544 # We found the default executable, but exeext='' is most
2548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 # FIXME: I believe we export ac_cv_exeext for Libtool,
2550 # but it would be cool to find out if it's true. Does anybody
2551 # maintain Libtool? --akim.
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2562 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: C compiler cannot create executables
2565 See \`config.log' for more details." >&2;}
2566 { (exit 77); exit 77; }; }
2569 ac_exeext=$ac_cv_exeext
2570 echo "$as_me:$LINENO: result: $ac_file" >&5
2571 echo "${ECHO_T}$ac_file" >&6
2573 # Check the compiler produces executables we can run. If not, either
2574 # the compiler is broken, or we cross compile.
2575 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2576 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2577 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2578 # If not cross compiling, check that we can run a simple program.
2579 if test "$cross_compiling" != yes; then
2580 if { ac_try='./$ac_file'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 if test "$cross_compiling" = maybe; then
2591 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2601 echo "$as_me:$LINENO: result: yes" >&5
2602 echo "${ECHO_T}yes" >&6
2604 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check the compiler produces executables we can run. If not, either
2607 # the compiler is broken, or we cross compile.
2608 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2610 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 echo "${ECHO_T}$cross_compiling" >&6
2613 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2616 (eval $ac_link) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; then
2620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2622 # work properly (i.e., refer to `conftest.exe'), while it won't with
2624 for ac_file in conftest.exe conftest conftest.*; do
2625 test -f "$ac_file" || continue
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2642 rm -f conftest$ac_cv_exeext
2643 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2644 echo "${ECHO_T}$ac_cv_exeext" >&6
2646 rm -f conftest.$ac_ext
2647 EXEEXT=$ac_cv_exeext
2649 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2650 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2651 if test "${ac_cv_objext+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 cat >conftest.$ac_ext <<_ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2669 rm -f conftest.o conftest.obj
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2695 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 echo "${ECHO_T}$ac_cv_objext" >&6
2697 OBJEXT=$ac_cv_objext
2699 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2757 GCC=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CFLAGS=${CFLAGS+set}
2759 ac_save_CFLAGS=$CFLAGS
2761 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2763 if test "${ac_cv_prog_cc_g+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.$ac_ext <<_ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783 (eval $ac_compile) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -z "$ac_c_werror_flag"
2791 || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2814 if test "$ac_test_CFLAGS" = set; then
2815 CFLAGS=$ac_save_CFLAGS
2816 elif test $ac_cv_prog_cc_g = yes; then
2817 if test "$GCC" = yes; then
2823 if test "$GCC" = yes; then
2829 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2830 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2831 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 ac_cv_prog_cc_stdc=no
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2844 #include <sys/types.h>
2845 #include <sys/stat.h>
2846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2847 struct buf { int x; };
2848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2849 static char *e (p, i)
2855 static char *f (char * (*g) (char **, int), char **p, ...)
2860 s = g (p, va_arg (v,int));
2865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2866 function prototypes and stuff, but not '\xHH' hex character constants.
2867 These don't provoke an error unfortunately, instead are silently treated
2868 as 'x'. The following induces an error, until -std1 is added to get
2869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2870 array size at least. It's necessary to write '\x00'==0 to get something
2871 that's true only with -std1. */
2872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 # Don't try gcc -ansi; that turns off useful extensions and
2889 # breaks some systems' header files.
2890 # AIX -qlanglvl=ansi
2891 # Ultrix and OSF/1 -std1
2892 # HP-UX 10.20 and later -Ae
2893 # HP-UX older versions -Aa -D_HPUX_SOURCE
2894 # SVR4 -Xc -D__EXTENSIONS__
2895 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2897 CC="$ac_save_CC $ac_arg"
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_prog_cc_stdc=$ac_arg
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext
2929 rm -f conftest.$ac_ext conftest.$ac_objext
2934 case "x$ac_cv_prog_cc_stdc" in
2936 echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6 ;;
2939 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2941 CC="$CC $ac_cv_prog_cc_stdc" ;;
2944 # Some people use a C++ compiler to compile C. Since we use `exit',
2945 # in C++ we need to declare it. In case someone uses the same compiler
2946 # for both compiling C and C++ we need to have the C++ compiler decide
2947 # the declaration of exit, since it's the most demanding environment.
2948 cat >conftest.$ac_ext <<_ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955 (eval $ac_compile) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag"
2963 || test ! -s conftest.err'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 for ac_declaration in \
2977 'extern "C" void std::exit (int) throw (); using std::exit;' \
2978 'extern "C" void std::exit (int); using std::exit;' \
2979 'extern "C" void exit (int) throw ();' \
2980 'extern "C" void exit (int);' \
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag"
3009 || test ! -s conftest.err'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag"
3054 || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3075 if test -n "$ac_declaration"; then
3076 echo '#ifdef __cplusplus' >>confdefs.h
3077 echo $ac_declaration >>confdefs.h
3078 echo '#endif' >>confdefs.h
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 DEPDIR="${am__leading_dot}deps"
3094 ac_config_commands="$ac_config_commands depfiles"
3097 am_make=${MAKE-make}
3098 cat > confinc << 'END'
3103 # If we don't find an include directive, just comment out the code.
3104 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3105 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3109 # First try GNU make style include.
3110 echo "include confinc" > confmf
3111 # We grep out `Entering directory' and `Leaving directory'
3112 # messages which can occur if `w' ends up in MAKEFLAGS.
3113 # In particular we don't look at `^make:' because GNU make might
3114 # be invoked under some other name (usually "gmake"), in which
3115 # case it prints its new name instead of `make'.
3116 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3121 # Now try BSD make style include.
3122 if test "$am__include" = "#"; then
3123 echo '.include "confinc"' > confmf
3124 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3125 am__include=.include
3132 echo "$as_me:$LINENO: result: $_am_result" >&5
3133 echo "${ECHO_T}$_am_result" >&6
3134 rm -f confinc confmf
3136 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3137 if test "${enable_dependency_tracking+set}" = set; then
3138 enableval="$enable_dependency_tracking"
3141 if test "x$enable_dependency_tracking" != xno; then
3142 am_depcomp="$ac_aux_dir/depcomp"
3147 if test "x$enable_dependency_tracking" != xno; then
3158 depcc="$CC" am_compiler_list=
3160 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166 # We make a subdir and do the tests there. Otherwise we can end up
3167 # making bogus files that we don't know about and never remove. For
3168 # instance it was reported that on HP-UX the gcc test will end up
3169 # making a dummy file named `D' -- because `-MD' means `put the output
3172 # Copy depcomp to subdir because otherwise we won't find it if we're
3173 # using a relative directory.
3174 cp "$am_depcomp" conftest.dir
3176 # We will build objects and dependencies in a subdirectory because
3177 # it helps to detect inapplicable dependency modes. For instance
3178 # both Tru64's cc and ICC support -MD to output dependencies as a
3179 # side effect of compilation, but ICC will put the dependencies in
3180 # the current directory while Tru64 will put them in the object
3184 am_cv_CC_dependencies_compiler_type=none
3185 if test "$am_compiler_list" = ""; then
3186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188 for depmode in $am_compiler_list; do
3189 # Setup a source with many dependencies, because some compilers
3190 # like to wrap large dependency lists on column 80 (with \), and
3191 # we should not choose a depcomp mode which is confused by this.
3193 # We need to recreate these files for each test, as the compiler may
3194 # overwrite some of them when testing with obscure command lines.
3195 # This happens at least with the AIX C compiler.
3197 for i in 1 2 3 4 5 6; do
3198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200 # Solaris 8's {/usr,}/bin/sh.
3201 touch sub/conftst$i.h
3203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3207 # after this tag, mechanisms are not by side-effect, so they'll
3208 # only be used when explicitly requested
3209 if test "x$enable_dependency_tracking" = xyes; then
3217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218 # mode. It turns out that the SunPro C++ compiler does not properly
3219 # handle `-M -o', and we need to detect this.
3220 if depmode=$depmode \
3221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224 >/dev/null 2>conftest.err &&
3225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228 # icc doesn't choke on unknown options, it will just issue warnings
3229 # or remarks (even with -Werror). So we grep stderr for any message
3230 # that says an option was ignored or not supported.
3231 # When given -MP, icc 7.0 and 7.1 complain thusly:
3232 # icc: Command line warning: ignoring option '-M'; no argument required
3233 # The diagnosis changed in icc 8.0:
3234 # icc: Command line remark: option '-MP' not supported
3235 if (grep 'ignoring option' conftest.err ||
3236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237 am_cv_CC_dependencies_compiler_type=$depmode
3246 am_cv_CC_dependencies_compiler_type=none
3250 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3257 test "x$enable_dependency_tracking" != xno \
3258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260 am__fastdepCC_FALSE='#'
3262 am__fastdepCC_TRUE='#'
3263 am__fastdepCC_FALSE=
3270 # Check whether --enable-largefile or --disable-largefile was given.
3271 if test "${enable_largefile+set}" = set; then
3272 enableval="$enable_largefile"
3275 if test "$enable_largefile" != no; then
3277 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_cv_sys_largefile_CC=no
3283 if test "$GCC" != yes; then
3286 # IRIX 6.2 and later do not support large files by default,
3287 # so use the C compiler's -n32 option if that helps.
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <sys/types.h>
3295 /* Check that off_t can represent 2**63 - 1 correctly.
3296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3297 since some C++ compilers masquerading as C compilers
3298 incorrectly reject 9223372036854775807. */
3299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3301 && LARGE_OFF_T % 2147483647 == 1)
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag"
3321 || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3339 rm -f conftest.err conftest.$ac_objext
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_sys_largefile_CC=' -n32'; break
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3369 rm -f conftest.err conftest.$ac_objext
3373 rm -f conftest.$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3377 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3378 if test "$ac_cv_sys_largefile_CC" != no; then
3379 CC=$CC$ac_cv_sys_largefile_CC
3382 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3383 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3384 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_cv_sys_file_offset_bits=no
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <sys/types.h>
3396 /* Check that off_t can represent 2**63 - 1 correctly.
3397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3398 since some C++ compilers masquerading as C compilers
3399 incorrectly reject 9223372036854775807. */
3400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3402 && LARGE_OFF_T % 2147483647 == 1)
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414 (eval $ac_compile) 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } &&
3421 { ac_try='test -z "$ac_c_werror_flag"
3422 || test ! -s conftest.err'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #define _FILE_OFFSET_BITS 64
3448 #include <sys/types.h>
3449 /* Check that off_t can represent 2**63 - 1 correctly.
3450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3451 since some C++ compilers masquerading as C compilers
3452 incorrectly reject 9223372036854775807. */
3453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3455 && LARGE_OFF_T % 2147483647 == 1)
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_sys_file_offset_bits=64; break
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3498 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3499 if test "$ac_cv_sys_file_offset_bits" != no; then
3501 cat >>confdefs.h <<_ACEOF
3502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3507 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3508 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3509 if test "${ac_cv_sys_large_files+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 ac_cv_sys_large_files=no
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <sys/types.h>
3521 /* Check that off_t can represent 2**63 - 1 correctly.
3522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3523 since some C++ compilers masquerading as C compilers
3524 incorrectly reject 9223372036854775807. */
3525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3527 && LARGE_OFF_T % 2147483647 == 1)
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #define _LARGE_FILES 1
3573 #include <sys/types.h>
3574 /* Check that off_t can represent 2**63 - 1 correctly.
3575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3576 since some C++ compilers masquerading as C compilers
3577 incorrectly reject 9223372036854775807. */
3578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3580 && LARGE_OFF_T % 2147483647 == 1)
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_sys_large_files=1; break
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3623 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3624 if test "$ac_cv_sys_large_files" != no; then
3626 cat >>confdefs.h <<_ACEOF
3627 #define _LARGE_FILES $ac_cv_sys_large_files
3637 # Extract the first word of "$ac_prog", so it can be a program name with args.
3638 set dummy $ac_prog; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_path_GREP+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $LOCSYSPATH
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 GREP=$ac_cv_path_GREP
3668 if test -n "$GREP"; then
3669 echo "$as_me:$LINENO: result: $GREP" >&5
3670 echo "${ECHO_T}$GREP" >&6
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3676 test -n "$GREP" && break
3679 if test -z "$GREP"; then
3683 cat >>confdefs.h <<_ACEOF
3684 #define GREP "$GREP"
3687 for ac_prog in egrep
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $LOCSYSPATH
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 EGREP=$ac_cv_path_EGREP
3720 if test -n "$EGREP"; then
3721 echo "$as_me:$LINENO: result: $EGREP" >&5
3722 echo "${ECHO_T}$EGREP" >&6
3724 echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3728 test -n "$EGREP" && break
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_AMLINT+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
3748 for as_dir in $as_dummy
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 AMLINT=$ac_cv_path_AMLINT
3766 if test -n "$AMLINT"; then
3767 echo "$as_me:$LINENO: result: $AMLINT" >&5
3768 echo "${ECHO_T}$AMLINT" >&6
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 test -n "$AMLINT" && break
3777 if test ! -z "$AMLINT"; then
3778 $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
3779 if test $? -eq 0; then
3780 AMLINTFLAGS="-n -s -u -m -x"
3781 AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
3782 AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
3783 AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
3784 AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
3785 AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
3786 AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
3787 AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
3788 AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
3789 AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
3790 AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
3791 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
3792 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
3793 AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
3794 AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
3795 AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
3796 AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
3797 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
3798 AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
3799 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
3800 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
3801 AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
3802 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
3803 AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
3804 AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
3805 AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
3806 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
3807 AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
3808 AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
3809 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
3810 AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
3811 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
3812 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
3813 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
3814 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
3815 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
3816 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
3817 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
3818 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
3819 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
3820 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
3821 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
3822 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
3823 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
3824 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
3825 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
3826 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
3827 AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
3828 AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
3829 AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
3830 AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
3835 for ac_prog in splint
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_path_AMLINT+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $SYSLOCPATH
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 AMLINT=$ac_cv_path_AMLINT
3868 if test -n "$AMLINT"; then
3869 echo "$as_me:$LINENO: result: $AMLINT" >&5
3870 echo "${ECHO_T}$AMLINT" >&6
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 test -n "$AMLINT" && break
3879 if test ! -z "$AMLINT"; then
3882 AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
3887 # Check whether --with-includes or --without-includes was given.
3888 if test "${with_includes+set}" = set; then
3889 withval="$with_includes"
3892 "" | y | ye | yes | n | no)
3893 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
3894 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
3895 { (exit 1); exit 1; }; }
3898 INCLUDE_DIRS="$withval"
3902 if test "$INCLUDE_DIRS"; then
3903 for dir in $INCLUDE_DIRS; do
3904 if test -d "$dir"; then
3905 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
3907 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3908 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3914 # Check whether --with-libraries or --without-libraries was given.
3915 if test "${with_libraries+set}" = set; then
3916 withval="$with_libraries"
3919 "" | y | ye | yes | n | no)
3920 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
3921 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
3922 { (exit 1); exit 1; }; }
3925 LIBRARY_DIRS="$withval"
3929 if test "$LIBRARY_DIRS"; then
3930 for dir in $LIBRARY_DIRS; do
3931 if test -d "$dir"; then
3933 *-solaris2*,*-netbsd*)
3934 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
3937 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
3939 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3940 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3947 # Check whether --with-dumperdir or --without-dumperdir was given.
3948 if test "${with_dumperdir+set}" = set; then
3949 withval="$with_dumperdir"
3952 "" | y | ye | yes | n | no)
3953 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
3954 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
3955 { (exit 1); exit 1; }; }
3958 DUMPER_DIR="$withval"
3962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3963 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3964 DUMPER_DIR=$exec_prefix/dumper
3969 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3970 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3971 eval echo "$DUMPER_DIR"
3974 cat >>confdefs.h <<_ACEOF
3975 #define DUMPER_DIR "$DUMPER_DIR"
3981 # Check whether --with-configdir or --without-configdir was given.
3982 if test "${with_configdir+set}" = set; then
3983 withval="$with_configdir"
3986 "" | y | ye | yes | n | no)
3987 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
3988 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
3989 { (exit 1); exit 1; }; }
3991 *) CONFIG_DIR="$withval"
3996 : ${CONFIG_DIR="$sysconfdir/amanda"}
4000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4001 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
4002 eval echo "$CONFIG_DIR"
4005 cat >>confdefs.h <<_ACEOF
4006 #define CONFIG_DIR "$CONFIG_DIR"
4012 # Check whether --with-indexdir or --without-indexdir was given.
4013 if test "${with_indexdir+set}" = set; then
4014 withval="$with_indexdir"
4015 { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
4016 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
4017 { (exit 1); exit 1; }; }
4022 # Check whether --with-dbdir or --without-dbdir was given.
4023 if test "${with_dbdir+set}" = set; then
4024 withval="$with_dbdir"
4025 { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
4026 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
4027 { (exit 1); exit 1; }; }
4032 # Check whether --with-logdir or --without-logdir was given.
4033 if test "${with_logdir+set}" = set; then
4034 withval="$with_logdir"
4035 { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
4036 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
4037 { (exit 1); exit 1; }; }
4042 # Check whether --with-suffixes or --without-suffixes was given.
4043 if test "${with_suffixes+set}" = set; then
4044 withval="$with_suffixes"
4045 USE_VERSION_SUFFIXES=$withval
4047 : ${USE_VERSION_SUFFIXES=no}
4050 case "$USE_VERSION_SUFFIXES" in
4053 cat >>confdefs.h <<\_ACEOF
4054 #define USE_VERSION_SUFFIXES 1
4058 program_suffix="-$VERSION"
4059 # This is from the output of configure.in.
4060 if test "x$program_transform_name" = xs,x,x,; then
4061 program_transform_name=
4063 # Double any \ or $. echo might interpret backslashes.
4064 cat <<\EOF_SED > conftestsed
4065 s,\\,\\\\,g; s,\$,$$,g
4067 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4070 test "x$program_prefix" != xNONE &&
4071 program_transform_name="s,^,${program_prefix},; $program_transform_name"
4072 # Use a double $ so make ignores it.
4073 test "x$program_suffix" != xNONE &&
4074 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
4076 # sed with no file args requires a program.
4077 test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
4078 # Remove empty command
4079 cat <<\EOF_SED > conftestsed
4080 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
4082 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4085 n | no) USE_VERSION_SUFFIXES=no
4087 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
4088 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
4089 { (exit 1); exit 1; }; }
4096 CLIENT_SCRIPTS_OPT=amhpfixdevs
4099 CLIENT_SCRIPTS_OPT=amsinixfixdevs
4109 # Check whether --with-client-only or --without-client-only was given.
4110 if test "${with_client_only+set}" = set; then
4111 withval="$with_client_only"
4112 { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
4113 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
4114 { (exit 1); exit 1; }; }
4118 # Check whether --with-server-only or --without-server-only was given.
4119 if test "${with_server_only+set}" = set; then
4120 withval="$with_server_only"
4121 { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
4122 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
4123 { (exit 1); exit 1; }; }
4128 # Check whether --with-client or --without-client was given.
4129 if test "${with_client+set}" = set; then
4130 withval="$with_client"
4133 y | ye | yes) NO_CLIENT_MODE=false;;
4134 n | no) NO_CLIENT_MODE=true;;
4136 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
4137 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
4138 { (exit 1); exit 1; }; }
4146 # Check whether --with-server or --without-server was given.
4147 if test "${with_server+set}" = set; then
4148 withval="$with_server"
4151 y | ye | yes) NO_SERVER_MODE=false ;;
4152 n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
4154 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&5
4155 echo "$as_me: error: *** You must not supply an argument to --with-server option. Maybe you meant --with-index-server=$withval" >&2;}
4156 { (exit 1); exit 1; }; }
4162 if test "x${NO_SERVER_MODE+set}" != xset ; then
4163 NO_SERVER_MODE=false
4167 # Check whether --with-restore or --without-restore was given.
4168 if test "${with_restore+set}" = set; then
4169 withval="$with_restore"
4172 y | ye | yes) NO_RESTORE_MODE=false;;
4173 n | no) NO_RESTORE_MODE=true;;
4175 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
4176 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
4177 { (exit 1); exit 1; }; }
4183 if test "x${NO_RESTORE_MODE+set}" != xset ; then
4184 NO_RESTORE_MODE=${NO_SERVER_MODE-false}
4187 if ${NO_SERVER_MODE-false}; then
4188 if ${NO_RESTORE_MODE-false}; then
4191 { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
4192 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
4193 { (exit 1); exit 1; }; }
4198 # Check whether --with-amrecover or --without-amrecover was given.
4199 if test "${with_amrecover+set}" = set; then
4200 withval="$with_amrecover"
4204 if ${NO_CLIENT_MODE-false}; then
4205 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
4206 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
4207 { (exit 1); exit 1; }; }
4209 NO_RECOVER_MODE=false;;
4210 n | no) NO_RECOVER_MODE=true;;
4212 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
4213 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
4214 { (exit 1); exit 1; }; }
4222 # Check whether --with-index-server or --without-index-server was given.
4223 if test "${with_index_server+set}" = set; then
4224 withval="$with_index_server"
4227 "" | y | ye | yes | n | no)
4228 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
4229 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
4230 { (exit 1); exit 1; }; }
4232 *) DEFAULT_SERVER="$withval"
4237 : ${DEFAULT_SERVER=`uname -n`}
4241 cat >>confdefs.h <<_ACEOF
4242 #define DEFAULT_SERVER "$DEFAULT_SERVER"
4248 # Check whether --with-force-uid or --without-force-uid was given.
4249 if test "${with_force_uid+set}" = set; then
4250 withval="$with_force_uid"
4251 FORCE_USERID="$withval"
4253 : ${FORCE_USERID=yes}
4256 case "$FORCE_USERID" in
4258 cat >>confdefs.h <<\_ACEOF
4259 #define FORCE_USERID 1
4265 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
4266 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
4267 { (exit 1); exit 1; }; }
4271 # Check whether --with-user or --without-user was given.
4272 if test "${with_user+set}" = set; then
4273 withval="$with_user"
4276 "" | y | ye | yes | n | no)
4277 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
4278 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
4279 { (exit 1); exit 1; }; }
4281 *) CLIENT_LOGIN="$withval"
4287 if test "x${CLIENT_LOGIN+set}" != xset; then
4288 { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
4289 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
4290 { (exit 1); exit 1; }; }
4293 cat >>confdefs.h <<_ACEOF
4294 #define CLIENT_LOGIN "$CLIENT_LOGIN"
4300 # Check whether --with-group or --without-group was given.
4301 if test "${with_group+set}" = set; then
4302 withval="$with_group"
4305 "" | y | ye | yes | n | no)
4306 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
4307 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
4308 { (exit 1); exit 1; }; }
4310 *) SETUID_GROUP="$withval"
4316 if test "x${SETUID_GROUP+set}" != xset; then
4317 { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
4318 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
4319 { (exit 1); exit 1; }; }
4324 # Check whether --with-owner or --without-owner was given.
4325 if test "${with_owner+set}" = set; then
4326 withval="$with_owner"
4329 "" | y | ye | yes | n | no)
4330 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
4331 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
4332 { (exit 1); exit 1; }; }
4334 *) BINARY_OWNER="$withval"
4340 if test "x${BINARY_OWNER+set}" != xset ; then
4341 BINARY_OWNER=$CLIENT_LOGIN
4344 cat >>confdefs.h <<_ACEOF
4345 #define BINARY_OWNER "$BINARY_OWNER"
4351 # Check whether --with-rundump or --without-rundump was given.
4352 if test "${with_rundump+set}" = set; then
4353 withval="$with_rundump"
4356 n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
4357 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
4358 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
4359 { (exit 1); exit 1; }; };;
4366 # Check whether --with-config or --without-config was given.
4367 if test "${with_config+set}" = set; then
4368 withval="$with_config"
4371 "" | y | ye | yes | n | no)
4372 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
4373 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
4374 { (exit 1); exit 1; }; }
4376 *) DEFAULT_CONFIG="$withval"
4381 : ${DEFAULT_CONFIG=DailySet1}
4385 cat >>confdefs.h <<_ACEOF
4386 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
4392 # Check whether --with-tape-server or --without-tape-server was given.
4393 if test "${with_tape_server+set}" = set; then
4394 withval="$with_tape_server"
4397 "" | y | ye | yes | n | no)
4398 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
4399 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
4400 { (exit 1); exit 1; }; }
4402 *) DEFAULT_TAPE_SERVER="$withval"
4407 : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
4411 cat >>confdefs.h <<_ACEOF
4412 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
4418 # Check whether --with-tape-device or --without-tape-device was given.
4419 if test "${with_tape_device+set}" = set; then
4420 withval="$with_tape_device"
4423 "" | y | ye | yes | n | no)
4424 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
4425 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
4426 { (exit 1); exit 1; }; }
4428 *) DEFAULT_TAPE_DEVICE="$withval"
4435 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
4445 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
4446 if test "${with_ftape_raw_device+set}" = set; then
4447 withval="$with_ftape_raw_device"
4450 "" | y | ye | yes | n | no)
4451 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
4452 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
4453 { (exit 1); exit 1; }; }
4455 *) DEFAULT_RAW_TAPE_DEVICE="$withval"
4461 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4462 echo "$as_me:$LINENO: checking for raw ftape device" >&5
4463 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
4464 raw_tape_dev=/dev/null
4465 for num in 3 2 1 0 ; do
4467 if test -r $td; then
4471 DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
4472 echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
4473 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
4479 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4480 DEFAULT_RAW_TAPE_DEVICE=/dev/null
4484 cat >>confdefs.h <<_ACEOF
4485 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
4491 # Check whether --with-rew-tape or --without-rew-tape was given.
4492 if test "${with_rew_tape+set}" = set; then
4493 withval="$with_rew_tape"
4494 { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
4495 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
4496 { (exit 1); exit 1; }; }
4501 # Check whether --with-norew-tape or --without-norew-tape was given.
4502 if test "${with_norew_tape+set}" = set; then
4503 withval="$with_norew_tape"
4504 { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
4505 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
4506 { (exit 1); exit 1; }; }
4511 # Check whether --with-changer-device or --without-changer-device was given.
4512 if test "${with_changer_device+set}" = set; then
4513 withval="$with_changer_device"
4516 "" | y | ye | yes | n | no)
4517 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
4518 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
4519 { (exit 1); exit 1; }; }
4521 *) DEFAULT_CHANGER_DEVICE="$withval"
4527 if test -z "$DEFAULT_CHANGER_DEVICE" &&
4528 test -f /dev/ch0; then
4529 DEFAULT_CHANGER_DEVICE=/dev/ch0
4535 if test -z "$DEFAULT_CHANGER_DEVICE"; then
4536 DEFAULT_CHANGER_DEVICE=/dev/null
4540 cat >>confdefs.h <<_ACEOF
4541 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
4547 # Check whether --with-fqdn or --without-fqdn was given.
4548 if test "${with_fqdn+set}" = set; then
4549 withval="$with_fqdn"
4558 cat >>confdefs.h <<\_ACEOF
4563 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
4564 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
4565 { (exit 1); exit 1; }; }
4570 # Check whether --with-broken-fsf or --without-broken-fsf was given.
4571 if test "${with_broken_fsf+set}" = set; then
4572 withval="$with_broken_fsf"
4573 HAVE_BROKEN_FSF=$withval
4575 : ${HAVE_BROKEN_FSF=no}
4578 case "$HAVE_BROKEN_FSF" in
4581 cat >>confdefs.h <<\_ACEOF
4582 #define HAVE_BROKEN_FSF 1
4586 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
4587 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
4588 { (exit 1); exit 1; }; }
4593 # Check whether --with-reuseports or --without-reuseports was given.
4594 if test "${with_reuseports+set}" = set; then
4595 withval="$with_reuseports"
4608 case "$REUSEADDR" in
4613 cat >>confdefs.h <<\_ACEOF
4614 #define USE_REUSEADDR 1
4619 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
4620 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
4621 { (exit 1); exit 1; }; }
4626 # Check whether --with-gnutar or --without-gnutar was given.
4627 if test "${with_gnutar+set}" = set; then
4628 withval="$with_gnutar"
4631 /*) GNUTAR="$withval";;
4634 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
4635 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
4636 { (exit 1); exit 1; }; };;
4643 # Check whether --with-smbclient or --without-smbclient was given.
4644 if test "${with_smbclient+set}" = set; then
4645 withval="$with_smbclient"
4648 /*) SAMBA_CLIENT="$withval";;
4650 n|no) SAMBA_CLIENT=;;
4651 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
4652 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
4653 { (exit 1); exit 1; }; };;
4660 # Check whether --with-samba-user or --without-samba-user was given.
4661 if test "${with_samba_user+set}" = set; then
4662 withval="$with_samba_user"
4663 { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
4664 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
4665 { (exit 1); exit 1; }; }
4671 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
4672 if test "${with_gnutar_listdir+set}" = set; then
4673 withval="$with_gnutar_listdir"
4676 n | no) unset GNUTAR_LISTDIR ;;
4677 y | ye | yes) : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
4678 /*) GNUTAR_LISTDIR="$withval" ;;
4679 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
4680 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
4681 { (exit 1); exit 1; }; }
4685 : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
4688 if test "$GNUTAR_LISTDIR"; then
4690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4691 eval echo "$GNUTAR_LISTDIR"
4694 cat >>confdefs.h <<_ACEOF
4695 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
4698 GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
4700 GNUTAR_LISTED_INCREMENTAL_DIRX=
4705 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
4706 if test "${with_gnutar_listed_incremental+set}" = set; then
4707 withval="$with_gnutar_listed_incremental"
4708 { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
4709 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
4710 { (exit 1); exit 1; }; }
4714 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
4718 # Check whether --with-bsd-security or --without-bsd-security was given.
4719 if test "${with_bsd_security+set}" = set; then
4720 withval="$with_bsd_security"
4721 BSD_SECURITY=$withval
4723 : ${BSD_SECURITY=yes}
4726 case "$BSD_SECURITY" in
4729 cat >>confdefs.h <<\_ACEOF
4730 #define BSD_SECURITY 1
4734 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
4735 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
4736 { (exit 1); exit 1; }; }
4741 # Check whether --with-amandahosts or --without-amandahosts was given.
4742 if test "${with_amandahosts+set}" = set; then
4743 withval="$with_amandahosts"
4744 USE_AMANDAHOSTS=$withval
4746 : ${USE_AMANDAHOSTS=yes}
4749 case "$USE_AMANDAHOSTS" in
4752 case "$BSD_SECURITY" in
4754 cat >>confdefs.h <<\_ACEOF
4755 #define USE_AMANDAHOSTS 1
4761 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
4762 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
4763 { (exit 1); exit 1; }; }
4769 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4770 if test "${with_dbmalloc+set}" = set; then
4771 withval="$with_dbmalloc"
4785 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
4786 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
4787 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_check_lib_save_LIBS=$LIBS
4791 LIBS="-ldbmalloc $LIBS"
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4799 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1 >conftest.err
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest$ac_exeext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_cv_lib_dbmalloc_malloc=yes
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 ac_cv_lib_dbmalloc_malloc=no
4843 rm -f conftest.err conftest.$ac_objext \
4844 conftest$ac_exeext conftest.$ac_ext
4845 LIBS=$ac_check_lib_save_LIBS
4847 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
4848 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
4849 if test $ac_cv_lib_dbmalloc_malloc = yes; then
4850 cat >>confdefs.h <<_ACEOF
4851 #define HAVE_LIBDBMALLOC 1
4854 LIBS="-ldbmalloc $LIBS"
4858 if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
4859 { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
4860 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
4864 DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
4865 DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
4871 # Check whether --with-ipv6 or --without-ipv6 was given.
4872 if test "${with_ipv6+set}" = set; then
4873 withval="$with_ipv6"
4876 y | ye | yes) amanda_ipv6=true;;
4877 n | no) amanda_ipv6=false;;
4879 { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
4880 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
4881 { (exit 1); exit 1; }; }
4889 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
4892 # Check whether --with-krb4-security or --without-krb4-security was given.
4893 if test "${with_krb4_security+set}" = set; then
4894 withval="$with_krb4_security"
4895 KRB4_SECURITY="$withval"
4897 : ${KRB4_SECURITY=no}
4901 case "$KRB4_SECURITY" in
4902 n | no) KRB4_SECURITY=no ;;
4904 *) KRB4_SPOTS="$KRB4_SECURITY"
4909 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
4910 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
4911 if test "x${KRB4_SECURITY}" = xyes -a -f ${srcdir-.}/common-src/krb4-security.c ; then
4912 for dir in $KRB4_SPOTS; do
4913 if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
4915 # This is the original Kerberos 4.
4917 echo "$as_me:$LINENO: result: found in $dir" >&5
4918 echo "${ECHO_T}found in $dir" >&6
4921 cat >>confdefs.h <<\_ACEOF
4922 #define KRB4_SECURITY 1
4925 if test -d $dir/include/kerberosIV ; then
4927 # This handles BSD/OS.
4929 KRB4INCLUDES=-I$dir/include/kerberosIV
4931 KRB4INCLUDES=-I$dir/include
4933 KRB4LDFLAGS=-L$dir/lib
4934 KRB4LIBS="-lkrb -ldes"
4935 if test -f ${dir}/lib/libcom_err.a; then
4936 KRB4LIBS="$KRB4LIBS -lcom_err"
4939 elif test -f ${dir}/lib/libkrb4.a &&
4940 test -f ${dir}/lib/libcrypto.a &&
4941 test -f ${dir}/lib/libdes425.a ; then
4943 # This is Kerberos 5 with Kerberos 4 back-support.
4945 echo "$as_me:$LINENO: result: found in $dir" >&5
4946 echo "${ECHO_T}found in $dir" >&6
4949 cat >>confdefs.h <<\_ACEOF
4950 #define KRB4_SECURITY 1
4953 KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
4954 KRB4LDFLAGS=-L$dir/lib
4955 if test -f ${dir}/lib/libkrb5.a &&
4956 test -f ${dir}/lib/libcom_err.a; then
4957 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
4959 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
4965 if test "x$KRB4LDFLAGS" = "x" ; then
4966 echo "$as_me:$LINENO: result: no libraries found" >&5
4967 echo "${ECHO_T}no libraries found" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4975 # Check whether --with-rsh-security or --without-rsh-security was given.
4976 if test "${with_rsh_security+set}" = set; then
4977 withval="$with_rsh_security"
4978 RSH_SECURITY=$withval
4980 : ${RSH_SECURITY=yes}
4983 case "$RSH_SECURITY" in
4986 cat >>confdefs.h <<\_ACEOF
4987 #define RSH_SECURITY 1
4991 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
4992 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
4993 { (exit 1); exit 1; }; }
4998 # Check whether --with-ssh-security or --without-ssh-security was given.
4999 if test "${with_ssh_security+set}" = set; then
5000 withval="$with_ssh_security"
5001 SSH_SECURITY=$withval
5003 : ${SSH_SECURITY=no}
5006 case "$SSH_SECURITY" in
5009 cat >>confdefs.h <<\_ACEOF
5010 #define SSH_SECURITY 1
5013 SSH_SECURITY_SET=true
5015 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
5016 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
5017 { (exit 1); exit 1; }; }
5022 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
5023 if test "${with_bsdtcp_security+set}" = set; then
5024 withval="$with_bsdtcp_security"
5025 BSDTCP_SECURITY=$withval
5027 : ${BSDTCP_SECURITY=yes}
5030 case "$BSDTCP_SECURITY" in
5033 cat >>confdefs.h <<\_ACEOF
5034 #define BSDTCP_SECURITY 1
5037 BSDTCP_SECURITY_SET=true
5039 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
5040 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
5041 { (exit 1); exit 1; }; }
5046 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
5047 if test "${with_bsdudp_security+set}" = set; then
5048 withval="$with_bsdudp_security"
5049 BSDUDP_SECURITY=$withval
5051 : ${BSDUDP_SECURITY=yes}
5054 case "$BSDUDP_SECURITY" in
5057 cat >>confdefs.h <<\_ACEOF
5058 #define BSDUDP_SECURITY 1
5061 BSDUDP_SECURITY_SET=true
5063 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
5064 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
5065 { (exit 1); exit 1; }; }
5070 # Check whether --with-server-principal or --without-server-principal was given.
5071 if test "${with_server_principal+set}" = set; then
5072 withval="$with_server_principal"
5075 "" | y | ye | yes | n | no)
5076 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
5077 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
5078 { (exit 1); exit 1; }; }
5081 SERVER_HOST_PRINCIPLE="$withval"
5086 : ${SERVER_HOST_PRINCIPLE="amanda"}
5090 cat >>confdefs.h <<_ACEOF
5091 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
5096 # Check whether --with-server-instance or --without-server-instance was given.
5097 if test "${with_server_instance+set}" = set; then
5098 withval="$with_server_instance"
5101 "" | y | ye | yes | n | no)
5102 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
5103 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
5104 { (exit 1); exit 1; }; }
5106 *) SERVER_HOST_INSTANCE="$withval"
5111 : ${SERVER_HOST_INSTANCE="amanda"}
5115 cat >>confdefs.h <<_ACEOF
5116 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
5121 # Check whether --with-server-keyfile or --without-server-keyfile was given.
5122 if test "${with_server_keyfile+set}" = set; then
5123 withval="$with_server_keyfile"
5126 "" | y | ye | yes | n | no)
5127 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
5128 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
5129 { (exit 1); exit 1; }; }
5131 *) SERVER_HOST_KEY_FILE="$withval"
5136 : ${SERVER_HOST_KEY_FILE="/.amanda"}
5140 cat >>confdefs.h <<_ACEOF
5141 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
5146 # Check whether --with-client-principal or --without-client-principal was given.
5147 if test "${with_client_principal+set}" = set; then
5148 withval="$with_client_principal"
5151 "" | y | ye | yes | n | no)
5152 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
5153 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
5154 { (exit 1); exit 1; }; }
5156 *) CLIENT_HOST_PRINCIPLE="$withval"
5161 : ${CLIENT_HOST_PRINCIPLE="rcmd"}
5165 cat >>confdefs.h <<_ACEOF
5166 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
5171 # Check whether --with-client-instance or --without-client-instance was given.
5172 if test "${with_client_instance+set}" = set; then
5173 withval="$with_client_instance"
5176 "" | y | ye | yes | n | no)
5177 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
5178 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
5179 { (exit 1); exit 1; }; }
5181 *) CLIENT_HOST_INSTANCE="$withval"
5186 : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
5190 cat >>confdefs.h <<_ACEOF
5191 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
5196 # Check whether --with-client-keyfile or --without-client-keyfile was given.
5197 if test "${with_client_keyfile+set}" = set; then
5198 withval="$with_client_keyfile"
5201 "" | y | ye | yes | n | no)
5202 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
5203 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
5204 { (exit 1); exit 1; }; }
5206 *) CLIENT_HOST_KEY_FILE="$withval"
5211 : ${CLIENT_HOST_KEY_FILE=KEYFILE}
5215 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
5216 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
5217 CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
5221 cat >>confdefs.h <<_ACEOF
5222 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
5227 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
5228 if test "${with_ticket_lifetime+set}" = set; then
5229 withval="$with_ticket_lifetime"
5232 "" | y | ye | yes | n | no)
5233 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
5234 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
5235 { (exit 1); exit 1; }; }
5237 *) TICKET_LIFETIME="$withval"
5242 : ${TICKET_LIFETIME=128}
5246 cat >>confdefs.h <<_ACEOF
5247 #define TICKET_LIFETIME $TICKET_LIFETIME
5252 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
5255 # Check whether --with-krb5-security or --without-krb5-security was given.
5256 if test "${with_krb5_security+set}" = set; then
5257 withval="$with_krb5_security"
5258 KRB5_SECURITY="$withval"
5260 : ${KRB5_SECURITY=no}
5264 case "$KRB5_SECURITY" in
5265 n | no) KRB5_SECURITY=no
5269 *) KRB5_SPOTS="$KRB5_SECURITY"
5274 # if found, force the static versions of these libs (.a) by linking directly
5275 # with the .a files. I don't know how to get -R dependancies checked
5276 # in autoconf at this time. -kashmir
5277 echo "$as_me:$LINENO: checking for Kerberos V" >&5
5278 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
5281 for dir in $KRB5_SPOTS; do
5282 for lib in lib lib64; do
5283 k5libdir=${dir}/${lib}
5284 if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
5285 if test -f ${k5libdir}/libk5crypto.a; then
5286 K5CRYPTO=${k5libdir}/libk5crypto.a
5287 elif test -f ${k5libdir}/libcrypto.a; then
5288 K5CRYPTO=${k5libdir}/libcrypto.a
5292 if test -f ${k5libdir}/libkrb5support.a; then
5293 K5SUPPORT=${k5libdir}/libkrb5support.a
5298 KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO $K5SUPPORT ${k5libdir}/libcom_err.a"
5301 elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
5303 KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
5304 KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
5310 if test "$KRB5_DIR_FOUND"; then
5311 echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
5312 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
5315 cat >>confdefs.h <<\_ACEOF
5316 #define KRB5_SECURITY 1
5320 # some OS's, such as NetBSD, stick krb5 includes out of the way...
5321 # should probably just use autoconf to look for various include
5322 # options and set them, but don't quite want to do that until I've
5323 # dug into it a bit more.
5325 if test -d "$KRB5_DIR_FOUND/krb5" ; then
5326 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
5328 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
5330 if test "$KRB5_CFLAGS" ; then
5331 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
5334 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
5335 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
5336 if test "${ac_cv_lib_krb5support_main+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 ac_check_lib_save_LIBS=$LIBS
5340 LIBS="-lkrb5support $LIBS"
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359 (eval $ac_link) 2>conftest.er1
5361 grep -v '^ *+' conftest.er1 >conftest.err
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_lib_krb5support_main=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_lib_krb5support_main=no
5386 rm -f conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
5391 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
5392 if test $ac_cv_lib_krb5support_main = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBKRB5SUPPORT 1
5397 LIBS="-lkrb5support $LIBS"
5401 KRB5LDFLAGS=-L$k5libdir
5405 if test "x$KRB5LDFLAGS" = "x" ; then
5406 echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
5407 echo "${ECHO_T}no krb5 system libraries found" >&6
5412 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
5413 if test "${with_low_tcpportrange+set}" = set; then
5414 withval="$with_low_tcpportrange"
5416 LOW_TCPPORTRANGE="$withval"
5421 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
5422 if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5423 { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
5424 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
5425 { (exit 1); exit 1; }; }
5427 min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
5428 max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
5429 if test $min_low_tcp_port -gt $max_low_tcp_port; then
5430 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
5431 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
5432 { (exit 1); exit 1; }; }
5434 if test $min_low_tcp_port -lt 512; then
5435 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
5436 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
5438 if test $max_low_tcp_port -ge 1024; then
5439 { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
5440 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
5443 cat >>confdefs.h <<_ACEOF
5444 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
5450 # Check whether --with-tcpportrange or --without-tcpportrange was given.
5451 if test "${with_tcpportrange+set}" = set; then
5452 withval="$with_tcpportrange"
5454 TCPPORTRANGE="$withval"
5458 if test x"${TCPPORTRANGE+set}" = x"set"; then
5459 if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5460 { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
5461 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
5462 { (exit 1); exit 1; }; }
5464 min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
5465 max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
5466 if test $min_tcp_port -gt $max_tcp_port; then
5467 { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
5468 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
5469 { (exit 1); exit 1; }; }
5471 if test $min_tcp_port -lt 1024; then
5472 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
5473 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
5475 if test $max_tcp_port -ge 65536; then
5476 { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
5477 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
5480 cat >>confdefs.h <<_ACEOF
5481 #define TCPPORTRANGE $TCPPORTRANGE
5487 # Check whether --with-udpportrange or --without-udpportrange was given.
5488 if test "${with_udpportrange+set}" = set; then
5489 withval="$with_udpportrange"
5491 UDPPORTRANGE="$withval"
5495 if test x"${UDPPORTRANGE+set}" = x"set"; then
5496 if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5497 { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
5498 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
5499 { (exit 1); exit 1; }; }
5501 min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
5502 max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
5503 if test $min_udp_port -gt $max_udp_port; then
5504 { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
5505 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
5506 { (exit 1); exit 1; }; }
5508 if test $max_udp_port -ge 1024; then
5509 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
5510 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
5512 if test $min_udp_port -le 0; then
5513 { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
5514 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
5517 cat >>confdefs.h <<_ACEOF
5518 #define UDPPORTRANGE $UDPPORTRANGE
5524 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
5525 if test "${with_maxtapeblocksize+set}" = set; then
5526 withval="$with_maxtapeblocksize"
5528 MAXTAPEBLOCKSIZE="$withval"
5531 : ${MAXTAPEBLOCKSIZE=32}
5536 cat >>confdefs.h <<_ACEOF
5537 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
5543 # Check whether --with-db or --without-db was given.
5544 if test "${with_db+set}" = set; then
5548 "" | y | ye | yes | n | no)
5549 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
5550 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
5551 { (exit 1); exit 1; }; }
5553 *) DB_STYLE="$withval"
5559 if test "$DB_STYLE"; then
5561 db | dbm | gdbm | ndbm | text) ;;
5563 { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&5
5564 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db. Choose from db, dbm, gdbm, ndbm, text." >&2;}
5565 { (exit 1); exit 1; }; }
5572 # Check whether --with-mmap or --without-mmap was given.
5573 if test "${with_mmap+set}" = set; then
5574 withval="$with_mmap"
5580 case "$FORCE_MMAP" in
5581 y | ye | yes | n | no) : ;;
5582 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
5583 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
5584 { (exit 1); exit 1; }; }
5589 # Check whether --with-buffered-dump or --without-buffered-dump was given.
5590 if test "${with_buffered_dump+set}" = set; then
5591 withval="$with_buffered_dump"
5592 DUMPER_SOCKET_BUFFERING=$withval
5594 : ${DUMPER_SOCKET_BUFFERING=no}
5597 case "$DUMPER_SOCKET_BUFFERING" in
5601 cat >>confdefs.h <<\_ACEOF
5602 #define DUMPER_SOCKET_BUFFERING 1
5606 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
5607 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
5608 { (exit 1); exit 1; }; }
5613 # Check whether --with-assertions or --without-assertions was given.
5614 if test "${with_assertions+set}" = set; then
5615 withval="$with_assertions"
5616 ASSERTIONS="$withval"
5621 case "$ASSERTIONS" in
5624 cat >>confdefs.h <<\_ACEOF
5625 #define ASSERTIONS 1
5629 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
5630 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
5631 { (exit 1); exit 1; }; }
5636 # Check whether --with-tmpdir or --without-tmpdir was given.
5637 if test "${with_tmpdir+set}" = set; then
5638 withval="$with_tmpdir"
5645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5646 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5650 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
5651 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
5652 { (exit 1); exit 1; }; };;
5654 AMANDA_TMPDIR="/tmp/amanda";;
5656 AMANDA_TMPDIR="$tmpdir";;
5657 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
5658 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
5659 { (exit 1); exit 1; }; };;
5662 cat >>confdefs.h <<_ACEOF
5663 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
5669 # Check whether --with-debugging or --without-debugging was given.
5670 if test "${with_debugging+set}" = set; then
5671 withval="$with_debugging"
5672 debugging="$withval"
5678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5679 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5680 eval echo "$debugging"
5682 case "$debugging" in
5683 n | no) AMANDA_DBGDIR="";;
5684 y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
5685 /*) AMANDA_DBGDIR="$debugging";;
5686 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
5687 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
5688 { (exit 1); exit 1; }; }
5691 case "$AMANDA_DBGDIR" in
5694 cat >>confdefs.h <<\_ACEOF
5695 #define DEBUG_CODE 1
5699 cat >>confdefs.h <<_ACEOF
5700 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
5707 # Check whether --with-debug_days or --without-debug_days was given.
5708 if test "${with_debug_days+set}" = set; then
5709 withval="$with_debug_days"
5710 debug_days="$withval"
5715 case "$debug_days" in
5716 n | no) AMANDA_DEBUG_DAYS=0 ;;
5717 y | ye | yes) AMANDA_DEBUG_DAYS=4 ;;
5718 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
5719 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
5720 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
5721 { (exit 1); exit 1; }; }
5725 cat >>confdefs.h <<_ACEOF
5726 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
5732 # Check whether --with-testing or --without-testing was given.
5733 if test "${with_testing+set}" = set; then
5734 withval="$with_testing"
5741 n | no) SERVICE_SUFFIX="";;
5742 y | ye | yes) SERVICE_SUFFIX="-test";;
5743 *) SERVICE_SUFFIX="-$TESTING";;
5745 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
5746 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
5749 cat >>confdefs.h <<_ACEOF
5750 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
5754 cat >>confdefs.h <<_ACEOF
5755 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
5759 cat >>confdefs.h <<_ACEOF
5760 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
5765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5766 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5768 tmp=`eval echo "$bindir"`
5770 cat >>confdefs.h <<_ACEOF
5771 #define bindir "$tmp"
5775 tmp=`eval echo "$sbindir"`
5777 cat >>confdefs.h <<_ACEOF
5778 #define sbindir "$tmp"
5782 tmp=`eval echo "$libexecdir"`
5784 cat >>confdefs.h <<_ACEOF
5785 #define libexecdir "$tmp"
5789 tmp=`eval echo $mandir`
5791 cat >>confdefs.h <<_ACEOF
5792 #define mandir "$tmp"
5797 DUMP_PROGRAMS="ufsdump dump backup"
5805 cat >>confdefs.h <<\_ACEOF
5806 #define STATFS_OSF1 1
5811 DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
5812 : ${USE_RUNDUMP=yes}
5823 GETCONF_LFS="XBS5_ILP32_OFFBIG"
5826 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
5829 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
5834 GETCONF_LFS="XBS5_ILP32_OFFBIG"
5835 DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
5837 cat >>confdefs.h <<\_ACEOF
5838 #define AIX_TAPEIO 1
5842 cat >>confdefs.h <<\_ACEOF
5843 #define AIX_BACKUP 1
5847 m88k-motorola-sysv4)
5879 : ${USE_RUNDUMP=yes}
5881 cat >>confdefs.h <<\_ACEOF
5882 #define STATFS_ULTRIX 1
5889 cat >>confdefs.h <<\_ACEOF
5890 #define UWARE_TAPEIO 1
5901 cat >>confdefs.h <<\_ACEOF
5902 #define STATFS_SCO_OS5 1
5913 cat >>confdefs.h <<\_ACEOF
5914 #define IGNORE_TAR_ERRORS 1
5917 # Cygwin needs PATH to find cygwin1.dll
5919 cat >>confdefs.h <<\_ACEOF
5920 #define NEED_PATH_ENV 1
5924 cat >>confdefs.h <<\_ACEOF
5925 #define IGNORE_UID_CHECK 1
5929 cat >>confdefs.h <<\_ACEOF
5930 #define IGNORE_FSTAB 1
5934 cat >>confdefs.h <<\_ACEOF
5935 #define DONT_SUID_ROOT 1
5938 NEED_SETUID_CLIENT=false
5939 NEED_RUNTIME_PSEUDO_RELOC=true
5946 This machine, target type $target, is not known
5947 to be fully supported by this configure script. If the
5948 installation of Amanda on this system succeeds or needed
5949 any patches, please email amanda-hackers@amanda.org with
5950 the patches or an indication of the sucess or failure of
5951 the Amanda installation on your system.
5958 if test -n "$dump_returns_1"; then
5960 cat >>confdefs.h <<\_ACEOF
5961 #define DUMP_RETURNS_1 1
5966 if test -n "$xenix_tapeio"; then
5968 cat >>confdefs.h <<\_ACEOF
5969 #define XENIX_TAPEIO 1
5974 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5975 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5976 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5977 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5978 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5979 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5980 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5981 LIBS="$AMANDA_LIBS $LIBS"
5984 : ${MT_FILE_FLAG="-f"}
5987 cat >>confdefs.h <<_ACEOF
5988 #define MT_FILE_FLAG "$MT_FILE_FLAG"
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5998 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5999 # On Suns, sometimes $CPP names a directory.
6000 if test -n "$CPP" && test -d "$CPP"; then
6003 if test -z "$CPP"; then
6004 if test "${ac_cv_prog_CPP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 # Double quotes because CPP needs to be expanded
6008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6011 for ac_c_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6026 # include <limits.h>
6028 # include <assert.h>
6032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null; then
6040 if test -s conftest.err; then
6041 ac_cpp_err=$ac_c_preproc_warn_flag
6042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049 if test -z "$ac_cpp_err"; then
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 # Broken: fails on valid input.
6058 rm -f conftest.err conftest.$ac_ext
6060 # OK, works on sane cases. Now check whether non-existent headers
6061 # can be detected and how.
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null; then
6078 if test -s conftest.err; then
6079 ac_cpp_err=$ac_c_preproc_warn_flag
6080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6087 if test -z "$ac_cpp_err"; then
6088 # Broken: success on invalid input.
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 # Passes both tests.
6098 rm -f conftest.err conftest.$ac_ext
6101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6102 rm -f conftest.err conftest.$ac_ext
6103 if $ac_preproc_ok; then
6115 echo "$as_me:$LINENO: result: $CPP" >&5
6116 echo "${ECHO_T}$CPP" >&6
6118 for ac_c_preproc_warn_flag in '' yes
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6133 # include <limits.h>
6135 # include <assert.h>
6139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } >/dev/null; then
6147 if test -s conftest.err; then
6148 ac_cpp_err=$ac_c_preproc_warn_flag
6149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6156 if test -z "$ac_cpp_err"; then
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 # Broken: fails on valid input.
6165 rm -f conftest.err conftest.$ac_ext
6167 # OK, works on sane cases. Now check whether non-existent headers
6168 # can be detected and how.
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <ac_nonexistent.h>
6177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null; then
6185 if test -s conftest.err; then
6186 ac_cpp_err=$ac_c_preproc_warn_flag
6187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6194 if test -z "$ac_cpp_err"; then
6195 # Broken: success on invalid input.
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 # Passes both tests.
6205 rm -f conftest.err conftest.$ac_ext
6208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6209 rm -f conftest.err conftest.$ac_ext
6210 if $ac_preproc_ok; then
6213 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6214 See \`config.log' for more details." >&5
6215 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6216 See \`config.log' for more details." >&2;}
6217 { (exit 1); exit 1; }; }
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227 echo "$as_me:$LINENO: checking for egrep" >&5
6228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6229 if test "${ac_cv_prog_egrep+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6233 then ac_cv_prog_egrep='grep -E'
6234 else ac_cv_prog_egrep='egrep'
6237 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6238 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6239 EGREP=$ac_cv_prog_egrep
6242 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6243 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6244 if test "${ac_cv_header_stdc+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268 (eval $ac_compile) 2>conftest.er1
6270 grep -v '^ *+' conftest.er1 >conftest.err
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest.$ac_objext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_header_stdc=yes
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_cv_header_stdc=no
6295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 if test $ac_cv_header_stdc = yes; then
6298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299 cat >conftest.$ac_ext <<_ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 $EGREP "memchr" >/dev/null 2>&1; then
6312 ac_cv_header_stdc=no
6318 if test $ac_cv_header_stdc = yes; then
6319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 $EGREP "free" >/dev/null 2>&1; then
6333 ac_cv_header_stdc=no
6339 if test $ac_cv_header_stdc = yes; then
6340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6341 if test "$cross_compiling" = yes; then
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 #if ((' ' & 0x0FF) == 0x020)
6352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6355 # define ISLOWER(c) \
6356 (('a' <= (c) && (c) <= 'i') \
6357 || ('j' <= (c) && (c) <= 'r') \
6358 || ('s' <= (c) && (c) <= 'z'))
6359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367 for (i = 0; i < 256; i++)
6368 if (XOR (islower (i), ISLOWER (i))
6369 || toupper (i) != TOUPPER (i))
6374 rm -f conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6387 echo "$as_me: program exited with status $ac_status" >&5
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_cv_header_stdc=no
6394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6399 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6400 if test $ac_cv_header_stdc = yes; then
6402 cat >>confdefs.h <<\_ACEOF
6403 #define STDC_HEADERS 1
6408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6419 inttypes.h stdint.h unistd.h
6421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6422 echo "$as_me:$LINENO: checking for $ac_header" >&5
6423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 cat >conftest.$ac_ext <<_ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6433 $ac_includes_default
6435 #include <$ac_header>
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439 (eval $ac_compile) 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -z "$ac_c_werror_flag"
6447 || test ! -s conftest.err'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 eval "$as_ac_Header=yes"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 eval "$as_ac_Header=no"
6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480 # ------ AX CREATE STDINT H -------------------------------------
6481 echo "$as_me:$LINENO: checking for stdint types" >&5
6482 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
6483 ac_stdint_h=`echo common-src/amanda-int.h`
6484 # try to shortcircuit - if the default include path of the compiler
6485 # can find a "stdint.h" header then we assume that all compilers can.
6486 if test "${ac_cv_header_stdint_t+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6491 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6492 old_CFLAGS="$CFLAGS" ; CFLAGS=""
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6503 int_least32_t v = 0;
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -z "$ac_c_werror_flag"
6518 || test ! -s conftest.err'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_cv_stdint_result="(assuming C99 compatible system)"
6531 ac_cv_header_stdint_t="stdint.h";
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_header_stdint_t=""
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 CXXFLAGS="$old_CXXFLAGS"
6540 CPPFLAGS="$old_CPPFLAGS"
6541 CFLAGS="$old_CFLAGS"
6545 v="... $ac_cv_header_stdint_h"
6546 if test "$ac_stdint_h" = "stdint.h" ; then
6547 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
6548 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
6549 elif test "$ac_stdint_h" = "inttypes.h" ; then
6550 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
6551 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
6552 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6553 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
6554 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
6556 ac_cv_header_stdint="$ac_cv_header_stdint_t"
6557 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
6558 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
6561 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6564 inttype_headers=`echo | sed -e 's/,/ /g'`
6566 ac_cv_stdint_result="(no helpful system typedefs seen)"
6568 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6569 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6570 if test "${ac_cv_header_stdint_x+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6575 echo "$as_me:$LINENO: result: (..)" >&5
6576 echo "${ECHO_T}(..)" >&6
6577 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6578 unset ac_cv_type_uintptr_t
6579 unset ac_cv_type_uint64_t
6580 echo "$as_me:$LINENO: checking for uintptr_t" >&5
6581 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6582 if test "${ac_cv_type_uintptr_t+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6596 if ((uintptr_t *) 0)
6598 if (sizeof (uintptr_t))
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type_uintptr_t=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type_uintptr_t=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6637 if test $ac_cv_type_uintptr_t = yes; then
6638 ac_cv_header_stdint_x=$i
6643 echo "$as_me:$LINENO: checking for uint64_t" >&5
6644 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6645 if test "${ac_cv_type_uint64_t+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6661 if (sizeof (uint64_t))
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_type_uint64_t=yes
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_type_uint64_t=no
6696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6700 if test $ac_cv_type_uint64_t = yes; then
6706 stdint.h inttypes.h sys/inttypes.h $inttype_headers
6709 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6710 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6713 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
6714 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
6717 if test "_$ac_cv_header_stdint_x" = "_" ; then
6719 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6720 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6721 if test "${ac_cv_header_stdint_o+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6726 echo "$as_me:$LINENO: result: (..)" >&5
6727 echo "${ECHO_T}(..)" >&6
6728 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6729 unset ac_cv_type_uint32_t
6730 unset ac_cv_type_uint64_t
6731 echo "$as_me:$LINENO: checking for uint32_t" >&5
6732 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6733 if test "${ac_cv_type_uint32_t+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6749 if (sizeof (uint32_t))
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag"
6765 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_type_uint32_t=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_cv_type_uint32_t=no
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6787 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6788 if test $ac_cv_type_uint32_t = yes; then
6789 ac_cv_header_stdint_o=$i
6794 echo "$as_me:$LINENO: checking for uint64_t" >&5
6795 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6796 if test "${ac_cv_type_uint64_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6812 if (sizeof (uint64_t))
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest.$ac_objext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_type_uint64_t=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_cv_type_uint64_t=no
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6850 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6851 if test $ac_cv_type_uint64_t = yes; then
6857 inttypes.h sys/inttypes.h stdint.h $inttype_headers
6861 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6862 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6865 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
6866 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
6870 if test "_$ac_cv_header_stdint_x" = "_" ; then
6871 if test "_$ac_cv_header_stdint_o" = "_" ; then
6873 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6874 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6875 if test "${ac_cv_header_stdint_u+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6880 echo "$as_me:$LINENO: result: (..)" >&5
6881 echo "${ECHO_T}(..)" >&6
6882 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6883 unset ac_cv_type_u_int32_t
6884 unset ac_cv_type_u_int64_t
6885 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6886 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6887 if test "${ac_cv_type_u_int32_t+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6901 if ((u_int32_t *) 0)
6903 if (sizeof (u_int32_t))
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
6918 { ac_try='test -z "$ac_c_werror_flag"
6919 || test ! -s conftest.err'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; } &&
6925 { ac_try='test -s conftest.$ac_objext'
6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); }; }; then
6931 ac_cv_type_u_int32_t=yes
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_type_u_int32_t=no
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6941 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6942 if test $ac_cv_type_u_int32_t = yes; then
6943 ac_cv_header_stdint_u=$i
6948 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6949 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6950 if test "${ac_cv_type_u_int64_t+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6964 if ((u_int64_t *) 0)
6966 if (sizeof (u_int64_t))
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6976 grep -v '^ *+' conftest.er1 >conftest.err
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try='test -z "$ac_c_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_type_u_int64_t=yes
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 ac_cv_type_u_int64_t=no
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7004 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
7005 if test $ac_cv_type_u_int64_t = yes; then
7011 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
7015 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7016 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
7019 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7020 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
7024 if test "_$ac_cv_header_stdint_x" = "_" ; then
7025 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7026 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
7027 echo "$as_me:$LINENO: result: (..)" >&5
7028 echo "${ECHO_T}(..)" >&6
7030 echo "$as_me:$LINENO: checking for char" >&5
7031 echo $ECHO_N "checking for char... $ECHO_C" >&6
7032 if test "${ac_cv_type_char+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 $ac_includes_default
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7085 echo "${ECHO_T}$ac_cv_type_char" >&6
7087 echo "$as_me:$LINENO: checking size of char" >&5
7088 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7089 if test "${ac_cv_sizeof_char+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test "$ac_cv_type_char" = yes; then
7093 # The cast to unsigned long works around a bug in the HP C Compiler
7094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7096 # This bug is HP SR number 8606223364.
7097 if test "$cross_compiling" = yes; then
7098 # Depending upon the size, compute the lo and hi bounds.
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 $ac_includes_default
7109 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7150 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest.$ac_objext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_hi=$ac_mid; break
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_lo=`expr $ac_mid + 1`
7185 if test $ac_lo -le $ac_mid; then
7189 ac_mid=`expr 2 '*' $ac_mid + 1`
7191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7207 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>conftest.er1
7218 grep -v '^ *+' conftest.er1 >conftest.err
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -z "$ac_c_werror_flag"
7224 || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try='test -s conftest.$ac_objext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7248 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7259 grep -v '^ *+' conftest.er1 >conftest.err
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_lo=$ac_mid; break
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 ac_hi=`expr '(' $ac_mid ')' - 1`
7283 if test $ac_mid -le $ac_hi; then
7287 ac_mid=`expr 2 '*' $ac_mid`
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 # Binary search between lo and hi bounds.
7301 while test "x$ac_lo" != "x$ac_hi"; do
7302 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7313 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7320 rm -f conftest.$ac_objext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>conftest.er1
7324 grep -v '^ *+' conftest.er1 >conftest.err
7326 cat conftest.err >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -z "$ac_c_werror_flag"
7330 || test ! -s conftest.err'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; } &&
7336 { ac_try='test -s conftest.$ac_objext'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_lo=`expr '(' $ac_mid ')' + 1`
7349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352 ?*) ac_cv_sizeof_char=$ac_lo;;
7353 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7354 See \`config.log' for more details." >&5
7355 echo "$as_me: error: cannot compute sizeof (char), 77
7356 See \`config.log' for more details." >&2;}
7357 { (exit 1); exit 1; }; } ;;
7360 if test "$cross_compiling" = yes; then
7361 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7362 See \`config.log' for more details." >&5
7363 echo "$as_me: error: cannot run test program while cross compiling
7364 See \`config.log' for more details." >&2;}
7365 { (exit 1); exit 1; }; }
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 long longval () { return (long) (sizeof (char)); }
7375 unsigned long ulongval () { return (long) (sizeof (char)); }
7382 FILE *f = fopen ("conftest.val", "w");
7385 if (((long) (sizeof (char))) < 0)
7387 long i = longval ();
7388 if (i != ((long) (sizeof (char))))
7390 fprintf (f, "%ld\n", i);
7394 unsigned long i = ulongval ();
7395 if (i != ((long) (sizeof (char))))
7397 fprintf (f, "%lu\n", i);
7399 exit (ferror (f) || fclose (f) != 0);
7405 rm -f conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407 (eval $ac_link) 2>&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_sizeof_char=`cat conftest.val`
7418 echo "$as_me: program exited with status $ac_status" >&5
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (char), 77
7426 See \`config.log' for more details." >&2;}
7427 { (exit 1); exit 1; }; }
7429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7437 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7438 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7439 cat >>confdefs.h <<_ACEOF
7440 #define SIZEOF_CHAR $ac_cv_sizeof_char
7444 echo "$as_me:$LINENO: checking for short" >&5
7445 echo $ECHO_N "checking for short... $ECHO_C" >&6
7446 if test "${ac_cv_type_short+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 $ac_includes_default
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -z "$ac_c_werror_flag"
7477 || test ! -s conftest.err'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; } &&
7483 { ac_try='test -s conftest.$ac_objext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_type_short=yes
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7499 echo "${ECHO_T}$ac_cv_type_short" >&6
7501 echo "$as_me:$LINENO: checking size of short" >&5
7502 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7503 if test "${ac_cv_sizeof_short+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 if test "$ac_cv_type_short" = yes; then
7507 # The cast to unsigned long works around a bug in the HP C Compiler
7508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7510 # This bug is HP SR number 8606223364.
7511 if test "$cross_compiling" = yes; then
7512 # Depending upon the size, compute the lo and hi bounds.
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7523 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>conftest.er1
7534 grep -v '^ *+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 $ac_includes_default
7564 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7571 rm -f conftest.$ac_objext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -z "$ac_c_werror_flag"
7581 || test ! -s conftest.err'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; } &&
7587 { ac_try='test -s conftest.$ac_objext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 ac_hi=$ac_mid; break
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 ac_lo=`expr $ac_mid + 1`
7599 if test $ac_lo -le $ac_mid; then
7603 ac_mid=`expr 2 '*' $ac_mid + 1`
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7621 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag"
7638 || test ! -s conftest.err'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7662 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671 (eval $ac_compile) 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -z "$ac_c_werror_flag"
7679 || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_lo=$ac_mid; break
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_hi=`expr '(' $ac_mid ')' - 1`
7697 if test $ac_mid -le $ac_hi; then
7701 ac_mid=`expr 2 '*' $ac_mid`
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 # Binary search between lo and hi bounds.
7715 while test "x$ac_lo" != "x$ac_hi"; do
7716 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7727 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_lo=`expr '(' $ac_mid ')' + 1`
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7766 ?*) ac_cv_sizeof_short=$ac_lo;;
7767 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7768 See \`config.log' for more details." >&5
7769 echo "$as_me: error: cannot compute sizeof (short), 77
7770 See \`config.log' for more details." >&2;}
7771 { (exit 1); exit 1; }; } ;;
7774 if test "$cross_compiling" = yes; then
7775 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7776 See \`config.log' for more details." >&5
7777 echo "$as_me: error: cannot run test program while cross compiling
7778 See \`config.log' for more details." >&2;}
7779 { (exit 1); exit 1; }; }
7781 cat >conftest.$ac_ext <<_ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 long longval () { return (long) (sizeof (short)); }
7789 unsigned long ulongval () { return (long) (sizeof (short)); }
7796 FILE *f = fopen ("conftest.val", "w");
7799 if (((long) (sizeof (short))) < 0)
7801 long i = longval ();
7802 if (i != ((long) (sizeof (short))))
7804 fprintf (f, "%ld\n", i);
7808 unsigned long i = ulongval ();
7809 if (i != ((long) (sizeof (short))))
7811 fprintf (f, "%lu\n", i);
7813 exit (ferror (f) || fclose (f) != 0);
7819 rm -f conftest$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_sizeof_short=`cat conftest.val`
7832 echo "$as_me: program exited with status $ac_status" >&5
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7838 See \`config.log' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (short), 77
7840 See \`config.log' for more details." >&2;}
7841 { (exit 1); exit 1; }; }
7843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848 ac_cv_sizeof_short=0
7851 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7852 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7853 cat >>confdefs.h <<_ACEOF
7854 #define SIZEOF_SHORT $ac_cv_sizeof_short
7858 echo "$as_me:$LINENO: checking for int" >&5
7859 echo $ECHO_N "checking for int... $ECHO_C" >&6
7860 if test "${ac_cv_type_int+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7913 echo "${ECHO_T}$ac_cv_type_int" >&6
7915 echo "$as_me:$LINENO: checking size of int" >&5
7916 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7917 if test "${ac_cv_sizeof_int+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 if test "$ac_cv_type_int" = yes; then
7921 # The cast to unsigned long works around a bug in the HP C Compiler
7922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7924 # This bug is HP SR number 8606223364.
7925 if test "$cross_compiling" = yes; then
7926 # Depending upon the size, compute the lo and hi bounds.
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 $ac_includes_default
7937 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946 (eval $ac_compile) 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag"
7954 || test ! -s conftest.err'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 $ac_includes_default
7978 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_hi=$ac_mid; break
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 ac_lo=`expr $ac_mid + 1`
8013 if test $ac_lo -le $ac_mid; then
8017 ac_mid=`expr 2 '*' $ac_mid + 1`
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8035 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8042 rm -f conftest.$ac_objext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8044 (eval $ac_compile) 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8076 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest.$ac_objext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_lo=$ac_mid; break
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_hi=`expr '(' $ac_mid ')' - 1`
8111 if test $ac_mid -le $ac_hi; then
8115 ac_mid=`expr 2 '*' $ac_mid`
8117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 # Binary search between lo and hi bounds.
8129 while test "x$ac_lo" != "x$ac_hi"; do
8130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8141 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8148 rm -f conftest.$ac_objext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8150 (eval $ac_compile) 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest.$ac_objext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_lo=`expr '(' $ac_mid ')' + 1`
8177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8180 ?*) ac_cv_sizeof_int=$ac_lo;;
8181 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8182 See \`config.log' for more details." >&5
8183 echo "$as_me: error: cannot compute sizeof (int), 77
8184 See \`config.log' for more details." >&2;}
8185 { (exit 1); exit 1; }; } ;;
8188 if test "$cross_compiling" = yes; then
8189 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8190 See \`config.log' for more details." >&5
8191 echo "$as_me: error: cannot run test program while cross compiling
8192 See \`config.log' for more details." >&2;}
8193 { (exit 1); exit 1; }; }
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8202 long longval () { return (long) (sizeof (int)); }
8203 unsigned long ulongval () { return (long) (sizeof (int)); }
8210 FILE *f = fopen ("conftest.val", "w");
8213 if (((long) (sizeof (int))) < 0)
8215 long i = longval ();
8216 if (i != ((long) (sizeof (int))))
8218 fprintf (f, "%ld\n", i);
8222 unsigned long i = ulongval ();
8223 if (i != ((long) (sizeof (int))))
8225 fprintf (f, "%lu\n", i);
8227 exit (ferror (f) || fclose (f) != 0);
8233 rm -f conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_sizeof_int=`cat conftest.val`
8246 echo "$as_me: program exited with status $ac_status" >&5
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (int), 77
8254 See \`config.log' for more details." >&2;}
8255 { (exit 1); exit 1; }; }
8257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8266 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8267 cat >>confdefs.h <<_ACEOF
8268 #define SIZEOF_INT $ac_cv_sizeof_int
8272 echo "$as_me:$LINENO: checking for long" >&5
8273 echo $ECHO_N "checking for long... $ECHO_C" >&6
8274 if test "${ac_cv_type_long+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 cat >conftest.$ac_ext <<_ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8297 (eval $ac_compile) 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag"
8305 || test ! -s conftest.err'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8327 echo "${ECHO_T}$ac_cv_type_long" >&6
8329 echo "$as_me:$LINENO: checking size of long" >&5
8330 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8331 if test "${ac_cv_sizeof_long+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 if test "$ac_cv_type_long" = yes; then
8335 # The cast to unsigned long works around a bug in the HP C Compiler
8336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8338 # This bug is HP SR number 8606223364.
8339 if test "$cross_compiling" = yes; then
8340 # Depending upon the size, compute the lo and hi bounds.
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8351 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>conftest.er1
8362 grep -v '^ *+' conftest.er1 >conftest.err
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag"
8368 || test ! -s conftest.err'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; } &&
8374 { ac_try='test -s conftest.$ac_objext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8392 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401 (eval $ac_compile) 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag"
8409 || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_hi=$ac_mid; break
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_lo=`expr $ac_mid + 1`
8427 if test $ac_lo -le $ac_mid; then
8431 ac_mid=`expr 2 '*' $ac_mid + 1`
8433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8449 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8456 rm -f conftest.$ac_objext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458 (eval $ac_compile) 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -z "$ac_c_werror_flag"
8466 || test ! -s conftest.err'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8490 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499 (eval $ac_compile) 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest.$ac_objext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_lo=$ac_mid; break
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_hi=`expr '(' $ac_mid ')' - 1`
8525 if test $ac_mid -le $ac_hi; then
8529 ac_mid=`expr 2 '*' $ac_mid`
8531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 # Binary search between lo and hi bounds.
8543 while test "x$ac_lo" != "x$ac_hi"; do
8544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8545 cat >conftest.$ac_ext <<_ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8555 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8562 rm -f conftest.$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564 (eval $ac_compile) 2>conftest.er1
8566 grep -v '^ *+' conftest.er1 >conftest.err
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_lo=`expr '(' $ac_mid ')' + 1`
8591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594 ?*) ac_cv_sizeof_long=$ac_lo;;
8595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8596 See \`config.log' for more details." >&5
8597 echo "$as_me: error: cannot compute sizeof (long), 77
8598 See \`config.log' for more details." >&2;}
8599 { (exit 1); exit 1; }; } ;;
8602 if test "$cross_compiling" = yes; then
8603 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8604 See \`config.log' for more details." >&5
8605 echo "$as_me: error: cannot run test program while cross compiling
8606 See \`config.log' for more details." >&2;}
8607 { (exit 1); exit 1; }; }
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 long longval () { return (long) (sizeof (long)); }
8617 unsigned long ulongval () { return (long) (sizeof (long)); }
8624 FILE *f = fopen ("conftest.val", "w");
8627 if (((long) (sizeof (long))) < 0)
8629 long i = longval ();
8630 if (i != ((long) (sizeof (long))))
8632 fprintf (f, "%ld\n", i);
8636 unsigned long i = ulongval ();
8637 if (i != ((long) (sizeof (long))))
8639 fprintf (f, "%lu\n", i);
8641 exit (ferror (f) || fclose (f) != 0);
8647 rm -f conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_sizeof_long=`cat conftest.val`
8660 echo "$as_me: program exited with status $ac_status" >&5
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8666 See \`config.log' for more details." >&5
8667 echo "$as_me: error: cannot compute sizeof (long), 77
8668 See \`config.log' for more details." >&2;}
8669 { (exit 1); exit 1; }; }
8671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8681 cat >>confdefs.h <<_ACEOF
8682 #define SIZEOF_LONG $ac_cv_sizeof_long
8686 echo "$as_me:$LINENO: checking for void*" >&5
8687 echo $ECHO_N "checking for void*... $ECHO_C" >&6
8688 if test "${ac_cv_type_voidp+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711 (eval $ac_compile) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1 >conftest.err
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest.$ac_objext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_type_voidp=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
8741 echo "${ECHO_T}$ac_cv_type_voidp" >&6
8743 echo "$as_me:$LINENO: checking size of void*" >&5
8744 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
8745 if test "${ac_cv_sizeof_voidp+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 if test "$ac_cv_type_voidp" = yes; then
8749 # The cast to unsigned long works around a bug in the HP C Compiler
8750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8752 # This bug is HP SR number 8606223364.
8753 if test "$cross_compiling" = yes; then
8754 # Depending upon the size, compute the lo and hi bounds.
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 $ac_includes_default
8765 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774 (eval $ac_compile) 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag"
8782 || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest.$ac_objext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8806 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -z "$ac_c_werror_flag"
8823 || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest.$ac_objext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 ac_hi=$ac_mid; break
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_lo=`expr $ac_mid + 1`
8841 if test $ac_lo -le $ac_mid; then
8845 ac_mid=`expr 2 '*' $ac_mid + 1`
8847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8863 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag"
8880 || test ! -s conftest.err'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; } &&
8886 { ac_try='test -s conftest.$ac_objext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8904 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913 (eval $ac_compile) 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest.$ac_objext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_lo=$ac_mid; break
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_hi=`expr '(' $ac_mid ')' - 1`
8939 if test $ac_mid -le $ac_hi; then
8943 ac_mid=`expr 2 '*' $ac_mid`
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 # Binary search between lo and hi bounds.
8957 while test "x$ac_lo" != "x$ac_hi"; do
8958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 $ac_includes_default
8969 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978 (eval $ac_compile) 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_lo=`expr '(' $ac_mid ')' + 1`
9005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9008 ?*) ac_cv_sizeof_voidp=$ac_lo;;
9009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9010 See \`config.log' for more details." >&5
9011 echo "$as_me: error: cannot compute sizeof (void*), 77
9012 See \`config.log' for more details." >&2;}
9013 { (exit 1); exit 1; }; } ;;
9016 if test "$cross_compiling" = yes; then
9017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9018 See \`config.log' for more details." >&5
9019 echo "$as_me: error: cannot run test program while cross compiling
9020 See \`config.log' for more details." >&2;}
9021 { (exit 1); exit 1; }; }
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 long longval () { return (long) (sizeof (void*)); }
9031 unsigned long ulongval () { return (long) (sizeof (void*)); }
9038 FILE *f = fopen ("conftest.val", "w");
9041 if (((long) (sizeof (void*))) < 0)
9043 long i = longval ();
9044 if (i != ((long) (sizeof (void*))))
9046 fprintf (f, "%ld\n", i);
9050 unsigned long i = ulongval ();
9051 if (i != ((long) (sizeof (void*))))
9053 fprintf (f, "%lu\n", i);
9055 exit (ferror (f) || fclose (f) != 0);
9061 rm -f conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_sizeof_voidp=`cat conftest.val`
9074 echo "$as_me: program exited with status $ac_status" >&5
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9080 See \`config.log' for more details." >&5
9081 echo "$as_me: error: cannot compute sizeof (void*), 77
9082 See \`config.log' for more details." >&2;}
9083 { (exit 1); exit 1; }; }
9085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9090 ac_cv_sizeof_voidp=0
9093 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9094 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
9095 cat >>confdefs.h <<_ACEOF
9096 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9100 ac_cv_char_data_model=""
9101 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
9102 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
9103 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
9104 ac_cv_long_data_model=""
9105 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
9106 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
9107 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
9108 echo "$as_me:$LINENO: checking data model" >&5
9109 echo $ECHO_N "checking data model... $ECHO_C" >&6
9110 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
9111 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
9112 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
9113 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
9114 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
9115 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
9116 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
9117 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
9118 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
9119 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
9120 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
9121 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
9122 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
9123 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
9124 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
9125 222/*|333/*|444/*|666/*|888/*) :
9126 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
9127 *) ac_cv_data_model="none" ; n="very unusual model" ;;
9129 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
9130 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
9134 if test "_$ac_cv_header_stdint_x" != "_" ; then
9135 ac_cv_header_stdint="$ac_cv_header_stdint_x"
9136 elif test "_$ac_cv_header_stdint_o" != "_" ; then
9137 ac_cv_header_stdint="$ac_cv_header_stdint_o"
9138 elif test "_$ac_cv_header_stdint_u" != "_" ; then
9139 ac_cv_header_stdint="$ac_cv_header_stdint_u"
9141 ac_cv_header_stdint="stddef.h"
9144 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9145 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
9146 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9147 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
9148 unset ac_cv_type_int_least32_t
9149 unset ac_cv_type_int_fast32_t
9150 echo "$as_me:$LINENO: checking for int_least32_t" >&5
9151 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
9152 if test "${ac_cv_type_int_least32_t+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include <$ac_cv_header_stdint>
9166 if ((int_least32_t *) 0)
9168 if (sizeof (int_least32_t))
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176 (eval $ac_compile) 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -z "$ac_c_werror_flag"
9184 || test ! -s conftest.err'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; } &&
9190 { ac_try='test -s conftest.$ac_objext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_type_int_least32_t=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_cv_type_int_least32_t=no
9203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9205 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9206 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
9208 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9209 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
9210 if test "${ac_cv_type_int_fast32_t+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 #include<$ac_cv_header_stdint>
9224 if ((int_fast32_t *) 0)
9226 if (sizeof (int_fast32_t))
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234 (eval $ac_compile) 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_type_int_fast32_t=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 ac_cv_type_int_fast32_t=no
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9263 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9264 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
9266 echo "$as_me:$LINENO: checking for intmax_t" >&5
9267 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
9268 if test "${ac_cv_type_intmax_t+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 #include <$ac_cv_header_stdint>
9284 if (sizeof (intmax_t))
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292 (eval $ac_compile) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1 >conftest.err
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try='test -s conftest.$ac_objext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_type_intmax_t=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9317 ac_cv_type_intmax_t=no
9319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9322 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
9325 fi # shortcircut to system "stdint.h"
9326 # ------------------ PREPARE VARIABLES ------------------------------
9327 if test "$GCC" = "yes" ; then
9328 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
9330 ac_cv_stdint_message="using $CC"
9333 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9334 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
9336 # ----------------- DONE inttypes.h checks START header -------------
9337 ac_config_commands="$ac_config_commands $ac_stdint_h"
9343 # Extract the first word of "$ac_prog", so it can be a program name with args.
9344 set dummy $ac_prog; ac_word=$2
9345 echo "$as_me:$LINENO: checking for $ac_word" >&5
9346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347 if test "${ac_cv_path_AR+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_cv_path_AR="$AR" # Let the user override the test with a path.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $LOCSYSPATH
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
9363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 if test -n "$AR"; then
9375 echo "$as_me:$LINENO: result: $AR" >&5
9376 echo "${ECHO_T}$AR" >&6
9378 echo "$as_me:$LINENO: result: no" >&5
9379 echo "${ECHO_T}no" >&6
9382 test -n "$AR" && break
9386 for ac_prog in gawk mawk nawk awk
9388 # Extract the first word of "$ac_prog", so it can be a program name with args.
9389 set dummy $ac_prog; ac_word=$2
9390 echo "$as_me:$LINENO: checking for $ac_word" >&5
9391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392 if test "${ac_cv_prog_AWK+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 if test -n "$AWK"; then
9396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405 ac_cv_prog_AWK="$ac_prog"
9406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 if test -n "$AWK"; then
9416 echo "$as_me:$LINENO: result: $AWK" >&5
9417 echo "${ECHO_T}$AWK" >&6
9419 echo "$as_me:$LINENO: result: no" >&5
9420 echo "${ECHO_T}no" >&6
9423 test -n "$AWK" && break
9428 echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
9429 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
9430 if test "${amanda_cv_awk_var_assignment+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 echo 'BEGIN{print i; exit}' > conftest.awk
9435 result=`$AWK -f conftest.awk i=xx | wc -c`
9436 if test "$result" -le 1; then
9437 result=`$AWK -f conftest.awk -v i=xx | wc -c`
9438 if test "$result" -le 1; then
9439 amanda_cv_awk_var_assignment=no
9441 amanda_cv_awk_var_assignment="yes with -v"
9444 amanda_cv_awk_var_assignment="yes"
9450 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
9451 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
9452 AWK_VAR_ASSIGNMENT_OPT=
9453 case "$amanda_cv_awk_var_assignment" in
9455 HAVE_AWK_WITH_VAR=no
9458 HAVE_AWK_WITH_VAR=yes
9461 HAVE_AWK_WITH_VAR=yes
9462 AWK_VAR_ASSIGNMENT_OPT=-v
9468 if test "x$amanda_cv_awk_var_assignment" = xno; then
9470 { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&5
9471 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment. Amplot will not be installed." >&2;}
9474 for ac_prog in 'bison -y' byacc
9476 # Extract the first word of "$ac_prog", so it can be a program name with args.
9477 set dummy $ac_prog; ac_word=$2
9478 echo "$as_me:$LINENO: checking for $ac_word" >&5
9479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9480 if test "${ac_cv_prog_YACC+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 if test -n "$YACC"; then
9484 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 test -z "$as_dir" && as_dir=.
9491 for ac_exec_ext in '' $ac_executable_extensions; do
9492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9493 ac_cv_prog_YACC="$ac_prog"
9494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 YACC=$ac_cv_prog_YACC
9503 if test -n "$YACC"; then
9504 echo "$as_me:$LINENO: result: $YACC" >&5
9505 echo "${ECHO_T}$YACC" >&6
9507 echo "$as_me:$LINENO: result: no" >&5
9508 echo "${ECHO_T}no" >&6
9511 test -n "$YACC" && break
9513 test -n "$YACC" || YACC="yacc"
9517 # Extract the first word of "$ac_prog", so it can be a program name with args.
9518 set dummy $ac_prog; ac_word=$2
9519 echo "$as_me:$LINENO: checking for $ac_word" >&5
9520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9521 if test "${ac_cv_path_CAT+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $LOCSYSPATH
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
9537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 if test -n "$CAT"; then
9549 echo "$as_me:$LINENO: result: $CAT" >&5
9550 echo "${ECHO_T}$CAT" >&6
9552 echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9556 test -n "$CAT" && break
9559 if test -z "$CAT"; then
9562 for ac_prog in compress
9564 # Extract the first word of "$ac_prog", so it can be a program name with args.
9565 set dummy $ac_prog; ac_word=$2
9566 echo "$as_me:$LINENO: checking for $ac_word" >&5
9567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9568 if test "${ac_cv_path_COMPRESS+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $LOCSYSPATH
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
9584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 COMPRESS=$ac_cv_path_COMPRESS
9595 if test -n "$COMPRESS"; then
9596 echo "$as_me:$LINENO: result: $COMPRESS" >&5
9597 echo "${ECHO_T}$COMPRESS" >&6
9599 echo "$as_me:$LINENO: result: no" >&5
9600 echo "${ECHO_T}no" >&6
9603 test -n "$COMPRESS" && break
9608 # Extract the first word of "$ac_prog", so it can be a program name with args.
9609 set dummy $ac_prog; ac_word=$2
9610 echo "$as_me:$LINENO: checking for $ac_word" >&5
9611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9612 if test "${ac_cv_path_DD+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 ac_cv_path_DD="$DD" # Let the user override the test with a path.
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $LOCSYSPATH
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
9628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 if test -n "$DD"; then
9640 echo "$as_me:$LINENO: result: $DD" >&5
9641 echo "${ECHO_T}$DD" >&6
9643 echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9647 test -n "$DD" && break
9650 for ac_prog in getconf
9652 # Extract the first word of "$ac_prog", so it can be a program name with args.
9653 set dummy $ac_prog; ac_word=$2
9654 echo "$as_me:$LINENO: checking for $ac_word" >&5
9655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9656 if test "${ac_cv_path_GETCONF+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9661 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $SYSPATH
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
9672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 GETCONF=$ac_cv_path_GETCONF
9683 if test -n "$GETCONF"; then
9684 echo "$as_me:$LINENO: result: $GETCONF" >&5
9685 echo "${ECHO_T}$GETCONF" >&6
9687 echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6
9691 test -n "$GETCONF" && break
9695 for ac_prog in gnuplot
9697 # Extract the first word of "$ac_prog", so it can be a program name with args.
9698 set dummy $ac_prog; ac_word=$2
9699 echo "$as_me:$LINENO: checking for $ac_word" >&5
9700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9701 if test "${ac_cv_path_GNUPLOT+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $LOCSYSPATH
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
9717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9726 GNUPLOT=$ac_cv_path_GNUPLOT
9728 if test -n "$GNUPLOT"; then
9729 echo "$as_me:$LINENO: result: $GNUPLOT" >&5
9730 echo "${ECHO_T}$GNUPLOT" >&6
9732 echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6
9736 test -n "$GNUPLOT" && break
9739 if test -z "$GNUPLOT"; then
9741 { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&5
9742 echo "$as_me: WARNING: *** You do not have gnuplot. Amplot will not be installed." >&2;}
9745 for ac_prog in gtar gnutar tar
9747 # Extract the first word of "$ac_prog", so it can be a program name with args.
9748 set dummy $ac_prog; ac_word=$2
9749 echo "$as_me:$LINENO: checking for $ac_word" >&5
9750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9751 if test "${ac_cv_path_GNUTAR+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $LOCSYSPATH
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
9767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 GNUTAR=$ac_cv_path_GNUTAR
9778 if test -n "$GNUTAR"; then
9779 echo "$as_me:$LINENO: result: $GNUTAR" >&5
9780 echo "${ECHO_T}$GNUTAR" >&6
9782 echo "$as_me:$LINENO: result: no" >&5
9783 echo "${ECHO_T}no" >&6
9786 test -n "$GNUTAR" && break
9789 if test ! -z "$GNUTAR"; then
9790 case "`\"$GNUTAR\" --version 2>&1`" in
9791 *GNU*tar* | *Free*paxutils* )
9793 cat >>confdefs.h <<_ACEOF
9794 #define GNUTAR "$GNUTAR"
9799 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9800 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9806 for ac_prog in smbclient
9808 # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 echo "$as_me:$LINENO: checking for $ac_word" >&5
9811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9812 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 case $SAMBA_CLIENT in
9817 ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $LOCSYSPATH
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827 ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9839 if test -n "$SAMBA_CLIENT"; then
9840 echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9841 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9843 echo "$as_me:$LINENO: result: no" >&5
9844 echo "${ECHO_T}no" >&6
9847 test -n "$SAMBA_CLIENT" && break
9850 if test ! -z "$SAMBA_CLIENT"; then
9851 case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9855 *"Connection to not.a.host.name failed"*)
9859 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9860 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9864 if test -n "$SAMBA_CLIENT"; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9871 cat >>confdefs.h <<_ACEOF
9872 #define SAMBA_VERSION $smbversion
9880 # Extract the first word of "$ac_prog", so it can be a program name with args.
9881 set dummy $ac_prog; ac_word=$2
9882 echo "$as_me:$LINENO: checking for $ac_word" >&5
9883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9884 if test "${ac_cv_path_GZIP+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $LOCSYSPATH
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9899 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 GZIP=$ac_cv_path_GZIP
9911 if test -n "$GZIP"; then
9912 echo "$as_me:$LINENO: result: $GZIP" >&5
9913 echo "${ECHO_T}$GZIP" >&6
9915 echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9919 test -n "$GZIP" && break
9922 if test "$GZIP"; then
9924 cat >>confdefs.h <<\_ACEOF
9928 COMPRESS_PATH="$GZIP"
9929 COMPRESS_SUFFIX=".gz"
9930 COMPRESS_FAST_OPT="--fast"
9931 COMPRESS_BEST_OPT="--best"
9932 UNCOMPRESS_PATH="$GZIP"
9933 UNCOMPRESS_OPT="-dc"
9935 if test "$COMPRESS"; then
9936 COMPRESS_PATH="$COMPRESS"
9937 COMPRESS_SUFFIX=".Z"
9938 COMPRESS_FAST_OPT="-f"
9939 COMPRESS_BEST_OPT="-f"
9940 UNCOMPRESS_PATH="$COMPRESS"
9941 UNCOMPRESS_OPT="-dc"
9943 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&5
9944 echo "$as_me: WARNING: *** Cannot find either gzip or compress. Using cat. ***" >&2;}
9945 COMPRESS_PATH="$CAT"
9947 COMPRESS_FAST_OPT=""
9948 COMPRESS_BEST_OPT=""
9949 UNCOMPRESS_PATH="$CAT"
9954 cat >>confdefs.h <<_ACEOF
9955 #define COMPRESS_PATH "$COMPRESS_PATH"
9959 cat >>confdefs.h <<_ACEOF
9960 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9964 cat >>confdefs.h <<_ACEOF
9965 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9969 cat >>confdefs.h <<_ACEOF
9970 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9974 cat >>confdefs.h <<_ACEOF
9975 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9979 cat >>confdefs.h <<_ACEOF
9980 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9986 # Extract the first word of "$ac_prog", so it can be a program name with args.
9987 set dummy $ac_prog; ac_word=$2
9988 echo "$as_me:$LINENO: checking for $ac_word" >&5
9989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9990 if test "${ac_cv_path_SORT+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $LOCSYSPATH
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 SORT=$ac_cv_path_SORT
10017 if test -n "$SORT"; then
10018 echo "$as_me:$LINENO: result: $SORT" >&5
10019 echo "${ECHO_T}$SORT" >&6
10021 echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10025 test -n "$SORT" && break
10028 if test -z "$SORT"; then
10029 if $NO_SERVER_MODE; then
10032 { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
10033 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
10034 { (exit 1); exit 1; }; }
10038 cat >>confdefs.h <<_ACEOF
10039 #define SORT_PATH "$SORT"
10043 for ac_prog in Mail mailx mail
10045 # Extract the first word of "$ac_prog", so it can be a program name with args.
10046 set dummy $ac_prog; ac_word=$2
10047 echo "$as_me:$LINENO: checking for $ac_word" >&5
10048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10049 if test "${ac_cv_path_MAILER+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064 ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
10065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 MAILER=$ac_cv_path_MAILER
10076 if test -n "$MAILER"; then
10077 echo "$as_me:$LINENO: result: $MAILER" >&5
10078 echo "${ECHO_T}$MAILER" >&6
10080 echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6
10084 test -n "$MAILER" && break
10087 if test -z "$MAILER"; then
10088 if $NO_SERVER_MODE; then
10090 { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
10091 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
10093 { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
10094 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
10095 { (exit 1); exit 1; }; }
10099 cat >>confdefs.h <<_ACEOF
10100 #define MAILER "$MAILER"
10106 # Extract the first word of "$ac_prog", so it can be a program name with args.
10107 set dummy $ac_prog; ac_word=$2
10108 echo "$as_me:$LINENO: checking for $ac_word" >&5
10109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10110 if test "${ac_cv_path_MT+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 ac_cv_path_MT="$MT" # Let the user override the test with a path.
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $LOCSYSPATH
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
10126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 if test -n "$MT"; then
10138 echo "$as_me:$LINENO: result: $MT" >&5
10139 echo "${ECHO_T}$MT" >&6
10141 echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10145 test -n "$MT" && break
10147 test -n "$MT" || MT="mt"
10150 for ac_prog in chio
10152 # Extract the first word of "$ac_prog", so it can be a program name with args.
10153 set dummy $ac_prog; ac_word=$2
10154 echo "$as_me:$LINENO: checking for $ac_word" >&5
10155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10156 if test "${ac_cv_path_CHIO+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $LOCSYSPATH
10168 test -z "$as_dir" && as_dir=.
10169 for ac_exec_ext in '' $ac_executable_extensions; do
10170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171 ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
10172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 CHIO=$ac_cv_path_CHIO
10183 if test -n "$CHIO"; then
10184 echo "$as_me:$LINENO: result: $CHIO" >&5
10185 echo "${ECHO_T}$CHIO" >&6
10187 echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10191 test -n "$CHIO" && break
10193 test -n "$CHIO" || CHIO="chio"
10198 # Extract the first word of "$ac_prog", so it can be a program name with args.
10199 set dummy $ac_prog; ac_word=$2
10200 echo "$as_me:$LINENO: checking for $ac_word" >&5
10201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10202 if test "${ac_cv_path_CHS+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $LOCSYSPATH
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217 ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
10218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 CHS=$ac_cv_path_CHS
10229 if test -n "$CHS"; then
10230 echo "$as_me:$LINENO: result: $CHS" >&5
10231 echo "${ECHO_T}$CHS" >&6
10233 echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10237 test -n "$CHS" && break
10239 test -n "$CHS" || CHS="chs"
10244 # Extract the first word of "$ac_prog", so it can be a program name with args.
10245 set dummy $ac_prog; ac_word=$2
10246 echo "$as_me:$LINENO: checking for $ac_word" >&5
10247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10248 if test "${ac_cv_path_MTX+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $LOCSYSPATH
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
10264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 MTX=$ac_cv_path_MTX
10275 if test -n "$MTX"; then
10276 echo "$as_me:$LINENO: result: $MTX" >&5
10277 echo "${ECHO_T}$MTX" >&6
10279 echo "$as_me:$LINENO: result: no" >&5
10280 echo "${ECHO_T}no" >&6
10283 test -n "$MTX" && break
10285 test -n "$MTX" || MTX="mtx"
10288 for ac_prog in mcutil
10290 # Extract the first word of "$ac_prog", so it can be a program name with args.
10291 set dummy $ac_prog; ac_word=$2
10292 echo "$as_me:$LINENO: checking for $ac_word" >&5
10293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10294 if test "${ac_cv_path_MCUTIL+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $LOCSYSPATH
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309 ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
10310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10319 MCUTIL=$ac_cv_path_MCUTIL
10321 if test -n "$MCUTIL"; then
10322 echo "$as_me:$LINENO: result: $MCUTIL" >&5
10323 echo "${ECHO_T}$MCUTIL" >&6
10325 echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10329 test -n "$MCUTIL" && break
10331 test -n "$MCUTIL" || MCUTIL="mcutil"
10334 for ac_prog in lpr lp
10336 # Extract the first word of "$ac_prog", so it can be a program name with args.
10337 set dummy $ac_prog; ac_word=$2
10338 echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10340 if test "${ac_cv_path_PRINT+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
10356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 PRINT=$ac_cv_path_PRINT
10367 if test -n "$PRINT"; then
10368 echo "$as_me:$LINENO: result: $PRINT" >&5
10369 echo "${ECHO_T}$PRINT" >&6
10371 echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6
10375 test -n "$PRINT" && break
10378 if test ! -z "$PRINT"; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define LPRCMD "$PRINT"
10384 echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
10385 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
10386 if test "${amanda_cv_printer_flag+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 amanda_cv_printer_flag=$PRINTER_FLAG
10392 lpr|*/lpr) amanda_cv_printer_flag="-P";;
10393 lp|*/lp) amanda_cv_printer_flag="-d";;
10397 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
10398 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
10399 if test ! -z "$amanda_cv_printer_flag"; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define LPRFLAG "$amanda_cv_printer_flag"
10406 { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
10407 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
10411 for ac_prog in pcat
10413 # Extract the first word of "$ac_prog", so it can be a program name with args.
10414 set dummy $ac_prog; ac_word=$2
10415 echo "$as_me:$LINENO: checking for $ac_word" >&5
10416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10417 if test "${ac_cv_path_PCAT+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $LOCSYSPATH
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432 ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
10433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 PCAT=$ac_cv_path_PCAT
10444 if test -n "$PCAT"; then
10445 echo "$as_me:$LINENO: result: $PCAT" >&5
10446 echo "${ECHO_T}$PCAT" >&6
10448 echo "$as_me:$LINENO: result: no" >&5
10449 echo "${ECHO_T}no" >&6
10452 test -n "$PCAT" && break
10455 for ac_prog in perl5 perl
10457 # Extract the first word of "$ac_prog", so it can be a program name with args.
10458 set dummy $ac_prog; ac_word=$2
10459 echo "$as_me:$LINENO: checking for $ac_word" >&5
10460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461 if test "${ac_cv_path_PERL+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $LOCSYSPATH
10473 test -z "$as_dir" && as_dir=.
10474 for ac_exec_ext in '' $ac_executable_extensions; do
10475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10486 PERL=$ac_cv_path_PERL
10488 if test -n "$PERL"; then
10489 echo "$as_me:$LINENO: result: $PERL" >&5
10490 echo "${ECHO_T}$PERL" >&6
10492 echo "$as_me:$LINENO: result: no" >&5
10493 echo "${ECHO_T}no" >&6
10496 test -n "$PERL" && break
10501 for ac_prog in $DUMP_PROGRAMS
10503 # Extract the first word of "$ac_prog", so it can be a program name with args.
10504 set dummy $ac_prog; ac_word=$2
10505 echo "$as_me:$LINENO: checking for $ac_word" >&5
10506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507 if test "${ac_cv_path_DUMP+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $SYSLOCPATH
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
10523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 DUMP=$ac_cv_path_DUMP
10534 if test -n "$DUMP"; then
10535 echo "$as_me:$LINENO: result: $DUMP" >&5
10536 echo "${ECHO_T}$DUMP" >&6
10538 echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10542 test -n "$DUMP" && break
10545 for ac_prog in ufsrestore restore
10547 # Extract the first word of "$ac_prog", so it can be a program name with args.
10548 set dummy $ac_prog; ac_word=$2
10549 echo "$as_me:$LINENO: checking for $ac_word" >&5
10550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10551 if test "${ac_cv_path_RESTORE+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $SYSLOCPATH
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566 ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
10567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 RESTORE=$ac_cv_path_RESTORE
10578 if test -n "$RESTORE"; then
10579 echo "$as_me:$LINENO: result: $RESTORE" >&5
10580 echo "${ECHO_T}$RESTORE" >&6
10582 echo "$as_me:$LINENO: result: no" >&5
10583 echo "${ECHO_T}no" >&6
10586 test -n "$RESTORE" && break
10589 if test "$DUMP" -a "$RESTORE"; then
10591 cat >>confdefs.h <<_ACEOF
10592 #define DUMP "$DUMP"
10596 cat >>confdefs.h <<_ACEOF
10597 #define RESTORE "$RESTORE"
10600 if test -x $DUMP; then
10601 echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
10602 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
10603 if test "${amanda_cv_dump_estimate+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
10612 | $GREP -v Label >conftest.d-E 2>&1'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }
10618 cat conftest.d-E >&5
10619 { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
10622 | $GREP -v Label >conftest.d-S 2>&1'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }
10628 cat conftest.d-S >&5
10629 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10632 | $GREP -v Label >conftest.d 2>&1'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }
10639 if { ac_try='cmp conftest.d-E conftest.d 1>&2'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 amanda_cv_dump_estimate=E
10646 elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 amanda_cv_dump_estimate=S
10654 amanda_cv_dump_estimate=no
10656 rm -f conftest.d conftest.d-E conftest.d-S
10658 *) amanda_cv_dump_estimate=no
10663 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
10664 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
10666 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
10667 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
10668 amanda_cv_dump_estimate=no
10670 if test "x$amanda_cv_dump_estimate" != xno; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
10679 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
10680 if test "${with_dump_honor_nodump+set}" = set; then
10681 withval="$with_dump_honor_nodump"
10682 if test -x $DUMP; then
10683 echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
10684 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
10685 if test "${amanda_cv_honor_nodump+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
10694 | $GREP -v Label >conftest.d-h 2>&1'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }
10700 cat conftest.d-h >&5
10701 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10704 | $GREP -v Label >conftest.d 2>&1'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }
10711 if { ac_try='diff conftest.d-h conftest.d 1>&2'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 amanda_cv_honor_nodump=yes
10719 amanda_cv_honor_nodump=no
10721 rm -f conftest.d conftest.d-h
10723 *) amanda_cv_honor_nodump=no
10728 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
10729 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
10731 { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
10732 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
10733 amanda_cv_honor_nodump=no
10735 if test "x$amanda_cv_honor_nodump" = xyes; then
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_HONOR_NODUMP 1
10746 for ac_prog in xfsdump
10748 # Extract the first word of "$ac_prog", so it can be a program name with args.
10749 set dummy $ac_prog; ac_word=$2
10750 echo "$as_me:$LINENO: checking for $ac_word" >&5
10751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752 if test "${ac_cv_path_XFSDUMP+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $SYSLOCPATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 XFSDUMP=$ac_cv_path_XFSDUMP
10779 if test -n "$XFSDUMP"; then
10780 echo "$as_me:$LINENO: result: $XFSDUMP" >&5
10781 echo "${ECHO_T}$XFSDUMP" >&6
10783 echo "$as_me:$LINENO: result: no" >&5
10784 echo "${ECHO_T}no" >&6
10787 test -n "$XFSDUMP" && break
10790 for ac_prog in xfsrestore
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 case $XFSRESTORE in
10801 ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $SYSLOCPATH
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10821 XFSRESTORE=$ac_cv_path_XFSRESTORE
10823 if test -n "$XFSRESTORE"; then
10824 echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
10825 echo "${ECHO_T}$XFSRESTORE" >&6
10827 echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6
10831 test -n "$XFSRESTORE" && break
10834 if test "$XFSDUMP" -a "$XFSRESTORE"; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define XFSDUMP "$XFSDUMP"
10841 cat >>confdefs.h <<_ACEOF
10842 #define XFSRESTORE "$XFSRESTORE"
10845 { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10846 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10847 { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10848 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10851 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10852 for ac_prog in vxdump
10854 # Extract the first word of "$ac_prog", so it can be a program name with args.
10855 set dummy $ac_prog; ac_word=$2
10856 echo "$as_me:$LINENO: checking for $ac_word" >&5
10857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10858 if test "${ac_cv_path_VXDUMP+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $VXSYSLOCPATH
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873 ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 VXDUMP=$ac_cv_path_VXDUMP
10885 if test -n "$VXDUMP"; then
10886 echo "$as_me:$LINENO: result: $VXDUMP" >&5
10887 echo "${ECHO_T}$VXDUMP" >&6
10889 echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10893 test -n "$VXDUMP" && break
10896 for ac_prog in vxrestore
10898 # Extract the first word of "$ac_prog", so it can be a program name with args.
10899 set dummy $ac_prog; ac_word=$2
10900 echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10902 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $VXSYSLOCPATH
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 VXRESTORE=$ac_cv_path_VXRESTORE
10929 if test -n "$VXRESTORE"; then
10930 echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10931 echo "${ECHO_T}$VXRESTORE" >&6
10933 echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6
10937 test -n "$VXRESTORE" && break
10940 if test "$VXDUMP" -a "$VXRESTORE"; then
10942 cat >>confdefs.h <<_ACEOF
10943 #define VXDUMP "$VXDUMP"
10947 cat >>confdefs.h <<_ACEOF
10948 #define VXRESTORE "$VXRESTORE"
10953 for ac_prog in vdump
10955 # Extract the first word of "$ac_prog", so it can be a program name with args.
10956 set dummy $ac_prog; ac_word=$2
10957 echo "$as_me:$LINENO: checking for $ac_word" >&5
10958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10959 if test "${ac_cv_path_VDUMP+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $SYSLOCPATH
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 VDUMP=$ac_cv_path_VDUMP
10986 if test -n "$VDUMP"; then
10987 echo "$as_me:$LINENO: result: $VDUMP" >&5
10988 echo "${ECHO_T}$VDUMP" >&6
10990 echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10994 test -n "$VDUMP" && break
10997 for ac_prog in vrestore
10999 # Extract the first word of "$ac_prog", so it can be a program name with args.
11000 set dummy $ac_prog; ac_word=$2
11001 echo "$as_me:$LINENO: checking for $ac_word" >&5
11002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11003 if test "${ac_cv_path_VRESTORE+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $SYSLOCPATH
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018 ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
11019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 VRESTORE=$ac_cv_path_VRESTORE
11030 if test -n "$VRESTORE"; then
11031 echo "$as_me:$LINENO: result: $VRESTORE" >&5
11032 echo "${ECHO_T}$VRESTORE" >&6
11034 echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11038 test -n "$VRESTORE" && break
11041 if test "$VDUMP" -a "$VRESTORE"; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define VDUMP "$VDUMP"
11048 cat >>confdefs.h <<_ACEOF
11049 #define VRESTORE "$VRESTORE"
11054 if test "$PCAT"; then
11055 AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
11059 if test "$COMPRESS"; then
11060 AMPLOT_COMPRESS=$COMPRESS
11061 AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
11063 AMPLOT_CAT_COMPRESS=
11065 if test "$GZIP"; then
11066 AMPLOT_COMPRESS=$GZIP
11067 AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
11076 # Determine the printf format characters to use when printing
11077 # values of type long long. This will normally be "ll", but where
11078 # the compiler treats "long long" as a alias for "long" and printf
11079 # doesn't know about "long long" use "l". Hopefully the sprintf
11080 # will produce a inconsistant result in the later case. If the compiler
11081 # fails due to seeing "%lld" we fall back to "l".
11083 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
11084 # configure on Win32.
11086 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
11087 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
11088 if test "$cross_compiling" = yes; then
11089 echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
11090 echo "${ECHO_T}assuming target platform uses ll" >&6
11091 LL_FMT="%lld"; LL_RFMT="lld"
11093 cat >conftest.$ac_ext <<_ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11102 long long int j = 0;
11105 sprintf(buf, "%lld", j);
11106 exit((sizeof(long long int) != sizeof(long int))? 0 :
11107 (strcmp(buf, "0") != 0));
11111 rm -f conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113 (eval $ac_link) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 echo "$as_me:$LINENO: result: ll" >&5
11123 echo "${ECHO_T}ll" >&6
11124 LL_FMT="%lld"; LL_RFMT="lld"
11126 echo "$as_me: program exited with status $ac_status" >&5
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ( exit $ac_status )
11131 echo "$as_me:$LINENO: result: l" >&5
11132 echo "${ECHO_T}l" >&6
11133 LL_FMT="%ld"; LL_RFMT="ld"
11135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11138 cat >>confdefs.h <<_ACEOF
11139 #define LL_FMT "$LL_FMT"
11143 cat >>confdefs.h <<_ACEOF
11144 #define LL_RFMT "$LL_RFMT"
11153 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
11154 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
11155 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 amanda_cv_LFS_CFLAGS=
11160 if test "$GETCONF"; then
11161 if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
11162 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
11169 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
11170 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
11171 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
11172 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
11173 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 amanda_cv_LFS_LDFLAGS=
11178 if test "$GETCONF"; then
11179 if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
11180 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
11187 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
11188 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
11189 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
11190 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
11191 if test "${amanda_cv_LFS_LIBS+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 amanda_cv_LFS_LIBS=
11196 if test "$GETCONF"; then
11197 if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
11198 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
11205 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
11206 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
11207 if test "x$need_resetofs" = xyes; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define NEED_RESETOFS 1
11216 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
11217 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
11218 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
11219 LIBS="$amanda_cv_LFS_LIBS $LIBS"
11221 echo "$as_me:$LINENO: checking for int" >&5
11222 echo $ECHO_N "checking for int... $ECHO_C" >&6
11223 if test "${ac_cv_type_int+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 $ac_includes_default
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246 (eval $ac_compile) 2>conftest.er1
11248 grep -v '^ *+' conftest.er1 >conftest.err
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } &&
11253 { ac_try='test -z "$ac_c_werror_flag"
11254 || test ! -s conftest.err'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; } &&
11260 { ac_try='test -s conftest.$ac_objext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11276 echo "${ECHO_T}$ac_cv_type_int" >&6
11278 echo "$as_me:$LINENO: checking size of int" >&5
11279 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11280 if test "${ac_cv_sizeof_int+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 if test "$ac_cv_type_int" = yes; then
11284 # The cast to unsigned long works around a bug in the HP C Compiler
11285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11287 # This bug is HP SR number 8606223364.
11288 if test "$cross_compiling" = yes; then
11289 # Depending upon the size, compute the lo and hi bounds.
11290 cat >conftest.$ac_ext <<_ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 $ac_includes_default
11300 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11307 rm -f conftest.$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309 (eval $ac_compile) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1 >conftest.err
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11341 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350 (eval $ac_compile) 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -z "$ac_c_werror_flag"
11358 || test ! -s conftest.err'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest.$ac_objext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_hi=$ac_mid; break
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_lo=`expr $ac_mid + 1`
11376 if test $ac_lo -le $ac_mid; then
11380 ac_mid=`expr 2 '*' $ac_mid + 1`
11382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 cat >conftest.$ac_ext <<_ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 $ac_includes_default
11398 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11429 cat >conftest.$ac_ext <<_ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 $ac_includes_default
11439 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11446 rm -f conftest.$ac_objext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11448 (eval $ac_compile) 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
11455 { ac_try='test -z "$ac_c_werror_flag"
11456 || test ! -s conftest.err'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; } &&
11462 { ac_try='test -s conftest.$ac_objext'
11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 ac_lo=$ac_mid; break
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_hi=`expr '(' $ac_mid ')' - 1`
11474 if test $ac_mid -le $ac_hi; then
11478 ac_mid=`expr 2 '*' $ac_mid`
11480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11491 # Binary search between lo and hi bounds.
11492 while test "x$ac_lo" != "x$ac_hi"; do
11493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 $ac_includes_default
11504 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_lo=`expr '(' $ac_mid ')' + 1`
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543 ?*) ac_cv_sizeof_int=$ac_lo;;
11544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11545 See \`config.log' for more details." >&5
11546 echo "$as_me: error: cannot compute sizeof (int), 77
11547 See \`config.log' for more details." >&2;}
11548 { (exit 1); exit 1; }; } ;;
11551 if test "$cross_compiling" = yes; then
11552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11553 See \`config.log' for more details." >&5
11554 echo "$as_me: error: cannot run test program while cross compiling
11555 See \`config.log' for more details." >&2;}
11556 { (exit 1); exit 1; }; }
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 $ac_includes_default
11565 long longval () { return (long) (sizeof (int)); }
11566 unsigned long ulongval () { return (long) (sizeof (int)); }
11568 #include <stdlib.h>
11573 FILE *f = fopen ("conftest.val", "w");
11576 if (((long) (sizeof (int))) < 0)
11578 long i = longval ();
11579 if (i != ((long) (sizeof (int))))
11581 fprintf (f, "%ld\n", i);
11585 unsigned long i = ulongval ();
11586 if (i != ((long) (sizeof (int))))
11588 fprintf (f, "%lu\n", i);
11590 exit (ferror (f) || fclose (f) != 0);
11596 rm -f conftest$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_cv_sizeof_int=`cat conftest.val`
11609 echo "$as_me: program exited with status $ac_status" >&5
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ( exit $ac_status )
11614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11615 See \`config.log' for more details." >&5
11616 echo "$as_me: error: cannot compute sizeof (int), 77
11617 See \`config.log' for more details." >&2;}
11618 { (exit 1); exit 1; }; }
11620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11629 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11630 cat >>confdefs.h <<_ACEOF
11631 #define SIZEOF_INT $ac_cv_sizeof_int
11635 echo "$as_me:$LINENO: checking for long" >&5
11636 echo $ECHO_N "checking for long... $ECHO_C" >&6
11637 if test "${ac_cv_type_long+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 $ac_includes_default
11658 rm -f conftest.$ac_objext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11660 (eval $ac_compile) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest.$ac_objext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_type_long=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11690 echo "${ECHO_T}$ac_cv_type_long" >&6
11692 echo "$as_me:$LINENO: checking size of long" >&5
11693 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11694 if test "${ac_cv_sizeof_long+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 if test "$ac_cv_type_long" = yes; then
11698 # The cast to unsigned long works around a bug in the HP C Compiler
11699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11701 # This bug is HP SR number 8606223364.
11702 if test "$cross_compiling" = yes; then
11703 # Depending upon the size, compute the lo and hi bounds.
11704 cat >conftest.$ac_ext <<_ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11714 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11762 rm -f conftest.$ac_objext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11764 (eval $ac_compile) 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_hi=$ac_mid; break
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_lo=`expr $ac_mid + 1`
11790 if test $ac_lo -le $ac_mid; then
11794 ac_mid=`expr 2 '*' $ac_mid + 1`
11796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag"
11829 || test ! -s conftest.err'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11853 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_lo=$ac_mid; break
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11887 ac_hi=`expr '(' $ac_mid ')' - 1`
11888 if test $ac_mid -le $ac_hi; then
11892 ac_mid=`expr 2 '*' $ac_mid`
11894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 # Binary search between lo and hi bounds.
11906 while test "x$ac_lo" != "x$ac_hi"; do
11907 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 $ac_includes_default
11918 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 ac_lo=`expr '(' $ac_mid ')' + 1`
11954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 ?*) ac_cv_sizeof_long=$ac_lo;;
11958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11959 See \`config.log' for more details." >&5
11960 echo "$as_me: error: cannot compute sizeof (long), 77
11961 See \`config.log' for more details." >&2;}
11962 { (exit 1); exit 1; }; } ;;
11965 if test "$cross_compiling" = yes; then
11966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11967 See \`config.log' for more details." >&5
11968 echo "$as_me: error: cannot run test program while cross compiling
11969 See \`config.log' for more details." >&2;}
11970 { (exit 1); exit 1; }; }
11972 cat >conftest.$ac_ext <<_ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 $ac_includes_default
11979 long longval () { return (long) (sizeof (long)); }
11980 unsigned long ulongval () { return (long) (sizeof (long)); }
11982 #include <stdlib.h>
11987 FILE *f = fopen ("conftest.val", "w");
11990 if (((long) (sizeof (long))) < 0)
11992 long i = longval ();
11993 if (i != ((long) (sizeof (long))))
11995 fprintf (f, "%ld\n", i);
11999 unsigned long i = ulongval ();
12000 if (i != ((long) (sizeof (long))))
12002 fprintf (f, "%lu\n", i);
12004 exit (ferror (f) || fclose (f) != 0);
12010 rm -f conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012 (eval $ac_link) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 ac_cv_sizeof_long=`cat conftest.val`
12023 echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ( exit $ac_status )
12028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12029 See \`config.log' for more details." >&5
12030 echo "$as_me: error: cannot compute sizeof (long), 77
12031 See \`config.log' for more details." >&2;}
12032 { (exit 1); exit 1; }; }
12034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12039 ac_cv_sizeof_long=0
12042 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12043 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12044 cat >>confdefs.h <<_ACEOF
12045 #define SIZEOF_LONG $ac_cv_sizeof_long
12049 echo "$as_me:$LINENO: checking for long long" >&5
12050 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12051 if test "${ac_cv_type_long_long+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 $ac_includes_default
12064 if ((long long *) 0)
12066 if (sizeof (long long))
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_cv_type_long_long=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_cv_type_long_long=no
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12104 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12106 echo "$as_me:$LINENO: checking size of long long" >&5
12107 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12108 if test "${ac_cv_sizeof_long_long+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 if test "$ac_cv_type_long_long" = yes; then
12112 # The cast to unsigned long works around a bug in the HP C Compiler
12113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12115 # This bug is HP SR number 8606223364.
12116 if test "$cross_compiling" = yes; then
12117 # Depending upon the size, compute the lo and hi bounds.
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12128 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>conftest.er1
12139 grep -v '^ *+' conftest.er1 >conftest.err
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -z "$ac_c_werror_flag"
12145 || test ! -s conftest.err'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; } &&
12151 { ac_try='test -s conftest.$ac_objext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12169 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest.$ac_objext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_hi=$ac_mid; break
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 ac_lo=`expr $ac_mid + 1`
12204 if test $ac_lo -le $ac_mid; then
12208 ac_mid=`expr 2 '*' $ac_mid + 1`
12210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 $ac_includes_default
12226 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 $ac_includes_default
12267 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_lo=$ac_mid; break
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_hi=`expr '(' $ac_mid ')' - 1`
12302 if test $ac_mid -le $ac_hi; then
12306 ac_mid=`expr 2 '*' $ac_mid`
12308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 # Binary search between lo and hi bounds.
12320 while test "x$ac_lo" != "x$ac_hi"; do
12321 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 $ac_includes_default
12332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12339 rm -f conftest.$ac_objext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341 (eval $ac_compile) 2>conftest.er1
12343 grep -v '^ *+' conftest.er1 >conftest.err
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag"
12349 || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_lo=`expr '(' $ac_mid ')' + 1`
12368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12372 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12373 See \`config.log' for more details." >&5
12374 echo "$as_me: error: cannot compute sizeof (long long), 77
12375 See \`config.log' for more details." >&2;}
12376 { (exit 1); exit 1; }; } ;;
12379 if test "$cross_compiling" = yes; then
12380 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12381 See \`config.log' for more details." >&5
12382 echo "$as_me: error: cannot run test program while cross compiling
12383 See \`config.log' for more details." >&2;}
12384 { (exit 1); exit 1; }; }
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 $ac_includes_default
12393 long longval () { return (long) (sizeof (long long)); }
12394 unsigned long ulongval () { return (long) (sizeof (long long)); }
12396 #include <stdlib.h>
12401 FILE *f = fopen ("conftest.val", "w");
12404 if (((long) (sizeof (long long))) < 0)
12406 long i = longval ();
12407 if (i != ((long) (sizeof (long long))))
12409 fprintf (f, "%ld\n", i);
12413 unsigned long i = ulongval ();
12414 if (i != ((long) (sizeof (long long))))
12416 fprintf (f, "%lu\n", i);
12418 exit (ferror (f) || fclose (f) != 0);
12424 rm -f conftest$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_sizeof_long_long=`cat conftest.val`
12437 echo "$as_me: program exited with status $ac_status" >&5
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ( exit $ac_status )
12442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12443 See \`config.log' for more details." >&5
12444 echo "$as_me: error: cannot compute sizeof (long long), 77
12445 See \`config.log' for more details." >&2;}
12446 { (exit 1); exit 1; }; }
12448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12453 ac_cv_sizeof_long_long=0
12456 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12457 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12458 cat >>confdefs.h <<_ACEOF
12459 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12463 echo "$as_me:$LINENO: checking for intmax_t" >&5
12464 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12465 if test "${ac_cv_type_intmax_t+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 $ac_includes_default
12478 if ((intmax_t *) 0)
12480 if (sizeof (intmax_t))
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag"
12496 || test ! -s conftest.err'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_type_intmax_t=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_cv_type_intmax_t=no
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12518 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12520 echo "$as_me:$LINENO: checking size of intmax_t" >&5
12521 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
12522 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 if test "$ac_cv_type_intmax_t" = yes; then
12526 # The cast to unsigned long works around a bug in the HP C Compiler
12527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12529 # This bug is HP SR number 8606223364.
12530 if test "$cross_compiling" = yes; then
12531 # Depending upon the size, compute the lo and hi bounds.
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12542 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551 (eval $ac_compile) 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -z "$ac_c_werror_flag"
12559 || test ! -s conftest.err'
12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest.$ac_objext'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 $ac_includes_default
12583 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_hi=$ac_mid; break
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_lo=`expr $ac_mid + 1`
12618 if test $ac_lo -le $ac_mid; then
12622 ac_mid=`expr 2 '*' $ac_mid + 1`
12624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 cat >conftest.$ac_ext <<_ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12640 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12681 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest.$ac_objext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_lo=$ac_mid; break
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_hi=`expr '(' $ac_mid ')' - 1`
12716 if test $ac_mid -le $ac_hi; then
12720 ac_mid=`expr 2 '*' $ac_mid`
12722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 # Binary search between lo and hi bounds.
12734 while test "x$ac_lo" != "x$ac_hi"; do
12735 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 $ac_includes_default
12746 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_lo=`expr '(' $ac_mid ')' + 1`
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12785 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
12786 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12787 See \`config.log' for more details." >&5
12788 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12789 See \`config.log' for more details." >&2;}
12790 { (exit 1); exit 1; }; } ;;
12793 if test "$cross_compiling" = yes; then
12794 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12795 See \`config.log' for more details." >&5
12796 echo "$as_me: error: cannot run test program while cross compiling
12797 See \`config.log' for more details." >&2;}
12798 { (exit 1); exit 1; }; }
12800 cat >conftest.$ac_ext <<_ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 $ac_includes_default
12807 long longval () { return (long) (sizeof (intmax_t)); }
12808 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
12810 #include <stdlib.h>
12815 FILE *f = fopen ("conftest.val", "w");
12818 if (((long) (sizeof (intmax_t))) < 0)
12820 long i = longval ();
12821 if (i != ((long) (sizeof (intmax_t))))
12823 fprintf (f, "%ld\n", i);
12827 unsigned long i = ulongval ();
12828 if (i != ((long) (sizeof (intmax_t))))
12830 fprintf (f, "%lu\n", i);
12832 exit (ferror (f) || fclose (f) != 0);
12838 rm -f conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 ac_cv_sizeof_intmax_t=`cat conftest.val`
12851 echo "$as_me: program exited with status $ac_status" >&5
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ( exit $ac_status )
12856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12859 See \`config.log' for more details." >&2;}
12860 { (exit 1); exit 1; }; }
12862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12867 ac_cv_sizeof_intmax_t=0
12870 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12871 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12872 cat >>confdefs.h <<_ACEOF
12873 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12877 echo "$as_me:$LINENO: checking for off_t" >&5
12878 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12879 if test "${ac_cv_type_off_t+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 $ac_includes_default
12894 if (sizeof (off_t))
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>conftest.er1
12904 grep -v '^ *+' conftest.er1 >conftest.err
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_type_off_t=yes
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ac_cv_type_off_t=no
12929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12931 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12932 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12934 echo "$as_me:$LINENO: checking size of off_t" >&5
12935 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12936 if test "${ac_cv_sizeof_off_t+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 if test "$ac_cv_type_off_t" = yes; then
12940 # The cast to unsigned long works around a bug in the HP C Compiler
12941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12943 # This bug is HP SR number 8606223364.
12944 if test "$cross_compiling" = yes; then
12945 # Depending upon the size, compute the lo and hi bounds.
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12956 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12963 rm -f conftest.$ac_objext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965 (eval $ac_compile) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1 >conftest.err
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest.$ac_objext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12993 $ac_includes_default
12997 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13004 rm -f conftest.$ac_objext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006 (eval $ac_compile) 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid; break
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ac_lo=`expr $ac_mid + 1`
13032 if test $ac_lo -le $ac_mid; then
13036 ac_mid=`expr 2 '*' $ac_mid + 1`
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 $ac_includes_default
13054 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 $ac_includes_default
13095 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13106 grep -v '^ *+' conftest.er1 >conftest.err
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_lo=$ac_mid; break
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_hi=`expr '(' $ac_mid ')' - 1`
13130 if test $ac_mid -le $ac_hi; then
13134 ac_mid=`expr 2 '*' $ac_mid`
13136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13147 # Binary search between lo and hi bounds.
13148 while test "x$ac_lo" != "x$ac_hi"; do
13149 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13160 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag"
13177 || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_lo=`expr '(' $ac_mid ')' + 1`
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13199 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13200 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13201 See \`config.log' for more details." >&5
13202 echo "$as_me: error: cannot compute sizeof (off_t), 77
13203 See \`config.log' for more details." >&2;}
13204 { (exit 1); exit 1; }; } ;;
13207 if test "$cross_compiling" = yes; then
13208 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13209 See \`config.log' for more details." >&5
13210 echo "$as_me: error: cannot run test program while cross compiling
13211 See \`config.log' for more details." >&2;}
13212 { (exit 1); exit 1; }; }
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 $ac_includes_default
13221 long longval () { return (long) (sizeof (off_t)); }
13222 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13224 #include <stdlib.h>
13229 FILE *f = fopen ("conftest.val", "w");
13232 if (((long) (sizeof (off_t))) < 0)
13234 long i = longval ();
13235 if (i != ((long) (sizeof (off_t))))
13237 fprintf (f, "%ld\n", i);
13241 unsigned long i = ulongval ();
13242 if (i != ((long) (sizeof (off_t))))
13244 fprintf (f, "%lu\n", i);
13246 exit (ferror (f) || fclose (f) != 0);
13252 rm -f conftest$ac_exeext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13254 (eval $ac_link) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_cv_sizeof_off_t=`cat conftest.val`
13265 echo "$as_me: program exited with status $ac_status" >&5
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ( exit $ac_status )
13270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: cannot compute sizeof (off_t), 77
13273 See \`config.log' for more details." >&2;}
13274 { (exit 1); exit 1; }; }
13276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281 ac_cv_sizeof_off_t=0
13284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13285 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13286 cat >>confdefs.h <<_ACEOF
13287 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13291 echo "$as_me:$LINENO: checking for size_t" >&5
13292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13293 if test "${ac_cv_type_size_t+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13308 if (sizeof (size_t))
13314 rm -f conftest.$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316 (eval $ac_compile) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag"
13324 || test ! -s conftest.err'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_type_size_t=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_type_size_t=no
13343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13345 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13346 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13348 echo "$as_me:$LINENO: checking size of size_t" >&5
13349 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
13350 if test "${ac_cv_sizeof_size_t+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 if test "$ac_cv_type_size_t" = yes; then
13354 # The cast to unsigned long works around a bug in the HP C Compiler
13355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13357 # This bug is HP SR number 8606223364.
13358 if test "$cross_compiling" = yes; then
13359 # Depending upon the size, compute the lo and hi bounds.
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13370 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_c_werror_flag"
13387 || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest.$ac_objext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 $ac_includes_default
13411 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag"
13428 || test ! -s conftest.err'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_hi=$ac_mid; break
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13445 ac_lo=`expr $ac_mid + 1`
13446 if test $ac_lo -le $ac_mid; then
13450 ac_mid=`expr 2 '*' $ac_mid + 1`
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 $ac_includes_default
13468 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477 (eval $ac_compile) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 $ac_includes_default
13509 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518 (eval $ac_compile) 2>conftest.er1
13520 grep -v '^ *+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
13525 { ac_try='test -z "$ac_c_werror_flag"
13526 || test ! -s conftest.err'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_lo=$ac_mid; break
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_hi=`expr '(' $ac_mid ')' - 1`
13544 if test $ac_mid -le $ac_hi; then
13548 ac_mid=`expr 2 '*' $ac_mid`
13550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13561 # Binary search between lo and hi bounds.
13562 while test "x$ac_lo" != "x$ac_hi"; do
13563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13574 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -z "$ac_c_werror_flag"
13591 || test ! -s conftest.err'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_lo=`expr '(' $ac_mid ')' + 1`
13610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13613 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13615 See \`config.log' for more details." >&5
13616 echo "$as_me: error: cannot compute sizeof (size_t), 77
13617 See \`config.log' for more details." >&2;}
13618 { (exit 1); exit 1; }; } ;;
13621 if test "$cross_compiling" = yes; then
13622 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13623 See \`config.log' for more details." >&5
13624 echo "$as_me: error: cannot run test program while cross compiling
13625 See \`config.log' for more details." >&2;}
13626 { (exit 1); exit 1; }; }
13628 cat >conftest.$ac_ext <<_ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 $ac_includes_default
13635 long longval () { return (long) (sizeof (size_t)); }
13636 unsigned long ulongval () { return (long) (sizeof (size_t)); }
13638 #include <stdlib.h>
13643 FILE *f = fopen ("conftest.val", "w");
13646 if (((long) (sizeof (size_t))) < 0)
13648 long i = longval ();
13649 if (i != ((long) (sizeof (size_t))))
13651 fprintf (f, "%ld\n", i);
13655 unsigned long i = ulongval ();
13656 if (i != ((long) (sizeof (size_t))))
13658 fprintf (f, "%lu\n", i);
13660 exit (ferror (f) || fclose (f) != 0);
13666 rm -f conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668 (eval $ac_link) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_sizeof_size_t=`cat conftest.val`
13679 echo "$as_me: program exited with status $ac_status" >&5
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ( exit $ac_status )
13684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13685 See \`config.log' for more details." >&5
13686 echo "$as_me: error: cannot compute sizeof (size_t), 77
13687 See \`config.log' for more details." >&2;}
13688 { (exit 1); exit 1; }; }
13690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13695 ac_cv_sizeof_size_t=0
13698 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13699 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
13700 cat >>confdefs.h <<_ACEOF
13701 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13705 echo "$as_me:$LINENO: checking for ssize_t" >&5
13706 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13707 if test "${ac_cv_type_ssize_t+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13722 if (sizeof (ssize_t))
13728 rm -f conftest.$ac_objext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_cv_type_ssize_t=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_type_ssize_t=no
13757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13759 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13760 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13762 echo "$as_me:$LINENO: checking size of ssize_t" >&5
13763 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
13764 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 if test "$ac_cv_type_ssize_t" = yes; then
13768 # The cast to unsigned long works around a bug in the HP C Compiler
13769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13771 # This bug is HP SR number 8606223364.
13772 if test "$cross_compiling" = yes; then
13773 # Depending upon the size, compute the lo and hi bounds.
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 $ac_includes_default
13784 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793 (eval $ac_compile) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag"
13801 || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13815 cat >conftest.$ac_ext <<_ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13821 $ac_includes_default
13825 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_hi=$ac_mid; break
13856 echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13859 ac_lo=`expr $ac_mid + 1`
13860 if test $ac_lo -le $ac_mid; then
13864 ac_mid=`expr 2 '*' $ac_mid + 1`
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 $ac_includes_default
13882 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>conftest.er1
13893 grep -v '^ *+' conftest.er1 >conftest.err
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag"
13899 || test ! -s conftest.err'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13923 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>conftest.er1
13934 grep -v '^ *+' conftest.er1 >conftest.err
13936 cat conftest.err >&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -z "$ac_c_werror_flag"
13940 || test ! -s conftest.err'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_lo=$ac_mid; break
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_hi=`expr '(' $ac_mid ')' - 1`
13958 if test $ac_mid -le $ac_hi; then
13962 ac_mid=`expr 2 '*' $ac_mid`
13964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975 # Binary search between lo and hi bounds.
13976 while test "x$ac_lo" != "x$ac_hi"; do
13977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 $ac_includes_default
13988 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13995 rm -f conftest.$ac_objext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13997 (eval $ac_compile) 2>conftest.er1
13999 grep -v '^ *+' conftest.er1 >conftest.err
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_lo=`expr '(' $ac_mid ')' + 1`
14024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14027 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
14028 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14029 See \`config.log' for more details." >&5
14030 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14031 See \`config.log' for more details." >&2;}
14032 { (exit 1); exit 1; }; } ;;
14035 if test "$cross_compiling" = yes; then
14036 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14037 See \`config.log' for more details." >&5
14038 echo "$as_me: error: cannot run test program while cross compiling
14039 See \`config.log' for more details." >&2;}
14040 { (exit 1); exit 1; }; }
14042 cat >conftest.$ac_ext <<_ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 $ac_includes_default
14049 long longval () { return (long) (sizeof (ssize_t)); }
14050 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
14052 #include <stdlib.h>
14057 FILE *f = fopen ("conftest.val", "w");
14060 if (((long) (sizeof (ssize_t))) < 0)
14062 long i = longval ();
14063 if (i != ((long) (sizeof (ssize_t))))
14065 fprintf (f, "%ld\n", i);
14069 unsigned long i = ulongval ();
14070 if (i != ((long) (sizeof (ssize_t))))
14072 fprintf (f, "%lu\n", i);
14074 exit (ferror (f) || fclose (f) != 0);
14080 rm -f conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_sizeof_ssize_t=`cat conftest.val`
14093 echo "$as_me: program exited with status $ac_status" >&5
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ( exit $ac_status )
14098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14099 See \`config.log' for more details." >&5
14100 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14101 See \`config.log' for more details." >&2;}
14102 { (exit 1); exit 1; }; }
14104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14109 ac_cv_sizeof_ssize_t=0
14112 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
14113 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
14114 cat >>confdefs.h <<_ACEOF
14115 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
14119 echo "$as_me:$LINENO: checking for time_t" >&5
14120 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
14121 if test "${ac_cv_type_time_t+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 cat >conftest.$ac_ext <<_ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 $ac_includes_default
14136 if (sizeof (time_t))
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_type_time_t=yes
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14169 ac_cv_type_time_t=no
14171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
14174 echo "${ECHO_T}$ac_cv_type_time_t" >&6
14176 echo "$as_me:$LINENO: checking size of time_t" >&5
14177 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
14178 if test "${ac_cv_sizeof_time_t+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 if test "$ac_cv_type_time_t" = yes; then
14182 # The cast to unsigned long works around a bug in the HP C Compiler
14183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14185 # This bug is HP SR number 8606223364.
14186 if test "$cross_compiling" = yes; then
14187 # Depending upon the size, compute the lo and hi bounds.
14188 cat >conftest.$ac_ext <<_ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h. */
14194 $ac_includes_default
14198 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14239 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -z "$ac_c_werror_flag"
14256 || test ! -s conftest.err'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; } &&
14262 { ac_try='test -s conftest.$ac_objext'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_hi=$ac_mid; break
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 ac_lo=`expr $ac_mid + 1`
14274 if test $ac_lo -le $ac_mid; then
14278 ac_mid=`expr 2 '*' $ac_mid + 1`
14280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 $ac_includes_default
14296 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305 (eval $ac_compile) 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag"
14313 || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 $ac_includes_default
14337 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -z "$ac_c_werror_flag"
14354 || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest.$ac_objext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_lo=$ac_mid; break
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 ac_hi=`expr '(' $ac_mid ')' - 1`
14372 if test $ac_mid -le $ac_hi; then
14376 ac_mid=`expr 2 '*' $ac_mid`
14378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389 # Binary search between lo and hi bounds.
14390 while test "x$ac_lo" != "x$ac_hi"; do
14391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 $ac_includes_default
14402 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_lo=`expr '(' $ac_mid ')' + 1`
14438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 ?*) ac_cv_sizeof_time_t=$ac_lo;;
14442 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14443 See \`config.log' for more details." >&5
14444 echo "$as_me: error: cannot compute sizeof (time_t), 77
14445 See \`config.log' for more details." >&2;}
14446 { (exit 1); exit 1; }; } ;;
14449 if test "$cross_compiling" = yes; then
14450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14451 See \`config.log' for more details." >&5
14452 echo "$as_me: error: cannot run test program while cross compiling
14453 See \`config.log' for more details." >&2;}
14454 { (exit 1); exit 1; }; }
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 $ac_includes_default
14463 long longval () { return (long) (sizeof (time_t)); }
14464 unsigned long ulongval () { return (long) (sizeof (time_t)); }
14466 #include <stdlib.h>
14471 FILE *f = fopen ("conftest.val", "w");
14474 if (((long) (sizeof (time_t))) < 0)
14476 long i = longval ();
14477 if (i != ((long) (sizeof (time_t))))
14479 fprintf (f, "%ld\n", i);
14483 unsigned long i = ulongval ();
14484 if (i != ((long) (sizeof (time_t))))
14486 fprintf (f, "%lu\n", i);
14488 exit (ferror (f) || fclose (f) != 0);
14494 rm -f conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_cv_sizeof_time_t=`cat conftest.val`
14507 echo "$as_me: program exited with status $ac_status" >&5
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ( exit $ac_status )
14512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14513 See \`config.log' for more details." >&5
14514 echo "$as_me: error: cannot compute sizeof (time_t), 77
14515 See \`config.log' for more details." >&2;}
14516 { (exit 1); exit 1; }; }
14518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523 ac_cv_sizeof_time_t=0
14526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
14527 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
14528 cat >>confdefs.h <<_ACEOF
14529 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14534 # Check whether --enable-shared or --disable-shared was given.
14535 if test "${enable_shared+set}" = set; then
14536 enableval="$enable_shared"
14537 p=${PACKAGE-default}
14539 yes) enable_shared=yes ;;
14540 no) enable_shared=no ;;
14543 # Look at the argument we got. We use all the common list separators.
14544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14545 for pkg in $enableval; do
14547 if test "X$pkg" = "X$p"; then
14558 # Check whether --enable-static or --disable-static was given.
14559 if test "${enable_static+set}" = set; then
14560 enableval="$enable_static"
14561 p=${PACKAGE-default}
14563 yes) enable_static=yes ;;
14564 no) enable_static=no ;;
14567 # Look at the argument we got. We use all the common list separators.
14568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14569 for pkg in $enableval; do
14571 if test "X$pkg" = "X$p"; then
14582 # Check whether --enable-fast-install or --disable-fast-install was given.
14583 if test "${enable_fast_install+set}" = set; then
14584 enableval="$enable_fast_install"
14585 p=${PACKAGE-default}
14587 yes) enable_fast_install=yes ;;
14588 no) enable_fast_install=no ;;
14590 enable_fast_install=no
14591 # Look at the argument we got. We use all the common list separators.
14592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14593 for pkg in $enableval; do
14595 if test "X$pkg" = "X$p"; then
14596 enable_fast_install=yes
14603 enable_fast_install=yes
14606 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14607 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14608 if test "${lt_cv_path_SED+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 # Loop through the user's path and test for sed and gsed.
14612 # Then use that list of sed's as ones to test for truncation.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14617 test -z "$as_dir" && as_dir=.
14618 for lt_ac_prog in sed gsed; do
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14621 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14628 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14629 # along with /bin/sed that truncates output.
14630 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14631 test ! -f $lt_ac_sed && continue
14632 cat /dev/null > conftest.in
14634 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14635 # Check for GNU sed and select it if it is found.
14636 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14637 lt_cv_path_SED=$lt_ac_sed
14641 cat conftest.in conftest.in >conftest.tmp
14642 mv conftest.tmp conftest.in
14643 cp conftest.in conftest.nl
14645 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14646 cmp -s conftest.out conftest.nl || break
14647 # 10000 chars as input seems more than enough
14648 test $lt_ac_count -gt 10 && break
14649 lt_ac_count=`expr $lt_ac_count + 1`
14650 if test $lt_ac_count -gt $lt_ac_max; then
14651 lt_ac_max=$lt_ac_count
14652 lt_cv_path_SED=$lt_ac_sed
14659 SED=$lt_cv_path_SED
14660 echo "$as_me:$LINENO: result: $SED" >&5
14661 echo "${ECHO_T}$SED" >&6
14664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14665 if test "${with_gnu_ld+set}" = set; then
14666 withval="$with_gnu_ld"
14667 test "$withval" = no || with_gnu_ld=yes
14672 if test "$GCC" = yes; then
14673 # Check if gcc -print-prog-name=ld gives a path.
14674 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14675 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14678 # gcc leaves a trailing carriage return which upsets mingw
14679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14684 # Accept absolute paths.
14686 re_direlt='/[^/][^/]*/\.\./'
14687 # Canonicalize the pathname of ld
14688 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14690 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14692 test -z "$LD" && LD="$ac_prog"
14695 # If it fails, then pretend we aren't using GCC.
14699 # If it is relative, then search for the first ld in PATH.
14700 with_gnu_ld=unknown
14703 elif test "$with_gnu_ld" = yes; then
14704 echo "$as_me:$LINENO: checking for GNU ld" >&5
14705 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14707 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14708 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14710 if test "${lt_cv_path_LD+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 if test -z "$LD"; then
14714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14715 for ac_dir in $PATH; do
14717 test -z "$ac_dir" && ac_dir=.
14718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14719 lt_cv_path_LD="$ac_dir/$ac_prog"
14720 # Check to see if the program is GNU ld. I'd rather use --version,
14721 # but apparently some variants of GNU ld only accept -v.
14722 # Break only if it was the GNU/non-GNU ld that we prefer.
14723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14724 *GNU* | *'with BFD'*)
14725 test "$with_gnu_ld" != no && break
14728 test "$with_gnu_ld" != yes && break
14735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14739 LD="$lt_cv_path_LD"
14740 if test -n "$LD"; then
14741 echo "$as_me:$LINENO: result: $LD" >&5
14742 echo "${ECHO_T}$LD" >&6
14744 echo "$as_me:$LINENO: result: no" >&5
14745 echo "${ECHO_T}no" >&6
14747 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14748 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14749 { (exit 1); exit 1; }; }
14750 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14751 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14752 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14756 case `$LD -v 2>&1 </dev/null` in
14757 *GNU* | *'with BFD'*)
14758 lt_cv_prog_gnu_ld=yes
14761 lt_cv_prog_gnu_ld=no
14765 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14766 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14767 with_gnu_ld=$lt_cv_prog_gnu_ld
14770 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14771 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14772 if test "${lt_cv_ld_reload_flag+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 lt_cv_ld_reload_flag='-r'
14777 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14778 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14779 reload_flag=$lt_cv_ld_reload_flag
14780 case $reload_flag in
14782 *) reload_flag=" $reload_flag" ;;
14784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14787 if test "$GCC" = yes; then
14788 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14795 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14796 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14797 if test "${lt_cv_path_NM+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 if test -n "$NM"; then
14801 # Let the user override the test.
14802 lt_cv_path_NM="$NM"
14804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14805 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14807 test -z "$ac_dir" && ac_dir=.
14808 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14809 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14810 # Check to see if the nm accepts a BSD-compat flag.
14811 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14812 # nm: unknown option "B" ignored
14813 # Tru64's nm complains that /dev/null is an invalid object file
14814 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14815 */dev/null* | *'Invalid file or object type'*)
14816 lt_cv_path_NM="$tmp_nm -B"
14820 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14822 lt_cv_path_NM="$tmp_nm -p"
14826 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14827 continue # so that we can try to find one that supports BSD flags
14834 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
14837 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14838 echo "${ECHO_T}$lt_cv_path_NM" >&6
14839 NM="$lt_cv_path_NM"
14841 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14844 if test "$LN_S" = "ln -s"; then
14845 echo "$as_me:$LINENO: result: yes" >&5
14846 echo "${ECHO_T}yes" >&6
14848 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14849 echo "${ECHO_T}no, using $LN_S" >&6
14852 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14853 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14854 if test "${lt_cv_deplibs_check_method+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 lt_cv_file_magic_cmd='$MAGIC_CMD'
14858 lt_cv_file_magic_test_file=
14859 lt_cv_deplibs_check_method='unknown'
14860 # Need to set the preceding variable on all platforms that support
14861 # interlibrary dependencies.
14862 # 'none' -- dependencies not supported.
14863 # `unknown' -- same as none, but documents that we really don't know.
14864 # 'pass_all' -- all dependencies passed with no checks.
14865 # 'test_compile' -- check by making test program.
14866 # 'file_magic [[regex]]' -- check by looking for files in library path
14867 # which responds to the $file_magic_cmd with a given extended regex.
14868 # If you have `file' or equivalent on your system and you're not sure
14869 # whether `pass_all' will *always* work, you probably want this one.
14873 lt_cv_deplibs_check_method=pass_all
14877 lt_cv_deplibs_check_method=pass_all
14881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14882 lt_cv_file_magic_cmd='/usr/bin/file -L'
14883 lt_cv_file_magic_test_file=/shlib/libc.so
14887 # func_win32_libid is a shell function defined in ltmain.sh
14888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14889 lt_cv_file_magic_cmd='func_win32_libid'
14893 # Base MSYS/MinGW do not provide the 'file' command needed by
14894 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14895 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14896 lt_cv_file_magic_cmd='$OBJDUMP -f'
14899 darwin* | rhapsody*)
14900 lt_cv_deplibs_check_method=pass_all
14903 freebsd* | kfreebsd*-gnu | dragonfly*)
14904 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14907 # Not sure whether the presence of OpenBSD here was a mistake.
14908 # Let's accept both of them until this is cleared up.
14909 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14910 lt_cv_file_magic_cmd=/usr/bin/file
14911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14915 lt_cv_deplibs_check_method=pass_all
14920 lt_cv_deplibs_check_method=pass_all
14923 hpux10.20* | hpux11*)
14924 lt_cv_file_magic_cmd=/usr/bin/file
14927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14931 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]'
14932 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14936 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14941 irix5* | irix6* | nonstopux*)
14943 *-32|*"-32 ") libmagic=32-bit;;
14944 *-n32|*"-n32 ") libmagic=N32;;
14945 *-64|*"-64 ") libmagic=64-bit;;
14946 *) libmagic=never-match;;
14948 lt_cv_deplibs_check_method=pass_all
14951 # This must be Linux ELF.
14953 lt_cv_deplibs_check_method=pass_all
14957 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14966 lt_cv_file_magic_cmd=/usr/bin/file
14967 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14971 lt_cv_deplibs_check_method=unknown
14975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14982 osf3* | osf4* | osf5*)
14983 lt_cv_deplibs_check_method=pass_all
14987 lt_cv_deplibs_check_method=pass_all
14991 lt_cv_deplibs_check_method=pass_all
14994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14995 case $host_vendor in
14997 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]'
14998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15001 lt_cv_deplibs_check_method=pass_all
15004 lt_cv_file_magic_cmd='/bin/file'
15005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15008 lt_cv_file_magic_cmd='/bin/file'
15009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15010 lt_cv_file_magic_test_file=/lib/libc.so
15013 lt_cv_deplibs_check_method=pass_all
15018 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
15019 lt_cv_deplibs_check_method=pass_all
15024 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15025 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15026 file_magic_cmd=$lt_cv_file_magic_cmd
15027 deplibs_check_method=$lt_cv_deplibs_check_method
15028 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15031 # If no C compiler was specified, use CC.
15034 # Allow CC to be a program name with arguments.
15037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15038 if test "${enable_libtool_lock+set}" = set; then
15039 enableval="$enable_libtool_lock"
15042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15044 # Some flags need to be propagated to the compiler or linker for good
15048 # Find out which ABI we are using.
15049 echo 'int i;' > conftest.$ac_ext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; then
15055 case `/usr/bin/file conftest.$ac_objext` in
15057 HPUX_IA64_MODE="32"
15060 HPUX_IA64_MODE="64"
15067 # Find out which ABI we are using.
15068 echo '#line 15068 "configure"' > conftest.$ac_ext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070 (eval $ac_compile) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; then
15074 if test "$lt_cv_prog_gnu_ld" = yes; then
15075 case `/usr/bin/file conftest.$ac_objext` in
15077 LD="${LD-ld} -melf32bsmip"
15080 LD="${LD-ld} -melf32bmipn32"
15083 LD="${LD-ld} -melf64bmip"
15087 case `/usr/bin/file conftest.$ac_objext` in
15103 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
15104 # Find out which ABI we are using.
15105 echo 'int i;' > conftest.$ac_ext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; then
15111 case `/usr/bin/file conftest.o` in
15115 LD="${LD-ld} -m elf_i386"
15117 ppc64-*linux*|powerpc64-*linux*)
15118 LD="${LD-ld} -m elf32ppclinux"
15121 LD="${LD-ld} -m elf_s390"
15124 LD="${LD-ld} -m elf32_sparc"
15131 LD="${LD-ld} -m elf_x86_64"
15133 ppc*-*linux*|powerpc*-*linux*)
15134 LD="${LD-ld} -m elf64ppc"
15137 LD="${LD-ld} -m elf64_s390"
15140 LD="${LD-ld} -m elf64_sparc"
15150 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15151 SAVE_CFLAGS="$CFLAGS"
15152 CFLAGS="$CFLAGS -belf"
15153 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15154 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15155 if test "${lt_cv_cc_needs_belf+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 ac_cpp='$CPP $CPPFLAGS'
15160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15181 (eval $ac_link) 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest$ac_exeext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 lt_cv_cc_needs_belf=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 lt_cv_cc_needs_belf=no
15208 rm -f conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15211 ac_cpp='$CPP $CPPFLAGS'
15212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15217 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15221 CFLAGS="$SAVE_CFLAGS"
15227 need_locks="$enable_libtool_lock"
15231 for ac_header in dlfcn.h
15233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15235 echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15243 # Is the header compilable?
15244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 $ac_includes_default
15253 #include <$ac_header>
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257 (eval $ac_compile) 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -z "$ac_c_werror_flag"
15265 || test ! -s conftest.err'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest.$ac_objext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_header_compiler=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_compiler=no
15284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6
15288 # Is the header present?
15289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <$ac_header>
15299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15302 grep -v '^ *+' conftest.er1 >conftest.err
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } >/dev/null; then
15307 if test -s conftest.err; then
15308 ac_cpp_err=$ac_c_preproc_warn_flag
15309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15316 if test -z "$ac_cpp_err"; then
15317 ac_header_preproc=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_header_preproc=no
15324 rm -f conftest.err conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15326 echo "${ECHO_T}$ac_header_preproc" >&6
15328 # So? What about this header?
15329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15335 ac_header_preproc=yes
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15352 ## ------------------------------------------ ##
15353 ## Report this to the AC_PACKAGE_NAME lists. ##
15354 ## ------------------------------------------ ##
15357 sed "s/^/$as_me: WARNING: /" >&2
15360 echo "$as_me:$LINENO: checking for $ac_header" >&5
15361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 eval "$as_ac_Header=\$ac_header_preproc"
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372 cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15381 ac_cpp='$CXXCPP $CPPFLAGS'
15382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15385 if test -n "$ac_tool_prefix"; then
15386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15390 echo "$as_me:$LINENO: checking for $ac_word" >&5
15391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15392 if test "${ac_cv_prog_CXX+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 if test -n "$CXX"; then
15396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15402 test -z "$as_dir" && as_dir=.
15403 for ac_exec_ext in '' $ac_executable_extensions; do
15404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15414 CXX=$ac_cv_prog_CXX
15415 if test -n "$CXX"; then
15416 echo "$as_me:$LINENO: result: $CXX" >&5
15417 echo "${ECHO_T}$CXX" >&6
15419 echo "$as_me:$LINENO: result: no" >&5
15420 echo "${ECHO_T}no" >&6
15423 test -n "$CXX" && break
15426 if test -z "$CXX"; then
15428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15430 # Extract the first word of "$ac_prog", so it can be a program name with args.
15431 set dummy $ac_prog; ac_word=$2
15432 echo "$as_me:$LINENO: checking for $ac_word" >&5
15433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 if test -n "$ac_ct_CXX"; then
15438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $PATH
15444 test -z "$as_dir" && as_dir=.
15445 for ac_exec_ext in '' $ac_executable_extensions; do
15446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447 ac_cv_prog_ac_ct_CXX="$ac_prog"
15448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15457 if test -n "$ac_ct_CXX"; then
15458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15459 echo "${ECHO_T}$ac_ct_CXX" >&6
15461 echo "$as_me:$LINENO: result: no" >&5
15462 echo "${ECHO_T}no" >&6
15465 test -n "$ac_ct_CXX" && break
15467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15473 # Provide some information about the compiler.
15474 echo "$as_me:$LINENO:" \
15475 "checking for C++ compiler version" >&5
15476 ac_compiler=`set X $ac_compile; echo $2`
15477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15478 (eval $ac_compiler --version </dev/null >&5) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }
15482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15483 (eval $ac_compiler -v </dev/null >&5) 2>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }
15487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15488 (eval $ac_compiler -V </dev/null >&5) 2>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }
15493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>conftest.er1
15520 grep -v '^ *+' conftest.er1 >conftest.err
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_cxx_werror_flag"
15526 || test ! -s conftest.err'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_compiler_gnu=yes
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15549 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15551 GXX=`test $ac_compiler_gnu = yes && echo yes`
15552 ac_test_CXXFLAGS=${CXXFLAGS+set}
15553 ac_save_CXXFLAGS=$CXXFLAGS
15555 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15557 if test "${ac_cv_prog_cxx_g+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_cxx_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_prog_cxx_g=yes
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_cv_prog_cxx_g=no
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15608 if test "$ac_test_CXXFLAGS" = set; then
15609 CXXFLAGS=$ac_save_CXXFLAGS
15610 elif test $ac_cv_prog_cxx_g = yes; then
15611 if test "$GXX" = yes; then
15617 if test "$GXX" = yes; then
15623 for ac_declaration in \
15625 'extern "C" void std::exit (int) throw (); using std::exit;' \
15626 'extern "C" void std::exit (int); using std::exit;' \
15627 'extern "C" void exit (int) throw ();' \
15628 'extern "C" void exit (int);' \
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15638 #include <stdlib.h>
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_cxx_werror_flag"
15657 || test ! -s conftest.err'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_cxx_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15723 if test -n "$ac_declaration"; then
15724 echo '#ifdef __cplusplus' >>confdefs.h
15725 echo $ac_declaration >>confdefs.h
15726 echo '#endif' >>confdefs.h
15730 ac_cpp='$CXXCPP $CPPFLAGS'
15731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15735 depcc="$CXX" am_compiler_list=
15737 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15738 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15739 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15743 # We make a subdir and do the tests there. Otherwise we can end up
15744 # making bogus files that we don't know about and never remove. For
15745 # instance it was reported that on HP-UX the gcc test will end up
15746 # making a dummy file named `D' -- because `-MD' means `put the output
15749 # Copy depcomp to subdir because otherwise we won't find it if we're
15750 # using a relative directory.
15751 cp "$am_depcomp" conftest.dir
15753 # We will build objects and dependencies in a subdirectory because
15754 # it helps to detect inapplicable dependency modes. For instance
15755 # both Tru64's cc and ICC support -MD to output dependencies as a
15756 # side effect of compilation, but ICC will put the dependencies in
15757 # the current directory while Tru64 will put them in the object
15761 am_cv_CXX_dependencies_compiler_type=none
15762 if test "$am_compiler_list" = ""; then
15763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15765 for depmode in $am_compiler_list; do
15766 # Setup a source with many dependencies, because some compilers
15767 # like to wrap large dependency lists on column 80 (with \), and
15768 # we should not choose a depcomp mode which is confused by this.
15770 # We need to recreate these files for each test, as the compiler may
15771 # overwrite some of them when testing with obscure command lines.
15772 # This happens at least with the AIX C compiler.
15774 for i in 1 2 3 4 5 6; do
15775 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15776 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15777 # Solaris 8's {/usr,}/bin/sh.
15778 touch sub/conftst$i.h
15780 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15784 # after this tag, mechanisms are not by side-effect, so they'll
15785 # only be used when explicitly requested
15786 if test "x$enable_dependency_tracking" = xyes; then
15794 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15795 # mode. It turns out that the SunPro C++ compiler does not properly
15796 # handle `-M -o', and we need to detect this.
15797 if depmode=$depmode \
15798 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15800 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15801 >/dev/null 2>conftest.err &&
15802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15803 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15805 # icc doesn't choke on unknown options, it will just issue warnings
15806 # or remarks (even with -Werror). So we grep stderr for any message
15807 # that says an option was ignored or not supported.
15808 # When given -MP, icc 7.0 and 7.1 complain thusly:
15809 # icc: Command line warning: ignoring option '-M'; no argument required
15810 # The diagnosis changed in icc 8.0:
15811 # icc: Command line remark: option '-MP' not supported
15812 if (grep 'ignoring option' conftest.err ||
15813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15814 am_cv_CXX_dependencies_compiler_type=$depmode
15821 rm -rf conftest.dir
15823 am_cv_CXX_dependencies_compiler_type=none
15827 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15828 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15829 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15834 test "x$enable_dependency_tracking" != xno \
15835 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15836 am__fastdepCXX_TRUE=
15837 am__fastdepCXX_FALSE='#'
15839 am__fastdepCXX_TRUE='#'
15840 am__fastdepCXX_FALSE=
15846 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15847 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15848 (test "X$CXX" != "Xg++"))) ; then
15850 ac_cpp='$CXXCPP $CPPFLAGS'
15851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15854 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15855 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15856 if test -z "$CXXCPP"; then
15857 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 # Double quotes because CXXCPP needs to be expanded
15861 for CXXCPP in "$CXX -E" "/lib/cpp"
15863 ac_preproc_ok=false
15864 for ac_cxx_preproc_warn_flag in '' yes
15866 # Use a header file that comes with gcc, so configuring glibc
15867 # with a fresh cross-compiler works.
15868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869 # <limits.h> exists even on freestanding compilers.
15870 # On the NeXT, cc -E runs the code through the compiler's parser,
15871 # not just through cpp. "Syntax error" is here to catch this case.
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 # include <limits.h>
15881 # include <assert.h>
15885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15888 grep -v '^ *+' conftest.er1 >conftest.err
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } >/dev/null; then
15893 if test -s conftest.err; then
15894 ac_cpp_err=$ac_cxx_preproc_warn_flag
15895 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15902 if test -z "$ac_cpp_err"; then
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 # Broken: fails on valid input.
15911 rm -f conftest.err conftest.$ac_ext
15913 # OK, works on sane cases. Now check whether non-existent headers
15914 # can be detected and how.
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 #include <ac_nonexistent.h>
15923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } >/dev/null; then
15931 if test -s conftest.err; then
15932 ac_cpp_err=$ac_cxx_preproc_warn_flag
15933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15940 if test -z "$ac_cpp_err"; then
15941 # Broken: success on invalid input.
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 # Passes both tests.
15951 rm -f conftest.err conftest.$ac_ext
15954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15955 rm -f conftest.err conftest.$ac_ext
15956 if $ac_preproc_ok; then
15961 ac_cv_prog_CXXCPP=$CXXCPP
15964 CXXCPP=$ac_cv_prog_CXXCPP
15966 ac_cv_prog_CXXCPP=$CXXCPP
15968 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15969 echo "${ECHO_T}$CXXCPP" >&6
15970 ac_preproc_ok=false
15971 for ac_cxx_preproc_warn_flag in '' yes
15973 # Use a header file that comes with gcc, so configuring glibc
15974 # with a fresh cross-compiler works.
15975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15976 # <limits.h> exists even on freestanding compilers.
15977 # On the NeXT, cc -E runs the code through the compiler's parser,
15978 # not just through cpp. "Syntax error" is here to catch this case.
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15986 # include <limits.h>
15988 # include <assert.h>
15992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_cxx_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16009 if test -z "$ac_cpp_err"; then
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 # Broken: fails on valid input.
16018 rm -f conftest.err conftest.$ac_ext
16020 # OK, works on sane cases. Now check whether non-existent headers
16021 # can be detected and how.
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 #include <ac_nonexistent.h>
16030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } >/dev/null; then
16038 if test -s conftest.err; then
16039 ac_cpp_err=$ac_cxx_preproc_warn_flag
16040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16047 if test -z "$ac_cpp_err"; then
16048 # Broken: success on invalid input.
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 # Passes both tests.
16058 rm -f conftest.err conftest.$ac_ext
16061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16062 rm -f conftest.err conftest.$ac_ext
16063 if $ac_preproc_ok; then
16066 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16067 See \`config.log' for more details." >&5
16068 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16069 See \`config.log' for more details." >&2;}
16070 { (exit 1); exit 1; }; }
16074 ac_cpp='$CXXCPP $CPPFLAGS'
16075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16086 if test -n "$ac_tool_prefix"; then
16087 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16091 echo "$as_me:$LINENO: checking for $ac_word" >&5
16092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16093 if test "${ac_cv_prog_F77+set}" = set; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 if test -n "$F77"; then
16097 ac_cv_prog_F77="$F77" # Let the user override the test.
16099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16100 for as_dir in $PATH
16103 test -z "$as_dir" && as_dir=.
16104 for ac_exec_ext in '' $ac_executable_extensions; do
16105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16106 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16115 F77=$ac_cv_prog_F77
16116 if test -n "$F77"; then
16117 echo "$as_me:$LINENO: result: $F77" >&5
16118 echo "${ECHO_T}$F77" >&6
16120 echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6
16124 test -n "$F77" && break
16127 if test -z "$F77"; then
16129 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16131 # Extract the first word of "$ac_prog", so it can be a program name with args.
16132 set dummy $ac_prog; ac_word=$2
16133 echo "$as_me:$LINENO: checking for $ac_word" >&5
16134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16135 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 if test -n "$ac_ct_F77"; then
16139 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148 ac_cv_prog_ac_ct_F77="$ac_prog"
16149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16157 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16158 if test -n "$ac_ct_F77"; then
16159 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
16160 echo "${ECHO_T}$ac_ct_F77" >&6
16162 echo "$as_me:$LINENO: result: no" >&5
16163 echo "${ECHO_T}no" >&6
16166 test -n "$ac_ct_F77" && break
16173 # Provide some information about the compiler.
16174 echo "$as_me:16174:" \
16175 "checking for Fortran 77 compiler version" >&5
16176 ac_compiler=`set X $ac_compile; echo $2`
16177 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16178 (eval $ac_compiler --version </dev/null >&5) 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }
16182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16183 (eval $ac_compiler -v </dev/null >&5) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }
16187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16188 (eval $ac_compiler -V </dev/null >&5) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }
16194 # If we don't use `.F' as extension, the preprocessor is not run on the
16195 # input file. (Note that this only needs to work for GNU compilers.)
16196 ac_save_ext=$ac_ext
16198 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16199 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16200 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.$ac_ext <<_ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>conftest.er1
16215 grep -v '^ *+' conftest.er1 >conftest.err
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_f77_werror_flag"
16221 || test ! -s conftest.err'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_compiler_gnu=yes
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16244 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16245 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16246 ac_ext=$ac_save_ext
16247 ac_test_FFLAGS=${FFLAGS+set}
16248 ac_save_FFLAGS=$FFLAGS
16250 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16251 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16252 if test "${ac_cv_prog_f77_g+set}" = set; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 cat >conftest.$ac_ext <<_ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_f77_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_prog_f77_g=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_prog_f77_g=no
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16293 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16294 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16295 if test "$ac_test_FFLAGS" = set; then
16296 FFLAGS=$ac_save_FFLAGS
16297 elif test $ac_cv_prog_f77_g = yes; then
16298 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16304 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16311 G77=`test $ac_compiler_gnu = yes && echo yes`
16313 ac_cpp='$CPP $CPPFLAGS'
16314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16322 # find the maximum length of command line arguments
16323 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16324 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16325 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 # On DJGPP, this test can blow up pretty badly due to problems in libc
16334 # (any single argument exceeding 2000 bytes causes a buffer overrun
16335 # during glob expansion). Even if it were fixed, the result of this
16336 # check would be larger than it should be.
16337 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16341 # Under GNU Hurd, this test is not required because there is
16342 # no limit to the length of command line arguments.
16343 # Libtool will interpret -1 as no limit whatsoever
16344 lt_cv_sys_max_cmd_len=-1;
16348 # On Win9x/ME, this test blows up -- it succeeds, but takes
16349 # about 5 minutes as the teststring grows exponentially.
16350 # Worse, since 9x/ME are not pre-emptively multitasking,
16351 # you end up with a "frozen" computer, even though with patience
16352 # the test eventually succeeds (with a max line length of 256k).
16353 # Instead, let's just punt: use the minimum linelength reported by
16354 # all of the supported platforms: 8192 (on NT/2K/XP).
16355 lt_cv_sys_max_cmd_len=8192;
16359 # On AmigaOS with pdksh, this test takes hours, literally.
16360 # So we just punt and use a minimum line length of 8192.
16361 lt_cv_sys_max_cmd_len=8192;
16364 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16365 # This has been around since 386BSD, at least. Likely further.
16366 if test -x /sbin/sysctl; then
16367 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16368 elif test -x /usr/sbin/sysctl; then
16369 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16371 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16373 # And add a safety zone
16374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16380 # nice to cause kernel panics so lets avoid the loop below.
16381 # First set a reasonable default.
16382 lt_cv_sys_max_cmd_len=16384
16384 if test -x /sbin/sysconfig; then
16385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16391 # If test is not a shell built-in, we'll probably end up computing a
16392 # maximum length that is only half of the actual maximum length, but
16394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16395 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16396 = "XX$teststring") >/dev/null 2>&1 &&
16397 new_result=`expr "X$teststring" : ".*" 2>&1` &&
16398 lt_cv_sys_max_cmd_len=$new_result &&
16399 test $i != 17 # 1/2 MB should be enough
16402 teststring=$teststring$teststring
16405 # Add a significant safety factor because C++ compilers can tack on massive
16406 # amounts of additional arguments before passing them to the linker.
16407 # It appears as though 1/2 is a usable value.
16408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16414 if test -n $lt_cv_sys_max_cmd_len ; then
16415 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16416 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16418 echo "$as_me:$LINENO: result: none" >&5
16419 echo "${ECHO_T}none" >&6
16425 # Check for command to grab the raw symbol name followed by C symbol from nm.
16426 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16427 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16428 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 # These are sane defaults that work on at least a few old systems.
16433 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16435 # Character class describing NM global symbol codes.
16436 symcode='[BCDEGRST]'
16438 # Regexp to match symbols that can be accessed directly from C.
16439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16441 # Transform an extracted symbol line into a proper C declaration
16442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16444 # Transform an extracted symbol line into symbol name and symbol address
16445 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'"
16447 # Define system-specific variables.
16452 cygwin* | mingw* | pw32*)
16453 symcode='[ABCDGISTW]'
16455 hpux*) # Its linker distinguishes data from code symbols
16456 if test "$host_cpu" = ia64; then
16457 symcode='[ABCDEGRST]'
16459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16460 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'"
16463 if test "$host_cpu" = ia64; then
16464 symcode='[ABCDGIRSTW]'
16465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16466 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'"
16469 irix* | nonstopux*)
16470 symcode='[BCDEGRST]'
16473 symcode='[BCDEGQRST]'
16483 # Handle CRLF in mingw tool chain
16487 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16491 # If we're using GNU nm, then use its standard symbol codes.
16492 case `$NM -V 2>&1` in
16493 *GNU* | *'with BFD'*)
16494 symcode='[ABCDGIRSTW]' ;;
16497 # Try without a prefix undercore, then with it.
16498 for ac_symprfx in "" "_"; do
16500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16501 symxfrm="\\1 $ac_symprfx\\2 \\2"
16503 # Write the raw and C identifiers.
16504 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16506 # Check to see that the pipe works correctly.
16510 cat > conftest.$ac_ext <<EOF
16515 void nm_test_func(){}
16519 int main(){nm_test_var='a';nm_test_func();return(0);}
16522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16523 (eval $ac_compile) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; then
16527 # Now try to grab the symbols.
16529 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16530 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && test -s "$nlist"; then
16534 # Try sorting and uniquifying the output.
16535 if sort "$nlist" | uniq > "$nlist"T; then
16536 mv -f "$nlist"T "$nlist"
16541 # Make sure that we snagged all the symbols we need.
16542 if grep ' nm_test_var$' "$nlist" >/dev/null; then
16543 if grep ' nm_test_func$' "$nlist" >/dev/null; then
16544 cat <<EOF > conftest.$ac_ext
16550 # Now generate the symbol file.
16551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16553 cat <<EOF >> conftest.$ac_ext
16554 #if defined (__STDC__) && __STDC__
16555 # define lt_ptr_t void *
16557 # define lt_ptr_t char *
16561 /* The mapping between symbol names and symbols. */
16566 lt_preloaded_symbols[] =
16569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16570 cat <<\EOF >> conftest.$ac_ext
16578 # Now try linking the two files.
16579 mv conftest.$ac_objext conftstm.$ac_objext
16580 lt_save_LIBS="$LIBS"
16581 lt_save_CFLAGS="$CFLAGS"
16582 LIBS="conftstm.$ac_objext"
16583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && test -s conftest${ac_exeext}; then
16591 LIBS="$lt_save_LIBS"
16592 CFLAGS="$lt_save_CFLAGS"
16594 echo "cannot find nm_test_func in $nlist" >&5
16597 echo "cannot find nm_test_var in $nlist" >&5
16600 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16603 echo "$progname: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16606 rm -f conftest* conftst*
16608 # Do not use the global_symbol_pipe unless it works.
16609 if test "$pipe_works" = yes; then
16612 lt_cv_sys_global_symbol_pipe=
16618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16619 lt_cv_sys_global_symbol_to_cdecl=
16621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16622 echo "$as_me:$LINENO: result: failed" >&5
16623 echo "${ECHO_T}failed" >&6
16625 echo "$as_me:$LINENO: result: ok" >&5
16626 echo "${ECHO_T}ok" >&6
16629 echo "$as_me:$LINENO: checking for objdir" >&5
16630 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16631 if test "${lt_cv_objdir+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 rm -f .libs 2>/dev/null
16635 mkdir .libs 2>/dev/null
16636 if test -d .libs; then
16639 # MS-DOS does not allow filenames that begin with a dot.
16642 rmdir .libs 2>/dev/null
16644 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16645 echo "${ECHO_T}$lt_cv_objdir" >&6
16646 objdir=$lt_cv_objdir
16654 # AIX sometimes has problems with the GCC collect2 program. For some
16655 # reason, if we set the COLLECT_NAMES environment variable, the problems
16656 # vanish in a puff of smoke.
16657 if test "X${COLLECT_NAMES+set}" != Xset; then
16659 export COLLECT_NAMES
16664 # Sed substitution that helps us do robust quoting. It backslashifies
16665 # metacharacters that are still active within double-quoted strings.
16666 Xsed='sed -e 1s/^X//'
16667 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16669 # Same as above, but do not quote variable references.
16670 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16672 # Sed substitution to delay expansion of an escaped shell variable in a
16673 # double_quote_subst'ed string.
16674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16676 # Sed substitution to avoid accidental globbing in evaled expressions
16677 no_glob_subst='s/\*/\\\*/g'
16682 # Global variables:
16683 default_ofile=libtool
16684 can_build_shared=yes
16686 # All known linkers require a `.a' archive for static linking (except MSVC,
16687 # which needs '.lib').
16689 ltmain="$ac_aux_dir/ltmain.sh"
16690 ofile="$default_ofile"
16691 with_gnu_ld="$lt_cv_prog_gnu_ld"
16693 if test -n "$ac_tool_prefix"; then
16694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16695 set dummy ${ac_tool_prefix}ar; ac_word=$2
16696 echo "$as_me:$LINENO: checking for $ac_word" >&5
16697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16698 if test "${ac_cv_prog_AR+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 if test -n "$AR"; then
16702 ac_cv_prog_AR="$AR" # Let the user override the test.
16704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16705 for as_dir in $PATH
16708 test -z "$as_dir" && as_dir=.
16709 for ac_exec_ext in '' $ac_executable_extensions; do
16710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16711 ac_cv_prog_AR="${ac_tool_prefix}ar"
16712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16721 if test -n "$AR"; then
16722 echo "$as_me:$LINENO: result: $AR" >&5
16723 echo "${ECHO_T}$AR" >&6
16725 echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6
16730 if test -z "$ac_cv_prog_AR"; then
16732 # Extract the first word of "ar", so it can be a program name with args.
16733 set dummy ar; ac_word=$2
16734 echo "$as_me:$LINENO: checking for $ac_word" >&5
16735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 if test -n "$ac_ct_AR"; then
16740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_prog_ac_ct_AR="ar"
16750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16756 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16760 if test -n "$ac_ct_AR"; then
16761 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16762 echo "${ECHO_T}$ac_ct_AR" >&6
16764 echo "$as_me:$LINENO: result: no" >&5
16765 echo "${ECHO_T}no" >&6
16770 AR="$ac_cv_prog_AR"
16773 if test -n "$ac_tool_prefix"; then
16774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16776 echo "$as_me:$LINENO: checking for $ac_word" >&5
16777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16778 if test "${ac_cv_prog_RANLIB+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 if test -n "$RANLIB"; then
16782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16788 test -z "$as_dir" && as_dir=.
16789 for ac_exec_ext in '' $ac_executable_extensions; do
16790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16800 RANLIB=$ac_cv_prog_RANLIB
16801 if test -n "$RANLIB"; then
16802 echo "$as_me:$LINENO: result: $RANLIB" >&5
16803 echo "${ECHO_T}$RANLIB" >&6
16805 echo "$as_me:$LINENO: result: no" >&5
16806 echo "${ECHO_T}no" >&6
16810 if test -z "$ac_cv_prog_RANLIB"; then
16811 ac_ct_RANLIB=$RANLIB
16812 # Extract the first word of "ranlib", so it can be a program name with args.
16813 set dummy ranlib; ac_word=$2
16814 echo "$as_me:$LINENO: checking for $ac_word" >&5
16815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16816 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 if test -n "$ac_ct_RANLIB"; then
16820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16823 for as_dir in $PATH
16826 test -z "$as_dir" && as_dir=.
16827 for ac_exec_ext in '' $ac_executable_extensions; do
16828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16829 ac_cv_prog_ac_ct_RANLIB="ranlib"
16830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16840 if test -n "$ac_ct_RANLIB"; then
16841 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16842 echo "${ECHO_T}$ac_ct_RANLIB" >&6
16844 echo "$as_me:$LINENO: result: no" >&5
16845 echo "${ECHO_T}no" >&6
16848 RANLIB=$ac_ct_RANLIB
16850 RANLIB="$ac_cv_prog_RANLIB"
16853 if test -n "$ac_tool_prefix"; then
16854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16855 set dummy ${ac_tool_prefix}strip; ac_word=$2
16856 echo "$as_me:$LINENO: checking for $ac_word" >&5
16857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16858 if test "${ac_cv_prog_STRIP+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 if test -n "$STRIP"; then
16862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16865 for as_dir in $PATH
16868 test -z "$as_dir" && as_dir=.
16869 for ac_exec_ext in '' $ac_executable_extensions; do
16870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16880 STRIP=$ac_cv_prog_STRIP
16881 if test -n "$STRIP"; then
16882 echo "$as_me:$LINENO: result: $STRIP" >&5
16883 echo "${ECHO_T}$STRIP" >&6
16885 echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6
16890 if test -z "$ac_cv_prog_STRIP"; then
16892 # Extract the first word of "strip", so it can be a program name with args.
16893 set dummy strip; ac_word=$2
16894 echo "$as_me:$LINENO: checking for $ac_word" >&5
16895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 if test -n "$ac_ct_STRIP"; then
16900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16903 for as_dir in $PATH
16906 test -z "$as_dir" && as_dir=.
16907 for ac_exec_ext in '' $ac_executable_extensions; do
16908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16909 ac_cv_prog_ac_ct_STRIP="strip"
16910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16920 if test -n "$ac_ct_STRIP"; then
16921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16922 echo "${ECHO_T}$ac_ct_STRIP" >&6
16924 echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6
16930 STRIP="$ac_cv_prog_STRIP"
16935 old_CFLAGS="$CFLAGS"
16937 # Set sane defaults for various variables
16938 test -z "$AR" && AR=ar
16939 test -z "$AR_FLAGS" && AR_FLAGS=cru
16940 test -z "$AS" && AS=as
16941 test -z "$CC" && CC=cc
16942 test -z "$LTCC" && LTCC=$CC
16943 test -z "$DLLTOOL" && DLLTOOL=dlltool
16944 test -z "$LD" && LD=ld
16945 test -z "$LN_S" && LN_S="ln -s"
16946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16947 test -z "$NM" && NM=nm
16948 test -z "$SED" && SED=sed
16949 test -z "$OBJDUMP" && OBJDUMP=objdump
16950 test -z "$RANLIB" && RANLIB=:
16951 test -z "$STRIP" && STRIP=:
16952 test -z "$ac_objext" && ac_objext=o
16954 # Determine commands to create old-style static archives.
16955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16956 old_postinstall_cmds='chmod 644 $oldlib'
16957 old_postuninstall_cmds=
16959 if test -n "$RANLIB"; then
16962 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16965 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16971 for cc_temp in $compiler""; do
16973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16982 # Only perform the check for file, if the check method requires it
16983 case $deplibs_check_method in
16985 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16986 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16987 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16988 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16996 lt_save_MAGIC_CMD="$MAGIC_CMD"
16997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16999 for ac_dir in $ac_dummy; do
17001 test -z "$ac_dir" && ac_dir=.
17002 if test -f $ac_dir/${ac_tool_prefix}file; then
17003 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17004 if test -n "$file_magic_test_file"; then
17005 case $deplibs_check_method in
17007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17010 $EGREP "$file_magic_regex" > /dev/null; then
17015 *** Warning: the command libtool uses to detect shared libraries,
17016 *** $file_magic_cmd, produces output that libtool cannot recognize.
17017 *** The result is that libtool may fail to recognize shared libraries
17018 *** as such. This will affect the creation of libtool libraries that
17019 *** depend on shared libraries, but programs linked with such libtool
17020 *** libraries will work regardless of this problem. Nevertheless, you
17021 *** may want to report the problem to your system manager and/or to
17022 *** bug-libtool@gnu.org
17032 MAGIC_CMD="$lt_save_MAGIC_CMD"
17037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17038 if test -n "$MAGIC_CMD"; then
17039 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17040 echo "${ECHO_T}$MAGIC_CMD" >&6
17042 echo "$as_me:$LINENO: result: no" >&5
17043 echo "${ECHO_T}no" >&6
17046 if test -z "$lt_cv_path_MAGIC_CMD"; then
17047 if test -n "$ac_tool_prefix"; then
17048 echo "$as_me:$LINENO: checking for file" >&5
17049 echo $ECHO_N "checking for file... $ECHO_C" >&6
17050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17058 lt_save_MAGIC_CMD="$MAGIC_CMD"
17059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17061 for ac_dir in $ac_dummy; do
17063 test -z "$ac_dir" && ac_dir=.
17064 if test -f $ac_dir/file; then
17065 lt_cv_path_MAGIC_CMD="$ac_dir/file"
17066 if test -n "$file_magic_test_file"; then
17067 case $deplibs_check_method in
17069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17072 $EGREP "$file_magic_regex" > /dev/null; then
17077 *** Warning: the command libtool uses to detect shared libraries,
17078 *** $file_magic_cmd, produces output that libtool cannot recognize.
17079 *** The result is that libtool may fail to recognize shared libraries
17080 *** as such. This will affect the creation of libtool libraries that
17081 *** depend on shared libraries, but programs linked with such libtool
17082 *** libraries will work regardless of this problem. Nevertheless, you
17083 *** may want to report the problem to your system manager and/or to
17084 *** bug-libtool@gnu.org
17094 MAGIC_CMD="$lt_save_MAGIC_CMD"
17099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17100 if test -n "$MAGIC_CMD"; then
17101 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17102 echo "${ECHO_T}$MAGIC_CMD" >&6
17104 echo "$as_me:$LINENO: result: no" >&5
17105 echo "${ECHO_T}no" >&6
17118 enable_win32_dll=no
17120 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17121 if test "${enable_libtool_lock+set}" = set; then
17122 enableval="$enable_libtool_lock"
17125 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17128 # Check whether --with-pic or --without-pic was given.
17129 if test "${with_pic+set}" = set; then
17130 withval="$with_pic"
17131 pic_mode="$withval"
17135 test -z "$pic_mode" && pic_mode=default
17137 # Use C for the default configuration in the libtool script
17141 ac_cpp='$CPP $CPPFLAGS'
17142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17147 # Source file extension for C test sources.
17150 # Object file extension for compiled C test sources.
17154 # Code to be used in simple compile tests
17155 lt_simple_compile_test_code="int some_variable = 0;\n"
17157 # Code to be used in simple link tests
17158 lt_simple_link_test_code='int main(){return(0);}\n'
17161 # If no C compiler was specified, use CC.
17164 # Allow CC to be a program name with arguments.
17168 # save warnings/boilerplate of simple test code
17169 ac_outfile=conftest.$ac_objext
17170 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17172 _lt_compiler_boilerplate=`cat conftest.err`
17175 ac_outfile=conftest.$ac_objext
17176 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17178 _lt_linker_boilerplate=`cat conftest.err`
17183 # Check for any special shared library compilation flags.
17186 if test "$GCC" = no; then
17189 lt_prog_cc_shlib='-belf'
17193 if test -n "$lt_prog_cc_shlib"; then
17194 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17195 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17196 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
17198 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17199 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17200 lt_cv_prog_cc_can_build_shared=no
17206 # Check to make sure the static flag actually works.
17208 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17209 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17210 if test "${lt_prog_compiler_static_works+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 lt_prog_compiler_static_works=no
17214 save_LDFLAGS="$LDFLAGS"
17215 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17216 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218 # The linker can only warn and ignore the option if not recognized
17219 # So say no if there are warnings
17220 if test -s conftest.err; then
17221 # Append any errors to the config.log.
17222 cat conftest.err 1>&5
17223 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
17224 $SED '/^$/d' conftest.err >conftest.er2
17225 if diff conftest.exp conftest.er2 >/dev/null; then
17226 lt_prog_compiler_static_works=yes
17229 lt_prog_compiler_static_works=yes
17233 LDFLAGS="$save_LDFLAGS"
17236 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17237 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17239 if test x"$lt_prog_compiler_static_works" = xyes; then
17242 lt_prog_compiler_static=
17248 ## There is no encapsulation within the following macros, do not change
17249 ## the running order or otherwise move them around unless you know exactly
17250 ## what you are doing...
17252 lt_prog_compiler_no_builtin_flag=
17254 if test "$GCC" = yes; then
17255 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17258 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17259 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17260 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 lt_cv_prog_compiler_rtti_exceptions=no
17264 ac_outfile=conftest.$ac_objext
17265 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17266 lt_compiler_flag="-fno-rtti -fno-exceptions"
17267 # Insert the option either (1) after the last *FLAGS variable, or
17268 # (2) before a word containing "conftest.", or (3) at the end.
17269 # Note that $ac_compile itself does not contain backslashes and begins
17270 # with a dollar sign (not a hyphen), so the echo should work correctly.
17271 # The option is referenced via a variable to avoid confusing sed.
17272 lt_compile=`echo "$ac_compile" | $SED \
17273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17275 -e 's:$: $lt_compiler_flag:'`
17276 (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
17277 (eval "$lt_compile" 2>conftest.err)
17279 cat conftest.err >&5
17280 echo "$as_me:17280: \$? = $ac_status" >&5
17281 if (exit $ac_status) && test -s "$ac_outfile"; then
17282 # The compiler can only warn and ignore the option if not recognized
17283 # So say no if there are warnings other than the usual output.
17284 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17285 $SED '/^$/d' conftest.err >conftest.er2
17286 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17287 lt_cv_prog_compiler_rtti_exceptions=yes
17293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17294 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17296 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17297 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17304 lt_prog_compiler_wl=
17305 lt_prog_compiler_pic=
17306 lt_prog_compiler_static=
17308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17311 if test "$GCC" = yes; then
17312 lt_prog_compiler_wl='-Wl,'
17313 lt_prog_compiler_static='-static'
17317 # All AIX code is PIC.
17318 if test "$host_cpu" = ia64; then
17319 # AIX 5 now supports IA64 processor
17320 lt_prog_compiler_static='-Bstatic'
17325 # FIXME: we need at least 68020 code to build shared libraries, but
17326 # adding the `-m68020' flag to GCC prevents building anything better,
17328 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17331 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17332 # PIC is the default for these OSes.
17335 mingw* | pw32* | os2*)
17336 # This hack is so that the source file can tell whether it is being
17337 # built for inclusion in a dll (and should export symbols for example).
17338 lt_prog_compiler_pic='-DDLL_EXPORT'
17341 darwin* | rhapsody*)
17342 # PIC is the default on this platform
17343 # Common symbols not allowed in MH_DYLIB files
17344 lt_prog_compiler_pic='-fno-common'
17348 # Just because we use GCC doesn't mean we suddenly get shared libraries
17349 # on systems that don't support them.
17350 lt_prog_compiler_can_build_shared=no
17355 if test -d /usr/nec; then
17356 lt_prog_compiler_pic=-Kconform_pic
17361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17362 # not for PA HP-UX.
17368 lt_prog_compiler_pic='-fPIC'
17374 lt_prog_compiler_pic='-fPIC'
17378 # PORTME Check for flag to pass linker flags through the system compiler.
17381 lt_prog_compiler_wl='-Wl,'
17382 if test "$host_cpu" = ia64; then
17383 # AIX 5 now supports IA64 processor
17384 lt_prog_compiler_static='-Bstatic'
17386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17390 # PIC is the default on this platform
17391 # Common symbols not allowed in MH_DYLIB files
17392 case $cc_basename in
17394 lt_prog_compiler_pic='-qnocommon'
17395 lt_prog_compiler_wl='-Wl,'
17400 mingw* | pw32* | os2*)
17401 # This hack is so that the source file can tell whether it is being
17402 # built for inclusion in a dll (and should export symbols for example).
17403 lt_prog_compiler_pic='-DDLL_EXPORT'
17406 hpux9* | hpux10* | hpux11*)
17407 lt_prog_compiler_wl='-Wl,'
17408 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17409 # not for PA HP-UX.
17415 lt_prog_compiler_pic='+Z'
17418 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17419 lt_prog_compiler_static='${wl}-a ${wl}archive'
17422 irix5* | irix6* | nonstopux*)
17423 lt_prog_compiler_wl='-Wl,'
17424 # PIC (with -KPIC) is the default.
17425 lt_prog_compiler_static='-non_shared'
17429 lt_prog_compiler_pic='-KPIC'
17430 lt_prog_compiler_static='-Bstatic'
17434 case $cc_basename in
17436 lt_prog_compiler_wl='-Wl,'
17437 lt_prog_compiler_pic='-KPIC'
17438 lt_prog_compiler_static='-static'
17440 pgcc* | pgf77* | pgf90* | pgf95*)
17441 # Portland Group compilers (*not* the Pentium gcc compiler,
17442 # which looks to be a dead project)
17443 lt_prog_compiler_wl='-Wl,'
17444 lt_prog_compiler_pic='-fpic'
17445 lt_prog_compiler_static='-Bstatic'
17448 lt_prog_compiler_wl='-Wl,'
17449 # All Alpha code is PIC.
17450 lt_prog_compiler_static='-non_shared'
17455 osf3* | osf4* | osf5*)
17456 lt_prog_compiler_wl='-Wl,'
17457 # All OSF/1 code is PIC.
17458 lt_prog_compiler_static='-non_shared'
17462 lt_prog_compiler_pic='-Kpic'
17463 lt_prog_compiler_static='-dn'
17467 lt_prog_compiler_pic='-KPIC'
17468 lt_prog_compiler_static='-Bstatic'
17469 case $cc_basename in
17470 f77* | f90* | f95*)
17471 lt_prog_compiler_wl='-Qoption ld ';;
17473 lt_prog_compiler_wl='-Wl,';;
17478 lt_prog_compiler_wl='-Qoption ld '
17479 lt_prog_compiler_pic='-PIC'
17480 lt_prog_compiler_static='-Bstatic'
17483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17484 lt_prog_compiler_wl='-Wl,'
17485 lt_prog_compiler_pic='-KPIC'
17486 lt_prog_compiler_static='-Bstatic'
17490 if test -d /usr/nec ;then
17491 lt_prog_compiler_pic='-Kconform_pic'
17492 lt_prog_compiler_static='-Bstatic'
17497 lt_prog_compiler_wl='-Wl,'
17498 lt_prog_compiler_can_build_shared=no
17502 lt_prog_compiler_pic='-pic'
17503 lt_prog_compiler_static='-Bstatic'
17507 lt_prog_compiler_can_build_shared=no
17512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17513 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17516 # Check to make sure the PIC flag actually works.
17518 if test -n "$lt_prog_compiler_pic"; then
17520 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17521 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17522 if test "${lt_prog_compiler_pic_works+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 lt_prog_compiler_pic_works=no
17526 ac_outfile=conftest.$ac_objext
17527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17528 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17529 # Insert the option either (1) after the last *FLAGS variable, or
17530 # (2) before a word containing "conftest.", or (3) at the end.
17531 # Note that $ac_compile itself does not contain backslashes and begins
17532 # with a dollar sign (not a hyphen), so the echo should work correctly.
17533 # The option is referenced via a variable to avoid confusing sed.
17534 lt_compile=`echo "$ac_compile" | $SED \
17535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17537 -e 's:$: $lt_compiler_flag:'`
17538 (eval echo "\"\$as_me:17538: $lt_compile\"" >&5)
17539 (eval "$lt_compile" 2>conftest.err)
17541 cat conftest.err >&5
17542 echo "$as_me:17542: \$? = $ac_status" >&5
17543 if (exit $ac_status) && test -s "$ac_outfile"; then
17544 # The compiler can only warn and ignore the option if not recognized
17545 # So say no if there are warnings other than the usual output.
17546 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17547 $SED '/^$/d' conftest.err >conftest.er2
17548 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17549 lt_prog_compiler_pic_works=yes
17555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17556 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17558 if test x"$lt_prog_compiler_pic_works" = xyes; then
17559 case $lt_prog_compiler_pic in
17561 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17564 lt_prog_compiler_pic=
17565 lt_prog_compiler_can_build_shared=no
17570 # For platforms which do not support PIC, -DPIC is meaningless:
17572 lt_prog_compiler_pic=
17575 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17579 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17581 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 lt_cv_prog_compiler_c_o=no
17585 $rm -r conftest 2>/dev/null
17589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17591 lt_compiler_flag="-o out/conftest2.$ac_objext"
17592 # Insert the option either (1) after the last *FLAGS variable, or
17593 # (2) before a word containing "conftest.", or (3) at the end.
17594 # Note that $ac_compile itself does not contain backslashes and begins
17595 # with a dollar sign (not a hyphen), so the echo should work correctly.
17596 lt_compile=`echo "$ac_compile" | $SED \
17597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17599 -e 's:$: $lt_compiler_flag:'`
17600 (eval echo "\"\$as_me:17600: $lt_compile\"" >&5)
17601 (eval "$lt_compile" 2>out/conftest.err)
17603 cat out/conftest.err >&5
17604 echo "$as_me:17604: \$? = $ac_status" >&5
17605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17607 # The compiler can only warn and ignore the option if not recognized
17608 # So say no if there are warnings
17609 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17610 $SED '/^$/d' out/conftest.err >out/conftest.er2
17611 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17612 lt_cv_prog_compiler_c_o=yes
17617 # SGI C++ compiler will create directory out/ii_files/ for
17618 # template instantiation
17619 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17620 $rm out/* && rmdir out
17626 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17627 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17630 hard_links="nottested"
17631 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17632 # do not overwrite the value of need_locks provided by the user
17633 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17634 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17639 ln conftest.a conftest.b 2>&5 || hard_links=no
17640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17641 echo "$as_me:$LINENO: result: $hard_links" >&5
17642 echo "${ECHO_T}$hard_links" >&6
17643 if test "$hard_links" = no; then
17644 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17645 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17652 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17653 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17656 allow_undefined_flag=
17657 enable_shared_with_static_runtimes=no
17659 archive_expsym_cmds=
17660 old_archive_From_new_cmds=
17661 old_archive_from_expsyms_cmds=
17662 export_dynamic_flag_spec=
17663 whole_archive_flag_spec=
17664 thread_safe_flag_spec=
17665 hardcode_libdir_flag_spec=
17666 hardcode_libdir_flag_spec_ld=
17667 hardcode_libdir_separator=
17669 hardcode_minus_L=no
17670 hardcode_shlibpath_var=unsupported
17671 link_all_deplibs=unknown
17672 hardcode_automatic=no
17674 module_expsym_cmds=
17675 always_export_symbols=no
17676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17677 # include_expsyms should be a list of space-separated symbols to be *always*
17678 # included in the symbol list
17680 # exclude_expsyms can be an extended regexp of symbols to exclude
17681 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17682 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17683 # as well as any symbol that contains `d'.
17684 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17685 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17686 # platforms (ab)use it in PIC code, but their linkers get confused if
17687 # the symbol is explicitly referenced. Since portable code cannot
17688 # rely on this symbol name, it's probably fine to never include it in
17689 # preloaded symbol tables.
17690 extract_expsyms_cmds=
17691 # Just being paranoid about ensuring that cc_basename is set.
17692 for cc_temp in $compiler""; do
17694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17703 cygwin* | mingw* | pw32*)
17704 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17705 # When not using gcc, we currently assume that we are using
17706 # Microsoft Visual C++.
17707 if test "$GCC" != yes; then
17717 if test "$with_gnu_ld" = yes; then
17718 # If archive_cmds runs LD, not CC, wlarc should be empty
17721 # Set some defaults for GNU ld with shared library support. These
17722 # are reset later if shared libraries are not supported. Putting them
17723 # here allows them to be overridden if necessary.
17724 runpath_var=LD_RUN_PATH
17725 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17726 export_dynamic_flag_spec='${wl}--export-dynamic'
17727 # ancient GNU ld didn't support --whole-archive et. al.
17728 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17731 whole_archive_flag_spec=
17733 supports_anon_versioning=no
17734 case `$LD -v 2>/dev/null` in
17735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17738 *\ 2.11.*) ;; # other 2.11 versions
17739 *) supports_anon_versioning=yes ;;
17742 # See if GNU ld supports shared libraries.
17744 aix3* | aix4* | aix5*)
17745 # On AIX/PPC, the GNU linker is very broken
17746 if test "$host_cpu" != ia64; then
17750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17751 *** to be unable to reliably create shared libraries on AIX.
17752 *** Therefore, libtool is disabling shared libraries support. If you
17753 *** really care for shared libraries, you may want to modify your PATH
17754 *** so that a non-GNU linker is found, and then restart.
17761 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)'
17762 hardcode_libdir_flag_spec='-L$libdir'
17763 hardcode_minus_L=yes
17765 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17766 # that the semantics of dynamic libraries on AmigaOS, at least up
17767 # to version 4, is to share data among multiple programs linked
17768 # with the same dynamic library. Since this doesn't match the
17769 # behavior of shared libraries on other platforms, we can't use
17775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17776 allow_undefined_flag=unsupported
17777 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17778 # support --undefined. This deserves some investigation. FIXME
17779 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17785 cygwin* | mingw* | pw32*)
17786 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17787 # as there is no search path for DLLs.
17788 hardcode_libdir_flag_spec='-L$libdir'
17789 allow_undefined_flag=unsupported
17790 always_export_symbols=no
17791 enable_shared_with_static_runtimes=yes
17792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17794 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17796 # If the export-symbols file already is a .def file (1st line
17797 # is EXPORTS), use it as is; otherwise, prepend...
17798 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17799 cp $export_symbols $output_objdir/$soname.def;
17801 echo EXPORTS > $output_objdir/$soname.def;
17802 cat $export_symbols >> $output_objdir/$soname.def;
17804 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17813 case $cc_basename,$host_cpu in
17814 pgcc*) # Portland Group C compiler
17815 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'
17816 tmp_addflag=' $pic_flag'
17818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17819 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'
17820 tmp_addflag=' $pic_flag -Mnomain' ;;
17821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17822 tmp_addflag=' -i_dynamic' ;;
17823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17824 tmp_addflag=' -i_dynamic -nofor_main' ;;
17825 ifc* | ifort*) # Intel Fortran compiler
17826 tmp_addflag=' -nofor_main' ;;
17828 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17830 if test $supports_anon_versioning = yes; then
17831 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17833 $echo "local: *; };" >> $output_objdir/$libname.ver~
17834 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17843 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17852 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17857 *** create shared libraries on Solaris systems. Therefore, libtool
17858 *** is disabling shared libraries support. We urge you to upgrade GNU
17859 *** binutils to release 2.9.1 or newer. Another option is to modify
17860 *** your PATH or compiler configuration so that the native linker is
17861 *** used, and then restart.
17864 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17875 hardcode_direct=yes
17876 hardcode_shlibpath_var=no
17880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17889 if test "$ld_shlibs" = no; then
17891 hardcode_libdir_flag_spec=
17892 export_dynamic_flag_spec=
17893 whole_archive_flag_spec=
17896 # PORTME fill in a description of your system's linker (not GNU ld)
17899 allow_undefined_flag=unsupported
17900 always_export_symbols=yes
17901 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'
17902 # Note: this linker hardcodes the directories in LIBPATH if there
17903 # are no directories specified by -L.
17904 hardcode_minus_L=yes
17905 if test "$GCC" = yes && test -z "$link_static_flag"; then
17906 # Neither direct hardcoding nor static linking is supported with a
17908 hardcode_direct=unsupported
17913 if test "$host_cpu" = ia64; then
17914 # On IA64, the linker does run time linking by default, so we don't
17915 # have to do anything special.
17916 aix_use_runtimelinking=no
17917 exp_sym_flag='-Bexport'
17920 # If we're using GNU nm, then we don't want the "-C" option.
17921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17922 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17923 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'
17925 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'
17927 aix_use_runtimelinking=no
17929 # Test if we are trying to use run time linking or normal
17930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17931 # need to do runtime linking.
17932 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17933 for ld_flag in $LDFLAGS; do
17934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17935 aix_use_runtimelinking=yes
17941 exp_sym_flag='-bexport'
17942 no_entry_flag='-bnoentry'
17945 # When large executables or shared objects are built, AIX ld can
17946 # have problems creating the table of contents. If linking a library
17947 # or program results in "error TOC overflow" add -mminimal-toc to
17948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17952 hardcode_direct=yes
17953 hardcode_libdir_separator=':'
17954 link_all_deplibs=yes
17956 if test "$GCC" = yes; then
17957 case $host_os in aix4.[012]|aix4.[012].*)
17958 # We only want to do this on AIX 4.2 and lower, the check
17959 # below for broken collect2 doesn't work under 4.3+
17960 collect2name=`${CC} -print-prog-name=collect2`
17961 if test -f "$collect2name" && \
17962 strings "$collect2name" | grep resolve_lib_name >/dev/null
17964 # We have reworked collect2
17965 hardcode_direct=yes
17967 # We have old collect2
17968 hardcode_direct=unsupported
17969 # It fails to find uninstalled libraries when the uninstalled
17970 # path is not listed in the libpath. Setting hardcode_minus_L
17971 # to unsupported forces relinking
17972 hardcode_minus_L=yes
17973 hardcode_libdir_flag_spec='-L$libdir'
17974 hardcode_libdir_separator=
17977 shared_flag='-shared'
17978 if test "$aix_use_runtimelinking" = yes; then
17979 shared_flag="$shared_flag "'${wl}-G'
17983 if test "$host_cpu" = ia64; then
17984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17985 # chokes on -Wl,-G. The following line is correct:
17988 if test "$aix_use_runtimelinking" = yes; then
17989 shared_flag='${wl}-G'
17991 shared_flag='${wl}-bM:SRE'
17996 # It seems that -bexpall does not export symbols beginning with
17997 # underscore (_), so it is better to generate a list of symbols to export.
17998 always_export_symbols=yes
17999 if test "$aix_use_runtimelinking" = yes; then
18000 # Warning - without using the other runtime loading flags (-brtl),
18001 # -berok will link without error, but may produce a broken library.
18002 allow_undefined_flag='-berok'
18003 # Determine the default libpath from the value encoded in an empty executable.
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18023 grep -v '^ *+' conftest.er1 >conftest.err
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18044 # Check for a 64-bit object if we didn't find anything.
18045 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; }
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18052 rm -f conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18057 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"
18059 if test "$host_cpu" = ia64; then
18060 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18061 allow_undefined_flag="-z nodefs"
18062 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"
18064 # Determine the default libpath from the value encoded in an empty executable.
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082 (eval $ac_link) 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18105 # Check for a 64-bit object if we didn't find anything.
18106 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; }
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18113 rm -f conftest.err conftest.$ac_objext \
18114 conftest$ac_exeext conftest.$ac_ext
18115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18117 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18118 # Warning - without using the other run time loading flags,
18119 # -berok will link without error, but may produce a broken library.
18120 no_undefined_flag=' ${wl}-bernotok'
18121 allow_undefined_flag=' ${wl}-berok'
18122 # -bexpall does not export symbols beginning with underscore (_)
18123 always_export_symbols=yes
18124 # Exported symbols can be pulled into shared objects from archives
18125 whole_archive_flag_spec=' '
18126 archive_cmds_need_lc=yes
18127 # This is similar to how AIX traditionally builds its shared libraries.
18128 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'
18134 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)'
18135 hardcode_libdir_flag_spec='-L$libdir'
18136 hardcode_minus_L=yes
18137 # see comment about different semantics on the GNU ld section
18142 export_dynamic_flag_spec=-rdynamic
18145 cygwin* | mingw* | pw32*)
18146 # When not using gcc, we currently assume that we are using
18147 # Microsoft Visual C++.
18148 # hardcode_libdir_flag_spec is actually meaningless, as there is
18149 # no search path for DLLs.
18150 hardcode_libdir_flag_spec=' '
18151 allow_undefined_flag=unsupported
18152 # Tell ltmain to make .lib files, not .a files.
18154 # Tell ltmain to make .dll files, not .so files.
18156 # FIXME: Setting linknames here is a bad hack.
18157 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18158 # The linker will automatically build a .lib file if we build a DLL.
18159 old_archive_From_new_cmds='true'
18160 # FIXME: Should let the user specify the lib program.
18161 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18162 fix_srcfile_path='`cygpath -w "$srcfile"`'
18163 enable_shared_with_static_runtimes=yes
18166 darwin* | rhapsody*)
18168 rhapsody* | darwin1.[012])
18169 allow_undefined_flag='${wl}-undefined ${wl}suppress'
18172 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18173 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18175 case ${MACOSX_DEPLOYMENT_TARGET} in
18177 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18180 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18186 archive_cmds_need_lc=no
18188 hardcode_automatic=yes
18189 hardcode_shlibpath_var=unsupported
18190 whole_archive_flag_spec=''
18191 link_all_deplibs=yes
18192 if test "$GCC" = yes ; then
18193 output_verbose_link_cmd='echo'
18194 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18195 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18197 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}'
18198 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}'
18200 case $cc_basename in
18202 output_verbose_link_cmd='echo'
18203 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18204 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18206 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}'
18207 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}'
18217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218 hardcode_libdir_flag_spec='-L$libdir'
18219 hardcode_shlibpath_var=no
18226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18227 # support. Future versions do this automatically, but an explicit c++rt0.o
18228 # does not break anything, and helps significantly (at the cost of a little
18231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18232 hardcode_libdir_flag_spec='-R$libdir'
18233 hardcode_direct=yes
18234 hardcode_shlibpath_var=no
18237 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18240 hardcode_direct=yes
18241 hardcode_minus_L=yes
18242 hardcode_shlibpath_var=no
18245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18246 freebsd* | kfreebsd*-gnu | dragonfly*)
18247 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18248 hardcode_libdir_flag_spec='-R$libdir'
18249 hardcode_direct=yes
18250 hardcode_shlibpath_var=no
18254 if test "$GCC" = yes; then
18255 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'
18257 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'
18259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18260 hardcode_libdir_separator=:
18261 hardcode_direct=yes
18263 # hardcode_minus_L: Not really in the search PATH,
18264 # but as the default location of the library.
18265 hardcode_minus_L=yes
18266 export_dynamic_flag_spec='${wl}-E'
18270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18282 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18289 if test "$with_gnu_ld" = no; then
18292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18293 hardcode_libdir_flag_spec_ld='+b $libdir'
18294 hardcode_libdir_separator=:
18296 hardcode_shlibpath_var=no
18299 hardcode_libdir_flag_spec='-L$libdir'
18301 hardcode_shlibpath_var=no
18303 # hardcode_minus_L: Not really in the search PATH,
18304 # but as the default location of the library.
18305 hardcode_minus_L=yes
18308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18309 hardcode_libdir_separator=:
18310 hardcode_direct=yes
18311 export_dynamic_flag_spec='${wl}-E'
18313 # hardcode_minus_L: Not really in the search PATH,
18314 # but as the default location of the library.
18315 hardcode_minus_L=yes
18321 irix5* | irix6* | nonstopux*)
18322 if test "$GCC" = yes; then
18323 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'
18325 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'
18326 hardcode_libdir_flag_spec_ld='-rpath $libdir'
18328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18329 hardcode_libdir_separator=:
18330 link_all_deplibs=yes
18334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18337 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18339 hardcode_libdir_flag_spec='-R$libdir'
18340 hardcode_direct=yes
18341 hardcode_shlibpath_var=no
18345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346 hardcode_direct=yes
18347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18348 hardcode_libdir_separator=:
18349 hardcode_shlibpath_var=no
18353 hardcode_direct=yes
18354 hardcode_shlibpath_var=no
18355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18357 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18359 export_dynamic_flag_spec='${wl}-E'
18362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18364 hardcode_libdir_flag_spec='-R$libdir'
18367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18375 hardcode_libdir_flag_spec='-L$libdir'
18376 hardcode_minus_L=yes
18377 allow_undefined_flag=unsupported
18378 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'
18379 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18383 if test "$GCC" = yes; then
18384 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18385 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'
18387 allow_undefined_flag=' -expect_unresolved \*'
18388 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'
18390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18391 hardcode_libdir_separator=:
18394 osf4* | osf5*) # as osf3* with the addition of -msym flag
18395 if test "$GCC" = yes; then
18396 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18397 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'
18398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18400 allow_undefined_flag=' -expect_unresolved \*'
18401 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'
18402 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18403 $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'
18405 # Both c and cxx compiler support -rpath directly
18406 hardcode_libdir_flag_spec='-rpath $libdir'
18408 hardcode_libdir_separator=:
18412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18413 hardcode_shlibpath_var=no
18414 export_dynamic_flag_spec='${wl}-Bexport'
18415 runpath_var=LD_RUN_PATH
18416 hardcode_runpath_var=yes
18420 no_undefined_flag=' -z text'
18421 if test "$GCC" = yes; then
18423 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18424 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18425 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18428 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18432 hardcode_libdir_flag_spec='-R$libdir'
18433 hardcode_shlibpath_var=no
18435 solaris2.[0-5] | solaris2.[0-5].*) ;;
18437 # The compiler driver will combine linker options so we
18438 # cannot just pass the convience library names through
18439 # without $wl, iff we do not link with $LD.
18440 # Luckily, gcc supports the same syntax we need for Sun Studio.
18441 # Supported since Solaris 2.6 (maybe 2.5.1?)
18444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18446 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' ;;
18449 link_all_deplibs=yes
18453 if test "x$host_vendor" = xsequent; then
18454 # Use $CC to link under sequent, because it throws in some extra .o
18455 # files that make .init and .fini sections work.
18456 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18458 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18460 hardcode_libdir_flag_spec='-L$libdir'
18461 hardcode_direct=yes
18462 hardcode_minus_L=yes
18463 hardcode_shlibpath_var=no
18467 case $host_vendor in
18469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18470 hardcode_direct=yes # is this really true???
18473 ## LD is ld it makes a PLAMLIB
18474 ## CC just makes a GrossModule.
18475 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18476 reload_cmds='$CC -r -o $output$reload_objs'
18480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18484 runpath_var='LD_RUN_PATH'
18485 hardcode_shlibpath_var=no
18489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18490 hardcode_shlibpath_var=no
18491 export_dynamic_flag_spec='-Bexport'
18495 if test -d /usr/nec; then
18496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497 hardcode_shlibpath_var=no
18498 runpath_var=LD_RUN_PATH
18499 hardcode_runpath_var=yes
18505 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18506 hardcode_direct=yes
18507 hardcode_minus_L=no
18508 hardcode_shlibpath_var=no
18509 hardcode_runpath_var=yes
18510 runpath_var=LD_RUN_PATH
18513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18514 no_undefined_flag='${wl}-z ${wl}text'
18515 if test "$GCC" = yes; then
18516 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18518 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18520 runpath_var='LD_RUN_PATH'
18521 hardcode_shlibpath_var=no
18525 no_undefined_flag=' -z text'
18526 # $CC -shared without GNU ld will not create a library from C++
18527 # object files and a static libstdc++, better avoid it by now
18528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18529 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18531 hardcode_libdir_flag_spec=
18532 hardcode_shlibpath_var=no
18533 runpath_var='LD_RUN_PATH'
18537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18538 hardcode_libdir_flag_spec='-L$libdir'
18539 hardcode_shlibpath_var=no
18548 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18549 echo "${ECHO_T}$ld_shlibs" >&6
18550 test "$ld_shlibs" = no && can_build_shared=no
18552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18553 if test "$GCC" = yes; then
18554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18558 # Do we need to explicitly link libc?
18560 case "x$archive_cmds_need_lc" in
18562 # Assume -lc should be added
18563 archive_cmds_need_lc=yes
18565 if test "$enable_shared" = yes && test "$GCC" = yes; then
18566 case $archive_cmds in
18568 # FIXME: we may have to deal with multi-command sequences.
18571 # Test whether the compiler implicitly links with -lc since on some
18572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18573 # to ld, don't add -lc before -lgcc.
18574 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } 2>conftest.err; then
18586 libobjs=conftest.$ac_objext
18588 wl=$lt_prog_compiler_wl
18594 lt_save_allow_undefined_flag=$allow_undefined_flag
18595 allow_undefined_flag=
18596 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18597 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }
18602 archive_cmds_need_lc=no
18604 archive_cmds_need_lc=yes
18606 allow_undefined_flag=$lt_save_allow_undefined_flag
18608 cat conftest.err 1>&5
18611 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18612 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18619 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18621 library_names_spec=
18622 libname_spec='lib$name'
18626 postuninstall_cmds=
18630 shlibpath_overrides_runpath=unknown
18632 dynamic_linker="$host_os ld.so"
18633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18634 if test "$GCC" = yes; then
18635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18637 # if the path contains ";" then we assume it to be the separator
18638 # otherwise default to the standard path separator (i.e. ":") - it is
18639 # assumed that no part of a normal pathname contains ";" but that should
18640 # okay in the real world where ";" in dirpaths is itself problematic.
18641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18648 need_lib_prefix=unknown
18649 hardcode_into_libs=no
18651 # when you set need_version to no, make sure it does not cause -set_version
18652 # flags to be left without arguments
18653 need_version=unknown
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18659 shlibpath_var=LIBPATH
18661 # AIX 3 has no versioning support, so we append a major version to the name.
18662 soname_spec='${libname}${release}${shared_ext}$major'
18669 hardcode_into_libs=yes
18670 if test "$host_cpu" = ia64; then
18671 # AIX 5 supports IA64
18672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18673 shlibpath_var=LD_LIBRARY_PATH
18675 # With GCC up to 2.95.x, collect2 would create an import file
18676 # for dependence libraries. The import file would start with
18677 # the line `#! .'. This would cause the generated library to
18678 # depend on `.', always an invalid library. This was fixed in
18679 # development snapshots of GCC prior to 3.0.
18681 aix4 | aix4.[01] | aix4.[01].*)
18682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18687 can_build_shared=no
18691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18692 # soname into executable. Probably we can add versioning support to
18693 # collect2, so additional links can be useful in future.
18694 if test "$aix_use_runtimelinking" = yes; then
18695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18696 # instead of lib<name>.a to let people know that these are not
18697 # typical AIX shared libraries.
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 # We preserve .a as extension for shared libraries through AIX4.2
18701 # and later when we are not doing run time linking.
18702 library_names_spec='${libname}${release}.a $libname.a'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LIBPATH
18710 library_names_spec='$libname.ixlibrary $libname.a'
18711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18712 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'
18716 library_names_spec='${libname}${shared_ext}'
18717 dynamic_linker="$host_os ld.so"
18718 shlibpath_var=LIBRARY_PATH
18724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec='${libname}${release}${shared_ext}$major'
18726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18730 # the default ld.so.conf also contains /usr/contrib/lib and
18731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18732 # libtool to hard-code these into programs
18735 cygwin* | mingw* | pw32*)
18736 version_type=windows
18741 case $GCC,$host_os in
18742 yes,cygwin* | yes,mingw* | yes,pw32*)
18743 library_names_spec='$libname.dll.a'
18744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18745 postinstall_cmds='base_file=`basename \${file}`~
18746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18747 dldir=$destdir/`dirname \$dlpath`~
18748 test -d \$dldir || mkdir -p \$dldir~
18749 $install_prog $dir/$dlname \$dldir/$dlname~
18750 chmod a+x \$dldir/$dlname'
18751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18752 dlpath=$dir/\$dldll~
18754 shlibpath_overrides_runpath=yes
18758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18763 # MinGW DLLs use traditional 'lib' prefix
18764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18767 # It is most probably a Windows format PATH printed by
18768 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18769 # path with ; separators, and with drive letters. We can handle the
18770 # drive letters (cygwin fileutils understands them), so leave them,
18771 # especially as we might pass files found there to a mingw objdump,
18772 # which wouldn't understand a cygwinified path. Ahh.
18773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18779 # pw32 DLLs use 'pw' prefix rather than 'lib'
18780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18789 dynamic_linker='Win32 ld.exe'
18790 # FIXME: first we should search . and the directory the executable is in
18794 darwin* | rhapsody*)
18795 dynamic_linker="$host_os dyld"
18796 version_type=darwin
18799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18800 soname_spec='${libname}${release}${major}$shared_ext'
18801 shlibpath_overrides_runpath=yes
18802 shlibpath_var=DYLD_LIBRARY_PATH
18803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18805 if test "$GCC" = yes; then
18806 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"`
18808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18831 soname_spec='${libname}${release}${shared_ext}$major'
18832 shlibpath_var=LD_LIBRARY_PATH
18833 shlibpath_overrides_runpath=no
18834 hardcode_into_libs=yes
18835 dynamic_linker='GNU ld.so'
18838 freebsd* | dragonfly*)
18839 # DragonFly does not have aout. When/if they implement a new
18840 # versioning mechanism, adjust this.
18841 if test -x /usr/bin/objformat; then
18842 objformat=`/usr/bin/objformat`
18845 freebsd[123]*) objformat=aout ;;
18846 *) objformat=elf ;;
18849 version_type=freebsd-$objformat
18850 case $version_type in
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18861 shlibpath_var=LD_LIBRARY_PATH
18864 shlibpath_overrides_runpath=yes
18866 freebsd3.[01]* | freebsdelf3.[01]*)
18867 shlibpath_overrides_runpath=yes
18868 hardcode_into_libs=yes
18871 shlibpath_overrides_runpath=no
18872 hardcode_into_libs=yes
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 hardcode_into_libs=yes
18887 hpux9* | hpux10* | hpux11*)
18888 # Give a soname corresponding to the major version so that dld.sl refuses to
18889 # link against other versions.
18896 hardcode_into_libs=yes
18897 dynamic_linker="$host_os dld.so"
18898 shlibpath_var=LD_LIBRARY_PATH
18899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901 soname_spec='${libname}${release}${shared_ext}$major'
18902 if test "X$HPUX_IA64_MODE" = X32; then
18903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18911 hardcode_into_libs=yes
18912 dynamic_linker="$host_os dld.sl"
18913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916 soname_spec='${libname}${release}${shared_ext}$major'
18917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18922 dynamic_linker="$host_os dld.sl"
18923 shlibpath_var=SHLIB_PATH
18924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926 soname_spec='${libname}${release}${shared_ext}$major'
18929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18930 postinstall_cmds='chmod 555 $lib'
18933 irix5* | irix6* | nonstopux*)
18935 nonstopux*) version_type=nonstopux ;;
18937 if test "$lt_cv_prog_gnu_ld" = yes; then
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18948 irix5* | nonstopux*)
18949 libsuff= shlibsuff=
18952 case $LD in # libtool.m4 will add one of these switches to LD
18953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18954 libsuff= shlibsuff= libmagic=32-bit;;
18955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18956 libsuff=32 shlibsuff=N32 libmagic=N32;;
18957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18959 *) libsuff= shlibsuff= libmagic=never-match;;
18963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18964 shlibpath_overrides_runpath=no
18965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18967 hardcode_into_libs=yes
18970 # No shared lib support for Linux oldld, aout, or coff.
18971 linux*oldld* | linux*aout* | linux*coff*)
18975 # This must be Linux ELF.
18980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18981 soname_spec='${libname}${release}${shared_ext}$major'
18982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18983 shlibpath_var=LD_LIBRARY_PATH
18984 shlibpath_overrides_runpath=no
18985 # This implies no fast_install, which is unacceptable.
18986 # Some rework will be needed to allow for fast_install
18987 # before this can be enabled.
18988 hardcode_into_libs=yes
18990 # Append ld.so.conf contents to the search path
18991 if test -f /etc/ld.so.conf; then
18992 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' ' '`
18993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18996 # We used to test for /lib/ld.so.1 and disable shared libraries on
18997 # powerpc, because MkLinux only supported shared libraries with the
18998 # GNU dynamic linker. Since this was broken with cross compilers,
18999 # most powerpc-linux boxes support dynamic linking these days and
19000 # people can always --disable-shared, the test was removed, and we
19001 # assume the GNU/Linux dynamic linker is in use.
19002 dynamic_linker='GNU/Linux ld.so'
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19010 soname_spec='${libname}${release}${shared_ext}$major'
19011 shlibpath_var=LD_LIBRARY_PATH
19012 shlibpath_overrides_runpath=no
19013 hardcode_into_libs=yes
19014 dynamic_linker='GNU ld.so'
19021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19024 dynamic_linker='NetBSD (a.out) ld.so'
19026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19027 soname_spec='${libname}${release}${shared_ext}$major'
19028 dynamic_linker='NetBSD ld.elf_so'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 shlibpath_overrides_runpath=yes
19032 hardcode_into_libs=yes
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038 shlibpath_var=LD_LIBRARY_PATH
19039 shlibpath_overrides_runpath=yes
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047 soname_spec='${libname}${release}${shared_ext}$major'
19048 shlibpath_var=LD_LIBRARY_PATH
19049 shlibpath_overrides_runpath=yes
19055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19057 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19058 *) need_version=no ;;
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19062 shlibpath_var=LD_LIBRARY_PATH
19063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19065 openbsd2.[89] | openbsd2.[89].*)
19066 shlibpath_overrides_runpath=no
19069 shlibpath_overrides_runpath=yes
19073 shlibpath_overrides_runpath=yes
19078 libname_spec='$name'
19081 library_names_spec='$libname${shared_ext} $libname.a'
19082 dynamic_linker='OS/2 ld.exe'
19083 shlibpath_var=LIBPATH
19086 osf3* | osf4* | osf5*)
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19099 soname_spec='${libname}${release}${shared_ext}$major'
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 shlibpath_var=LD_LIBRARY_PATH
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 shlibpath_var=LD_LIBRARY_PATH
19111 shlibpath_overrides_runpath=yes
19112 hardcode_into_libs=yes
19113 # ldd complains unless libraries are executable
19114 postinstall_cmds='chmod +x $lib'
19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19121 shlibpath_var=LD_LIBRARY_PATH
19122 shlibpath_overrides_runpath=yes
19123 if test "$with_gnu_ld" = yes; then
19129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19132 soname_spec='${libname}${release}${shared_ext}$major'
19133 shlibpath_var=LD_LIBRARY_PATH
19134 case $host_vendor in
19136 shlibpath_overrides_runpath=no
19138 export_dynamic_flag_spec='${wl}-Blargedynsym'
19139 runpath_var=LD_RUN_PATH
19147 shlibpath_overrides_runpath=no
19148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19154 if test -d /usr/nec ;then
19156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19157 soname_spec='$libname${shared_ext}.$major'
19158 shlibpath_var=LD_LIBRARY_PATH
19164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19165 soname_spec='${libname}${release}${shared_ext}$major'
19166 shlibpath_var=LD_LIBRARY_PATH
19173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19174 echo "${ECHO_T}$dynamic_linker" >&6
19175 test "$dynamic_linker" = no && can_build_shared=no
19177 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19180 if test -n "$hardcode_libdir_flag_spec" || \
19181 test -n "$runpath_var" || \
19182 test "X$hardcode_automatic" = "Xyes" ; then
19184 # We can hardcode non-existant directories.
19185 if test "$hardcode_direct" != no &&
19186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19187 # have to relink, otherwise we might link with an installed library
19188 # when we should be linking with a yet-to-be-installed one
19189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19190 test "$hardcode_minus_L" != no; then
19191 # Linking always hardcodes the temporary library directory.
19192 hardcode_action=relink
19194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19195 hardcode_action=immediate
19198 # We cannot hardcode anything, or else we can only hardcode existing
19200 hardcode_action=unsupported
19202 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19203 echo "${ECHO_T}$hardcode_action" >&6
19205 if test "$hardcode_action" = relink; then
19206 # Fast installation is not supported
19207 enable_fast_install=no
19208 elif test "$shlibpath_overrides_runpath" = yes ||
19209 test "$enable_shared" = no; then
19210 # Fast installation is not necessary
19211 enable_fast_install=needless
19216 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19221 echo "$as_me:$LINENO: result: yes" >&5
19222 echo "${ECHO_T}yes" >&6
19224 # FIXME - insert some real tests, host_os isn't really good enough
19227 if test -n "$STRIP" ; then
19228 striplib="$STRIP -x"
19229 echo "$as_me:$LINENO: result: yes" >&5
19230 echo "${ECHO_T}yes" >&6
19232 echo "$as_me:$LINENO: result: no" >&5
19233 echo "${ECHO_T}no" >&6
19237 echo "$as_me:$LINENO: result: no" >&5
19238 echo "${ECHO_T}no" >&6
19243 if test "x$enable_dlopen" != xyes; then
19244 enable_dlopen=unknown
19245 enable_dlopen_self=unknown
19246 enable_dlopen_self_static=unknown
19253 lt_cv_dlopen="load_add_on"
19255 lt_cv_dlopen_self=yes
19259 lt_cv_dlopen="LoadLibrary"
19264 lt_cv_dlopen="dlopen"
19269 # if libdl is installed we need to link against it
19270 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 ac_check_lib_save_LIBS=$LIBS
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 /* Override any gcc2 internal prototype to avoid an error. */
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>conftest.er1
19303 grep -v '^ *+' conftest.er1 >conftest.err
19305 cat conftest.err >&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 ac_cv_lib_dl_dlopen=yes
19323 echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ac_cv_lib_dl_dlopen=no
19328 rm -f conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19334 if test $ac_cv_lib_dl_dlopen = yes; then
19335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19338 lt_cv_dlopen="dyld"
19340 lt_cv_dlopen_self=yes
19347 echo "$as_me:$LINENO: checking for shl_load" >&5
19348 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19349 if test "${ac_cv_func_shl_load+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19360 #define shl_load innocuous_shl_load
19362 /* System header to define __stub macros and hopefully few prototypes,
19363 which can conflict with char shl_load (); below.
19364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 <limits.h> exists even on freestanding compilers. */
19368 # include <limits.h>
19370 # include <assert.h>
19375 /* Override any gcc2 internal prototype to avoid an error. */
19380 /* We use char because int might match the return type of a gcc2
19381 builtin and then its argument prototype would still apply. */
19383 /* The GNU C library defines this for functions which it implements
19384 to always fail with ENOSYS. Some functions are actually named
19385 something starting with __ and the normal name is an alias. */
19386 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19389 char (*f) () = shl_load;
19398 return f != shl_load;
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19405 (eval $ac_link) 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_cv_func_shl_load=yes
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_func_shl_load=no
19432 rm -f conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19435 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19436 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19437 if test $ac_cv_func_shl_load = yes; then
19438 lt_cv_dlopen="shl_load"
19440 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19441 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19442 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 ac_check_lib_save_LIBS=$LIBS
19447 cat >conftest.$ac_ext <<_ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19454 /* Override any gcc2 internal prototype to avoid an error. */
19458 /* We use char because int might match the return type of a gcc2
19459 builtin and then its argument prototype would still apply. */
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471 (eval $ac_link) 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest$ac_exeext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_lib_dld_shl_load=yes
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19496 ac_cv_lib_dld_shl_load=no
19498 rm -f conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19503 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19504 if test $ac_cv_lib_dld_shl_load = yes; then
19505 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19507 echo "$as_me:$LINENO: checking for dlopen" >&5
19508 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19509 if test "${ac_cv_func_dlopen+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19520 #define dlopen innocuous_dlopen
19522 /* System header to define __stub macros and hopefully few prototypes,
19523 which can conflict with char dlopen (); below.
19524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19525 <limits.h> exists even on freestanding compilers. */
19528 # include <limits.h>
19530 # include <assert.h>
19535 /* Override any gcc2 internal prototype to avoid an error. */
19540 /* We use char because int might match the return type of a gcc2
19541 builtin and then its argument prototype would still apply. */
19543 /* The GNU C library defines this for functions which it implements
19544 to always fail with ENOSYS. Some functions are actually named
19545 something starting with __ and the normal name is an alias. */
19546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19549 char (*f) () = dlopen;
19558 return f != dlopen;
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565 (eval $ac_link) 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest$ac_exeext'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 ac_cv_func_dlopen=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_func_dlopen=no
19592 rm -f conftest.err conftest.$ac_objext \
19593 conftest$ac_exeext conftest.$ac_ext
19595 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19596 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19597 if test $ac_cv_func_dlopen = yes; then
19598 lt_cv_dlopen="dlopen"
19600 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19601 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19602 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_check_lib_save_LIBS=$LIBS
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any gcc2 internal prototype to avoid an error. */
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_dl_dlopen=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_lib_dl_dlopen=no
19658 rm -f conftest.err conftest.$ac_objext \
19659 conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19663 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19664 if test $ac_cv_lib_dl_dlopen = yes; then
19665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19667 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19668 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19669 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-lsvld $LIBS"
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19681 /* Override any gcc2 internal prototype to avoid an error. */
19685 /* We use char because int might match the return type of a gcc2
19686 builtin and then its argument prototype would still apply. */
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698 (eval $ac_link) 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_c_werror_flag"
19706 || test ! -s conftest.err'
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest$ac_exeext'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_cv_lib_svld_dlopen=yes
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19723 ac_cv_lib_svld_dlopen=no
19725 rm -f conftest.err conftest.$ac_objext \
19726 conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19729 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19730 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19731 if test $ac_cv_lib_svld_dlopen = yes; then
19732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19734 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19735 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_check_lib_save_LIBS=$LIBS
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19748 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1 >conftest.err
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_c_werror_flag"
19773 || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest$ac_exeext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_lib_dld_dld_link=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_lib_dld_dld_link=no
19792 rm -f conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19796 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19797 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19798 if test $ac_cv_lib_dld_dld_link = yes; then
19799 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19820 if test "x$lt_cv_dlopen" != xno; then
19826 case $lt_cv_dlopen in
19828 save_CPPFLAGS="$CPPFLAGS"
19829 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19831 save_LDFLAGS="$LDFLAGS"
19832 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19835 LIBS="$lt_cv_dlopen_libs $LIBS"
19837 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19838 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19839 if test "${lt_cv_dlopen_self+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 if test "$cross_compiling" = yes; then :
19843 lt_cv_dlopen_self=cross
19845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19846 lt_status=$lt_dlunknown
19847 cat > conftest.$ac_ext <<EOF
19848 #line 19848 "configure"
19849 #include "confdefs.h"
19858 # define LT_DLGLOBAL RTLD_GLOBAL
19861 # define LT_DLGLOBAL DL_GLOBAL
19863 # define LT_DLGLOBAL 0
19867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19868 find out it does not work in some platform. */
19869 #ifndef LT_DLLAZY_OR_NOW
19871 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19874 # define LT_DLLAZY_OR_NOW DL_LAZY
19877 # define LT_DLLAZY_OR_NOW RTLD_NOW
19880 # define LT_DLLAZY_OR_NOW DL_NOW
19882 # define LT_DLLAZY_OR_NOW 0
19890 extern "C" void exit (int);
19893 void fnord() { int i=42;}
19896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19897 int status = $lt_dlunknown;
19901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19903 /* dlclose (self); */
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19914 (./conftest; exit; ) >&5 2>/dev/null
19916 case x$lt_status in
19917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19919 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19922 # compilation failed
19923 lt_cv_dlopen_self=no
19930 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19931 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19933 if test "x$lt_cv_dlopen_self" = xyes; then
19934 LDFLAGS="$LDFLAGS $link_static_flag"
19935 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19936 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19937 if test "${lt_cv_dlopen_self_static+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 if test "$cross_compiling" = yes; then :
19941 lt_cv_dlopen_self_static=cross
19943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19944 lt_status=$lt_dlunknown
19945 cat > conftest.$ac_ext <<EOF
19946 #line 19946 "configure"
19947 #include "confdefs.h"
19956 # define LT_DLGLOBAL RTLD_GLOBAL
19959 # define LT_DLGLOBAL DL_GLOBAL
19961 # define LT_DLGLOBAL 0
19965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19966 find out it does not work in some platform. */
19967 #ifndef LT_DLLAZY_OR_NOW
19969 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19972 # define LT_DLLAZY_OR_NOW DL_LAZY
19975 # define LT_DLLAZY_OR_NOW RTLD_NOW
19978 # define LT_DLLAZY_OR_NOW DL_NOW
19980 # define LT_DLLAZY_OR_NOW 0
19988 extern "C" void exit (int);
19991 void fnord() { int i=42;}
19994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19995 int status = $lt_dlunknown;
19999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20000 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20001 /* dlclose (self); */
20007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008 (eval $ac_link) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20012 (./conftest; exit; ) >&5 2>/dev/null
20014 case x$lt_status in
20015 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20016 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20017 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20020 # compilation failed
20021 lt_cv_dlopen_self_static=no
20028 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20029 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20032 CPPFLAGS="$save_CPPFLAGS"
20033 LDFLAGS="$save_LDFLAGS"
20038 case $lt_cv_dlopen_self in
20039 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20040 *) enable_dlopen_self=unknown ;;
20043 case $lt_cv_dlopen_self_static in
20044 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20045 *) enable_dlopen_self_static=unknown ;;
20050 # Report which librarie types wil actually be built
20051 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20053 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20054 echo "${ECHO_T}$can_build_shared" >&6
20056 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20058 test "$can_build_shared" = "no" && enable_shared=no
20060 # On AIX, shared libraries and static libraries use the same namespace, and
20061 # are all built from PIC.
20064 test "$enable_shared" = yes && enable_static=no
20065 if test -n "$RANLIB"; then
20066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20067 postinstall_cmds='$RANLIB $lib'
20072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20073 test "$enable_shared" = yes && enable_static=no
20077 echo "$as_me:$LINENO: result: $enable_shared" >&5
20078 echo "${ECHO_T}$enable_shared" >&6
20080 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20082 # Make sure either enable_shared or enable_static is yes.
20083 test "$enable_shared" = yes || enable_static=yes
20084 echo "$as_me:$LINENO: result: $enable_static" >&5
20085 echo "${ECHO_T}$enable_static" >&6
20087 # The else clause should only fire when bootstrapping the
20088 # libtool distribution, otherwise you forgot to ship ltmain.sh
20089 # with your package, and you will get complaints that there are
20090 # no rules to generate ltmain.sh.
20091 if test -f "$ltmain"; then
20092 # See if we are running on zsh, and set the options which allow our commands through
20093 # without removal of \ escapes.
20094 if test -n "${ZSH_VERSION+set}" ; then
20095 setopt NO_GLOB_SUBST
20097 # Now quote all the things that may contain metacharacters while being
20098 # careful not to overquote the AC_SUBSTed values. We take copies of the
20099 # variables and quote the copies for generation of the libtool script.
20100 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20104 deplibs_check_method reload_flag reload_cmds need_locks \
20105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20106 lt_cv_sys_global_symbol_to_c_name_address \
20107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20108 old_postinstall_cmds old_postuninstall_cmds \
20112 lt_prog_compiler_wl \
20113 lt_prog_compiler_pic \
20114 lt_prog_compiler_static \
20115 lt_prog_compiler_no_builtin_flag \
20116 export_dynamic_flag_spec \
20117 thread_safe_flag_spec \
20118 whole_archive_flag_spec \
20119 enable_shared_with_static_runtimes \
20121 old_archive_from_new_cmds \
20126 compiler_lib_search_path \
20128 archive_expsym_cmds \
20130 postuninstall_cmds \
20131 old_archive_from_expsyms_cmds \
20132 allow_undefined_flag \
20133 no_undefined_flag \
20134 export_symbols_cmds \
20135 hardcode_libdir_flag_spec \
20136 hardcode_libdir_flag_spec_ld \
20137 hardcode_libdir_separator \
20138 hardcode_automatic \
20140 module_expsym_cmds \
20141 lt_cv_prog_compiler_c_o \
20143 include_expsyms; do
20146 old_archive_cmds | \
20147 old_archive_from_new_cmds | \
20149 archive_expsym_cmds | \
20151 module_expsym_cmds | \
20152 old_archive_from_expsyms_cmds | \
20153 export_symbols_cmds | \
20154 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20155 postinstall_cmds | postuninstall_cmds | \
20156 old_postinstall_cmds | old_postuninstall_cmds | \
20157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20158 # Double-quote double-evaled strings.
20159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20168 *'\$0 --fallback-echo"')
20169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20173 cfgfile="${ofile}T"
20174 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20176 { echo "$as_me:$LINENO: creating $ofile" >&5
20177 echo "$as_me: creating $ofile" >&6;}
20179 cat <<__EOF__ >> "$cfgfile"
20182 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20183 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20184 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20186 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20187 # Free Software Foundation, Inc.
20189 # This file is part of GNU Libtool:
20190 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20192 # This program is free software; you can redistribute it and/or modify
20193 # it under the terms of the GNU General Public License as published by
20194 # the Free Software Foundation; either version 2 of the License, or
20195 # (at your option) any later version.
20197 # This program is distributed in the hope that it will be useful, but
20198 # WITHOUT ANY WARRANTY; without even the implied warranty of
20199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20200 # General Public License for more details.
20202 # You should have received a copy of the GNU General Public License
20203 # along with this program; if not, write to the Free Software
20204 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20206 # As a special exception to the GNU General Public License, if you
20207 # distribute this file as part of a program that contains a
20208 # configuration script generated by Autoconf, you may include it under
20209 # the same distribution terms that you use for the rest of that program.
20211 # A sed program that does not truncate output.
20214 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20215 Xsed="$SED -e 1s/^X//"
20217 # The HP-UX ksh and POSIX shell print the target directory to stdout
20218 # if CDPATH is set.
20219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20221 # The names of the tagged configurations supported by this script.
20224 # ### BEGIN LIBTOOL CONFIG
20226 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20228 # Shell to use when invoking shell scripts.
20231 # Whether or not to build shared libraries.
20232 build_libtool_libs=$enable_shared
20234 # Whether or not to build static libraries.
20235 build_old_libs=$enable_static
20237 # Whether or not to add -lc for building shared libraries.
20238 build_libtool_need_lc=$archive_cmds_need_lc
20240 # Whether or not to disallow shared libs when runtime libs are static
20241 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20243 # Whether or not to optimize for fast installation.
20244 fast_install=$enable_fast_install
20247 host_alias=$host_alias
20251 # The build system.
20252 build_alias=$build_alias
20256 # An echo program that does not interpret backslashes.
20261 AR_FLAGS=$lt_AR_FLAGS
20266 # A language-specific compiler.
20269 # Is the compiler the GNU C compiler?
20275 # The linker used to build libraries.
20278 # Whether we need hard or soft links.
20281 # A BSD-compatible nm program.
20284 # A symbol stripping program
20287 # Used to examine libraries when file_magic_cmd begins "file"
20288 MAGIC_CMD=$MAGIC_CMD
20290 # Used on cygwin: DLL creation program.
20293 # Used on cygwin: object dumper.
20296 # Used on cygwin: assembler.
20299 # The name of the directory that contains temporary libtool files.
20302 # How to create reloadable object files.
20303 reload_flag=$lt_reload_flag
20304 reload_cmds=$lt_reload_cmds
20306 # How to pass a linker flag through the compiler.
20307 wl=$lt_lt_prog_compiler_wl
20309 # Object file suffix (normally "o").
20310 objext="$ac_objext"
20312 # Old archive suffix (normally "a").
20315 # Shared library suffix (normally ".so").
20316 shrext_cmds='$shrext_cmds'
20318 # Executable file suffix (normally "").
20321 # Additional compiler flags for building library objects.
20322 pic_flag=$lt_lt_prog_compiler_pic
20325 # What is the maximum length of a command?
20326 max_cmd_len=$lt_cv_sys_max_cmd_len
20328 # Does compiler simultaneously support -c and -o options?
20329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20331 # Must we lock files when doing compilation?
20332 need_locks=$lt_need_locks
20334 # Do we need the lib prefix for modules?
20335 need_lib_prefix=$need_lib_prefix
20337 # Do we need a version for libraries?
20338 need_version=$need_version
20340 # Whether dlopen is supported.
20341 dlopen_support=$enable_dlopen
20343 # Whether dlopen of programs is supported.
20344 dlopen_self=$enable_dlopen_self
20346 # Whether dlopen of statically linked programs is supported.
20347 dlopen_self_static=$enable_dlopen_self_static
20349 # Compiler flag to prevent dynamic linking.
20350 link_static_flag=$lt_lt_prog_compiler_static
20352 # Compiler flag to turn off builtin functions.
20353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20355 # Compiler flag to allow reflexive dlopens.
20356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20358 # Compiler flag to generate shared objects directly from archives.
20359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20361 # Compiler flag to generate thread-safe objects.
20362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
20364 # Library versioning type.
20365 version_type=$version_type
20367 # Format of library name prefix.
20368 libname_spec=$lt_libname_spec
20370 # List of archive names. First name is the real one, the rest are links.
20371 # The last name is the one that the linker finds with -lNAME.
20372 library_names_spec=$lt_library_names_spec
20374 # The coded name of the library, if different from the real name.
20375 soname_spec=$lt_soname_spec
20377 # Commands used to build and install an old-style archive.
20379 old_archive_cmds=$lt_old_archive_cmds
20380 old_postinstall_cmds=$lt_old_postinstall_cmds
20381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20383 # Create an old-style archive from a shared archive.
20384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20386 # Create a temporary old-style archive to link instead of a shared archive.
20387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20389 # Commands used to build and install a shared archive.
20390 archive_cmds=$lt_archive_cmds
20391 archive_expsym_cmds=$lt_archive_expsym_cmds
20392 postinstall_cmds=$lt_postinstall_cmds
20393 postuninstall_cmds=$lt_postuninstall_cmds
20395 # Commands used to build a loadable module (assumed same as above if empty)
20396 module_cmds=$lt_module_cmds
20397 module_expsym_cmds=$lt_module_expsym_cmds
20399 # Commands to strip libraries.
20400 old_striplib=$lt_old_striplib
20401 striplib=$lt_striplib
20403 # Dependencies to place before the objects being linked to create a
20405 predep_objects=$lt_predep_objects
20407 # Dependencies to place after the objects being linked to create a
20409 postdep_objects=$lt_postdep_objects
20411 # Dependencies to place before the objects being linked to create a
20413 predeps=$lt_predeps
20415 # Dependencies to place after the objects being linked to create a
20417 postdeps=$lt_postdeps
20419 # The library search path used internally by the compiler when linking
20420 # a shared library.
20421 compiler_lib_search_path=$lt_compiler_lib_search_path
20423 # Method to check whether dependent libraries are shared objects.
20424 deplibs_check_method=$lt_deplibs_check_method
20426 # Command to use when deplibs_check_method == file_magic.
20427 file_magic_cmd=$lt_file_magic_cmd
20429 # Flag that allows shared libraries with undefined symbols to be built.
20430 allow_undefined_flag=$lt_allow_undefined_flag
20432 # Flag that forces no undefined symbols.
20433 no_undefined_flag=$lt_no_undefined_flag
20435 # Commands used to finish a libtool library installation in a directory.
20436 finish_cmds=$lt_finish_cmds
20438 # Same as above, but a single script fragment to be evaled but not shown.
20439 finish_eval=$lt_finish_eval
20441 # Take the output of nm and produce a listing of raw symbols and C names.
20442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20444 # Transform the output of nm in a proper C declaration
20445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20447 # Transform the output of nm in a C name address pair
20448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20450 # This is the shared library runtime path variable.
20451 runpath_var=$runpath_var
20453 # This is the shared library path variable.
20454 shlibpath_var=$shlibpath_var
20456 # Is shlibpath searched before the hard-coded library search path?
20457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20459 # How to hardcode a shared library path into an executable.
20460 hardcode_action=$hardcode_action
20462 # Whether we should hardcode library paths into libraries.
20463 hardcode_into_libs=$hardcode_into_libs
20465 # Flag to hardcode \$libdir into a binary during linking.
20466 # This must work even if \$libdir does not exist.
20467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20469 # If ld is used when linking, flag to hardcode \$libdir into
20470 # a binary during linking. This must work even if \$libdir does
20472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20474 # Whether we need a single -rpath flag with a separated argument.
20475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20478 # resulting binary.
20479 hardcode_direct=$hardcode_direct
20481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20482 # resulting binary.
20483 hardcode_minus_L=$hardcode_minus_L
20485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20486 # the resulting binary.
20487 hardcode_shlibpath_var=$hardcode_shlibpath_var
20489 # Set to yes if building a shared library automatically hardcodes DIR into the library
20490 # and all subsequent libraries and executables linked against it.
20491 hardcode_automatic=$hardcode_automatic
20493 # Variables whose values should be saved in libtool wrapper scripts and
20494 # restored at relink time.
20495 variables_saved_for_relink="$variables_saved_for_relink"
20497 # Whether libtool must link a program against all its dependency libraries.
20498 link_all_deplibs=$link_all_deplibs
20500 # Compile-time system search path for libraries
20501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20503 # Run-time system search path for libraries
20504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20506 # Fix the shell variable \$srcfile for the compiler.
20507 fix_srcfile_path="$fix_srcfile_path"
20509 # Set to yes if exported symbols are required.
20510 always_export_symbols=$always_export_symbols
20512 # The commands to list exported symbols.
20513 export_symbols_cmds=$lt_export_symbols_cmds
20515 # The commands to extract the exported symbol list from a shared archive.
20516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20518 # Symbols that should not be listed in the preloaded symbols.
20519 exclude_expsyms=$lt_exclude_expsyms
20521 # Symbols that must always be exported.
20522 include_expsyms=$lt_include_expsyms
20524 # ### END LIBTOOL CONFIG
20531 cat <<\EOF >> "$cfgfile"
20533 # AIX sometimes has problems with the GCC collect2 program. For some
20534 # reason, if we set the COLLECT_NAMES environment variable, the problems
20535 # vanish in a puff of smoke.
20536 if test "X${COLLECT_NAMES+set}" != Xset; then
20538 export COLLECT_NAMES
20544 # We use sed instead of cat because bash on DJGPP gets confused if
20545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20546 # text mode, it properly converts lines to CR/LF. This bash problem
20547 # is reportedly fixed, but why not run on old versions too?
20548 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20550 mv -f "$cfgfile" "$ofile" || \
20551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20555 # If there is no Makefile yet, we rely on a make rule to execute
20556 # `config.status --recheck' to rerun these tests and create the
20557 # libtool script then.
20558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20559 if test -f "$ltmain_in"; then
20560 test -f Makefile && make "$ltmain"
20566 ac_cpp='$CPP $CPPFLAGS'
20567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20574 # Check whether --with-tags or --without-tags was given.
20575 if test "${with_tags+set}" = set; then
20576 withval="$with_tags"
20577 tagnames="$withval"
20580 if test -f "$ltmain" && test -n "$tagnames"; then
20581 if test ! -f "${ofile}"; then
20582 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20583 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20586 if test -z "$LTCC"; then
20587 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20588 if test -z "$LTCC"; then
20589 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20590 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20593 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20597 # Extract list of available tagged configurations in $ofile.
20598 # Note that this assumes the entire list is on one line.
20599 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20602 for tagname in $tagnames; do
20604 # Check whether tagname contains only valid characters
20605 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20607 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
20609 { (exit 1); exit 1; }; }
20613 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20615 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20617 { (exit 1); exit 1; }; }
20620 # Update the list of available tags.
20621 if test -n "$tagname"; then
20622 echo appending configuration tag \"$tagname\" to $ofile
20626 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20627 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20628 (test "X$CXX" != "Xg++"))) ; then
20630 ac_cpp='$CXXCPP $CPPFLAGS'
20631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20638 archive_cmds_need_lc_CXX=no
20639 allow_undefined_flag_CXX=
20640 always_export_symbols_CXX=no
20641 archive_expsym_cmds_CXX=
20642 export_dynamic_flag_spec_CXX=
20643 hardcode_direct_CXX=no
20644 hardcode_libdir_flag_spec_CXX=
20645 hardcode_libdir_flag_spec_ld_CXX=
20646 hardcode_libdir_separator_CXX=
20647 hardcode_minus_L_CXX=no
20648 hardcode_automatic_CXX=no
20650 module_expsym_cmds_CXX=
20651 link_all_deplibs_CXX=unknown
20652 old_archive_cmds_CXX=$old_archive_cmds
20653 no_undefined_flag_CXX=
20654 whole_archive_flag_spec_CXX=
20655 enable_shared_with_static_runtimes_CXX=no
20657 # Dependencies to place before and after the object being linked:
20658 predep_objects_CXX=
20659 postdep_objects_CXX=
20662 compiler_lib_search_path_CXX=
20664 # Source file extension for C++ test sources.
20667 # Object file extension for compiled C++ test sources.
20671 # Code to be used in simple compile tests
20672 lt_simple_compile_test_code="int some_variable = 0;\n"
20674 # Code to be used in simple link tests
20675 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20679 # If no C compiler was specified, use CC.
20682 # Allow CC to be a program name with arguments.
20686 # save warnings/boilerplate of simple test code
20687 ac_outfile=conftest.$ac_objext
20688 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20690 _lt_compiler_boilerplate=`cat conftest.err`
20693 ac_outfile=conftest.$ac_objext
20694 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20696 _lt_linker_boilerplate=`cat conftest.err`
20700 # Allow CC to be a program name with arguments.
20705 lt_save_with_gnu_ld=$with_gnu_ld
20706 lt_save_path_LD=$lt_cv_path_LD
20707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20708 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20710 unset lt_cv_prog_gnu_ld
20712 if test -n "${lt_cv_path_LDCXX+set}"; then
20713 lt_cv_path_LD=$lt_cv_path_LDCXX
20715 unset lt_cv_path_LD
20717 test -z "${LDCXX+set}" || LD=$LDCXX
20721 for cc_temp in $compiler""; do
20723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20732 # We don't want -fno-exception wen compiling C++ code, so set the
20733 # no_builtin_flag separately
20734 if test "$GXX" = yes; then
20735 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20737 lt_prog_compiler_no_builtin_flag_CXX=
20740 if test "$GXX" = yes; then
20741 # Set up default GNU C++ configuration
20744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20745 if test "${with_gnu_ld+set}" = set; then
20746 withval="$with_gnu_ld"
20747 test "$withval" = no || with_gnu_ld=yes
20752 if test "$GCC" = yes; then
20753 # Check if gcc -print-prog-name=ld gives a path.
20754 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20755 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20758 # gcc leaves a trailing carriage return which upsets mingw
20759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20764 # Accept absolute paths.
20766 re_direlt='/[^/][^/]*/\.\./'
20767 # Canonicalize the pathname of ld
20768 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20769 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20770 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20772 test -z "$LD" && LD="$ac_prog"
20775 # If it fails, then pretend we aren't using GCC.
20779 # If it is relative, then search for the first ld in PATH.
20780 with_gnu_ld=unknown
20783 elif test "$with_gnu_ld" = yes; then
20784 echo "$as_me:$LINENO: checking for GNU ld" >&5
20785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20787 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20790 if test "${lt_cv_path_LD+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 if test -z "$LD"; then
20794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20795 for ac_dir in $PATH; do
20797 test -z "$ac_dir" && ac_dir=.
20798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20799 lt_cv_path_LD="$ac_dir/$ac_prog"
20800 # Check to see if the program is GNU ld. I'd rather use --version,
20801 # but apparently some variants of GNU ld only accept -v.
20802 # Break only if it was the GNU/non-GNU ld that we prefer.
20803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20804 *GNU* | *'with BFD'*)
20805 test "$with_gnu_ld" != no && break
20808 test "$with_gnu_ld" != yes && break
20815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20819 LD="$lt_cv_path_LD"
20820 if test -n "$LD"; then
20821 echo "$as_me:$LINENO: result: $LD" >&5
20822 echo "${ECHO_T}$LD" >&6
20824 echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6
20827 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20828 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20829 { (exit 1); exit 1; }; }
20830 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20831 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20832 if test "${lt_cv_prog_gnu_ld+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20836 case `$LD -v 2>&1 </dev/null` in
20837 *GNU* | *'with BFD'*)
20838 lt_cv_prog_gnu_ld=yes
20841 lt_cv_prog_gnu_ld=no
20845 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20846 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20847 with_gnu_ld=$lt_cv_prog_gnu_ld
20851 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20852 # archiving commands below assume that GNU ld is being used.
20853 if test "$with_gnu_ld" = yes; then
20854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20855 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'
20857 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20860 # If archive_cmds runs LD, not CC, wlarc should be empty
20861 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20862 # investigate it a little bit more. (MM)
20865 # ancient GNU ld didn't support --whole-archive et. al.
20866 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20867 grep 'no-whole-archive' > /dev/null; then
20868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20870 whole_archive_flag_spec_CXX=
20876 # A generic and very simple default shared library creation
20877 # command for GNU C++ for the case where it uses the native
20878 # linker, instead of GNU ld. If possible, this setting should
20879 # overridden to take advantage of the native linker features on
20880 # the platform it is being used on.
20881 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20884 # Commands to make compiler produce verbose output that lists
20885 # what "hidden" libraries, object files and flags are used when
20886 # linking a shared library.
20887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20895 # PORTME: fill in a description of your system's C++ link characteristics
20896 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20901 # FIXME: insert proper C++ library support
20905 if test "$host_cpu" = ia64; then
20906 # On IA64, the linker does run time linking by default, so we don't
20907 # have to do anything special.
20908 aix_use_runtimelinking=no
20909 exp_sym_flag='-Bexport'
20912 aix_use_runtimelinking=no
20914 # Test if we are trying to use run time linking or normal
20915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20916 # need to do runtime linking.
20917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20918 for ld_flag in $LDFLAGS; do
20921 aix_use_runtimelinking=yes
20928 exp_sym_flag='-bexport'
20929 no_entry_flag='-bnoentry'
20932 # When large executables or shared objects are built, AIX ld can
20933 # have problems creating the table of contents. If linking a library
20934 # or program results in "error TOC overflow" add -mminimal-toc to
20935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20938 archive_cmds_CXX=''
20939 hardcode_direct_CXX=yes
20940 hardcode_libdir_separator_CXX=':'
20941 link_all_deplibs_CXX=yes
20943 if test "$GXX" = yes; then
20944 case $host_os in aix4.[012]|aix4.[012].*)
20945 # We only want to do this on AIX 4.2 and lower, the check
20946 # below for broken collect2 doesn't work under 4.3+
20947 collect2name=`${CC} -print-prog-name=collect2`
20948 if test -f "$collect2name" && \
20949 strings "$collect2name" | grep resolve_lib_name >/dev/null
20951 # We have reworked collect2
20952 hardcode_direct_CXX=yes
20954 # We have old collect2
20955 hardcode_direct_CXX=unsupported
20956 # It fails to find uninstalled libraries when the uninstalled
20957 # path is not listed in the libpath. Setting hardcode_minus_L
20958 # to unsupported forces relinking
20959 hardcode_minus_L_CXX=yes
20960 hardcode_libdir_flag_spec_CXX='-L$libdir'
20961 hardcode_libdir_separator_CXX=
20964 shared_flag='-shared'
20965 if test "$aix_use_runtimelinking" = yes; then
20966 shared_flag="$shared_flag "'${wl}-G'
20970 if test "$host_cpu" = ia64; then
20971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20972 # chokes on -Wl,-G. The following line is correct:
20975 if test "$aix_use_runtimelinking" = yes; then
20976 shared_flag='${wl}-G'
20978 shared_flag='${wl}-bM:SRE'
20983 # It seems that -bexpall does not export symbols beginning with
20984 # underscore (_), so it is better to generate a list of symbols to export.
20985 always_export_symbols_CXX=yes
20986 if test "$aix_use_runtimelinking" = yes; then
20987 # Warning - without using the other runtime loading flags (-brtl),
20988 # -berok will link without error, but may produce a broken library.
20989 allow_undefined_flag_CXX='-berok'
20990 # Determine the default libpath from the value encoded in an empty executable.
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21008 (eval $ac_link) 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_cxx_werror_flag"
21016 || test ! -s conftest.err'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; } &&
21022 { ac_try='test -s conftest$ac_exeext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21031 # Check for a 64-bit object if we didn't find anything.
21032 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; }
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21039 rm -f conftest.err conftest.$ac_objext \
21040 conftest$ac_exeext conftest.$ac_ext
21041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21045 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"
21047 if test "$host_cpu" = ia64; then
21048 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
21049 allow_undefined_flag_CXX="-z nodefs"
21050 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"
21052 # Determine the default libpath from the value encoded in an empty executable.
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070 (eval $ac_link) 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_cxx_werror_flag"
21078 || test ! -s conftest.err'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest$ac_exeext'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21093 # Check for a 64-bit object if we didn't find anything.
21094 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; }
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21101 rm -f conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21106 # Warning - without using the other run time loading flags,
21107 # -berok will link without error, but may produce a broken library.
21108 no_undefined_flag_CXX=' ${wl}-bernotok'
21109 allow_undefined_flag_CXX=' ${wl}-berok'
21110 # -bexpall does not export symbols beginning with underscore (_)
21111 always_export_symbols_CXX=yes
21112 # Exported symbols can be pulled into shared objects from archives
21113 whole_archive_flag_spec_CXX=' '
21114 archive_cmds_need_lc_CXX=yes
21115 # This is similar to how AIX traditionally builds its shared libraries.
21116 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'
21121 case $cc_basename in
21123 # FIXME: insert proper C++ library support
21130 cygwin* | mingw* | pw32*)
21131 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21132 # as there is no search path for DLLs.
21133 hardcode_libdir_flag_spec_CXX='-L$libdir'
21134 allow_undefined_flag_CXX=unsupported
21135 always_export_symbols_CXX=no
21136 enable_shared_with_static_runtimes_CXX=yes
21138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21139 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'
21140 # If the export-symbols file already is a .def file (1st line
21141 # is EXPORTS), use it as is; otherwise, prepend...
21142 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21143 cp $export_symbols $output_objdir/$soname.def;
21145 echo EXPORTS > $output_objdir/$soname.def;
21146 cat $export_symbols >> $output_objdir/$soname.def;
21148 $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'
21153 darwin* | rhapsody*)
21155 rhapsody* | darwin1.[012])
21156 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21160 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21162 case ${MACOSX_DEPLOYMENT_TARGET} in
21164 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21167 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21173 archive_cmds_need_lc_CXX=no
21174 hardcode_direct_CXX=no
21175 hardcode_automatic_CXX=yes
21176 hardcode_shlibpath_var_CXX=unsupported
21177 whole_archive_flag_spec_CXX=''
21178 link_all_deplibs_CXX=yes
21180 if test "$GXX" = yes ; then
21181 lt_int_apple_cc_single_mod=no
21182 output_verbose_link_cmd='echo'
21183 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21184 lt_int_apple_cc_single_mod=yes
21186 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21187 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21189 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'
21191 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21193 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21194 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}'
21196 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}'
21198 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}'
21200 case $cc_basename in
21202 output_verbose_link_cmd='echo'
21203 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'
21204 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21206 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}'
21207 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}'
21217 case $cc_basename in
21219 # FIXME: insert proper C++ library support
21223 # Green Hills C++ Compiler
21224 # FIXME: insert proper C++ library support
21228 # FIXME: insert proper C++ library support
21234 # C++ shared libraries reported to be fairly broken before switch to ELF
21238 archive_cmds_need_lc_CXX=no
21240 freebsd* | kfreebsd*-gnu | dragonfly*)
21241 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21248 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21249 hardcode_libdir_separator_CXX=:
21250 export_dynamic_flag_spec_CXX='${wl}-E'
21251 hardcode_direct_CXX=yes
21252 hardcode_minus_L_CXX=yes # Not in the search PATH,
21253 # but as the default
21254 # location of the library.
21256 case $cc_basename in
21258 # FIXME: insert proper C++ library support
21262 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'
21263 # Commands to make compiler produce verbose output that lists
21264 # what "hidden" libraries, object files and flags are used when
21265 # linking a shared library.
21267 # There doesn't appear to be a way to prevent this compiler from
21268 # explicitly linking system object files so we need to strip them
21269 # from the output so that they don't get included in the library
21271 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'
21274 if test "$GXX" = yes; then
21275 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'
21277 # FIXME: insert proper C++ library support
21284 if test $with_gnu_ld = no; then
21287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21288 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21289 hardcode_libdir_separator_CXX=:
21292 hardcode_libdir_flag_spec_CXX='-L$libdir'
21295 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21296 hardcode_libdir_separator_CXX=:
21297 export_dynamic_flag_spec_CXX='${wl}-E'
21303 hardcode_direct_CXX=no
21304 hardcode_shlibpath_var_CXX=no
21307 hardcode_direct_CXX=no
21308 hardcode_shlibpath_var_CXX=no
21309 hardcode_minus_L_CXX=yes # Not in the search PATH,
21310 # but as the default
21311 # location of the library.
21314 hardcode_direct_CXX=yes
21315 hardcode_minus_L_CXX=yes # Not in the search PATH,
21316 # but as the default
21317 # location of the library.
21321 case $cc_basename in
21323 # FIXME: insert proper C++ library support
21329 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21332 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21335 # Commands to make compiler produce verbose output that lists
21336 # what "hidden" libraries, object files and flags are used when
21337 # linking a shared library.
21339 # There doesn't appear to be a way to prevent this compiler from
21340 # explicitly linking system object files so we need to strip them
21341 # from the output so that they don't get included in the library
21343 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'
21346 if test "$GXX" = yes; then
21347 if test $with_gnu_ld = no; then
21350 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21353 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'
21358 # FIXME: insert proper C++ library support
21365 case $cc_basename in
21368 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'
21370 # Archives containing C++ object files must be created using
21371 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21372 # necessary to make sure instantiated templates are included
21374 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21377 if test "$GXX" = yes; then
21378 if test "$with_gnu_ld" = no; then
21379 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'
21381 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'
21384 link_all_deplibs_CXX=yes
21387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21388 hardcode_libdir_separator_CXX=:
21391 case $cc_basename in
21393 # Kuck and Associates, Inc. (KAI) C++ Compiler
21395 # KCC will only create a shared library if the output file
21396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21397 # to its proper name (with version) after linking.
21398 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'
21399 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'
21400 # Commands to make compiler produce verbose output that lists
21401 # what "hidden" libraries, object files and flags are used when
21402 # linking a shared library.
21404 # There doesn't appear to be a way to prevent this compiler from
21405 # explicitly linking system object files so we need to strip them
21406 # from the output so that they don't get included in the library
21408 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'
21410 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21413 # Archives containing C++ object files must be created using
21414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21420 # version 8.0 and above of icpc choke on multiply defined symbols
21421 # if we add $predep_objects and $postdep_objects, however 7.1 and
21422 # earlier do not add the objects themselves.
21423 case `$CC -V 2>&1` in
21425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21426 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'
21428 *) # Version 8.0 or newer
21431 ia64*) tmp_idyn=' -i_dynamic';;
21433 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21434 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'
21437 archive_cmds_need_lc_CXX=no
21438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21440 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21443 # Portland Group C++ compiler
21444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21445 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'
21447 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21449 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'
21453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454 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'
21456 runpath_var=LD_RUN_PATH
21457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21458 hardcode_libdir_separator_CXX=:
21460 # Commands to make compiler produce verbose output that lists
21461 # what "hidden" libraries, object files and flags are used when
21462 # linking a shared library.
21464 # There doesn't appear to be a way to prevent this compiler from
21465 # explicitly linking system object files so we need to strip them
21466 # from the output so that they don't get included in the library
21468 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'
21473 # FIXME: insert proper C++ library support
21477 # FIXME: insert proper C++ library support
21481 case $cc_basename in
21483 # FIXME: insert proper C++ library support
21487 # FIXME: insert proper C++ library support
21493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21496 hardcode_libdir_flag_spec_CXX='-R$libdir'
21497 hardcode_direct_CXX=yes
21498 hardcode_shlibpath_var_CXX=no
21500 # Workaround some broken pre-1.5 toolchains
21501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21504 # C++ shared libraries are fairly broken
21508 hardcode_direct_CXX=yes
21509 hardcode_shlibpath_var_CXX=no
21510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21514 export_dynamic_flag_spec_CXX='${wl}-E'
21515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21517 output_verbose_link_cmd='echo'
21520 case $cc_basename in
21522 # Kuck and Associates, Inc. (KAI) C++ Compiler
21524 # KCC will only create a shared library if the output file
21525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21526 # to its proper name (with version) after linking.
21527 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'
21529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21530 hardcode_libdir_separator_CXX=:
21532 # Archives containing C++ object files must be created using
21533 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21534 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21538 # Rational C++ 2.4.1
21539 # FIXME: insert proper C++ library support
21543 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21544 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'
21546 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21547 hardcode_libdir_separator_CXX=:
21549 # Commands to make compiler produce verbose output that lists
21550 # what "hidden" libraries, object files and flags are used when
21551 # linking a shared library.
21553 # There doesn't appear to be a way to prevent this compiler from
21554 # explicitly linking system object files so we need to strip them
21555 # from the output so that they don't get included in the library
21557 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'
21560 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21562 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'
21564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21565 hardcode_libdir_separator_CXX=:
21567 # Commands to make compiler produce verbose output that lists
21568 # what "hidden" libraries, object files and flags are used when
21569 # linking a shared library.
21570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21573 # FIXME: insert proper C++ library support
21580 case $cc_basename in
21582 # Kuck and Associates, Inc. (KAI) C++ Compiler
21584 # KCC will only create a shared library if the output file
21585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21586 # to its proper name (with version) after linking.
21587 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'
21589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21590 hardcode_libdir_separator_CXX=:
21592 # Archives containing C++ object files must be created using
21593 # the KAI C++ compiler.
21594 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21597 # Rational C++ 2.4.1
21598 # FIXME: insert proper C++ library support
21602 allow_undefined_flag_CXX=' -expect_unresolved \*'
21603 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'
21604 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21605 echo "-hidden">> $lib.exp~
21606 $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~
21609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21610 hardcode_libdir_separator_CXX=:
21612 # Commands to make compiler produce verbose output that lists
21613 # what "hidden" libraries, object files and flags are used when
21614 # linking a shared library.
21616 # There doesn't appear to be a way to prevent this compiler from
21617 # explicitly linking system object files so we need to strip them
21618 # from the output so that they don't get included in the library
21620 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'
21623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21625 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'
21627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21628 hardcode_libdir_separator_CXX=:
21630 # Commands to make compiler produce verbose output that lists
21631 # what "hidden" libraries, object files and flags are used when
21632 # linking a shared library.
21633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21636 # FIXME: insert proper C++ library support
21643 # FIXME: insert proper C++ library support
21647 archive_cmds_need_lc_CXX=no
21648 case $cc_basename in
21650 # FIXME: insert proper C++ library support
21654 # FIXME: insert proper C++ library support
21660 case $cc_basename in
21663 # FIXME: insert proper C++ library support
21668 # FIXME: insert proper C++ library support
21672 # FIXME: insert proper C++ library support
21678 case $cc_basename in
21680 # Sun C++ 4.2, 5.x and Centerline C++
21681 archive_cmds_need_lc_CXX=yes
21682 no_undefined_flag_CXX=' -zdefs'
21683 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21685 $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'
21687 hardcode_libdir_flag_spec_CXX='-R$libdir'
21688 hardcode_shlibpath_var_CXX=no
21690 solaris2.[0-5] | solaris2.[0-5].*) ;;
21692 # The C++ compiler is used as linker so we must use $wl
21693 # flag to pass the commands to the underlying system
21694 # linker. We must also pass each convience library through
21695 # to the system linker between allextract/defaultextract.
21696 # The C++ compiler will combine linker options so we
21697 # cannot just pass the convience library names through
21699 # Supported since Solaris 2.6 (maybe 2.5.1?)
21700 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'
21703 link_all_deplibs_CXX=yes
21705 output_verbose_link_cmd='echo'
21707 # Archives containing C++ object files must be created using
21708 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21709 # necessary to make sure instantiated templates are included
21711 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21714 # Green Hills C++ Compiler
21715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21717 # The C++ compiler must be used to create the archive.
21718 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21721 # GNU C++ compiler with Solaris linker
21722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21723 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21724 if $CC --version | grep -v '^2\.7' > /dev/null; then
21725 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21726 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21727 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21729 # Commands to make compiler produce verbose output that lists
21730 # what "hidden" libraries, object files and flags are used when
21731 # linking a shared library.
21732 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21734 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21736 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21737 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21738 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21740 # Commands to make compiler produce verbose output that lists
21741 # what "hidden" libraries, object files and flags are used when
21742 # linking a shared library.
21743 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21746 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21751 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21752 archive_cmds_need_lc_CXX=no
21755 case $cc_basename in
21757 # NonStop-UX NCC 3.20
21758 # FIXME: insert proper C++ library support
21762 # FIXME: insert proper C++ library support
21768 # FIXME: insert proper C++ library support
21772 # FIXME: insert proper C++ library support
21776 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21777 echo "${ECHO_T}$ld_shlibs_CXX" >&6
21778 test "$ld_shlibs_CXX" = no && can_build_shared=no
21784 ## There is no encapsulation within the following macros, do not change
21785 ## the running order or otherwise move them around unless you know exactly
21786 ## what you are doing...
21788 cat > conftest.$ac_ext <<EOF
21792 Foo (void) { a = 0; }
21798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21799 (eval $ac_compile) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; then
21803 # Parse the compiler output and extract the necessary
21804 # objects, libraries and library flags.
21806 # Sentinel used to keep track of whether or not we are before
21807 # the conftest object file.
21808 pre_test_object_deps_done=no
21810 # The `*' in the case matches for architectures that use `case' in
21811 # $output_verbose_cmd can trigger glob expansion during the loop
21812 # eval without this substitution.
21813 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21815 for p in `eval $output_verbose_link_cmd`; do
21819 # Some compilers place space between "-{L,R}" and the path.
21820 # Remove the space.
21821 if test $p = "-L" \
21822 || test $p = "-R"; then
21829 if test "$pre_test_object_deps_done" = no; then
21832 # Internal compiler library paths should come after those
21833 # provided the user. The postdeps already come after the
21834 # user supplied libs so there is no need to process them.
21835 if test -z "$compiler_lib_search_path_CXX"; then
21836 compiler_lib_search_path_CXX="${prev}${p}"
21838 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21841 # The "-l" case would never come before the object being
21842 # linked, so don't bother handling this case.
21845 if test -z "$postdeps_CXX"; then
21846 postdeps_CXX="${prev}${p}"
21848 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21854 # This assumes that the test object file only shows up
21855 # once in the compiler output.
21856 if test "$p" = "conftest.$objext"; then
21857 pre_test_object_deps_done=yes
21861 if test "$pre_test_object_deps_done" = no; then
21862 if test -z "$predep_objects_CXX"; then
21863 predep_objects_CXX="$p"
21865 predep_objects_CXX="$predep_objects_CXX $p"
21868 if test -z "$postdep_objects_CXX"; then
21869 postdep_objects_CXX="$p"
21871 postdep_objects_CXX="$postdep_objects_CXX $p"
21876 *) ;; # Ignore the rest.
21884 echo "libtool.m4: error: problem compiling CXX test program"
21887 $rm -f confest.$objext
21889 # PORTME: override above test on systems where it is broken
21892 case $cc_basename in
21894 # Adding this requires a known-good setup of shared libraries for
21895 # Sun compiler versions before 5.6, else PIC objects from an old
21896 # archive will be linked into the output, leading to subtle bugs.
21897 postdeps_CXX='-lCstd -lCrun'
21903 case " $postdeps_CXX " in
21904 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21907 lt_prog_compiler_wl_CXX=
21908 lt_prog_compiler_pic_CXX=
21909 lt_prog_compiler_static_CXX=
21911 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21912 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21914 # C++ specific cases for pic, static, wl, etc.
21915 if test "$GXX" = yes; then
21916 lt_prog_compiler_wl_CXX='-Wl,'
21917 lt_prog_compiler_static_CXX='-static'
21921 # All AIX code is PIC.
21922 if test "$host_cpu" = ia64; then
21923 # AIX 5 now supports IA64 processor
21924 lt_prog_compiler_static_CXX='-Bstatic'
21928 # FIXME: we need at least 68020 code to build shared libraries, but
21929 # adding the `-m68020' flag to GCC prevents building anything better,
21931 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21933 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21934 # PIC is the default for these OSes.
21936 mingw* | os2* | pw32*)
21937 # This hack is so that the source file can tell whether it is being
21938 # built for inclusion in a dll (and should export symbols for example).
21939 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21941 darwin* | rhapsody*)
21942 # PIC is the default on this platform
21943 # Common symbols not allowed in MH_DYLIB files
21944 lt_prog_compiler_pic_CXX='-fno-common'
21947 # DJGPP does not support shared libraries at all
21948 lt_prog_compiler_pic_CXX=
21951 if test -d /usr/nec; then
21952 lt_prog_compiler_pic_CXX=-Kconform_pic
21956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21957 # not for PA HP-UX.
21962 lt_prog_compiler_pic_CXX='-fPIC'
21967 lt_prog_compiler_pic_CXX='-fPIC'
21973 # All AIX code is PIC.
21974 if test "$host_cpu" = ia64; then
21975 # AIX 5 now supports IA64 processor
21976 lt_prog_compiler_static_CXX='-Bstatic'
21978 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21982 case $cc_basename in
21984 # Green Hills C++ Compiler
21985 # _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"
21990 # PIC is the default on this platform
21991 # Common symbols not allowed in MH_DYLIB files
21992 case $cc_basename in
21994 lt_prog_compiler_pic_CXX='-qnocommon'
21995 lt_prog_compiler_wl_CXX='-Wl,'
22000 case $cc_basename in
22002 lt_prog_compiler_pic_CXX='-KPIC'
22005 # Green Hills C++ Compiler
22006 lt_prog_compiler_pic_CXX='-pic'
22012 freebsd* | kfreebsd*-gnu | dragonfly*)
22013 # FreeBSD uses GNU C++
22015 hpux9* | hpux10* | hpux11*)
22016 case $cc_basename in
22018 lt_prog_compiler_wl_CXX='-Wl,'
22019 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22020 if test "$host_cpu" != ia64; then
22021 lt_prog_compiler_pic_CXX='+Z'
22025 lt_prog_compiler_wl_CXX='-Wl,'
22026 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22032 lt_prog_compiler_pic_CXX='+Z'
22040 irix5* | irix6* | nonstopux*)
22041 case $cc_basename in
22043 lt_prog_compiler_wl_CXX='-Wl,'
22044 lt_prog_compiler_static_CXX='-non_shared'
22045 # CC pic flag -KPIC is the default.
22052 case $cc_basename in
22055 lt_prog_compiler_wl_CXX='--backend -Wl,'
22056 lt_prog_compiler_pic_CXX='-fPIC'
22060 lt_prog_compiler_wl_CXX='-Wl,'
22061 lt_prog_compiler_pic_CXX='-KPIC'
22062 lt_prog_compiler_static_CXX='-static'
22065 # Portland Group C++ compiler.
22066 lt_prog_compiler_wl_CXX='-Wl,'
22067 lt_prog_compiler_pic_CXX='-fpic'
22068 lt_prog_compiler_static_CXX='-Bstatic'
22072 # Make sure the PIC flag is empty. It appears that all Alpha
22073 # Linux and Compaq Tru64 Unix objects are PIC.
22074 lt_prog_compiler_pic_CXX=
22075 lt_prog_compiler_static_CXX='-non_shared'
22086 case $cc_basename in
22088 lt_prog_compiler_pic_CXX='-W c,exportall'
22096 osf3* | osf4* | osf5*)
22097 case $cc_basename in
22099 lt_prog_compiler_wl_CXX='--backend -Wl,'
22102 # Rational C++ 2.4.1
22103 lt_prog_compiler_pic_CXX='-pic'
22106 # Digital/Compaq C++
22107 lt_prog_compiler_wl_CXX='-Wl,'
22108 # Make sure the PIC flag is empty. It appears that all Alpha
22109 # Linux and Compaq Tru64 Unix objects are PIC.
22110 lt_prog_compiler_pic_CXX=
22111 lt_prog_compiler_static_CXX='-non_shared'
22120 case $cc_basename in
22122 lt_prog_compiler_pic_CXX='-fPIC'
22129 case $cc_basename in
22131 # Sun C++ 4.2, 5.x and Centerline C++
22132 lt_prog_compiler_pic_CXX='-KPIC'
22133 lt_prog_compiler_static_CXX='-Bstatic'
22134 lt_prog_compiler_wl_CXX='-Qoption ld '
22137 # Green Hills C++ Compiler
22138 lt_prog_compiler_pic_CXX='-PIC'
22145 case $cc_basename in
22148 lt_prog_compiler_pic_CXX='-pic'
22149 lt_prog_compiler_static_CXX='-Bstatic'
22153 lt_prog_compiler_pic_CXX='-pic'
22160 case $cc_basename in
22162 # NonStop-UX NCC 3.20
22163 lt_prog_compiler_pic_CXX='-KPIC'
22174 lt_prog_compiler_can_build_shared_CXX=no
22179 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22180 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22183 # Check to make sure the PIC flag actually works.
22185 if test -n "$lt_prog_compiler_pic_CXX"; then
22187 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22188 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22189 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 lt_prog_compiler_pic_works_CXX=no
22193 ac_outfile=conftest.$ac_objext
22194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22195 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22196 # Insert the option either (1) after the last *FLAGS variable, or
22197 # (2) before a word containing "conftest.", or (3) at the end.
22198 # Note that $ac_compile itself does not contain backslashes and begins
22199 # with a dollar sign (not a hyphen), so the echo should work correctly.
22200 # The option is referenced via a variable to avoid confusing sed.
22201 lt_compile=`echo "$ac_compile" | $SED \
22202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22204 -e 's:$: $lt_compiler_flag:'`
22205 (eval echo "\"\$as_me:22205: $lt_compile\"" >&5)
22206 (eval "$lt_compile" 2>conftest.err)
22208 cat conftest.err >&5
22209 echo "$as_me:22209: \$? = $ac_status" >&5
22210 if (exit $ac_status) && test -s "$ac_outfile"; then
22211 # The compiler can only warn and ignore the option if not recognized
22212 # So say no if there are warnings other than the usual output.
22213 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22214 $SED '/^$/d' conftest.err >conftest.er2
22215 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22216 lt_prog_compiler_pic_works_CXX=yes
22222 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22223 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22225 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22226 case $lt_prog_compiler_pic_CXX in
22228 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22231 lt_prog_compiler_pic_CXX=
22232 lt_prog_compiler_can_build_shared_CXX=no
22237 # For platforms which do not support PIC, -DPIC is meaningless:
22239 lt_prog_compiler_pic_CXX=
22242 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22246 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22247 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22248 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22249 echo $ECHO_N "(cached) $ECHO_C" >&6
22251 lt_cv_prog_compiler_c_o_CXX=no
22252 $rm -r conftest 2>/dev/null
22256 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22258 lt_compiler_flag="-o out/conftest2.$ac_objext"
22259 # Insert the option either (1) after the last *FLAGS variable, or
22260 # (2) before a word containing "conftest.", or (3) at the end.
22261 # Note that $ac_compile itself does not contain backslashes and begins
22262 # with a dollar sign (not a hyphen), so the echo should work correctly.
22263 lt_compile=`echo "$ac_compile" | $SED \
22264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22266 -e 's:$: $lt_compiler_flag:'`
22267 (eval echo "\"\$as_me:22267: $lt_compile\"" >&5)
22268 (eval "$lt_compile" 2>out/conftest.err)
22270 cat out/conftest.err >&5
22271 echo "$as_me:22271: \$? = $ac_status" >&5
22272 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22274 # The compiler can only warn and ignore the option if not recognized
22275 # So say no if there are warnings
22276 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22277 $SED '/^$/d' out/conftest.err >out/conftest.er2
22278 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22279 lt_cv_prog_compiler_c_o_CXX=yes
22284 # SGI C++ compiler will create directory out/ii_files/ for
22285 # template instantiation
22286 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22287 $rm out/* && rmdir out
22293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22294 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22297 hard_links="nottested"
22298 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22299 # do not overwrite the value of need_locks provided by the user
22300 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22301 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22306 ln conftest.a conftest.b 2>&5 || hard_links=no
22307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22308 echo "$as_me:$LINENO: result: $hard_links" >&5
22309 echo "${ECHO_T}$hard_links" >&6
22310 if test "$hard_links" = no; then
22311 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22312 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22319 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22320 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22325 # If we're using GNU nm, then we don't want the "-C" option.
22326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22327 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22328 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'
22330 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'
22334 export_symbols_cmds_CXX="$ltdll_cmds"
22337 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'
22340 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22344 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22345 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22346 test "$ld_shlibs_CXX" = no && can_build_shared=no
22348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22349 if test "$GCC" = yes; then
22350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22354 # Do we need to explicitly link libc?
22356 case "x$archive_cmds_need_lc_CXX" in
22358 # Assume -lc should be added
22359 archive_cmds_need_lc_CXX=yes
22361 if test "$enable_shared" = yes && test "$GCC" = yes; then
22362 case $archive_cmds_CXX in
22364 # FIXME: we may have to deal with multi-command sequences.
22367 # Test whether the compiler implicitly links with -lc since on some
22368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22369 # to ld, don't add -lc before -lgcc.
22370 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22371 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376 (eval $ac_compile) 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } 2>conftest.err; then
22382 libobjs=conftest.$ac_objext
22384 wl=$lt_prog_compiler_wl_CXX
22390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22391 allow_undefined_flag_CXX=
22392 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22393 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }
22398 archive_cmds_need_lc_CXX=no
22400 archive_cmds_need_lc_CXX=yes
22402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22404 cat conftest.err 1>&5
22407 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22408 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22415 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22416 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22417 library_names_spec=
22418 libname_spec='lib$name'
22422 postuninstall_cmds=
22426 shlibpath_overrides_runpath=unknown
22428 dynamic_linker="$host_os ld.so"
22429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22430 if test "$GCC" = yes; then
22431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22432 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22433 # if the path contains ";" then we assume it to be the separator
22434 # otherwise default to the standard path separator (i.e. ":") - it is
22435 # assumed that no part of a normal pathname contains ";" but that should
22436 # okay in the real world where ";" in dirpaths is itself problematic.
22437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22444 need_lib_prefix=unknown
22445 hardcode_into_libs=no
22447 # when you set need_version to no, make sure it does not cause -set_version
22448 # flags to be left without arguments
22449 need_version=unknown
22454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22455 shlibpath_var=LIBPATH
22457 # AIX 3 has no versioning support, so we append a major version to the name.
22458 soname_spec='${libname}${release}${shared_ext}$major'
22465 hardcode_into_libs=yes
22466 if test "$host_cpu" = ia64; then
22467 # AIX 5 supports IA64
22468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22469 shlibpath_var=LD_LIBRARY_PATH
22471 # With GCC up to 2.95.x, collect2 would create an import file
22472 # for dependence libraries. The import file would start with
22473 # the line `#! .'. This would cause the generated library to
22474 # depend on `.', always an invalid library. This was fixed in
22475 # development snapshots of GCC prior to 3.0.
22477 aix4 | aix4.[01] | aix4.[01].*)
22478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22480 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22483 can_build_shared=no
22487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22488 # soname into executable. Probably we can add versioning support to
22489 # collect2, so additional links can be useful in future.
22490 if test "$aix_use_runtimelinking" = yes; then
22491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22492 # instead of lib<name>.a to let people know that these are not
22493 # typical AIX shared libraries.
22494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22496 # We preserve .a as extension for shared libraries through AIX4.2
22497 # and later when we are not doing run time linking.
22498 library_names_spec='${libname}${release}.a $libname.a'
22499 soname_spec='${libname}${release}${shared_ext}$major'
22501 shlibpath_var=LIBPATH
22506 library_names_spec='$libname.ixlibrary $libname.a'
22507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22508 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'
22512 library_names_spec='${libname}${shared_ext}'
22513 dynamic_linker="$host_os ld.so"
22514 shlibpath_var=LIBRARY_PATH
22520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22521 soname_spec='${libname}${release}${shared_ext}$major'
22522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22523 shlibpath_var=LD_LIBRARY_PATH
22524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22526 # the default ld.so.conf also contains /usr/contrib/lib and
22527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22528 # libtool to hard-code these into programs
22531 cygwin* | mingw* | pw32*)
22532 version_type=windows
22537 case $GCC,$host_os in
22538 yes,cygwin* | yes,mingw* | yes,pw32*)
22539 library_names_spec='$libname.dll.a'
22540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22541 postinstall_cmds='base_file=`basename \${file}`~
22542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22543 dldir=$destdir/`dirname \$dlpath`~
22544 test -d \$dldir || mkdir -p \$dldir~
22545 $install_prog $dir/$dlname \$dldir/$dlname~
22546 chmod a+x \$dldir/$dlname'
22547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22548 dlpath=$dir/\$dldll~
22550 shlibpath_overrides_runpath=yes
22554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22559 # MinGW DLLs use traditional 'lib' prefix
22560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22563 # It is most probably a Windows format PATH printed by
22564 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22565 # path with ; separators, and with drive letters. We can handle the
22566 # drive letters (cygwin fileutils understands them), so leave them,
22567 # especially as we might pass files found there to a mingw objdump,
22568 # which wouldn't understand a cygwinified path. Ahh.
22569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22575 # pw32 DLLs use 'pw' prefix rather than 'lib'
22576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22585 dynamic_linker='Win32 ld.exe'
22586 # FIXME: first we should search . and the directory the executable is in
22590 darwin* | rhapsody*)
22591 dynamic_linker="$host_os dyld"
22592 version_type=darwin
22595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22596 soname_spec='${libname}${release}${major}$shared_ext'
22597 shlibpath_overrides_runpath=yes
22598 shlibpath_var=DYLD_LIBRARY_PATH
22599 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22601 if test "$GCC" = yes; then
22602 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"`
22604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22615 shlibpath_var=LD_LIBRARY_PATH
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 shlibpath_var=LD_LIBRARY_PATH
22629 shlibpath_overrides_runpath=no
22630 hardcode_into_libs=yes
22631 dynamic_linker='GNU ld.so'
22634 freebsd* | dragonfly*)
22635 # DragonFly does not have aout. When/if they implement a new
22636 # versioning mechanism, adjust this.
22637 if test -x /usr/bin/objformat; then
22638 objformat=`/usr/bin/objformat`
22641 freebsd[123]*) objformat=aout ;;
22642 *) objformat=elf ;;
22645 version_type=freebsd-$objformat
22646 case $version_type in
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22657 shlibpath_var=LD_LIBRARY_PATH
22660 shlibpath_overrides_runpath=yes
22662 freebsd3.[01]* | freebsdelf3.[01]*)
22663 shlibpath_overrides_runpath=yes
22664 hardcode_into_libs=yes
22667 shlibpath_overrides_runpath=no
22668 hardcode_into_libs=yes
22677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22678 soname_spec='${libname}${release}${shared_ext}$major'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 hardcode_into_libs=yes
22683 hpux9* | hpux10* | hpux11*)
22684 # Give a soname corresponding to the major version so that dld.sl refuses to
22685 # link against other versions.
22692 hardcode_into_libs=yes
22693 dynamic_linker="$host_os dld.so"
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 if test "X$HPUX_IA64_MODE" = X32; then
22699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22707 hardcode_into_libs=yes
22708 dynamic_linker="$host_os dld.sl"
22709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22712 soname_spec='${libname}${release}${shared_ext}$major'
22713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22718 dynamic_linker="$host_os dld.sl"
22719 shlibpath_var=SHLIB_PATH
22720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722 soname_spec='${libname}${release}${shared_ext}$major'
22725 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22726 postinstall_cmds='chmod 555 $lib'
22729 irix5* | irix6* | nonstopux*)
22731 nonstopux*) version_type=nonstopux ;;
22733 if test "$lt_cv_prog_gnu_ld" = yes; then
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22744 irix5* | nonstopux*)
22745 libsuff= shlibsuff=
22748 case $LD in # libtool.m4 will add one of these switches to LD
22749 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22750 libsuff= shlibsuff= libmagic=32-bit;;
22751 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22752 libsuff=32 shlibsuff=N32 libmagic=N32;;
22753 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22754 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22755 *) libsuff= shlibsuff= libmagic=never-match;;
22759 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22760 shlibpath_overrides_runpath=no
22761 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22762 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22763 hardcode_into_libs=yes
22766 # No shared lib support for Linux oldld, aout, or coff.
22767 linux*oldld* | linux*aout* | linux*coff*)
22771 # This must be Linux ELF.
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 shlibpath_overrides_runpath=no
22781 # This implies no fast_install, which is unacceptable.
22782 # Some rework will be needed to allow for fast_install
22783 # before this can be enabled.
22784 hardcode_into_libs=yes
22786 # Append ld.so.conf contents to the search path
22787 if test -f /etc/ld.so.conf; then
22788 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' ' '`
22789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22792 # We used to test for /lib/ld.so.1 and disable shared libraries on
22793 # powerpc, because MkLinux only supported shared libraries with the
22794 # GNU dynamic linker. Since this was broken with cross compilers,
22795 # most powerpc-linux boxes support dynamic linking these days and
22796 # people can always --disable-shared, the test was removed, and we
22797 # assume the GNU/Linux dynamic linker is in use.
22798 dynamic_linker='GNU/Linux ld.so'
22805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22806 soname_spec='${libname}${release}${shared_ext}$major'
22807 shlibpath_var=LD_LIBRARY_PATH
22808 shlibpath_overrides_runpath=no
22809 hardcode_into_libs=yes
22810 dynamic_linker='GNU ld.so'
22817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22820 dynamic_linker='NetBSD (a.out) ld.so'
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22823 soname_spec='${libname}${release}${shared_ext}$major'
22824 dynamic_linker='NetBSD ld.elf_so'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 shlibpath_overrides_runpath=yes
22828 hardcode_into_libs=yes
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834 shlibpath_var=LD_LIBRARY_PATH
22835 shlibpath_overrides_runpath=yes
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 shlibpath_var=LD_LIBRARY_PATH
22845 shlibpath_overrides_runpath=yes
22851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22853 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22854 *) need_version=no ;;
22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22858 shlibpath_var=LD_LIBRARY_PATH
22859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22861 openbsd2.[89] | openbsd2.[89].*)
22862 shlibpath_overrides_runpath=no
22865 shlibpath_overrides_runpath=yes
22869 shlibpath_overrides_runpath=yes
22874 libname_spec='$name'
22877 library_names_spec='$libname${shared_ext} $libname.a'
22878 dynamic_linker='OS/2 ld.exe'
22879 shlibpath_var=LIBPATH
22882 osf3* | osf4* | osf5*)
22886 soname_spec='${libname}${release}${shared_ext}$major'
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897 shlibpath_var=LD_LIBRARY_PATH
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905 soname_spec='${libname}${release}${shared_ext}$major'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22909 # ldd complains unless libraries are executable
22910 postinstall_cmds='chmod +x $lib'
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=yes
22919 if test "$with_gnu_ld" = yes; then
22925 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 shlibpath_var=LD_LIBRARY_PATH
22930 case $host_vendor in
22932 shlibpath_overrides_runpath=no
22934 export_dynamic_flag_spec='${wl}-Blargedynsym'
22935 runpath_var=LD_RUN_PATH
22943 shlibpath_overrides_runpath=no
22944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22950 if test -d /usr/nec ;then
22952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22953 soname_spec='$libname${shared_ext}.$major'
22954 shlibpath_var=LD_LIBRARY_PATH
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 soname_spec='${libname}${release}${shared_ext}$major'
22962 shlibpath_var=LD_LIBRARY_PATH
22969 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22970 echo "${ECHO_T}$dynamic_linker" >&6
22971 test "$dynamic_linker" = no && can_build_shared=no
22973 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22974 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22975 hardcode_action_CXX=
22976 if test -n "$hardcode_libdir_flag_spec_CXX" || \
22977 test -n "$runpath_var_CXX" || \
22978 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22980 # We can hardcode non-existant directories.
22981 if test "$hardcode_direct_CXX" != no &&
22982 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22983 # have to relink, otherwise we might link with an installed library
22984 # when we should be linking with a yet-to-be-installed one
22985 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22986 test "$hardcode_minus_L_CXX" != no; then
22987 # Linking always hardcodes the temporary library directory.
22988 hardcode_action_CXX=relink
22990 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22991 hardcode_action_CXX=immediate
22994 # We cannot hardcode anything, or else we can only hardcode existing
22996 hardcode_action_CXX=unsupported
22998 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22999 echo "${ECHO_T}$hardcode_action_CXX" >&6
23001 if test "$hardcode_action_CXX" = relink; then
23002 # Fast installation is not supported
23003 enable_fast_install=no
23004 elif test "$shlibpath_overrides_runpath" = yes ||
23005 test "$enable_shared" = no; then
23006 # Fast installation is not necessary
23007 enable_fast_install=needless
23012 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23013 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23014 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23017 echo "$as_me:$LINENO: result: yes" >&5
23018 echo "${ECHO_T}yes" >&6
23020 # FIXME - insert some real tests, host_os isn't really good enough
23023 if test -n "$STRIP" ; then
23024 striplib="$STRIP -x"
23025 echo "$as_me:$LINENO: result: yes" >&5
23026 echo "${ECHO_T}yes" >&6
23028 echo "$as_me:$LINENO: result: no" >&5
23029 echo "${ECHO_T}no" >&6
23033 echo "$as_me:$LINENO: result: no" >&5
23034 echo "${ECHO_T}no" >&6
23039 if test "x$enable_dlopen" != xyes; then
23040 enable_dlopen=unknown
23041 enable_dlopen_self=unknown
23042 enable_dlopen_self_static=unknown
23049 lt_cv_dlopen="load_add_on"
23051 lt_cv_dlopen_self=yes
23055 lt_cv_dlopen="LoadLibrary"
23060 lt_cv_dlopen="dlopen"
23065 # if libdl is installed we need to link against it
23066 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 ac_check_lib_save_LIBS=$LIBS
23073 cat >conftest.$ac_ext <<_ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23080 /* Override any gcc2 internal prototype to avoid an error. */
23084 /* We use char because int might match the return type of a gcc2
23085 builtin and then its argument prototype would still apply. */
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23097 (eval $ac_link) 2>conftest.er1
23099 grep -v '^ *+' conftest.er1 >conftest.err
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
23104 { ac_try='test -z "$ac_cxx_werror_flag"
23105 || test ! -s conftest.err'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest$ac_exeext'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_cv_lib_dl_dlopen=yes
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_cv_lib_dl_dlopen=no
23124 rm -f conftest.err conftest.$ac_objext \
23125 conftest$ac_exeext conftest.$ac_ext
23126 LIBS=$ac_check_lib_save_LIBS
23128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23130 if test $ac_cv_lib_dl_dlopen = yes; then
23131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23134 lt_cv_dlopen="dyld"
23136 lt_cv_dlopen_self=yes
23143 echo "$as_me:$LINENO: checking for shl_load" >&5
23144 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23145 if test "${ac_cv_func_shl_load+set}" = set; then
23146 echo $ECHO_N "(cached) $ECHO_C" >&6
23148 cat >conftest.$ac_ext <<_ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23156 #define shl_load innocuous_shl_load
23158 /* System header to define __stub macros and hopefully few prototypes,
23159 which can conflict with char shl_load (); below.
23160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161 <limits.h> exists even on freestanding compilers. */
23164 # include <limits.h>
23166 # include <assert.h>
23171 /* Override any gcc2 internal prototype to avoid an error. */
23176 /* We use char because int might match the return type of a gcc2
23177 builtin and then its argument prototype would still apply. */
23179 /* The GNU C library defines this for functions which it implements
23180 to always fail with ENOSYS. Some functions are actually named
23181 something starting with __ and the normal name is an alias. */
23182 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23185 char (*f) () = shl_load;
23194 return f != shl_load;
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201 (eval $ac_link) 2>conftest.er1
23203 grep -v '^ *+' conftest.er1 >conftest.err
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_cxx_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest$ac_exeext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_func_shl_load=yes
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_func_shl_load=no
23228 rm -f conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23231 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23232 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23233 if test $ac_cv_func_shl_load = yes; then
23234 lt_cv_dlopen="shl_load"
23236 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23237 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 ac_check_lib_save_LIBS=$LIBS
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 /* Override any gcc2 internal prototype to avoid an error. */
23254 /* We use char because int might match the return type of a gcc2
23255 builtin and then its argument prototype would still apply. */
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_cxx_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_lib_dld_shl_load=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_lib_dld_shl_load=no
23294 rm -f conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23299 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23300 if test $ac_cv_lib_dld_shl_load = yes; then
23301 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23303 echo "$as_me:$LINENO: checking for dlopen" >&5
23304 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23305 if test "${ac_cv_func_dlopen+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23316 #define dlopen innocuous_dlopen
23318 /* System header to define __stub macros and hopefully few prototypes,
23319 which can conflict with char dlopen (); below.
23320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23321 <limits.h> exists even on freestanding compilers. */
23324 # include <limits.h>
23326 # include <assert.h>
23331 /* Override any gcc2 internal prototype to avoid an error. */
23336 /* We use char because int might match the return type of a gcc2
23337 builtin and then its argument prototype would still apply. */
23339 /* The GNU C library defines this for functions which it implements
23340 to always fail with ENOSYS. Some functions are actually named
23341 something starting with __ and the normal name is an alias. */
23342 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23345 char (*f) () = dlopen;
23354 return f != dlopen;
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23361 (eval $ac_link) 2>conftest.er1
23363 grep -v '^ *+' conftest.er1 >conftest.err
23365 cat conftest.err >&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); } &&
23368 { ac_try='test -z "$ac_cxx_werror_flag"
23369 || test ! -s conftest.err'
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest$ac_exeext'
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 ac_cv_func_dlopen=yes
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ac_cv_func_dlopen=no
23388 rm -f conftest.err conftest.$ac_objext \
23389 conftest$ac_exeext conftest.$ac_ext
23391 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23393 if test $ac_cv_func_dlopen = yes; then
23394 lt_cv_dlopen="dlopen"
23396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 ac_check_lib_save_LIBS=$LIBS
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23410 /* Override any gcc2 internal prototype to avoid an error. */
23414 /* We use char because int might match the return type of a gcc2
23415 builtin and then its argument prototype would still apply. */
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23427 (eval $ac_link) 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } &&
23434 { ac_try='test -z "$ac_cxx_werror_flag"
23435 || test ! -s conftest.err'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; } &&
23441 { ac_try='test -s conftest$ac_exeext'
23442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443 (eval $ac_try) 2>&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); }; }; then
23447 ac_cv_lib_dl_dlopen=yes
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 ac_cv_lib_dl_dlopen=no
23454 rm -f conftest.err conftest.$ac_objext \
23455 conftest$ac_exeext conftest.$ac_ext
23456 LIBS=$ac_check_lib_save_LIBS
23458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23460 if test $ac_cv_lib_dl_dlopen = yes; then
23461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23463 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23464 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23465 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23468 ac_check_lib_save_LIBS=$LIBS
23469 LIBS="-lsvld $LIBS"
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23477 /* Override any gcc2 internal prototype to avoid an error. */
23481 /* We use char because int might match the return type of a gcc2
23482 builtin and then its argument prototype would still apply. */
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23494 (eval $ac_link) 2>conftest.er1
23496 grep -v '^ *+' conftest.er1 >conftest.err
23498 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } &&
23501 { ac_try='test -z "$ac_cxx_werror_flag"
23502 || test ! -s conftest.err'
23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504 (eval $ac_try) 2>&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; } &&
23508 { ac_try='test -s conftest$ac_exeext'
23509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510 (eval $ac_try) 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_lib_svld_dlopen=yes
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519 ac_cv_lib_svld_dlopen=no
23521 rm -f conftest.err conftest.$ac_objext \
23522 conftest$ac_exeext conftest.$ac_ext
23523 LIBS=$ac_check_lib_save_LIBS
23525 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23526 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23527 if test $ac_cv_lib_svld_dlopen = yes; then
23528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23530 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23531 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23532 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23535 ac_check_lib_save_LIBS=$LIBS
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23544 /* Override any gcc2 internal prototype to avoid an error. */
23548 /* We use char because int might match the return type of a gcc2
23549 builtin and then its argument prototype would still apply. */
23559 rm -f conftest.$ac_objext conftest$ac_exeext
23560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23561 (eval $ac_link) 2>conftest.er1
23563 grep -v '^ *+' conftest.er1 >conftest.err
23565 cat conftest.err >&5
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); } &&
23568 { ac_try='test -z "$ac_cxx_werror_flag"
23569 || test ! -s conftest.err'
23570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571 (eval $ac_try) 2>&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; } &&
23575 { ac_try='test -s conftest$ac_exeext'
23576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577 (eval $ac_try) 2>&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); }; }; then
23581 ac_cv_lib_dld_dld_link=yes
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 ac_cv_lib_dld_dld_link=no
23588 rm -f conftest.err conftest.$ac_objext \
23589 conftest$ac_exeext conftest.$ac_ext
23590 LIBS=$ac_check_lib_save_LIBS
23592 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23593 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23594 if test $ac_cv_lib_dld_dld_link = yes; then
23595 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23616 if test "x$lt_cv_dlopen" != xno; then
23622 case $lt_cv_dlopen in
23624 save_CPPFLAGS="$CPPFLAGS"
23625 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23627 save_LDFLAGS="$LDFLAGS"
23628 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23631 LIBS="$lt_cv_dlopen_libs $LIBS"
23633 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23634 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23635 if test "${lt_cv_dlopen_self+set}" = set; then
23636 echo $ECHO_N "(cached) $ECHO_C" >&6
23638 if test "$cross_compiling" = yes; then :
23639 lt_cv_dlopen_self=cross
23641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23642 lt_status=$lt_dlunknown
23643 cat > conftest.$ac_ext <<EOF
23644 #line 23644 "configure"
23645 #include "confdefs.h"
23654 # define LT_DLGLOBAL RTLD_GLOBAL
23657 # define LT_DLGLOBAL DL_GLOBAL
23659 # define LT_DLGLOBAL 0
23663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23664 find out it does not work in some platform. */
23665 #ifndef LT_DLLAZY_OR_NOW
23667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23670 # define LT_DLLAZY_OR_NOW DL_LAZY
23673 # define LT_DLLAZY_OR_NOW RTLD_NOW
23676 # define LT_DLLAZY_OR_NOW DL_NOW
23678 # define LT_DLLAZY_OR_NOW 0
23686 extern "C" void exit (int);
23689 void fnord() { int i=42;}
23692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23693 int status = $lt_dlunknown;
23697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23699 /* dlclose (self); */
23705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23706 (eval $ac_link) 2>&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23710 (./conftest; exit; ) >&5 2>/dev/null
23712 case x$lt_status in
23713 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23714 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23715 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23718 # compilation failed
23719 lt_cv_dlopen_self=no
23726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23727 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23729 if test "x$lt_cv_dlopen_self" = xyes; then
23730 LDFLAGS="$LDFLAGS $link_static_flag"
23731 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23732 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23733 if test "${lt_cv_dlopen_self_static+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 if test "$cross_compiling" = yes; then :
23737 lt_cv_dlopen_self_static=cross
23739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23740 lt_status=$lt_dlunknown
23741 cat > conftest.$ac_ext <<EOF
23742 #line 23742 "configure"
23743 #include "confdefs.h"
23752 # define LT_DLGLOBAL RTLD_GLOBAL
23755 # define LT_DLGLOBAL DL_GLOBAL
23757 # define LT_DLGLOBAL 0
23761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23762 find out it does not work in some platform. */
23763 #ifndef LT_DLLAZY_OR_NOW
23765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23768 # define LT_DLLAZY_OR_NOW DL_LAZY
23771 # define LT_DLLAZY_OR_NOW RTLD_NOW
23774 # define LT_DLLAZY_OR_NOW DL_NOW
23776 # define LT_DLLAZY_OR_NOW 0
23784 extern "C" void exit (int);
23787 void fnord() { int i=42;}
23790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23791 int status = $lt_dlunknown;
23795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23797 /* dlclose (self); */
23803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23804 (eval $ac_link) 2>&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23808 (./conftest; exit; ) >&5 2>/dev/null
23810 case x$lt_status in
23811 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23812 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23813 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23816 # compilation failed
23817 lt_cv_dlopen_self_static=no
23824 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23825 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23828 CPPFLAGS="$save_CPPFLAGS"
23829 LDFLAGS="$save_LDFLAGS"
23834 case $lt_cv_dlopen_self in
23835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23836 *) enable_dlopen_self=unknown ;;
23839 case $lt_cv_dlopen_self_static in
23840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23841 *) enable_dlopen_self_static=unknown ;;
23846 # The else clause should only fire when bootstrapping the
23847 # libtool distribution, otherwise you forgot to ship ltmain.sh
23848 # with your package, and you will get complaints that there are
23849 # no rules to generate ltmain.sh.
23850 if test -f "$ltmain"; then
23851 # See if we are running on zsh, and set the options which allow our commands through
23852 # without removal of \ escapes.
23853 if test -n "${ZSH_VERSION+set}" ; then
23854 setopt NO_GLOB_SUBST
23856 # Now quote all the things that may contain metacharacters while being
23857 # careful not to overquote the AC_SUBSTed values. We take copies of the
23858 # variables and quote the copies for generation of the libtool script.
23859 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23861 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23862 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23863 deplibs_check_method reload_flag reload_cmds need_locks \
23864 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23865 lt_cv_sys_global_symbol_to_c_name_address \
23866 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23867 old_postinstall_cmds old_postuninstall_cmds \
23871 lt_prog_compiler_wl_CXX \
23872 lt_prog_compiler_pic_CXX \
23873 lt_prog_compiler_static_CXX \
23874 lt_prog_compiler_no_builtin_flag_CXX \
23875 export_dynamic_flag_spec_CXX \
23876 thread_safe_flag_spec_CXX \
23877 whole_archive_flag_spec_CXX \
23878 enable_shared_with_static_runtimes_CXX \
23879 old_archive_cmds_CXX \
23880 old_archive_from_new_cmds_CXX \
23881 predep_objects_CXX \
23882 postdep_objects_CXX \
23885 compiler_lib_search_path_CXX \
23887 archive_expsym_cmds_CXX \
23888 postinstall_cmds_CXX \
23889 postuninstall_cmds_CXX \
23890 old_archive_from_expsyms_cmds_CXX \
23891 allow_undefined_flag_CXX \
23892 no_undefined_flag_CXX \
23893 export_symbols_cmds_CXX \
23894 hardcode_libdir_flag_spec_CXX \
23895 hardcode_libdir_flag_spec_ld_CXX \
23896 hardcode_libdir_separator_CXX \
23897 hardcode_automatic_CXX \
23899 module_expsym_cmds_CXX \
23900 lt_cv_prog_compiler_c_o_CXX \
23901 exclude_expsyms_CXX \
23902 include_expsyms_CXX; do
23905 old_archive_cmds_CXX | \
23906 old_archive_from_new_cmds_CXX | \
23907 archive_cmds_CXX | \
23908 archive_expsym_cmds_CXX | \
23909 module_cmds_CXX | \
23910 module_expsym_cmds_CXX | \
23911 old_archive_from_expsyms_cmds_CXX | \
23912 export_symbols_cmds_CXX | \
23913 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23914 postinstall_cmds | postuninstall_cmds | \
23915 old_postinstall_cmds | old_postuninstall_cmds | \
23916 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23917 # Double-quote double-evaled strings.
23918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23927 *'\$0 --fallback-echo"')
23928 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23934 cat <<__EOF__ >> "$cfgfile"
23935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23939 # Shell to use when invoking shell scripts.
23942 # Whether or not to build shared libraries.
23943 build_libtool_libs=$enable_shared
23945 # Whether or not to build static libraries.
23946 build_old_libs=$enable_static
23948 # Whether or not to add -lc for building shared libraries.
23949 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23951 # Whether or not to disallow shared libs when runtime libs are static
23952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23954 # Whether or not to optimize for fast installation.
23955 fast_install=$enable_fast_install
23958 host_alias=$host_alias
23962 # The build system.
23963 build_alias=$build_alias
23967 # An echo program that does not interpret backslashes.
23972 AR_FLAGS=$lt_AR_FLAGS
23977 # A language-specific compiler.
23978 CC=$lt_compiler_CXX
23980 # Is the compiler the GNU C compiler?
23986 # The linker used to build libraries.
23989 # Whether we need hard or soft links.
23992 # A BSD-compatible nm program.
23995 # A symbol stripping program
23998 # Used to examine libraries when file_magic_cmd begins "file"
23999 MAGIC_CMD=$MAGIC_CMD
24001 # Used on cygwin: DLL creation program.
24004 # Used on cygwin: object dumper.
24007 # Used on cygwin: assembler.
24010 # The name of the directory that contains temporary libtool files.
24013 # How to create reloadable object files.
24014 reload_flag=$lt_reload_flag
24015 reload_cmds=$lt_reload_cmds
24017 # How to pass a linker flag through the compiler.
24018 wl=$lt_lt_prog_compiler_wl_CXX
24020 # Object file suffix (normally "o").
24021 objext="$ac_objext"
24023 # Old archive suffix (normally "a").
24026 # Shared library suffix (normally ".so").
24027 shrext_cmds='$shrext_cmds'
24029 # Executable file suffix (normally "").
24032 # Additional compiler flags for building library objects.
24033 pic_flag=$lt_lt_prog_compiler_pic_CXX
24036 # What is the maximum length of a command?
24037 max_cmd_len=$lt_cv_sys_max_cmd_len
24039 # Does compiler simultaneously support -c and -o options?
24040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24042 # Must we lock files when doing compilation?
24043 need_locks=$lt_need_locks
24045 # Do we need the lib prefix for modules?
24046 need_lib_prefix=$need_lib_prefix
24048 # Do we need a version for libraries?
24049 need_version=$need_version
24051 # Whether dlopen is supported.
24052 dlopen_support=$enable_dlopen
24054 # Whether dlopen of programs is supported.
24055 dlopen_self=$enable_dlopen_self
24057 # Whether dlopen of statically linked programs is supported.
24058 dlopen_self_static=$enable_dlopen_self_static
24060 # Compiler flag to prevent dynamic linking.
24061 link_static_flag=$lt_lt_prog_compiler_static_CXX
24063 # Compiler flag to turn off builtin functions.
24064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24066 # Compiler flag to allow reflexive dlopens.
24067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24069 # Compiler flag to generate shared objects directly from archives.
24070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24072 # Compiler flag to generate thread-safe objects.
24073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
24075 # Library versioning type.
24076 version_type=$version_type
24078 # Format of library name prefix.
24079 libname_spec=$lt_libname_spec
24081 # List of archive names. First name is the real one, the rest are links.
24082 # The last name is the one that the linker finds with -lNAME.
24083 library_names_spec=$lt_library_names_spec
24085 # The coded name of the library, if different from the real name.
24086 soname_spec=$lt_soname_spec
24088 # Commands used to build and install an old-style archive.
24090 old_archive_cmds=$lt_old_archive_cmds_CXX
24091 old_postinstall_cmds=$lt_old_postinstall_cmds
24092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24094 # Create an old-style archive from a shared archive.
24095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24097 # Create a temporary old-style archive to link instead of a shared archive.
24098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24100 # Commands used to build and install a shared archive.
24101 archive_cmds=$lt_archive_cmds_CXX
24102 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24103 postinstall_cmds=$lt_postinstall_cmds
24104 postuninstall_cmds=$lt_postuninstall_cmds
24106 # Commands used to build a loadable module (assumed same as above if empty)
24107 module_cmds=$lt_module_cmds_CXX
24108 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24110 # Commands to strip libraries.
24111 old_striplib=$lt_old_striplib
24112 striplib=$lt_striplib
24114 # Dependencies to place before the objects being linked to create a
24116 predep_objects=$lt_predep_objects_CXX
24118 # Dependencies to place after the objects being linked to create a
24120 postdep_objects=$lt_postdep_objects_CXX
24122 # Dependencies to place before the objects being linked to create a
24124 predeps=$lt_predeps_CXX
24126 # Dependencies to place after the objects being linked to create a
24128 postdeps=$lt_postdeps_CXX
24130 # The library search path used internally by the compiler when linking
24131 # a shared library.
24132 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24134 # Method to check whether dependent libraries are shared objects.
24135 deplibs_check_method=$lt_deplibs_check_method
24137 # Command to use when deplibs_check_method == file_magic.
24138 file_magic_cmd=$lt_file_magic_cmd
24140 # Flag that allows shared libraries with undefined symbols to be built.
24141 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24143 # Flag that forces no undefined symbols.
24144 no_undefined_flag=$lt_no_undefined_flag_CXX
24146 # Commands used to finish a libtool library installation in a directory.
24147 finish_cmds=$lt_finish_cmds
24149 # Same as above, but a single script fragment to be evaled but not shown.
24150 finish_eval=$lt_finish_eval
24152 # Take the output of nm and produce a listing of raw symbols and C names.
24153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24155 # Transform the output of nm in a proper C declaration
24156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24158 # Transform the output of nm in a C name address pair
24159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24161 # This is the shared library runtime path variable.
24162 runpath_var=$runpath_var
24164 # This is the shared library path variable.
24165 shlibpath_var=$shlibpath_var
24167 # Is shlibpath searched before the hard-coded library search path?
24168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24170 # How to hardcode a shared library path into an executable.
24171 hardcode_action=$hardcode_action_CXX
24173 # Whether we should hardcode library paths into libraries.
24174 hardcode_into_libs=$hardcode_into_libs
24176 # Flag to hardcode \$libdir into a binary during linking.
24177 # This must work even if \$libdir does not exist.
24178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24180 # If ld is used when linking, flag to hardcode \$libdir into
24181 # a binary during linking. This must work even if \$libdir does
24183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24185 # Whether we need a single -rpath flag with a separated argument.
24186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24189 # resulting binary.
24190 hardcode_direct=$hardcode_direct_CXX
24192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24193 # resulting binary.
24194 hardcode_minus_L=$hardcode_minus_L_CXX
24196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24197 # the resulting binary.
24198 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24200 # Set to yes if building a shared library automatically hardcodes DIR into the library
24201 # and all subsequent libraries and executables linked against it.
24202 hardcode_automatic=$hardcode_automatic_CXX
24204 # Variables whose values should be saved in libtool wrapper scripts and
24205 # restored at relink time.
24206 variables_saved_for_relink="$variables_saved_for_relink"
24208 # Whether libtool must link a program against all its dependency libraries.
24209 link_all_deplibs=$link_all_deplibs_CXX
24211 # Compile-time system search path for libraries
24212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24214 # Run-time system search path for libraries
24215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24217 # Fix the shell variable \$srcfile for the compiler.
24218 fix_srcfile_path="$fix_srcfile_path_CXX"
24220 # Set to yes if exported symbols are required.
24221 always_export_symbols=$always_export_symbols_CXX
24223 # The commands to list exported symbols.
24224 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24226 # The commands to extract the exported symbol list from a shared archive.
24227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24229 # Symbols that should not be listed in the preloaded symbols.
24230 exclude_expsyms=$lt_exclude_expsyms_CXX
24232 # Symbols that must always be exported.
24233 include_expsyms=$lt_include_expsyms_CXX
24235 # ### END LIBTOOL TAG CONFIG: $tagname
24241 # If there is no Makefile yet, we rely on a make rule to execute
24242 # `config.status --recheck' to rerun these tests and create the
24243 # libtool script then.
24244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24245 if test -f "$ltmain_in"; then
24246 test -f Makefile && make "$ltmain"
24252 ac_cpp='$CPP $CPPFLAGS'
24253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24261 with_gnu_ldcxx=$with_gnu_ld
24262 with_gnu_ld=$lt_save_with_gnu_ld
24263 lt_cv_path_LDCXX=$lt_cv_path_LD
24264 lt_cv_path_LD=$lt_save_path_LD
24265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24274 if test -n "$F77" && test "X$F77" != "Xno"; then
24277 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24278 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24279 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24282 archive_cmds_need_lc_F77=no
24283 allow_undefined_flag_F77=
24284 always_export_symbols_F77=no
24285 archive_expsym_cmds_F77=
24286 export_dynamic_flag_spec_F77=
24287 hardcode_direct_F77=no
24288 hardcode_libdir_flag_spec_F77=
24289 hardcode_libdir_flag_spec_ld_F77=
24290 hardcode_libdir_separator_F77=
24291 hardcode_minus_L_F77=no
24292 hardcode_automatic_F77=no
24294 module_expsym_cmds_F77=
24295 link_all_deplibs_F77=unknown
24296 old_archive_cmds_F77=$old_archive_cmds
24297 no_undefined_flag_F77=
24298 whole_archive_flag_spec_F77=
24299 enable_shared_with_static_runtimes_F77=no
24301 # Source file extension for f77 test sources.
24304 # Object file extension for compiled f77 test sources.
24308 # Code to be used in simple compile tests
24309 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
24311 # Code to be used in simple link tests
24312 lt_simple_link_test_code=" program t\n end\n"
24314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24316 # If no C compiler was specified, use CC.
24319 # Allow CC to be a program name with arguments.
24323 # save warnings/boilerplate of simple test code
24324 ac_outfile=conftest.$ac_objext
24325 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24327 _lt_compiler_boilerplate=`cat conftest.err`
24330 ac_outfile=conftest.$ac_objext
24331 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24333 _lt_linker_boilerplate=`cat conftest.err`
24337 # Allow CC to be a program name with arguments.
24342 for cc_temp in $compiler""; do
24344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24353 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24354 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24355 echo "$as_me:$LINENO: result: $can_build_shared" >&5
24356 echo "${ECHO_T}$can_build_shared" >&6
24358 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24359 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24360 test "$can_build_shared" = "no" && enable_shared=no
24362 # On AIX, shared libraries and static libraries use the same namespace, and
24363 # are all built from PIC.
24366 test "$enable_shared" = yes && enable_static=no
24367 if test -n "$RANLIB"; then
24368 archive_cmds="$archive_cmds~\$RANLIB \$lib"
24369 postinstall_cmds='$RANLIB $lib'
24373 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24374 test "$enable_shared" = yes && enable_static=no
24378 echo "$as_me:$LINENO: result: $enable_shared" >&5
24379 echo "${ECHO_T}$enable_shared" >&6
24381 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24382 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24383 # Make sure either enable_shared or enable_static is yes.
24384 test "$enable_shared" = yes || enable_static=yes
24385 echo "$as_me:$LINENO: result: $enable_static" >&5
24386 echo "${ECHO_T}$enable_static" >&6
24388 test "$ld_shlibs_F77" = no && can_build_shared=no
24393 lt_prog_compiler_wl_F77=
24394 lt_prog_compiler_pic_F77=
24395 lt_prog_compiler_static_F77=
24397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24400 if test "$GCC" = yes; then
24401 lt_prog_compiler_wl_F77='-Wl,'
24402 lt_prog_compiler_static_F77='-static'
24406 # All AIX code is PIC.
24407 if test "$host_cpu" = ia64; then
24408 # AIX 5 now supports IA64 processor
24409 lt_prog_compiler_static_F77='-Bstatic'
24414 # FIXME: we need at least 68020 code to build shared libraries, but
24415 # adding the `-m68020' flag to GCC prevents building anything better,
24417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24420 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24421 # PIC is the default for these OSes.
24424 mingw* | pw32* | os2*)
24425 # This hack is so that the source file can tell whether it is being
24426 # built for inclusion in a dll (and should export symbols for example).
24427 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24430 darwin* | rhapsody*)
24431 # PIC is the default on this platform
24432 # Common symbols not allowed in MH_DYLIB files
24433 lt_prog_compiler_pic_F77='-fno-common'
24437 # Just because we use GCC doesn't mean we suddenly get shared libraries
24438 # on systems that don't support them.
24439 lt_prog_compiler_can_build_shared_F77=no
24444 if test -d /usr/nec; then
24445 lt_prog_compiler_pic_F77=-Kconform_pic
24450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24451 # not for PA HP-UX.
24457 lt_prog_compiler_pic_F77='-fPIC'
24463 lt_prog_compiler_pic_F77='-fPIC'
24467 # PORTME Check for flag to pass linker flags through the system compiler.
24470 lt_prog_compiler_wl_F77='-Wl,'
24471 if test "$host_cpu" = ia64; then
24472 # AIX 5 now supports IA64 processor
24473 lt_prog_compiler_static_F77='-Bstatic'
24475 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24479 # PIC is the default on this platform
24480 # Common symbols not allowed in MH_DYLIB files
24481 case $cc_basename in
24483 lt_prog_compiler_pic_F77='-qnocommon'
24484 lt_prog_compiler_wl_F77='-Wl,'
24489 mingw* | pw32* | os2*)
24490 # This hack is so that the source file can tell whether it is being
24491 # built for inclusion in a dll (and should export symbols for example).
24492 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24495 hpux9* | hpux10* | hpux11*)
24496 lt_prog_compiler_wl_F77='-Wl,'
24497 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24498 # not for PA HP-UX.
24504 lt_prog_compiler_pic_F77='+Z'
24507 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24508 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24511 irix5* | irix6* | nonstopux*)
24512 lt_prog_compiler_wl_F77='-Wl,'
24513 # PIC (with -KPIC) is the default.
24514 lt_prog_compiler_static_F77='-non_shared'
24518 lt_prog_compiler_pic_F77='-KPIC'
24519 lt_prog_compiler_static_F77='-Bstatic'
24523 case $cc_basename in
24525 lt_prog_compiler_wl_F77='-Wl,'
24526 lt_prog_compiler_pic_F77='-KPIC'
24527 lt_prog_compiler_static_F77='-static'
24529 pgcc* | pgf77* | pgf90* | pgf95*)
24530 # Portland Group compilers (*not* the Pentium gcc compiler,
24531 # which looks to be a dead project)
24532 lt_prog_compiler_wl_F77='-Wl,'
24533 lt_prog_compiler_pic_F77='-fpic'
24534 lt_prog_compiler_static_F77='-Bstatic'
24537 lt_prog_compiler_wl_F77='-Wl,'
24538 # All Alpha code is PIC.
24539 lt_prog_compiler_static_F77='-non_shared'
24544 osf3* | osf4* | osf5*)
24545 lt_prog_compiler_wl_F77='-Wl,'
24546 # All OSF/1 code is PIC.
24547 lt_prog_compiler_static_F77='-non_shared'
24551 lt_prog_compiler_pic_F77='-Kpic'
24552 lt_prog_compiler_static_F77='-dn'
24556 lt_prog_compiler_pic_F77='-KPIC'
24557 lt_prog_compiler_static_F77='-Bstatic'
24558 case $cc_basename in
24559 f77* | f90* | f95*)
24560 lt_prog_compiler_wl_F77='-Qoption ld ';;
24562 lt_prog_compiler_wl_F77='-Wl,';;
24567 lt_prog_compiler_wl_F77='-Qoption ld '
24568 lt_prog_compiler_pic_F77='-PIC'
24569 lt_prog_compiler_static_F77='-Bstatic'
24572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24573 lt_prog_compiler_wl_F77='-Wl,'
24574 lt_prog_compiler_pic_F77='-KPIC'
24575 lt_prog_compiler_static_F77='-Bstatic'
24579 if test -d /usr/nec ;then
24580 lt_prog_compiler_pic_F77='-Kconform_pic'
24581 lt_prog_compiler_static_F77='-Bstatic'
24586 lt_prog_compiler_wl_F77='-Wl,'
24587 lt_prog_compiler_can_build_shared_F77=no
24591 lt_prog_compiler_pic_F77='-pic'
24592 lt_prog_compiler_static_F77='-Bstatic'
24596 lt_prog_compiler_can_build_shared_F77=no
24601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24602 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24605 # Check to make sure the PIC flag actually works.
24607 if test -n "$lt_prog_compiler_pic_F77"; then
24609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24611 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 lt_prog_compiler_pic_works_F77=no
24615 ac_outfile=conftest.$ac_objext
24616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24617 lt_compiler_flag="$lt_prog_compiler_pic_F77"
24618 # Insert the option either (1) after the last *FLAGS variable, or
24619 # (2) before a word containing "conftest.", or (3) at the end.
24620 # Note that $ac_compile itself does not contain backslashes and begins
24621 # with a dollar sign (not a hyphen), so the echo should work correctly.
24622 # The option is referenced via a variable to avoid confusing sed.
24623 lt_compile=`echo "$ac_compile" | $SED \
24624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24626 -e 's:$: $lt_compiler_flag:'`
24627 (eval echo "\"\$as_me:24627: $lt_compile\"" >&5)
24628 (eval "$lt_compile" 2>conftest.err)
24630 cat conftest.err >&5
24631 echo "$as_me:24631: \$? = $ac_status" >&5
24632 if (exit $ac_status) && test -s "$ac_outfile"; then
24633 # The compiler can only warn and ignore the option if not recognized
24634 # So say no if there are warnings other than the usual output.
24635 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24636 $SED '/^$/d' conftest.err >conftest.er2
24637 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24638 lt_prog_compiler_pic_works_F77=yes
24644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24645 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24647 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24648 case $lt_prog_compiler_pic_F77 in
24650 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24653 lt_prog_compiler_pic_F77=
24654 lt_prog_compiler_can_build_shared_F77=no
24659 # For platforms which do not support PIC, -DPIC is meaningless:
24661 lt_prog_compiler_pic_F77=
24664 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24668 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24669 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24670 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24671 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 lt_cv_prog_compiler_c_o_F77=no
24674 $rm -r conftest 2>/dev/null
24678 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24680 lt_compiler_flag="-o out/conftest2.$ac_objext"
24681 # Insert the option either (1) after the last *FLAGS variable, or
24682 # (2) before a word containing "conftest.", or (3) at the end.
24683 # Note that $ac_compile itself does not contain backslashes and begins
24684 # with a dollar sign (not a hyphen), so the echo should work correctly.
24685 lt_compile=`echo "$ac_compile" | $SED \
24686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24688 -e 's:$: $lt_compiler_flag:'`
24689 (eval echo "\"\$as_me:24689: $lt_compile\"" >&5)
24690 (eval "$lt_compile" 2>out/conftest.err)
24692 cat out/conftest.err >&5
24693 echo "$as_me:24693: \$? = $ac_status" >&5
24694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24696 # The compiler can only warn and ignore the option if not recognized
24697 # So say no if there are warnings
24698 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
24699 $SED '/^$/d' out/conftest.err >out/conftest.er2
24700 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24701 lt_cv_prog_compiler_c_o_F77=yes
24706 # SGI C++ compiler will create directory out/ii_files/ for
24707 # template instantiation
24708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24709 $rm out/* && rmdir out
24715 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24716 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24719 hard_links="nottested"
24720 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24721 # do not overwrite the value of need_locks provided by the user
24722 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24723 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24728 ln conftest.a conftest.b 2>&5 || hard_links=no
24729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24730 echo "$as_me:$LINENO: result: $hard_links" >&5
24731 echo "${ECHO_T}$hard_links" >&6
24732 if test "$hard_links" = no; then
24733 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24734 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24741 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24742 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24745 allow_undefined_flag_F77=
24746 enable_shared_with_static_runtimes_F77=no
24748 archive_expsym_cmds_F77=
24749 old_archive_From_new_cmds_F77=
24750 old_archive_from_expsyms_cmds_F77=
24751 export_dynamic_flag_spec_F77=
24752 whole_archive_flag_spec_F77=
24753 thread_safe_flag_spec_F77=
24754 hardcode_libdir_flag_spec_F77=
24755 hardcode_libdir_flag_spec_ld_F77=
24756 hardcode_libdir_separator_F77=
24757 hardcode_direct_F77=no
24758 hardcode_minus_L_F77=no
24759 hardcode_shlibpath_var_F77=unsupported
24760 link_all_deplibs_F77=unknown
24761 hardcode_automatic_F77=no
24763 module_expsym_cmds_F77=
24764 always_export_symbols_F77=no
24765 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24766 # include_expsyms should be a list of space-separated symbols to be *always*
24767 # included in the symbol list
24768 include_expsyms_F77=
24769 # exclude_expsyms can be an extended regexp of symbols to exclude
24770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24772 # as well as any symbol that contains `d'.
24773 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24775 # platforms (ab)use it in PIC code, but their linkers get confused if
24776 # the symbol is explicitly referenced. Since portable code cannot
24777 # rely on this symbol name, it's probably fine to never include it in
24778 # preloaded symbol tables.
24779 extract_expsyms_cmds=
24780 # Just being paranoid about ensuring that cc_basename is set.
24781 for cc_temp in $compiler""; do
24783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24792 cygwin* | mingw* | pw32*)
24793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24794 # When not using gcc, we currently assume that we are using
24795 # Microsoft Visual C++.
24796 if test "$GCC" != yes; then
24806 if test "$with_gnu_ld" = yes; then
24807 # If archive_cmds runs LD, not CC, wlarc should be empty
24810 # Set some defaults for GNU ld with shared library support. These
24811 # are reset later if shared libraries are not supported. Putting them
24812 # here allows them to be overridden if necessary.
24813 runpath_var=LD_RUN_PATH
24814 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24815 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24816 # ancient GNU ld didn't support --whole-archive et. al.
24817 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24818 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24820 whole_archive_flag_spec_F77=
24822 supports_anon_versioning=no
24823 case `$LD -v 2>/dev/null` in
24824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24827 *\ 2.11.*) ;; # other 2.11 versions
24828 *) supports_anon_versioning=yes ;;
24831 # See if GNU ld supports shared libraries.
24833 aix3* | aix4* | aix5*)
24834 # On AIX/PPC, the GNU linker is very broken
24835 if test "$host_cpu" != ia64; then
24839 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24840 *** to be unable to reliably create shared libraries on AIX.
24841 *** Therefore, libtool is disabling shared libraries support. If you
24842 *** really care for shared libraries, you may want to modify your PATH
24843 *** so that a non-GNU linker is found, and then restart.
24850 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)'
24851 hardcode_libdir_flag_spec_F77='-L$libdir'
24852 hardcode_minus_L_F77=yes
24854 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24855 # that the semantics of dynamic libraries on AmigaOS, at least up
24856 # to version 4, is to share data among multiple programs linked
24857 # with the same dynamic library. Since this doesn't match the
24858 # behavior of shared libraries on other platforms, we can't use
24864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24865 allow_undefined_flag_F77=unsupported
24866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24867 # support --undefined. This deserves some investigation. FIXME
24868 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24874 cygwin* | mingw* | pw32*)
24875 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24876 # as there is no search path for DLLs.
24877 hardcode_libdir_flag_spec_F77='-L$libdir'
24878 allow_undefined_flag_F77=unsupported
24879 always_export_symbols_F77=no
24880 enable_shared_with_static_runtimes_F77=yes
24881 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24883 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24884 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24885 # If the export-symbols file already is a .def file (1st line
24886 # is EXPORTS), use it as is; otherwise, prepend...
24887 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24888 cp $export_symbols $output_objdir/$soname.def;
24890 echo EXPORTS > $output_objdir/$soname.def;
24891 cat $export_symbols >> $output_objdir/$soname.def;
24893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24902 case $cc_basename,$host_cpu in
24903 pgcc*) # Portland Group C compiler
24904 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'
24905 tmp_addflag=' $pic_flag'
24907 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24908 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'
24909 tmp_addflag=' $pic_flag -Mnomain' ;;
24910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24911 tmp_addflag=' -i_dynamic' ;;
24912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24913 tmp_addflag=' -i_dynamic -nofor_main' ;;
24914 ifc* | ifort*) # Intel Fortran compiler
24915 tmp_addflag=' -nofor_main' ;;
24917 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24919 if test $supports_anon_versioning = yes; then
24920 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24921 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24922 $echo "local: *; };" >> $output_objdir/$libname.ver~
24923 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24931 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24932 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24935 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24936 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24941 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24945 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24946 *** create shared libraries on Solaris systems. Therefore, libtool
24947 *** is disabling shared libraries support. We urge you to upgrade GNU
24948 *** binutils to release 2.9.1 or newer. Another option is to modify
24949 *** your PATH or compiler configuration so that the native linker is
24950 *** used, and then restart.
24953 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24954 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24955 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24962 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24964 hardcode_direct_F77=yes
24965 hardcode_shlibpath_var_F77=no
24969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24971 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24978 if test "$ld_shlibs_F77" = no; then
24980 hardcode_libdir_flag_spec_F77=
24981 export_dynamic_flag_spec_F77=
24982 whole_archive_flag_spec_F77=
24985 # PORTME fill in a description of your system's linker (not GNU ld)
24988 allow_undefined_flag_F77=unsupported
24989 always_export_symbols_F77=yes
24990 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'
24991 # Note: this linker hardcodes the directories in LIBPATH if there
24992 # are no directories specified by -L.
24993 hardcode_minus_L_F77=yes
24994 if test "$GCC" = yes && test -z "$link_static_flag"; then
24995 # Neither direct hardcoding nor static linking is supported with a
24997 hardcode_direct_F77=unsupported
25002 if test "$host_cpu" = ia64; then
25003 # On IA64, the linker does run time linking by default, so we don't
25004 # have to do anything special.
25005 aix_use_runtimelinking=no
25006 exp_sym_flag='-Bexport'
25009 # If we're using GNU nm, then we don't want the "-C" option.
25010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
25011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25012 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'
25014 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'
25016 aix_use_runtimelinking=no
25018 # Test if we are trying to use run time linking or normal
25019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25020 # need to do runtime linking.
25021 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25022 for ld_flag in $LDFLAGS; do
25023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25024 aix_use_runtimelinking=yes
25030 exp_sym_flag='-bexport'
25031 no_entry_flag='-bnoentry'
25034 # When large executables or shared objects are built, AIX ld can
25035 # have problems creating the table of contents. If linking a library
25036 # or program results in "error TOC overflow" add -mminimal-toc to
25037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25040 archive_cmds_F77=''
25041 hardcode_direct_F77=yes
25042 hardcode_libdir_separator_F77=':'
25043 link_all_deplibs_F77=yes
25045 if test "$GCC" = yes; then
25046 case $host_os in aix4.[012]|aix4.[012].*)
25047 # We only want to do this on AIX 4.2 and lower, the check
25048 # below for broken collect2 doesn't work under 4.3+
25049 collect2name=`${CC} -print-prog-name=collect2`
25050 if test -f "$collect2name" && \
25051 strings "$collect2name" | grep resolve_lib_name >/dev/null
25053 # We have reworked collect2
25054 hardcode_direct_F77=yes
25056 # We have old collect2
25057 hardcode_direct_F77=unsupported
25058 # It fails to find uninstalled libraries when the uninstalled
25059 # path is not listed in the libpath. Setting hardcode_minus_L
25060 # to unsupported forces relinking
25061 hardcode_minus_L_F77=yes
25062 hardcode_libdir_flag_spec_F77='-L$libdir'
25063 hardcode_libdir_separator_F77=
25066 shared_flag='-shared'
25067 if test "$aix_use_runtimelinking" = yes; then
25068 shared_flag="$shared_flag "'${wl}-G'
25072 if test "$host_cpu" = ia64; then
25073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25074 # chokes on -Wl,-G. The following line is correct:
25077 if test "$aix_use_runtimelinking" = yes; then
25078 shared_flag='${wl}-G'
25080 shared_flag='${wl}-bM:SRE'
25085 # It seems that -bexpall does not export symbols beginning with
25086 # underscore (_), so it is better to generate a list of symbols to export.
25087 always_export_symbols_F77=yes
25088 if test "$aix_use_runtimelinking" = yes; then
25089 # Warning - without using the other runtime loading flags (-brtl),
25090 # -berok will link without error, but may produce a broken library.
25091 allow_undefined_flag_F77='-berok'
25092 # Determine the default libpath from the value encoded in an empty executable.
25093 cat >conftest.$ac_ext <<_ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25100 (eval $ac_link) 2>conftest.er1
25102 grep -v '^ *+' conftest.er1 >conftest.err
25104 cat conftest.err >&5
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } &&
25107 { ac_try='test -z "$ac_f77_werror_flag"
25108 || test ! -s conftest.err'
25109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110 (eval $ac_try) 2>&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); }; } &&
25114 { ac_try='test -s conftest$ac_exeext'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }; then
25121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25123 # Check for a 64-bit object if we didn't find anything.
25124 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; }
25127 echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25131 rm -f conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25135 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25136 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"
25138 if test "$host_cpu" = ia64; then
25139 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
25140 allow_undefined_flag_F77="-z nodefs"
25141 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"
25143 # Determine the default libpath from the value encoded in an empty executable.
25144 cat >conftest.$ac_ext <<_ACEOF
25149 rm -f conftest.$ac_objext conftest$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151 (eval $ac_link) 2>conftest.er1
25153 grep -v '^ *+' conftest.er1 >conftest.err
25155 cat conftest.err >&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } &&
25158 { ac_try='test -z "$ac_f77_werror_flag"
25159 || test ! -s conftest.err'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; } &&
25165 { ac_try='test -s conftest$ac_exeext'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; }; then
25172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25174 # Check for a 64-bit object if we didn't find anything.
25175 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; }
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25182 rm -f conftest.err conftest.$ac_objext \
25183 conftest$ac_exeext conftest.$ac_ext
25184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25186 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25187 # Warning - without using the other run time loading flags,
25188 # -berok will link without error, but may produce a broken library.
25189 no_undefined_flag_F77=' ${wl}-bernotok'
25190 allow_undefined_flag_F77=' ${wl}-berok'
25191 # -bexpall does not export symbols beginning with underscore (_)
25192 always_export_symbols_F77=yes
25193 # Exported symbols can be pulled into shared objects from archives
25194 whole_archive_flag_spec_F77=' '
25195 archive_cmds_need_lc_F77=yes
25196 # This is similar to how AIX traditionally builds its shared libraries.
25197 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'
25203 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)'
25204 hardcode_libdir_flag_spec_F77='-L$libdir'
25205 hardcode_minus_L_F77=yes
25206 # see comment about different semantics on the GNU ld section
25211 export_dynamic_flag_spec_F77=-rdynamic
25214 cygwin* | mingw* | pw32*)
25215 # When not using gcc, we currently assume that we are using
25216 # Microsoft Visual C++.
25217 # hardcode_libdir_flag_spec is actually meaningless, as there is
25218 # no search path for DLLs.
25219 hardcode_libdir_flag_spec_F77=' '
25220 allow_undefined_flag_F77=unsupported
25221 # Tell ltmain to make .lib files, not .a files.
25223 # Tell ltmain to make .dll files, not .so files.
25225 # FIXME: Setting linknames here is a bad hack.
25226 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25227 # The linker will automatically build a .lib file if we build a DLL.
25228 old_archive_From_new_cmds_F77='true'
25229 # FIXME: Should let the user specify the lib program.
25230 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
25231 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
25232 enable_shared_with_static_runtimes_F77=yes
25235 darwin* | rhapsody*)
25237 rhapsody* | darwin1.[012])
25238 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
25241 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25242 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25244 case ${MACOSX_DEPLOYMENT_TARGET} in
25246 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25249 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
25255 archive_cmds_need_lc_F77=no
25256 hardcode_direct_F77=no
25257 hardcode_automatic_F77=yes
25258 hardcode_shlibpath_var_F77=unsupported
25259 whole_archive_flag_spec_F77=''
25260 link_all_deplibs_F77=yes
25261 if test "$GCC" = yes ; then
25262 output_verbose_link_cmd='echo'
25263 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25266 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}'
25267 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}'
25269 case $cc_basename in
25271 output_verbose_link_cmd='echo'
25272 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25273 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25275 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}'
25276 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}'
25286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25287 hardcode_libdir_flag_spec_F77='-L$libdir'
25288 hardcode_shlibpath_var_F77=no
25295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25296 # support. Future versions do this automatically, but an explicit c++rt0.o
25297 # does not break anything, and helps significantly (at the cost of a little
25300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25301 hardcode_libdir_flag_spec_F77='-R$libdir'
25302 hardcode_direct_F77=yes
25303 hardcode_shlibpath_var_F77=no
25306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25309 hardcode_direct_F77=yes
25310 hardcode_minus_L_F77=yes
25311 hardcode_shlibpath_var_F77=no
25314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25315 freebsd* | kfreebsd*-gnu | dragonfly*)
25316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25317 hardcode_libdir_flag_spec_F77='-R$libdir'
25318 hardcode_direct_F77=yes
25319 hardcode_shlibpath_var_F77=no
25323 if test "$GCC" = yes; then
25324 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'
25326 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'
25328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25329 hardcode_libdir_separator_F77=:
25330 hardcode_direct_F77=yes
25332 # hardcode_minus_L: Not really in the search PATH,
25333 # but as the default location of the library.
25334 hardcode_minus_L_F77=yes
25335 export_dynamic_flag_spec_F77='${wl}-E'
25339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25342 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25351 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25358 if test "$with_gnu_ld" = no; then
25361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
25363 hardcode_libdir_separator_F77=:
25364 hardcode_direct_F77=no
25365 hardcode_shlibpath_var_F77=no
25368 hardcode_libdir_flag_spec_F77='-L$libdir'
25369 hardcode_direct_F77=no
25370 hardcode_shlibpath_var_F77=no
25372 # hardcode_minus_L: Not really in the search PATH,
25373 # but as the default location of the library.
25374 hardcode_minus_L_F77=yes
25377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25378 hardcode_libdir_separator_F77=:
25379 hardcode_direct_F77=yes
25380 export_dynamic_flag_spec_F77='${wl}-E'
25382 # hardcode_minus_L: Not really in the search PATH,
25383 # but as the default location of the library.
25384 hardcode_minus_L_F77=yes
25390 irix5* | irix6* | nonstopux*)
25391 if test "$GCC" = yes; then
25392 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'
25394 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'
25395 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
25397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25398 hardcode_libdir_separator_F77=:
25399 link_all_deplibs_F77=yes
25403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25406 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25408 hardcode_libdir_flag_spec_F77='-R$libdir'
25409 hardcode_direct_F77=yes
25410 hardcode_shlibpath_var_F77=no
25414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415 hardcode_direct_F77=yes
25416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25417 hardcode_libdir_separator_F77=:
25418 hardcode_shlibpath_var_F77=no
25422 hardcode_direct_F77=yes
25423 hardcode_shlibpath_var_F77=no
25424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25426 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25428 export_dynamic_flag_spec_F77='${wl}-E'
25431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25432 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25433 hardcode_libdir_flag_spec_F77='-R$libdir'
25436 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25444 hardcode_libdir_flag_spec_F77='-L$libdir'
25445 hardcode_minus_L_F77=yes
25446 allow_undefined_flag_F77=unsupported
25447 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'
25448 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25452 if test "$GCC" = yes; then
25453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25454 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'
25456 allow_undefined_flag_F77=' -expect_unresolved \*'
25457 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'
25459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25460 hardcode_libdir_separator_F77=:
25463 osf4* | osf5*) # as osf3* with the addition of -msym flag
25464 if test "$GCC" = yes; then
25465 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25466 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'
25467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25469 allow_undefined_flag_F77=' -expect_unresolved \*'
25470 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'
25471 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~
25472 $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'
25474 # Both c and cxx compiler support -rpath directly
25475 hardcode_libdir_flag_spec_F77='-rpath $libdir'
25477 hardcode_libdir_separator_F77=:
25481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25482 hardcode_shlibpath_var_F77=no
25483 export_dynamic_flag_spec_F77='${wl}-Bexport'
25484 runpath_var=LD_RUN_PATH
25485 hardcode_runpath_var=yes
25489 no_undefined_flag_F77=' -z text'
25490 if test "$GCC" = yes; then
25492 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25494 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25497 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25499 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25501 hardcode_libdir_flag_spec_F77='-R$libdir'
25502 hardcode_shlibpath_var_F77=no
25504 solaris2.[0-5] | solaris2.[0-5].*) ;;
25506 # The compiler driver will combine linker options so we
25507 # cannot just pass the convience library names through
25508 # without $wl, iff we do not link with $LD.
25509 # Luckily, gcc supports the same syntax we need for Sun Studio.
25510 # Supported since Solaris 2.6 (maybe 2.5.1?)
25513 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25515 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' ;;
25518 link_all_deplibs_F77=yes
25522 if test "x$host_vendor" = xsequent; then
25523 # Use $CC to link under sequent, because it throws in some extra .o
25524 # files that make .init and .fini sections work.
25525 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25527 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25529 hardcode_libdir_flag_spec_F77='-L$libdir'
25530 hardcode_direct_F77=yes
25531 hardcode_minus_L_F77=yes
25532 hardcode_shlibpath_var_F77=no
25536 case $host_vendor in
25538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25539 hardcode_direct_F77=yes # is this really true???
25542 ## LD is ld it makes a PLAMLIB
25543 ## CC just makes a GrossModule.
25544 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25545 reload_cmds_F77='$CC -r -o $output$reload_objs'
25546 hardcode_direct_F77=no
25549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25550 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25553 runpath_var='LD_RUN_PATH'
25554 hardcode_shlibpath_var_F77=no
25558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25559 hardcode_shlibpath_var_F77=no
25560 export_dynamic_flag_spec_F77='-Bexport'
25564 if test -d /usr/nec; then
25565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25566 hardcode_shlibpath_var_F77=no
25567 runpath_var=LD_RUN_PATH
25568 hardcode_runpath_var=yes
25574 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25575 hardcode_direct_F77=yes
25576 hardcode_minus_L_F77=no
25577 hardcode_shlibpath_var_F77=no
25578 hardcode_runpath_var=yes
25579 runpath_var=LD_RUN_PATH
25582 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
25583 no_undefined_flag_F77='${wl}-z ${wl}text'
25584 if test "$GCC" = yes; then
25585 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25587 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25589 runpath_var='LD_RUN_PATH'
25590 hardcode_shlibpath_var_F77=no
25594 no_undefined_flag_F77=' -z text'
25595 # $CC -shared without GNU ld will not create a library from C++
25596 # object files and a static libstdc++, better avoid it by now
25597 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25598 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25600 hardcode_libdir_flag_spec_F77=
25601 hardcode_shlibpath_var_F77=no
25602 runpath_var='LD_RUN_PATH'
25606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25607 hardcode_libdir_flag_spec_F77='-L$libdir'
25608 hardcode_shlibpath_var_F77=no
25617 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25618 echo "${ECHO_T}$ld_shlibs_F77" >&6
25619 test "$ld_shlibs_F77" = no && can_build_shared=no
25621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25622 if test "$GCC" = yes; then
25623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25627 # Do we need to explicitly link libc?
25629 case "x$archive_cmds_need_lc_F77" in
25631 # Assume -lc should be added
25632 archive_cmds_need_lc_F77=yes
25634 if test "$enable_shared" = yes && test "$GCC" = yes; then
25635 case $archive_cmds_F77 in
25637 # FIXME: we may have to deal with multi-command sequences.
25640 # Test whether the compiler implicitly links with -lc since on some
25641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25642 # to ld, don't add -lc before -lgcc.
25643 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25644 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649 (eval $ac_compile) 2>&5
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); } 2>conftest.err; then
25655 libobjs=conftest.$ac_objext
25657 wl=$lt_prog_compiler_wl_F77
25663 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25664 allow_undefined_flag_F77=
25665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25666 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }
25671 archive_cmds_need_lc_F77=no
25673 archive_cmds_need_lc_F77=yes
25675 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25677 cat conftest.err 1>&5
25680 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25681 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25688 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25690 library_names_spec=
25691 libname_spec='lib$name'
25695 postuninstall_cmds=
25699 shlibpath_overrides_runpath=unknown
25701 dynamic_linker="$host_os ld.so"
25702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25703 if test "$GCC" = yes; then
25704 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25705 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25706 # if the path contains ";" then we assume it to be the separator
25707 # otherwise default to the standard path separator (i.e. ":") - it is
25708 # assumed that no part of a normal pathname contains ";" but that should
25709 # okay in the real world where ";" in dirpaths is itself problematic.
25710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25715 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25717 need_lib_prefix=unknown
25718 hardcode_into_libs=no
25720 # when you set need_version to no, make sure it does not cause -set_version
25721 # flags to be left without arguments
25722 need_version=unknown
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25728 shlibpath_var=LIBPATH
25730 # AIX 3 has no versioning support, so we append a major version to the name.
25731 soname_spec='${libname}${release}${shared_ext}$major'
25738 hardcode_into_libs=yes
25739 if test "$host_cpu" = ia64; then
25740 # AIX 5 supports IA64
25741 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25742 shlibpath_var=LD_LIBRARY_PATH
25744 # With GCC up to 2.95.x, collect2 would create an import file
25745 # for dependence libraries. The import file would start with
25746 # the line `#! .'. This would cause the generated library to
25747 # depend on `.', always an invalid library. This was fixed in
25748 # development snapshots of GCC prior to 3.0.
25750 aix4 | aix4.[01] | aix4.[01].*)
25751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25753 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25756 can_build_shared=no
25760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25761 # soname into executable. Probably we can add versioning support to
25762 # collect2, so additional links can be useful in future.
25763 if test "$aix_use_runtimelinking" = yes; then
25764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25765 # instead of lib<name>.a to let people know that these are not
25766 # typical AIX shared libraries.
25767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25769 # We preserve .a as extension for shared libraries through AIX4.2
25770 # and later when we are not doing run time linking.
25771 library_names_spec='${libname}${release}.a $libname.a'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25774 shlibpath_var=LIBPATH
25779 library_names_spec='$libname.ixlibrary $libname.a'
25780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25781 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'
25785 library_names_spec='${libname}${shared_ext}'
25786 dynamic_linker="$host_os ld.so"
25787 shlibpath_var=LIBRARY_PATH
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25794 soname_spec='${libname}${release}${shared_ext}$major'
25795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25796 shlibpath_var=LD_LIBRARY_PATH
25797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25799 # the default ld.so.conf also contains /usr/contrib/lib and
25800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25801 # libtool to hard-code these into programs
25804 cygwin* | mingw* | pw32*)
25805 version_type=windows
25810 case $GCC,$host_os in
25811 yes,cygwin* | yes,mingw* | yes,pw32*)
25812 library_names_spec='$libname.dll.a'
25813 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25814 postinstall_cmds='base_file=`basename \${file}`~
25815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25816 dldir=$destdir/`dirname \$dlpath`~
25817 test -d \$dldir || mkdir -p \$dldir~
25818 $install_prog $dir/$dlname \$dldir/$dlname~
25819 chmod a+x \$dldir/$dlname'
25820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25821 dlpath=$dir/\$dldll~
25823 shlibpath_overrides_runpath=yes
25827 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25828 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25829 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25832 # MinGW DLLs use traditional 'lib' prefix
25833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25835 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25836 # It is most probably a Windows format PATH printed by
25837 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25838 # path with ; separators, and with drive letters. We can handle the
25839 # drive letters (cygwin fileutils understands them), so leave them,
25840 # especially as we might pass files found there to a mingw objdump,
25841 # which wouldn't understand a cygwinified path. Ahh.
25842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25848 # pw32 DLLs use 'pw' prefix rather than 'lib'
25849 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25855 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25858 dynamic_linker='Win32 ld.exe'
25859 # FIXME: first we should search . and the directory the executable is in
25863 darwin* | rhapsody*)
25864 dynamic_linker="$host_os dyld"
25865 version_type=darwin
25868 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25869 soname_spec='${libname}${release}${major}$shared_ext'
25870 shlibpath_overrides_runpath=yes
25871 shlibpath_var=DYLD_LIBRARY_PATH
25872 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25873 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25874 if test "$GCC" = yes; then
25875 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"`
25877 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25900 soname_spec='${libname}${release}${shared_ext}$major'
25901 shlibpath_var=LD_LIBRARY_PATH
25902 shlibpath_overrides_runpath=no
25903 hardcode_into_libs=yes
25904 dynamic_linker='GNU ld.so'
25907 freebsd* | dragonfly*)
25908 # DragonFly does not have aout. When/if they implement a new
25909 # versioning mechanism, adjust this.
25910 if test -x /usr/bin/objformat; then
25911 objformat=`/usr/bin/objformat`
25914 freebsd[123]*) objformat=aout ;;
25915 *) objformat=elf ;;
25918 version_type=freebsd-$objformat
25919 case $version_type in
25921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25930 shlibpath_var=LD_LIBRARY_PATH
25933 shlibpath_overrides_runpath=yes
25935 freebsd3.[01]* | freebsdelf3.[01]*)
25936 shlibpath_overrides_runpath=yes
25937 hardcode_into_libs=yes
25940 shlibpath_overrides_runpath=no
25941 hardcode_into_libs=yes
25950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25951 soname_spec='${libname}${release}${shared_ext}$major'
25952 shlibpath_var=LD_LIBRARY_PATH
25953 hardcode_into_libs=yes
25956 hpux9* | hpux10* | hpux11*)
25957 # Give a soname corresponding to the major version so that dld.sl refuses to
25958 # link against other versions.
25965 hardcode_into_libs=yes
25966 dynamic_linker="$host_os dld.so"
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 soname_spec='${libname}${release}${shared_ext}$major'
25971 if test "X$HPUX_IA64_MODE" = X32; then
25972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25980 hardcode_into_libs=yes
25981 dynamic_linker="$host_os dld.sl"
25982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985 soname_spec='${libname}${release}${shared_ext}$major'
25986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25991 dynamic_linker="$host_os dld.sl"
25992 shlibpath_var=SHLIB_PATH
25993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25995 soname_spec='${libname}${release}${shared_ext}$major'
25998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25999 postinstall_cmds='chmod 555 $lib'
26002 irix5* | irix6* | nonstopux*)
26004 nonstopux*) version_type=nonstopux ;;
26006 if test "$lt_cv_prog_gnu_ld" = yes; then
26014 soname_spec='${libname}${release}${shared_ext}$major'
26015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26017 irix5* | nonstopux*)
26018 libsuff= shlibsuff=
26021 case $LD in # libtool.m4 will add one of these switches to LD
26022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26023 libsuff= shlibsuff= libmagic=32-bit;;
26024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26025 libsuff=32 shlibsuff=N32 libmagic=N32;;
26026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26028 *) libsuff= shlibsuff= libmagic=never-match;;
26032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26033 shlibpath_overrides_runpath=no
26034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26036 hardcode_into_libs=yes
26039 # No shared lib support for Linux oldld, aout, or coff.
26040 linux*oldld* | linux*aout* | linux*coff*)
26044 # This must be Linux ELF.
26049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050 soname_spec='${libname}${release}${shared_ext}$major'
26051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26052 shlibpath_var=LD_LIBRARY_PATH
26053 shlibpath_overrides_runpath=no
26054 # This implies no fast_install, which is unacceptable.
26055 # Some rework will be needed to allow for fast_install
26056 # before this can be enabled.
26057 hardcode_into_libs=yes
26059 # Append ld.so.conf contents to the search path
26060 if test -f /etc/ld.so.conf; then
26061 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' ' '`
26062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26065 # We used to test for /lib/ld.so.1 and disable shared libraries on
26066 # powerpc, because MkLinux only supported shared libraries with the
26067 # GNU dynamic linker. Since this was broken with cross compilers,
26068 # most powerpc-linux boxes support dynamic linking these days and
26069 # people can always --disable-shared, the test was removed, and we
26070 # assume the GNU/Linux dynamic linker is in use.
26071 dynamic_linker='GNU/Linux ld.so'
26078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26079 soname_spec='${libname}${release}${shared_ext}$major'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 shlibpath_overrides_runpath=no
26082 hardcode_into_libs=yes
26083 dynamic_linker='GNU ld.so'
26090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26093 dynamic_linker='NetBSD (a.out) ld.so'
26095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26096 soname_spec='${libname}${release}${shared_ext}$major'
26097 dynamic_linker='NetBSD ld.elf_so'
26099 shlibpath_var=LD_LIBRARY_PATH
26100 shlibpath_overrides_runpath=yes
26101 hardcode_into_libs=yes
26106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26107 shlibpath_var=LD_LIBRARY_PATH
26108 shlibpath_overrides_runpath=yes
26115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26116 soname_spec='${libname}${release}${shared_ext}$major'
26117 shlibpath_var=LD_LIBRARY_PATH
26118 shlibpath_overrides_runpath=yes
26124 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26126 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26127 *) need_version=no ;;
26129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26131 shlibpath_var=LD_LIBRARY_PATH
26132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26134 openbsd2.[89] | openbsd2.[89].*)
26135 shlibpath_overrides_runpath=no
26138 shlibpath_overrides_runpath=yes
26142 shlibpath_overrides_runpath=yes
26147 libname_spec='$name'
26150 library_names_spec='$libname${shared_ext} $libname.a'
26151 dynamic_linker='OS/2 ld.exe'
26152 shlibpath_var=LIBPATH
26155 osf3* | osf4* | osf5*)
26159 soname_spec='${libname}${release}${shared_ext}$major'
26160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26161 shlibpath_var=LD_LIBRARY_PATH
26162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26163 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26168 soname_spec='${libname}${release}${shared_ext}$major'
26169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26170 shlibpath_var=LD_LIBRARY_PATH
26177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26178 soname_spec='${libname}${release}${shared_ext}$major'
26179 shlibpath_var=LD_LIBRARY_PATH
26180 shlibpath_overrides_runpath=yes
26181 hardcode_into_libs=yes
26182 # ldd complains unless libraries are executable
26183 postinstall_cmds='chmod +x $lib'
26188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26190 shlibpath_var=LD_LIBRARY_PATH
26191 shlibpath_overrides_runpath=yes
26192 if test "$with_gnu_ld" = yes; then
26198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26201 soname_spec='${libname}${release}${shared_ext}$major'
26202 shlibpath_var=LD_LIBRARY_PATH
26203 case $host_vendor in
26205 shlibpath_overrides_runpath=no
26207 export_dynamic_flag_spec='${wl}-Blargedynsym'
26208 runpath_var=LD_RUN_PATH
26216 shlibpath_overrides_runpath=no
26217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26223 if test -d /usr/nec ;then
26225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26226 soname_spec='$libname${shared_ext}.$major'
26227 shlibpath_var=LD_LIBRARY_PATH
26233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26234 soname_spec='${libname}${release}${shared_ext}$major'
26235 shlibpath_var=LD_LIBRARY_PATH
26242 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26243 echo "${ECHO_T}$dynamic_linker" >&6
26244 test "$dynamic_linker" = no && can_build_shared=no
26246 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26248 hardcode_action_F77=
26249 if test -n "$hardcode_libdir_flag_spec_F77" || \
26250 test -n "$runpath_var_F77" || \
26251 test "X$hardcode_automatic_F77" = "Xyes" ; then
26253 # We can hardcode non-existant directories.
26254 if test "$hardcode_direct_F77" != no &&
26255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26256 # have to relink, otherwise we might link with an installed library
26257 # when we should be linking with a yet-to-be-installed one
26258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
26259 test "$hardcode_minus_L_F77" != no; then
26260 # Linking always hardcodes the temporary library directory.
26261 hardcode_action_F77=relink
26263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26264 hardcode_action_F77=immediate
26267 # We cannot hardcode anything, or else we can only hardcode existing
26269 hardcode_action_F77=unsupported
26271 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
26272 echo "${ECHO_T}$hardcode_action_F77" >&6
26274 if test "$hardcode_action_F77" = relink; then
26275 # Fast installation is not supported
26276 enable_fast_install=no
26277 elif test "$shlibpath_overrides_runpath" = yes ||
26278 test "$enable_shared" = no; then
26279 # Fast installation is not necessary
26280 enable_fast_install=needless
26285 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26286 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26287 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26289 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26290 echo "$as_me:$LINENO: result: yes" >&5
26291 echo "${ECHO_T}yes" >&6
26293 # FIXME - insert some real tests, host_os isn't really good enough
26296 if test -n "$STRIP" ; then
26297 striplib="$STRIP -x"
26298 echo "$as_me:$LINENO: result: yes" >&5
26299 echo "${ECHO_T}yes" >&6
26301 echo "$as_me:$LINENO: result: no" >&5
26302 echo "${ECHO_T}no" >&6
26306 echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6
26314 # The else clause should only fire when bootstrapping the
26315 # libtool distribution, otherwise you forgot to ship ltmain.sh
26316 # with your package, and you will get complaints that there are
26317 # no rules to generate ltmain.sh.
26318 if test -f "$ltmain"; then
26319 # See if we are running on zsh, and set the options which allow our commands through
26320 # without removal of \ escapes.
26321 if test -n "${ZSH_VERSION+set}" ; then
26322 setopt NO_GLOB_SUBST
26324 # Now quote all the things that may contain metacharacters while being
26325 # careful not to overquote the AC_SUBSTed values. We take copies of the
26326 # variables and quote the copies for generation of the libtool script.
26327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
26329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26331 deplibs_check_method reload_flag reload_cmds need_locks \
26332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26333 lt_cv_sys_global_symbol_to_c_name_address \
26334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26335 old_postinstall_cmds old_postuninstall_cmds \
26339 lt_prog_compiler_wl_F77 \
26340 lt_prog_compiler_pic_F77 \
26341 lt_prog_compiler_static_F77 \
26342 lt_prog_compiler_no_builtin_flag_F77 \
26343 export_dynamic_flag_spec_F77 \
26344 thread_safe_flag_spec_F77 \
26345 whole_archive_flag_spec_F77 \
26346 enable_shared_with_static_runtimes_F77 \
26347 old_archive_cmds_F77 \
26348 old_archive_from_new_cmds_F77 \
26349 predep_objects_F77 \
26350 postdep_objects_F77 \
26353 compiler_lib_search_path_F77 \
26355 archive_expsym_cmds_F77 \
26356 postinstall_cmds_F77 \
26357 postuninstall_cmds_F77 \
26358 old_archive_from_expsyms_cmds_F77 \
26359 allow_undefined_flag_F77 \
26360 no_undefined_flag_F77 \
26361 export_symbols_cmds_F77 \
26362 hardcode_libdir_flag_spec_F77 \
26363 hardcode_libdir_flag_spec_ld_F77 \
26364 hardcode_libdir_separator_F77 \
26365 hardcode_automatic_F77 \
26367 module_expsym_cmds_F77 \
26368 lt_cv_prog_compiler_c_o_F77 \
26369 exclude_expsyms_F77 \
26370 include_expsyms_F77; do
26373 old_archive_cmds_F77 | \
26374 old_archive_from_new_cmds_F77 | \
26375 archive_cmds_F77 | \
26376 archive_expsym_cmds_F77 | \
26377 module_cmds_F77 | \
26378 module_expsym_cmds_F77 | \
26379 old_archive_from_expsyms_cmds_F77 | \
26380 export_symbols_cmds_F77 | \
26381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26382 postinstall_cmds | postuninstall_cmds | \
26383 old_postinstall_cmds | old_postuninstall_cmds | \
26384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26385 # Double-quote double-evaled strings.
26386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26395 *'\$0 --fallback-echo"')
26396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26402 cat <<__EOF__ >> "$cfgfile"
26403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26407 # Shell to use when invoking shell scripts.
26410 # Whether or not to build shared libraries.
26411 build_libtool_libs=$enable_shared
26413 # Whether or not to build static libraries.
26414 build_old_libs=$enable_static
26416 # Whether or not to add -lc for building shared libraries.
26417 build_libtool_need_lc=$archive_cmds_need_lc_F77
26419 # Whether or not to disallow shared libs when runtime libs are static
26420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
26422 # Whether or not to optimize for fast installation.
26423 fast_install=$enable_fast_install
26426 host_alias=$host_alias
26430 # The build system.
26431 build_alias=$build_alias
26435 # An echo program that does not interpret backslashes.
26440 AR_FLAGS=$lt_AR_FLAGS
26445 # A language-specific compiler.
26446 CC=$lt_compiler_F77
26448 # Is the compiler the GNU C compiler?
26454 # The linker used to build libraries.
26457 # Whether we need hard or soft links.
26460 # A BSD-compatible nm program.
26463 # A symbol stripping program
26466 # Used to examine libraries when file_magic_cmd begins "file"
26467 MAGIC_CMD=$MAGIC_CMD
26469 # Used on cygwin: DLL creation program.
26472 # Used on cygwin: object dumper.
26475 # Used on cygwin: assembler.
26478 # The name of the directory that contains temporary libtool files.
26481 # How to create reloadable object files.
26482 reload_flag=$lt_reload_flag
26483 reload_cmds=$lt_reload_cmds
26485 # How to pass a linker flag through the compiler.
26486 wl=$lt_lt_prog_compiler_wl_F77
26488 # Object file suffix (normally "o").
26489 objext="$ac_objext"
26491 # Old archive suffix (normally "a").
26494 # Shared library suffix (normally ".so").
26495 shrext_cmds='$shrext_cmds'
26497 # Executable file suffix (normally "").
26500 # Additional compiler flags for building library objects.
26501 pic_flag=$lt_lt_prog_compiler_pic_F77
26504 # What is the maximum length of a command?
26505 max_cmd_len=$lt_cv_sys_max_cmd_len
26507 # Does compiler simultaneously support -c and -o options?
26508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26510 # Must we lock files when doing compilation?
26511 need_locks=$lt_need_locks
26513 # Do we need the lib prefix for modules?
26514 need_lib_prefix=$need_lib_prefix
26516 # Do we need a version for libraries?
26517 need_version=$need_version
26519 # Whether dlopen is supported.
26520 dlopen_support=$enable_dlopen
26522 # Whether dlopen of programs is supported.
26523 dlopen_self=$enable_dlopen_self
26525 # Whether dlopen of statically linked programs is supported.
26526 dlopen_self_static=$enable_dlopen_self_static
26528 # Compiler flag to prevent dynamic linking.
26529 link_static_flag=$lt_lt_prog_compiler_static_F77
26531 # Compiler flag to turn off builtin functions.
26532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26534 # Compiler flag to allow reflexive dlopens.
26535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26537 # Compiler flag to generate shared objects directly from archives.
26538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26540 # Compiler flag to generate thread-safe objects.
26541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26543 # Library versioning type.
26544 version_type=$version_type
26546 # Format of library name prefix.
26547 libname_spec=$lt_libname_spec
26549 # List of archive names. First name is the real one, the rest are links.
26550 # The last name is the one that the linker finds with -lNAME.
26551 library_names_spec=$lt_library_names_spec
26553 # The coded name of the library, if different from the real name.
26554 soname_spec=$lt_soname_spec
26556 # Commands used to build and install an old-style archive.
26558 old_archive_cmds=$lt_old_archive_cmds_F77
26559 old_postinstall_cmds=$lt_old_postinstall_cmds
26560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26562 # Create an old-style archive from a shared archive.
26563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26565 # Create a temporary old-style archive to link instead of a shared archive.
26566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26568 # Commands used to build and install a shared archive.
26569 archive_cmds=$lt_archive_cmds_F77
26570 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26571 postinstall_cmds=$lt_postinstall_cmds
26572 postuninstall_cmds=$lt_postuninstall_cmds
26574 # Commands used to build a loadable module (assumed same as above if empty)
26575 module_cmds=$lt_module_cmds_F77
26576 module_expsym_cmds=$lt_module_expsym_cmds_F77
26578 # Commands to strip libraries.
26579 old_striplib=$lt_old_striplib
26580 striplib=$lt_striplib
26582 # Dependencies to place before the objects being linked to create a
26584 predep_objects=$lt_predep_objects_F77
26586 # Dependencies to place after the objects being linked to create a
26588 postdep_objects=$lt_postdep_objects_F77
26590 # Dependencies to place before the objects being linked to create a
26592 predeps=$lt_predeps_F77
26594 # Dependencies to place after the objects being linked to create a
26596 postdeps=$lt_postdeps_F77
26598 # The library search path used internally by the compiler when linking
26599 # a shared library.
26600 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26602 # Method to check whether dependent libraries are shared objects.
26603 deplibs_check_method=$lt_deplibs_check_method
26605 # Command to use when deplibs_check_method == file_magic.
26606 file_magic_cmd=$lt_file_magic_cmd
26608 # Flag that allows shared libraries with undefined symbols to be built.
26609 allow_undefined_flag=$lt_allow_undefined_flag_F77
26611 # Flag that forces no undefined symbols.
26612 no_undefined_flag=$lt_no_undefined_flag_F77
26614 # Commands used to finish a libtool library installation in a directory.
26615 finish_cmds=$lt_finish_cmds
26617 # Same as above, but a single script fragment to be evaled but not shown.
26618 finish_eval=$lt_finish_eval
26620 # Take the output of nm and produce a listing of raw symbols and C names.
26621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26623 # Transform the output of nm in a proper C declaration
26624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26626 # Transform the output of nm in a C name address pair
26627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26629 # This is the shared library runtime path variable.
26630 runpath_var=$runpath_var
26632 # This is the shared library path variable.
26633 shlibpath_var=$shlibpath_var
26635 # Is shlibpath searched before the hard-coded library search path?
26636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26638 # How to hardcode a shared library path into an executable.
26639 hardcode_action=$hardcode_action_F77
26641 # Whether we should hardcode library paths into libraries.
26642 hardcode_into_libs=$hardcode_into_libs
26644 # Flag to hardcode \$libdir into a binary during linking.
26645 # This must work even if \$libdir does not exist.
26646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26648 # If ld is used when linking, flag to hardcode \$libdir into
26649 # a binary during linking. This must work even if \$libdir does
26651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26653 # Whether we need a single -rpath flag with a separated argument.
26654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26657 # resulting binary.
26658 hardcode_direct=$hardcode_direct_F77
26660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26661 # resulting binary.
26662 hardcode_minus_L=$hardcode_minus_L_F77
26664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26665 # the resulting binary.
26666 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26668 # Set to yes if building a shared library automatically hardcodes DIR into the library
26669 # and all subsequent libraries and executables linked against it.
26670 hardcode_automatic=$hardcode_automatic_F77
26672 # Variables whose values should be saved in libtool wrapper scripts and
26673 # restored at relink time.
26674 variables_saved_for_relink="$variables_saved_for_relink"
26676 # Whether libtool must link a program against all its dependency libraries.
26677 link_all_deplibs=$link_all_deplibs_F77
26679 # Compile-time system search path for libraries
26680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26682 # Run-time system search path for libraries
26683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26685 # Fix the shell variable \$srcfile for the compiler.
26686 fix_srcfile_path="$fix_srcfile_path_F77"
26688 # Set to yes if exported symbols are required.
26689 always_export_symbols=$always_export_symbols_F77
26691 # The commands to list exported symbols.
26692 export_symbols_cmds=$lt_export_symbols_cmds_F77
26694 # The commands to extract the exported symbol list from a shared archive.
26695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26697 # Symbols that should not be listed in the preloaded symbols.
26698 exclude_expsyms=$lt_exclude_expsyms_F77
26700 # Symbols that must always be exported.
26701 include_expsyms=$lt_include_expsyms_F77
26703 # ### END LIBTOOL TAG CONFIG: $tagname
26709 # If there is no Makefile yet, we rely on a make rule to execute
26710 # `config.status --recheck' to rerun these tests and create the
26711 # libtool script then.
26712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26713 if test -f "$ltmain_in"; then
26714 test -f Makefile && make "$ltmain"
26720 ac_cpp='$CPP $CPPFLAGS'
26721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26733 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26737 # Source file extension for Java test sources.
26740 # Object file extension for compiled Java test sources.
26744 # Code to be used in simple compile tests
26745 lt_simple_compile_test_code="class foo {}\n"
26747 # Code to be used in simple link tests
26748 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26752 # If no C compiler was specified, use CC.
26755 # Allow CC to be a program name with arguments.
26759 # save warnings/boilerplate of simple test code
26760 ac_outfile=conftest.$ac_objext
26761 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26763 _lt_compiler_boilerplate=`cat conftest.err`
26766 ac_outfile=conftest.$ac_objext
26767 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26769 _lt_linker_boilerplate=`cat conftest.err`
26773 # Allow CC to be a program name with arguments.
26778 for cc_temp in $compiler""; do
26780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26789 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26790 archive_cmds_need_lc_GCJ=no
26792 old_archive_cmds_GCJ=$old_archive_cmds
26795 ## There is no encapsulation within the following macros, do not change
26796 ## the running order or otherwise move them around unless you know exactly
26797 ## what you are doing...
26799 lt_prog_compiler_no_builtin_flag_GCJ=
26801 if test "$GCC" = yes; then
26802 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26805 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26806 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26807 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26808 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 lt_cv_prog_compiler_rtti_exceptions=no
26811 ac_outfile=conftest.$ac_objext
26812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26813 lt_compiler_flag="-fno-rtti -fno-exceptions"
26814 # Insert the option either (1) after the last *FLAGS variable, or
26815 # (2) before a word containing "conftest.", or (3) at the end.
26816 # Note that $ac_compile itself does not contain backslashes and begins
26817 # with a dollar sign (not a hyphen), so the echo should work correctly.
26818 # The option is referenced via a variable to avoid confusing sed.
26819 lt_compile=`echo "$ac_compile" | $SED \
26820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26822 -e 's:$: $lt_compiler_flag:'`
26823 (eval echo "\"\$as_me:26823: $lt_compile\"" >&5)
26824 (eval "$lt_compile" 2>conftest.err)
26826 cat conftest.err >&5
26827 echo "$as_me:26827: \$? = $ac_status" >&5
26828 if (exit $ac_status) && test -s "$ac_outfile"; then
26829 # The compiler can only warn and ignore the option if not recognized
26830 # So say no if there are warnings other than the usual output.
26831 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
26832 $SED '/^$/d' conftest.err >conftest.er2
26833 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
26834 lt_cv_prog_compiler_rtti_exceptions=yes
26840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26841 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26843 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26844 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26851 lt_prog_compiler_wl_GCJ=
26852 lt_prog_compiler_pic_GCJ=
26853 lt_prog_compiler_static_GCJ=
26855 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26856 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26858 if test "$GCC" = yes; then
26859 lt_prog_compiler_wl_GCJ='-Wl,'
26860 lt_prog_compiler_static_GCJ='-static'
26864 # All AIX code is PIC.
26865 if test "$host_cpu" = ia64; then
26866 # AIX 5 now supports IA64 processor
26867 lt_prog_compiler_static_GCJ='-Bstatic'
26872 # FIXME: we need at least 68020 code to build shared libraries, but
26873 # adding the `-m68020' flag to GCC prevents building anything better,
26875 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26878 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26879 # PIC is the default for these OSes.
26882 mingw* | pw32* | os2*)
26883 # This hack is so that the source file can tell whether it is being
26884 # built for inclusion in a dll (and should export symbols for example).
26885 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26888 darwin* | rhapsody*)
26889 # PIC is the default on this platform
26890 # Common symbols not allowed in MH_DYLIB files
26891 lt_prog_compiler_pic_GCJ='-fno-common'
26895 # Just because we use GCC doesn't mean we suddenly get shared libraries
26896 # on systems that don't support them.
26897 lt_prog_compiler_can_build_shared_GCJ=no
26902 if test -d /usr/nec; then
26903 lt_prog_compiler_pic_GCJ=-Kconform_pic
26908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26909 # not for PA HP-UX.
26915 lt_prog_compiler_pic_GCJ='-fPIC'
26921 lt_prog_compiler_pic_GCJ='-fPIC'
26925 # PORTME Check for flag to pass linker flags through the system compiler.
26928 lt_prog_compiler_wl_GCJ='-Wl,'
26929 if test "$host_cpu" = ia64; then
26930 # AIX 5 now supports IA64 processor
26931 lt_prog_compiler_static_GCJ='-Bstatic'
26933 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26937 # PIC is the default on this platform
26938 # Common symbols not allowed in MH_DYLIB files
26939 case $cc_basename in
26941 lt_prog_compiler_pic_GCJ='-qnocommon'
26942 lt_prog_compiler_wl_GCJ='-Wl,'
26947 mingw* | pw32* | os2*)
26948 # This hack is so that the source file can tell whether it is being
26949 # built for inclusion in a dll (and should export symbols for example).
26950 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26953 hpux9* | hpux10* | hpux11*)
26954 lt_prog_compiler_wl_GCJ='-Wl,'
26955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26956 # not for PA HP-UX.
26962 lt_prog_compiler_pic_GCJ='+Z'
26965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
26966 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26969 irix5* | irix6* | nonstopux*)
26970 lt_prog_compiler_wl_GCJ='-Wl,'
26971 # PIC (with -KPIC) is the default.
26972 lt_prog_compiler_static_GCJ='-non_shared'
26976 lt_prog_compiler_pic_GCJ='-KPIC'
26977 lt_prog_compiler_static_GCJ='-Bstatic'
26981 case $cc_basename in
26983 lt_prog_compiler_wl_GCJ='-Wl,'
26984 lt_prog_compiler_pic_GCJ='-KPIC'
26985 lt_prog_compiler_static_GCJ='-static'
26987 pgcc* | pgf77* | pgf90* | pgf95*)
26988 # Portland Group compilers (*not* the Pentium gcc compiler,
26989 # which looks to be a dead project)
26990 lt_prog_compiler_wl_GCJ='-Wl,'
26991 lt_prog_compiler_pic_GCJ='-fpic'
26992 lt_prog_compiler_static_GCJ='-Bstatic'
26995 lt_prog_compiler_wl_GCJ='-Wl,'
26996 # All Alpha code is PIC.
26997 lt_prog_compiler_static_GCJ='-non_shared'
27002 osf3* | osf4* | osf5*)
27003 lt_prog_compiler_wl_GCJ='-Wl,'
27004 # All OSF/1 code is PIC.
27005 lt_prog_compiler_static_GCJ='-non_shared'
27009 lt_prog_compiler_pic_GCJ='-Kpic'
27010 lt_prog_compiler_static_GCJ='-dn'
27014 lt_prog_compiler_pic_GCJ='-KPIC'
27015 lt_prog_compiler_static_GCJ='-Bstatic'
27016 case $cc_basename in
27017 f77* | f90* | f95*)
27018 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
27020 lt_prog_compiler_wl_GCJ='-Wl,';;
27025 lt_prog_compiler_wl_GCJ='-Qoption ld '
27026 lt_prog_compiler_pic_GCJ='-PIC'
27027 lt_prog_compiler_static_GCJ='-Bstatic'
27030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27031 lt_prog_compiler_wl_GCJ='-Wl,'
27032 lt_prog_compiler_pic_GCJ='-KPIC'
27033 lt_prog_compiler_static_GCJ='-Bstatic'
27037 if test -d /usr/nec ;then
27038 lt_prog_compiler_pic_GCJ='-Kconform_pic'
27039 lt_prog_compiler_static_GCJ='-Bstatic'
27044 lt_prog_compiler_wl_GCJ='-Wl,'
27045 lt_prog_compiler_can_build_shared_GCJ=no
27049 lt_prog_compiler_pic_GCJ='-pic'
27050 lt_prog_compiler_static_GCJ='-Bstatic'
27054 lt_prog_compiler_can_build_shared_GCJ=no
27059 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
27060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
27063 # Check to make sure the PIC flag actually works.
27065 if test -n "$lt_prog_compiler_pic_GCJ"; then
27067 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
27069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27072 lt_prog_compiler_pic_works_GCJ=no
27073 ac_outfile=conftest.$ac_objext
27074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27075 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
27076 # Insert the option either (1) after the last *FLAGS variable, or
27077 # (2) before a word containing "conftest.", or (3) at the end.
27078 # Note that $ac_compile itself does not contain backslashes and begins
27079 # with a dollar sign (not a hyphen), so the echo should work correctly.
27080 # The option is referenced via a variable to avoid confusing sed.
27081 lt_compile=`echo "$ac_compile" | $SED \
27082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27084 -e 's:$: $lt_compiler_flag:'`
27085 (eval echo "\"\$as_me:27085: $lt_compile\"" >&5)
27086 (eval "$lt_compile" 2>conftest.err)
27088 cat conftest.err >&5
27089 echo "$as_me:27089: \$? = $ac_status" >&5
27090 if (exit $ac_status) && test -s "$ac_outfile"; then
27091 # The compiler can only warn and ignore the option if not recognized
27092 # So say no if there are warnings other than the usual output.
27093 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
27094 $SED '/^$/d' conftest.err >conftest.er2
27095 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
27096 lt_prog_compiler_pic_works_GCJ=yes
27102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
27103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
27105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
27106 case $lt_prog_compiler_pic_GCJ in
27108 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27111 lt_prog_compiler_pic_GCJ=
27112 lt_prog_compiler_can_build_shared_GCJ=no
27117 # For platforms which do not support PIC, -DPIC is meaningless:
27119 lt_prog_compiler_pic_GCJ=
27122 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27126 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
27127 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
27128 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
27129 echo $ECHO_N "(cached) $ECHO_C" >&6
27131 lt_cv_prog_compiler_c_o_GCJ=no
27132 $rm -r conftest 2>/dev/null
27136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27138 lt_compiler_flag="-o out/conftest2.$ac_objext"
27139 # Insert the option either (1) after the last *FLAGS variable, or
27140 # (2) before a word containing "conftest.", or (3) at the end.
27141 # Note that $ac_compile itself does not contain backslashes and begins
27142 # with a dollar sign (not a hyphen), so the echo should work correctly.
27143 lt_compile=`echo "$ac_compile" | $SED \
27144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27146 -e 's:$: $lt_compiler_flag:'`
27147 (eval echo "\"\$as_me:27147: $lt_compile\"" >&5)
27148 (eval "$lt_compile" 2>out/conftest.err)
27150 cat out/conftest.err >&5
27151 echo "$as_me:27151: \$? = $ac_status" >&5
27152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
27154 # The compiler can only warn and ignore the option if not recognized
27155 # So say no if there are warnings
27156 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
27157 $SED '/^$/d' out/conftest.err >out/conftest.er2
27158 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27159 lt_cv_prog_compiler_c_o_GCJ=yes
27164 # SGI C++ compiler will create directory out/ii_files/ for
27165 # template instantiation
27166 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
27167 $rm out/* && rmdir out
27173 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27174 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
27177 hard_links="nottested"
27178 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
27179 # do not overwrite the value of need_locks provided by the user
27180 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
27181 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
27184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
27186 ln conftest.a conftest.b 2>&5 || hard_links=no
27187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
27188 echo "$as_me:$LINENO: result: $hard_links" >&5
27189 echo "${ECHO_T}$hard_links" >&6
27190 if test "$hard_links" = no; then
27191 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
27192 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
27199 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27200 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
27203 allow_undefined_flag_GCJ=
27204 enable_shared_with_static_runtimes_GCJ=no
27206 archive_expsym_cmds_GCJ=
27207 old_archive_From_new_cmds_GCJ=
27208 old_archive_from_expsyms_cmds_GCJ=
27209 export_dynamic_flag_spec_GCJ=
27210 whole_archive_flag_spec_GCJ=
27211 thread_safe_flag_spec_GCJ=
27212 hardcode_libdir_flag_spec_GCJ=
27213 hardcode_libdir_flag_spec_ld_GCJ=
27214 hardcode_libdir_separator_GCJ=
27215 hardcode_direct_GCJ=no
27216 hardcode_minus_L_GCJ=no
27217 hardcode_shlibpath_var_GCJ=unsupported
27218 link_all_deplibs_GCJ=unknown
27219 hardcode_automatic_GCJ=no
27221 module_expsym_cmds_GCJ=
27222 always_export_symbols_GCJ=no
27223 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27224 # include_expsyms should be a list of space-separated symbols to be *always*
27225 # included in the symbol list
27226 include_expsyms_GCJ=
27227 # exclude_expsyms can be an extended regexp of symbols to exclude
27228 # it will be wrapped by ` (' and `)$', so one must not match beginning or
27229 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
27230 # as well as any symbol that contains `d'.
27231 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
27232 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27233 # platforms (ab)use it in PIC code, but their linkers get confused if
27234 # the symbol is explicitly referenced. Since portable code cannot
27235 # rely on this symbol name, it's probably fine to never include it in
27236 # preloaded symbol tables.
27237 extract_expsyms_cmds=
27238 # Just being paranoid about ensuring that cc_basename is set.
27239 for cc_temp in $compiler""; do
27241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27250 cygwin* | mingw* | pw32*)
27251 # FIXME: the MSVC++ port hasn't been tested in a loooong time
27252 # When not using gcc, we currently assume that we are using
27253 # Microsoft Visual C++.
27254 if test "$GCC" != yes; then
27264 if test "$with_gnu_ld" = yes; then
27265 # If archive_cmds runs LD, not CC, wlarc should be empty
27268 # Set some defaults for GNU ld with shared library support. These
27269 # are reset later if shared libraries are not supported. Putting them
27270 # here allows them to be overridden if necessary.
27271 runpath_var=LD_RUN_PATH
27272 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
27273 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
27274 # ancient GNU ld didn't support --whole-archive et. al.
27275 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
27276 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27278 whole_archive_flag_spec_GCJ=
27280 supports_anon_versioning=no
27281 case `$LD -v 2>/dev/null` in
27282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27285 *\ 2.11.*) ;; # other 2.11 versions
27286 *) supports_anon_versioning=yes ;;
27289 # See if GNU ld supports shared libraries.
27291 aix3* | aix4* | aix5*)
27292 # On AIX/PPC, the GNU linker is very broken
27293 if test "$host_cpu" != ia64; then
27297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
27298 *** to be unable to reliably create shared libraries on AIX.
27299 *** Therefore, libtool is disabling shared libraries support. If you
27300 *** really care for shared libraries, you may want to modify your PATH
27301 *** so that a non-GNU linker is found, and then restart.
27308 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)'
27309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27310 hardcode_minus_L_GCJ=yes
27312 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
27313 # that the semantics of dynamic libraries on AmigaOS, at least up
27314 # to version 4, is to share data among multiple programs linked
27315 # with the same dynamic library. Since this doesn't match the
27316 # behavior of shared libraries on other platforms, we can't use
27322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27323 allow_undefined_flag_GCJ=unsupported
27324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27325 # support --undefined. This deserves some investigation. FIXME
27326 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27332 cygwin* | mingw* | pw32*)
27333 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27334 # as there is no search path for DLLs.
27335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27336 allow_undefined_flag_GCJ=unsupported
27337 always_export_symbols_GCJ=no
27338 enable_shared_with_static_runtimes_GCJ=yes
27339 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
27341 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
27342 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27343 # If the export-symbols file already is a .def file (1st line
27344 # is EXPORTS), use it as is; otherwise, prepend...
27345 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27346 cp $export_symbols $output_objdir/$soname.def;
27348 echo EXPORTS > $output_objdir/$soname.def;
27349 cat $export_symbols >> $output_objdir/$soname.def;
27351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27360 case $cc_basename,$host_cpu in
27361 pgcc*) # Portland Group C compiler
27362 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'
27363 tmp_addflag=' $pic_flag'
27365 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
27366 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'
27367 tmp_addflag=' $pic_flag -Mnomain' ;;
27368 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
27369 tmp_addflag=' -i_dynamic' ;;
27370 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
27371 tmp_addflag=' -i_dynamic -nofor_main' ;;
27372 ifc* | ifort*) # Intel Fortran compiler
27373 tmp_addflag=' -nofor_main' ;;
27375 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27377 if test $supports_anon_versioning = yes; then
27378 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
27379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27380 $echo "local: *; };" >> $output_objdir/$libname.ver~
27381 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27390 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27393 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27394 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27399 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
27403 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27404 *** create shared libraries on Solaris systems. Therefore, libtool
27405 *** is disabling shared libraries support. We urge you to upgrade GNU
27406 *** binutils to release 2.9.1 or newer. Another option is to modify
27407 *** your PATH or compiler configuration so that the native linker is
27408 *** used, and then restart.
27411 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27420 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27422 hardcode_direct_GCJ=yes
27423 hardcode_shlibpath_var_GCJ=no
27427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27429 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27436 if test "$ld_shlibs_GCJ" = no; then
27438 hardcode_libdir_flag_spec_GCJ=
27439 export_dynamic_flag_spec_GCJ=
27440 whole_archive_flag_spec_GCJ=
27443 # PORTME fill in a description of your system's linker (not GNU ld)
27446 allow_undefined_flag_GCJ=unsupported
27447 always_export_symbols_GCJ=yes
27448 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'
27449 # Note: this linker hardcodes the directories in LIBPATH if there
27450 # are no directories specified by -L.
27451 hardcode_minus_L_GCJ=yes
27452 if test "$GCC" = yes && test -z "$link_static_flag"; then
27453 # Neither direct hardcoding nor static linking is supported with a
27455 hardcode_direct_GCJ=unsupported
27460 if test "$host_cpu" = ia64; then
27461 # On IA64, the linker does run time linking by default, so we don't
27462 # have to do anything special.
27463 aix_use_runtimelinking=no
27464 exp_sym_flag='-Bexport'
27467 # If we're using GNU nm, then we don't want the "-C" option.
27468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
27469 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
27470 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'
27472 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'
27474 aix_use_runtimelinking=no
27476 # Test if we are trying to use run time linking or normal
27477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27478 # need to do runtime linking.
27479 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
27480 for ld_flag in $LDFLAGS; do
27481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
27482 aix_use_runtimelinking=yes
27488 exp_sym_flag='-bexport'
27489 no_entry_flag='-bnoentry'
27492 # When large executables or shared objects are built, AIX ld can
27493 # have problems creating the table of contents. If linking a library
27494 # or program results in "error TOC overflow" add -mminimal-toc to
27495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
27496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27498 archive_cmds_GCJ=''
27499 hardcode_direct_GCJ=yes
27500 hardcode_libdir_separator_GCJ=':'
27501 link_all_deplibs_GCJ=yes
27503 if test "$GCC" = yes; then
27504 case $host_os in aix4.[012]|aix4.[012].*)
27505 # We only want to do this on AIX 4.2 and lower, the check
27506 # below for broken collect2 doesn't work under 4.3+
27507 collect2name=`${CC} -print-prog-name=collect2`
27508 if test -f "$collect2name" && \
27509 strings "$collect2name" | grep resolve_lib_name >/dev/null
27511 # We have reworked collect2
27512 hardcode_direct_GCJ=yes
27514 # We have old collect2
27515 hardcode_direct_GCJ=unsupported
27516 # It fails to find uninstalled libraries when the uninstalled
27517 # path is not listed in the libpath. Setting hardcode_minus_L
27518 # to unsupported forces relinking
27519 hardcode_minus_L_GCJ=yes
27520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27521 hardcode_libdir_separator_GCJ=
27524 shared_flag='-shared'
27525 if test "$aix_use_runtimelinking" = yes; then
27526 shared_flag="$shared_flag "'${wl}-G'
27530 if test "$host_cpu" = ia64; then
27531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27532 # chokes on -Wl,-G. The following line is correct:
27535 if test "$aix_use_runtimelinking" = yes; then
27536 shared_flag='${wl}-G'
27538 shared_flag='${wl}-bM:SRE'
27543 # It seems that -bexpall does not export symbols beginning with
27544 # underscore (_), so it is better to generate a list of symbols to export.
27545 always_export_symbols_GCJ=yes
27546 if test "$aix_use_runtimelinking" = yes; then
27547 # Warning - without using the other runtime loading flags (-brtl),
27548 # -berok will link without error, but may produce a broken library.
27549 allow_undefined_flag_GCJ='-berok'
27550 # Determine the default libpath from the value encoded in an empty executable.
27551 cat >conftest.$ac_ext <<_ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h. */
27566 rm -f conftest.$ac_objext conftest$ac_exeext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27568 (eval $ac_link) 2>conftest.er1
27570 grep -v '^ *+' conftest.er1 >conftest.err
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag"
27576 || test ! -s conftest.err'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; } &&
27582 { ac_try='test -s conftest$ac_exeext'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27591 # Check for a 64-bit object if we didn't find anything.
27592 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; }
27595 echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27599 rm -f conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
27601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27603 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27604 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"
27606 if test "$host_cpu" = ia64; then
27607 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27608 allow_undefined_flag_GCJ="-z nodefs"
27609 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"
27611 # Determine the default libpath from the value encoded in an empty executable.
27612 cat >conftest.$ac_ext <<_ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27627 rm -f conftest.$ac_objext conftest$ac_exeext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27629 (eval $ac_link) 2>conftest.er1
27631 grep -v '^ *+' conftest.er1 >conftest.err
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag"
27637 || test ! -s conftest.err'
27638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; } &&
27643 { ac_try='test -s conftest$ac_exeext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27652 # Check for a 64-bit object if we didn't find anything.
27653 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; }
27656 echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27660 rm -f conftest.err conftest.$ac_objext \
27661 conftest$ac_exeext conftest.$ac_ext
27662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27664 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27665 # Warning - without using the other run time loading flags,
27666 # -berok will link without error, but may produce a broken library.
27667 no_undefined_flag_GCJ=' ${wl}-bernotok'
27668 allow_undefined_flag_GCJ=' ${wl}-berok'
27669 # -bexpall does not export symbols beginning with underscore (_)
27670 always_export_symbols_GCJ=yes
27671 # Exported symbols can be pulled into shared objects from archives
27672 whole_archive_flag_spec_GCJ=' '
27673 archive_cmds_need_lc_GCJ=yes
27674 # This is similar to how AIX traditionally builds its shared libraries.
27675 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'
27681 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)'
27682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27683 hardcode_minus_L_GCJ=yes
27684 # see comment about different semantics on the GNU ld section
27689 export_dynamic_flag_spec_GCJ=-rdynamic
27692 cygwin* | mingw* | pw32*)
27693 # When not using gcc, we currently assume that we are using
27694 # Microsoft Visual C++.
27695 # hardcode_libdir_flag_spec is actually meaningless, as there is
27696 # no search path for DLLs.
27697 hardcode_libdir_flag_spec_GCJ=' '
27698 allow_undefined_flag_GCJ=unsupported
27699 # Tell ltmain to make .lib files, not .a files.
27701 # Tell ltmain to make .dll files, not .so files.
27703 # FIXME: Setting linknames here is a bad hack.
27704 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27705 # The linker will automatically build a .lib file if we build a DLL.
27706 old_archive_From_new_cmds_GCJ='true'
27707 # FIXME: Should let the user specify the lib program.
27708 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27709 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27710 enable_shared_with_static_runtimes_GCJ=yes
27713 darwin* | rhapsody*)
27715 rhapsody* | darwin1.[012])
27716 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27719 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27720 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27722 case ${MACOSX_DEPLOYMENT_TARGET} in
27724 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27727 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27733 archive_cmds_need_lc_GCJ=no
27734 hardcode_direct_GCJ=no
27735 hardcode_automatic_GCJ=yes
27736 hardcode_shlibpath_var_GCJ=unsupported
27737 whole_archive_flag_spec_GCJ=''
27738 link_all_deplibs_GCJ=yes
27739 if test "$GCC" = yes ; then
27740 output_verbose_link_cmd='echo'
27741 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27742 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27743 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27744 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}'
27745 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}'
27747 case $cc_basename in
27749 output_verbose_link_cmd='echo'
27750 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27751 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27752 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27753 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}'
27754 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}'
27764 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27765 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27766 hardcode_shlibpath_var_GCJ=no
27773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27774 # support. Future versions do this automatically, but an explicit c++rt0.o
27775 # does not break anything, and helps significantly (at the cost of a little
27778 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27779 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27780 hardcode_direct_GCJ=yes
27781 hardcode_shlibpath_var_GCJ=no
27784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27786 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27787 hardcode_direct_GCJ=yes
27788 hardcode_minus_L_GCJ=yes
27789 hardcode_shlibpath_var_GCJ=no
27792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27793 freebsd* | kfreebsd*-gnu | dragonfly*)
27794 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27796 hardcode_direct_GCJ=yes
27797 hardcode_shlibpath_var_GCJ=no
27801 if test "$GCC" = yes; then
27802 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'
27804 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'
27806 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27807 hardcode_libdir_separator_GCJ=:
27808 hardcode_direct_GCJ=yes
27810 # hardcode_minus_L: Not really in the search PATH,
27811 # but as the default location of the library.
27812 hardcode_minus_L_GCJ=yes
27813 export_dynamic_flag_spec_GCJ='${wl}-E'
27817 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27820 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27823 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27829 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
27832 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27836 if test "$with_gnu_ld" = no; then
27839 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27840 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27841 hardcode_libdir_separator_GCJ=:
27842 hardcode_direct_GCJ=no
27843 hardcode_shlibpath_var_GCJ=no
27846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27847 hardcode_direct_GCJ=no
27848 hardcode_shlibpath_var_GCJ=no
27850 # hardcode_minus_L: Not really in the search PATH,
27851 # but as the default location of the library.
27852 hardcode_minus_L_GCJ=yes
27855 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27856 hardcode_libdir_separator_GCJ=:
27857 hardcode_direct_GCJ=yes
27858 export_dynamic_flag_spec_GCJ='${wl}-E'
27860 # hardcode_minus_L: Not really in the search PATH,
27861 # but as the default location of the library.
27862 hardcode_minus_L_GCJ=yes
27868 irix5* | irix6* | nonstopux*)
27869 if test "$GCC" = yes; then
27870 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'
27872 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'
27873 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27876 hardcode_libdir_separator_GCJ=:
27877 link_all_deplibs_GCJ=yes
27881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
27884 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
27886 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27887 hardcode_direct_GCJ=yes
27888 hardcode_shlibpath_var_GCJ=no
27892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27893 hardcode_direct_GCJ=yes
27894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27895 hardcode_libdir_separator_GCJ=:
27896 hardcode_shlibpath_var_GCJ=no
27900 hardcode_direct_GCJ=yes
27901 hardcode_shlibpath_var_GCJ=no
27902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27904 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27906 export_dynamic_flag_spec_GCJ='${wl}-E'
27909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27914 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
27923 hardcode_minus_L_GCJ=yes
27924 allow_undefined_flag_GCJ=unsupported
27925 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'
27926 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27930 if test "$GCC" = yes; then
27931 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27932 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'
27934 allow_undefined_flag_GCJ=' -expect_unresolved \*'
27935 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'
27937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27938 hardcode_libdir_separator_GCJ=:
27941 osf4* | osf5*) # as osf3* with the addition of -msym flag
27942 if test "$GCC" = yes; then
27943 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27944 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'
27945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27947 allow_undefined_flag_GCJ=' -expect_unresolved \*'
27948 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'
27949 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~
27950 $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'
27952 # Both c and cxx compiler support -rpath directly
27953 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27955 hardcode_libdir_separator_GCJ=:
27959 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27960 hardcode_shlibpath_var_GCJ=no
27961 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27962 runpath_var=LD_RUN_PATH
27963 hardcode_runpath_var=yes
27967 no_undefined_flag_GCJ=' -z text'
27968 if test "$GCC" = yes; then
27970 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27971 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27972 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27975 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27976 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27977 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
27980 hardcode_shlibpath_var_GCJ=no
27982 solaris2.[0-5] | solaris2.[0-5].*) ;;
27984 # The compiler driver will combine linker options so we
27985 # cannot just pass the convience library names through
27986 # without $wl, iff we do not link with $LD.
27987 # Luckily, gcc supports the same syntax we need for Sun Studio.
27988 # Supported since Solaris 2.6 (maybe 2.5.1?)
27991 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27993 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' ;;
27996 link_all_deplibs_GCJ=yes
28000 if test "x$host_vendor" = xsequent; then
28001 # Use $CC to link under sequent, because it throws in some extra .o
28002 # files that make .init and .fini sections work.
28003 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
28005 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
28007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
28008 hardcode_direct_GCJ=yes
28009 hardcode_minus_L_GCJ=yes
28010 hardcode_shlibpath_var_GCJ=no
28014 case $host_vendor in
28016 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28017 hardcode_direct_GCJ=yes # is this really true???
28020 ## LD is ld it makes a PLAMLIB
28021 ## CC just makes a GrossModule.
28022 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28023 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
28024 hardcode_direct_GCJ=no
28027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28028 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
28031 runpath_var='LD_RUN_PATH'
28032 hardcode_shlibpath_var_GCJ=no
28036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28037 hardcode_shlibpath_var_GCJ=no
28038 export_dynamic_flag_spec_GCJ='-Bexport'
28042 if test -d /usr/nec; then
28043 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28044 hardcode_shlibpath_var_GCJ=no
28045 runpath_var=LD_RUN_PATH
28046 hardcode_runpath_var=yes
28052 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28053 hardcode_direct_GCJ=yes
28054 hardcode_minus_L_GCJ=no
28055 hardcode_shlibpath_var_GCJ=no
28056 hardcode_runpath_var=yes
28057 runpath_var=LD_RUN_PATH
28060 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
28061 no_undefined_flag_GCJ='${wl}-z ${wl}text'
28062 if test "$GCC" = yes; then
28063 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28065 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28067 runpath_var='LD_RUN_PATH'
28068 hardcode_shlibpath_var_GCJ=no
28072 no_undefined_flag_GCJ=' -z text'
28073 # $CC -shared without GNU ld will not create a library from C++
28074 # object files and a static libstdc++, better avoid it by now
28075 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28078 hardcode_libdir_flag_spec_GCJ=
28079 hardcode_shlibpath_var_GCJ=no
28080 runpath_var='LD_RUN_PATH'
28084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
28086 hardcode_shlibpath_var_GCJ=no
28095 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
28096 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
28097 test "$ld_shlibs_GCJ" = no && can_build_shared=no
28099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28100 if test "$GCC" = yes; then
28101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28105 # Do we need to explicitly link libc?
28107 case "x$archive_cmds_need_lc_GCJ" in
28109 # Assume -lc should be added
28110 archive_cmds_need_lc_GCJ=yes
28112 if test "$enable_shared" = yes && test "$GCC" = yes; then
28113 case $archive_cmds_GCJ in
28115 # FIXME: we may have to deal with multi-command sequences.
28118 # Test whether the compiler implicitly links with -lc since on some
28119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
28120 # to ld, don't add -lc before -lgcc.
28121 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
28122 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
28124 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28127 (eval $ac_compile) 2>&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } 2>conftest.err; then
28133 libobjs=conftest.$ac_objext
28135 wl=$lt_prog_compiler_wl_GCJ
28141 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28142 allow_undefined_flag_GCJ=
28143 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
28144 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }
28149 archive_cmds_need_lc_GCJ=no
28151 archive_cmds_need_lc_GCJ=yes
28153 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28155 cat conftest.err 1>&5
28158 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
28159 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
28166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
28167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
28168 library_names_spec=
28169 libname_spec='lib$name'
28173 postuninstall_cmds=
28177 shlibpath_overrides_runpath=unknown
28179 dynamic_linker="$host_os ld.so"
28180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
28181 if test "$GCC" = yes; then
28182 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28183 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
28184 # if the path contains ";" then we assume it to be the separator
28185 # otherwise default to the standard path separator (i.e. ":") - it is
28186 # assumed that no part of a normal pathname contains ";" but that should
28187 # okay in the real world where ";" in dirpaths is itself problematic.
28188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28190 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28193 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28195 need_lib_prefix=unknown
28196 hardcode_into_libs=no
28198 # when you set need_version to no, make sure it does not cause -set_version
28199 # flags to be left without arguments
28200 need_version=unknown
28205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28206 shlibpath_var=LIBPATH
28208 # AIX 3 has no versioning support, so we append a major version to the name.
28209 soname_spec='${libname}${release}${shared_ext}$major'
28216 hardcode_into_libs=yes
28217 if test "$host_cpu" = ia64; then
28218 # AIX 5 supports IA64
28219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28220 shlibpath_var=LD_LIBRARY_PATH
28222 # With GCC up to 2.95.x, collect2 would create an import file
28223 # for dependence libraries. The import file would start with
28224 # the line `#! .'. This would cause the generated library to
28225 # depend on `.', always an invalid library. This was fixed in
28226 # development snapshots of GCC prior to 3.0.
28228 aix4 | aix4.[01] | aix4.[01].*)
28229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
28234 can_build_shared=no
28238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28239 # soname into executable. Probably we can add versioning support to
28240 # collect2, so additional links can be useful in future.
28241 if test "$aix_use_runtimelinking" = yes; then
28242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28243 # instead of lib<name>.a to let people know that these are not
28244 # typical AIX shared libraries.
28245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28247 # We preserve .a as extension for shared libraries through AIX4.2
28248 # and later when we are not doing run time linking.
28249 library_names_spec='${libname}${release}.a $libname.a'
28250 soname_spec='${libname}${release}${shared_ext}$major'
28252 shlibpath_var=LIBPATH
28257 library_names_spec='$libname.ixlibrary $libname.a'
28258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
28259 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'
28263 library_names_spec='${libname}${shared_ext}'
28264 dynamic_linker="$host_os ld.so"
28265 shlibpath_var=LIBRARY_PATH
28271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28272 soname_spec='${libname}${release}${shared_ext}$major'
28273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28274 shlibpath_var=LD_LIBRARY_PATH
28275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28277 # the default ld.so.conf also contains /usr/contrib/lib and
28278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28279 # libtool to hard-code these into programs
28282 cygwin* | mingw* | pw32*)
28283 version_type=windows
28288 case $GCC,$host_os in
28289 yes,cygwin* | yes,mingw* | yes,pw32*)
28290 library_names_spec='$libname.dll.a'
28291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
28292 postinstall_cmds='base_file=`basename \${file}`~
28293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
28294 dldir=$destdir/`dirname \$dlpath`~
28295 test -d \$dldir || mkdir -p \$dldir~
28296 $install_prog $dir/$dlname \$dldir/$dlname~
28297 chmod a+x \$dldir/$dlname'
28298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28299 dlpath=$dir/\$dldll~
28301 shlibpath_overrides_runpath=yes
28305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28310 # MinGW DLLs use traditional 'lib' prefix
28311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
28314 # It is most probably a Windows format PATH printed by
28315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
28316 # path with ; separators, and with drive letters. We can handle the
28317 # drive letters (cygwin fileutils understands them), so leave them,
28318 # especially as we might pass files found there to a mingw objdump,
28319 # which wouldn't understand a cygwinified path. Ahh.
28320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
28326 # pw32 DLLs use 'pw' prefix rather than 'lib'
28327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28336 dynamic_linker='Win32 ld.exe'
28337 # FIXME: first we should search . and the directory the executable is in
28341 darwin* | rhapsody*)
28342 dynamic_linker="$host_os dyld"
28343 version_type=darwin
28346 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28347 soname_spec='${libname}${release}${major}$shared_ext'
28348 shlibpath_overrides_runpath=yes
28349 shlibpath_var=DYLD_LIBRARY_PATH
28350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28351 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
28352 if test "$GCC" = yes; then
28353 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"`
28355 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
28357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28365 soname_spec='${libname}${release}${shared_ext}$major'
28366 shlibpath_var=LD_LIBRARY_PATH
28377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28378 soname_spec='${libname}${release}${shared_ext}$major'
28379 shlibpath_var=LD_LIBRARY_PATH
28380 shlibpath_overrides_runpath=no
28381 hardcode_into_libs=yes
28382 dynamic_linker='GNU ld.so'
28385 freebsd* | dragonfly*)
28386 # DragonFly does not have aout. When/if they implement a new
28387 # versioning mechanism, adjust this.
28388 if test -x /usr/bin/objformat; then
28389 objformat=`/usr/bin/objformat`
28392 freebsd[123]*) objformat=aout ;;
28393 *) objformat=elf ;;
28396 version_type=freebsd-$objformat
28397 case $version_type in
28399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28408 shlibpath_var=LD_LIBRARY_PATH
28411 shlibpath_overrides_runpath=yes
28413 freebsd3.[01]* | freebsdelf3.[01]*)
28414 shlibpath_overrides_runpath=yes
28415 hardcode_into_libs=yes
28418 shlibpath_overrides_runpath=no
28419 hardcode_into_libs=yes
28428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28429 soname_spec='${libname}${release}${shared_ext}$major'
28430 shlibpath_var=LD_LIBRARY_PATH
28431 hardcode_into_libs=yes
28434 hpux9* | hpux10* | hpux11*)
28435 # Give a soname corresponding to the major version so that dld.sl refuses to
28436 # link against other versions.
28443 hardcode_into_libs=yes
28444 dynamic_linker="$host_os dld.so"
28445 shlibpath_var=LD_LIBRARY_PATH
28446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28448 soname_spec='${libname}${release}${shared_ext}$major'
28449 if test "X$HPUX_IA64_MODE" = X32; then
28450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28458 hardcode_into_libs=yes
28459 dynamic_linker="$host_os dld.sl"
28460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28463 soname_spec='${libname}${release}${shared_ext}$major'
28464 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28469 dynamic_linker="$host_os dld.sl"
28470 shlibpath_var=SHLIB_PATH
28471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28473 soname_spec='${libname}${release}${shared_ext}$major'
28476 # HP-UX runs *really* slowly unless shared libraries are mode 555.
28477 postinstall_cmds='chmod 555 $lib'
28480 irix5* | irix6* | nonstopux*)
28482 nonstopux*) version_type=nonstopux ;;
28484 if test "$lt_cv_prog_gnu_ld" = yes; then
28492 soname_spec='${libname}${release}${shared_ext}$major'
28493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28495 irix5* | nonstopux*)
28496 libsuff= shlibsuff=
28499 case $LD in # libtool.m4 will add one of these switches to LD
28500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28501 libsuff= shlibsuff= libmagic=32-bit;;
28502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28503 libsuff=32 shlibsuff=N32 libmagic=N32;;
28504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
28506 *) libsuff= shlibsuff= libmagic=never-match;;
28510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28511 shlibpath_overrides_runpath=no
28512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28514 hardcode_into_libs=yes
28517 # No shared lib support for Linux oldld, aout, or coff.
28518 linux*oldld* | linux*aout* | linux*coff*)
28522 # This must be Linux ELF.
28527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28528 soname_spec='${libname}${release}${shared_ext}$major'
28529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28530 shlibpath_var=LD_LIBRARY_PATH
28531 shlibpath_overrides_runpath=no
28532 # This implies no fast_install, which is unacceptable.
28533 # Some rework will be needed to allow for fast_install
28534 # before this can be enabled.
28535 hardcode_into_libs=yes
28537 # Append ld.so.conf contents to the search path
28538 if test -f /etc/ld.so.conf; then
28539 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' ' '`
28540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28543 # We used to test for /lib/ld.so.1 and disable shared libraries on
28544 # powerpc, because MkLinux only supported shared libraries with the
28545 # GNU dynamic linker. Since this was broken with cross compilers,
28546 # most powerpc-linux boxes support dynamic linking these days and
28547 # people can always --disable-shared, the test was removed, and we
28548 # assume the GNU/Linux dynamic linker is in use.
28549 dynamic_linker='GNU/Linux ld.so'
28556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28557 soname_spec='${libname}${release}${shared_ext}$major'
28558 shlibpath_var=LD_LIBRARY_PATH
28559 shlibpath_overrides_runpath=no
28560 hardcode_into_libs=yes
28561 dynamic_linker='GNU ld.so'
28568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28571 dynamic_linker='NetBSD (a.out) ld.so'
28573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28574 soname_spec='${libname}${release}${shared_ext}$major'
28575 dynamic_linker='NetBSD ld.elf_so'
28577 shlibpath_var=LD_LIBRARY_PATH
28578 shlibpath_overrides_runpath=yes
28579 hardcode_into_libs=yes
28584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28585 shlibpath_var=LD_LIBRARY_PATH
28586 shlibpath_overrides_runpath=yes
28593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28594 soname_spec='${libname}${release}${shared_ext}$major'
28595 shlibpath_var=LD_LIBRARY_PATH
28596 shlibpath_overrides_runpath=yes
28602 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28604 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28605 *) need_version=no ;;
28607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28609 shlibpath_var=LD_LIBRARY_PATH
28610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28612 openbsd2.[89] | openbsd2.[89].*)
28613 shlibpath_overrides_runpath=no
28616 shlibpath_overrides_runpath=yes
28620 shlibpath_overrides_runpath=yes
28625 libname_spec='$name'
28628 library_names_spec='$libname${shared_ext} $libname.a'
28629 dynamic_linker='OS/2 ld.exe'
28630 shlibpath_var=LIBPATH
28633 osf3* | osf4* | osf5*)
28637 soname_spec='${libname}${release}${shared_ext}$major'
28638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28639 shlibpath_var=LD_LIBRARY_PATH
28640 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28641 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28646 soname_spec='${libname}${release}${shared_ext}$major'
28647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28648 shlibpath_var=LD_LIBRARY_PATH
28655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28656 soname_spec='${libname}${release}${shared_ext}$major'
28657 shlibpath_var=LD_LIBRARY_PATH
28658 shlibpath_overrides_runpath=yes
28659 hardcode_into_libs=yes
28660 # ldd complains unless libraries are executable
28661 postinstall_cmds='chmod +x $lib'
28666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28668 shlibpath_var=LD_LIBRARY_PATH
28669 shlibpath_overrides_runpath=yes
28670 if test "$with_gnu_ld" = yes; then
28676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28679 soname_spec='${libname}${release}${shared_ext}$major'
28680 shlibpath_var=LD_LIBRARY_PATH
28681 case $host_vendor in
28683 shlibpath_overrides_runpath=no
28685 export_dynamic_flag_spec='${wl}-Blargedynsym'
28686 runpath_var=LD_RUN_PATH
28694 shlibpath_overrides_runpath=no
28695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28701 if test -d /usr/nec ;then
28703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28704 soname_spec='$libname${shared_ext}.$major'
28705 shlibpath_var=LD_LIBRARY_PATH
28711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28712 soname_spec='${libname}${release}${shared_ext}$major'
28713 shlibpath_var=LD_LIBRARY_PATH
28720 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28721 echo "${ECHO_T}$dynamic_linker" >&6
28722 test "$dynamic_linker" = no && can_build_shared=no
28724 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28725 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28726 hardcode_action_GCJ=
28727 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28728 test -n "$runpath_var_GCJ" || \
28729 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28731 # We can hardcode non-existant directories.
28732 if test "$hardcode_direct_GCJ" != no &&
28733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
28734 # have to relink, otherwise we might link with an installed library
28735 # when we should be linking with a yet-to-be-installed one
28736 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28737 test "$hardcode_minus_L_GCJ" != no; then
28738 # Linking always hardcodes the temporary library directory.
28739 hardcode_action_GCJ=relink
28741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
28742 hardcode_action_GCJ=immediate
28745 # We cannot hardcode anything, or else we can only hardcode existing
28747 hardcode_action_GCJ=unsupported
28749 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28750 echo "${ECHO_T}$hardcode_action_GCJ" >&6
28752 if test "$hardcode_action_GCJ" = relink; then
28753 # Fast installation is not supported
28754 enable_fast_install=no
28755 elif test "$shlibpath_overrides_runpath" = yes ||
28756 test "$enable_shared" = no; then
28757 # Fast installation is not necessary
28758 enable_fast_install=needless
28763 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28764 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
28765 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28766 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28767 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28768 echo "$as_me:$LINENO: result: yes" >&5
28769 echo "${ECHO_T}yes" >&6
28771 # FIXME - insert some real tests, host_os isn't really good enough
28774 if test -n "$STRIP" ; then
28775 striplib="$STRIP -x"
28776 echo "$as_me:$LINENO: result: yes" >&5
28777 echo "${ECHO_T}yes" >&6
28779 echo "$as_me:$LINENO: result: no" >&5
28780 echo "${ECHO_T}no" >&6
28784 echo "$as_me:$LINENO: result: no" >&5
28785 echo "${ECHO_T}no" >&6
28790 if test "x$enable_dlopen" != xyes; then
28791 enable_dlopen=unknown
28792 enable_dlopen_self=unknown
28793 enable_dlopen_self_static=unknown
28800 lt_cv_dlopen="load_add_on"
28802 lt_cv_dlopen_self=yes
28806 lt_cv_dlopen="LoadLibrary"
28811 lt_cv_dlopen="dlopen"
28816 # if libdl is installed we need to link against it
28817 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28818 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28822 ac_check_lib_save_LIBS=$LIBS
28824 cat >conftest.$ac_ext <<_ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h. */
28831 /* Override any gcc2 internal prototype to avoid an error. */
28835 /* We use char because int might match the return type of a gcc2
28836 builtin and then its argument prototype would still apply. */
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848 (eval $ac_link) 2>conftest.er1
28850 grep -v '^ *+' conftest.er1 >conftest.err
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_c_werror_flag"
28856 || test ! -s conftest.err'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest$ac_exeext'
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; }; then
28868 ac_cv_lib_dl_dlopen=yes
28870 echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28873 ac_cv_lib_dl_dlopen=no
28875 rm -f conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
28877 LIBS=$ac_check_lib_save_LIBS
28879 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28880 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
28881 if test $ac_cv_lib_dl_dlopen = yes; then
28882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28885 lt_cv_dlopen="dyld"
28887 lt_cv_dlopen_self=yes
28894 echo "$as_me:$LINENO: checking for shl_load" >&5
28895 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
28896 if test "${ac_cv_func_shl_load+set}" = set; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 cat >conftest.$ac_ext <<_ACEOF
28902 cat confdefs.h >>conftest.$ac_ext
28903 cat >>conftest.$ac_ext <<_ACEOF
28904 /* end confdefs.h. */
28905 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28907 #define shl_load innocuous_shl_load
28909 /* System header to define __stub macros and hopefully few prototypes,
28910 which can conflict with char shl_load (); below.
28911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28912 <limits.h> exists even on freestanding compilers. */
28915 # include <limits.h>
28917 # include <assert.h>
28922 /* Override any gcc2 internal prototype to avoid an error. */
28927 /* We use char because int might match the return type of a gcc2
28928 builtin and then its argument prototype would still apply. */
28930 /* The GNU C library defines this for functions which it implements
28931 to always fail with ENOSYS. Some functions are actually named
28932 something starting with __ and the normal name is an alias. */
28933 #if defined (__stub_shl_load) || defined (__stub___shl_load)
28936 char (*f) () = shl_load;
28945 return f != shl_load;
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28952 (eval $ac_link) 2>conftest.er1
28954 grep -v '^ *+' conftest.er1 >conftest.err
28956 cat conftest.err >&5
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); } &&
28959 { ac_try='test -z "$ac_c_werror_flag"
28960 || test ! -s conftest.err'
28961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962 (eval $ac_try) 2>&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); }; } &&
28966 { ac_try='test -s conftest$ac_exeext'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_cv_func_shl_load=yes
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_cv_func_shl_load=no
28979 rm -f conftest.err conftest.$ac_objext \
28980 conftest$ac_exeext conftest.$ac_ext
28982 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28983 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
28984 if test $ac_cv_func_shl_load = yes; then
28985 lt_cv_dlopen="shl_load"
28987 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28988 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
28989 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28990 echo $ECHO_N "(cached) $ECHO_C" >&6
28992 ac_check_lib_save_LIBS=$LIBS
28994 cat >conftest.$ac_ext <<_ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h. */
29001 /* Override any gcc2 internal prototype to avoid an error. */
29005 /* We use char because int might match the return type of a gcc2
29006 builtin and then its argument prototype would still apply. */
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018 (eval $ac_link) 2>conftest.er1
29020 grep -v '^ *+' conftest.er1 >conftest.err
29022 cat conftest.err >&5
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } &&
29025 { ac_try='test -z "$ac_c_werror_flag"
29026 || test ! -s conftest.err'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; } &&
29032 { ac_try='test -s conftest$ac_exeext'
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ac_cv_lib_dld_shl_load=yes
29040 echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29043 ac_cv_lib_dld_shl_load=no
29045 rm -f conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
29047 LIBS=$ac_check_lib_save_LIBS
29049 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
29050 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
29051 if test $ac_cv_lib_dld_shl_load = yes; then
29052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
29054 echo "$as_me:$LINENO: checking for dlopen" >&5
29055 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29056 if test "${ac_cv_func_dlopen+set}" = set; then
29057 echo $ECHO_N "(cached) $ECHO_C" >&6
29059 cat >conftest.$ac_ext <<_ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h. */
29065 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
29066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29067 #define dlopen innocuous_dlopen
29069 /* System header to define __stub macros and hopefully few prototypes,
29070 which can conflict with char dlopen (); below.
29071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29072 <limits.h> exists even on freestanding compilers. */
29075 # include <limits.h>
29077 # include <assert.h>
29082 /* Override any gcc2 internal prototype to avoid an error. */
29087 /* We use char because int might match the return type of a gcc2
29088 builtin and then its argument prototype would still apply. */
29090 /* The GNU C library defines this for functions which it implements
29091 to always fail with ENOSYS. Some functions are actually named
29092 something starting with __ and the normal name is an alias. */
29093 #if defined (__stub_dlopen) || defined (__stub___dlopen)
29096 char (*f) () = dlopen;
29105 return f != dlopen;
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29112 (eval $ac_link) 2>conftest.er1
29114 grep -v '^ *+' conftest.er1 >conftest.err
29116 cat conftest.err >&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); } &&
29119 { ac_try='test -z "$ac_c_werror_flag"
29120 || test ! -s conftest.err'
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; } &&
29126 { ac_try='test -s conftest$ac_exeext'
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; }; then
29132 ac_cv_func_dlopen=yes
29134 echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29137 ac_cv_func_dlopen=no
29139 rm -f conftest.err conftest.$ac_objext \
29140 conftest$ac_exeext conftest.$ac_ext
29142 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
29143 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
29144 if test $ac_cv_func_dlopen = yes; then
29145 lt_cv_dlopen="dlopen"
29147 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29152 ac_check_lib_save_LIBS=$LIBS
29154 cat >conftest.$ac_ext <<_ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h. */
29161 /* Override any gcc2 internal prototype to avoid an error. */
29165 /* We use char because int might match the return type of a gcc2
29166 builtin and then its argument prototype would still apply. */
29176 rm -f conftest.$ac_objext conftest$ac_exeext
29177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29178 (eval $ac_link) 2>conftest.er1
29180 grep -v '^ *+' conftest.er1 >conftest.err
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } &&
29185 { ac_try='test -z "$ac_c_werror_flag"
29186 || test ! -s conftest.err'
29187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188 (eval $ac_try) 2>&5
29190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); }; } &&
29192 { ac_try='test -s conftest$ac_exeext'
29193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194 (eval $ac_try) 2>&5
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); }; }; then
29198 ac_cv_lib_dl_dlopen=yes
29200 echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29203 ac_cv_lib_dl_dlopen=no
29205 rm -f conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
29207 LIBS=$ac_check_lib_save_LIBS
29209 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29211 if test $ac_cv_lib_dl_dlopen = yes; then
29212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29214 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
29215 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
29216 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 ac_check_lib_save_LIBS=$LIBS
29220 LIBS="-lsvld $LIBS"
29221 cat >conftest.$ac_ext <<_ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29228 /* Override any gcc2 internal prototype to avoid an error. */
29232 /* We use char because int might match the return type of a gcc2
29233 builtin and then its argument prototype would still apply. */
29243 rm -f conftest.$ac_objext conftest$ac_exeext
29244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29245 (eval $ac_link) 2>conftest.er1
29247 grep -v '^ *+' conftest.er1 >conftest.err
29249 cat conftest.err >&5
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); } &&
29252 { ac_try='test -z "$ac_c_werror_flag"
29253 || test ! -s conftest.err'
29254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255 (eval $ac_try) 2>&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); }; } &&
29259 { ac_try='test -s conftest$ac_exeext'
29260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261 (eval $ac_try) 2>&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; }; then
29265 ac_cv_lib_svld_dlopen=yes
29267 echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29270 ac_cv_lib_svld_dlopen=no
29272 rm -f conftest.err conftest.$ac_objext \
29273 conftest$ac_exeext conftest.$ac_ext
29274 LIBS=$ac_check_lib_save_LIBS
29276 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29277 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
29278 if test $ac_cv_lib_svld_dlopen = yes; then
29279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29281 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29282 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
29283 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29286 ac_check_lib_save_LIBS=$LIBS
29288 cat >conftest.$ac_ext <<_ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h. */
29295 /* Override any gcc2 internal prototype to avoid an error. */
29299 /* We use char because int might match the return type of a gcc2
29300 builtin and then its argument prototype would still apply. */
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29312 (eval $ac_link) 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } &&
29319 { ac_try='test -z "$ac_c_werror_flag"
29320 || test ! -s conftest.err'
29321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; } &&
29326 { ac_try='test -s conftest$ac_exeext'
29327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328 (eval $ac_try) 2>&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; }; then
29332 ac_cv_lib_dld_dld_link=yes
29334 echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29337 ac_cv_lib_dld_dld_link=no
29339 rm -f conftest.err conftest.$ac_objext \
29340 conftest$ac_exeext conftest.$ac_ext
29341 LIBS=$ac_check_lib_save_LIBS
29343 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29344 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
29345 if test $ac_cv_lib_dld_dld_link = yes; then
29346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
29367 if test "x$lt_cv_dlopen" != xno; then
29373 case $lt_cv_dlopen in
29375 save_CPPFLAGS="$CPPFLAGS"
29376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29378 save_LDFLAGS="$LDFLAGS"
29379 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29382 LIBS="$lt_cv_dlopen_libs $LIBS"
29384 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29385 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
29386 if test "${lt_cv_dlopen_self+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29389 if test "$cross_compiling" = yes; then :
29390 lt_cv_dlopen_self=cross
29392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29393 lt_status=$lt_dlunknown
29394 cat > conftest.$ac_ext <<EOF
29395 #line 29395 "configure"
29396 #include "confdefs.h"
29405 # define LT_DLGLOBAL RTLD_GLOBAL
29408 # define LT_DLGLOBAL DL_GLOBAL
29410 # define LT_DLGLOBAL 0
29414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29415 find out it does not work in some platform. */
29416 #ifndef LT_DLLAZY_OR_NOW
29418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
29421 # define LT_DLLAZY_OR_NOW DL_LAZY
29424 # define LT_DLLAZY_OR_NOW RTLD_NOW
29427 # define LT_DLLAZY_OR_NOW DL_NOW
29429 # define LT_DLLAZY_OR_NOW 0
29437 extern "C" void exit (int);
29440 void fnord() { int i=42;}
29443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29444 int status = $lt_dlunknown;
29448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29449 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29450 /* dlclose (self); */
29456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29457 (eval $ac_link) 2>&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29461 (./conftest; exit; ) >&5 2>/dev/null
29463 case x$lt_status in
29464 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29465 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29466 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
29469 # compilation failed
29470 lt_cv_dlopen_self=no
29477 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29478 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
29480 if test "x$lt_cv_dlopen_self" = xyes; then
29481 LDFLAGS="$LDFLAGS $link_static_flag"
29482 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29483 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
29484 if test "${lt_cv_dlopen_self_static+set}" = set; then
29485 echo $ECHO_N "(cached) $ECHO_C" >&6
29487 if test "$cross_compiling" = yes; then :
29488 lt_cv_dlopen_self_static=cross
29490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29491 lt_status=$lt_dlunknown
29492 cat > conftest.$ac_ext <<EOF
29493 #line 29493 "configure"
29494 #include "confdefs.h"
29503 # define LT_DLGLOBAL RTLD_GLOBAL
29506 # define LT_DLGLOBAL DL_GLOBAL
29508 # define LT_DLGLOBAL 0
29512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29513 find out it does not work in some platform. */
29514 #ifndef LT_DLLAZY_OR_NOW
29516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
29519 # define LT_DLLAZY_OR_NOW DL_LAZY
29522 # define LT_DLLAZY_OR_NOW RTLD_NOW
29525 # define LT_DLLAZY_OR_NOW DL_NOW
29527 # define LT_DLLAZY_OR_NOW 0
29535 extern "C" void exit (int);
29538 void fnord() { int i=42;}
29541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29542 int status = $lt_dlunknown;
29546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
29547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29548 /* dlclose (self); */
29554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29555 (eval $ac_link) 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29559 (./conftest; exit; ) >&5 2>/dev/null
29561 case x$lt_status in
29562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29564 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
29567 # compilation failed
29568 lt_cv_dlopen_self_static=no
29575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29576 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
29579 CPPFLAGS="$save_CPPFLAGS"
29580 LDFLAGS="$save_LDFLAGS"
29585 case $lt_cv_dlopen_self in
29586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29587 *) enable_dlopen_self=unknown ;;
29590 case $lt_cv_dlopen_self_static in
29591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29592 *) enable_dlopen_self_static=unknown ;;
29597 # The else clause should only fire when bootstrapping the
29598 # libtool distribution, otherwise you forgot to ship ltmain.sh
29599 # with your package, and you will get complaints that there are
29600 # no rules to generate ltmain.sh.
29601 if test -f "$ltmain"; then
29602 # See if we are running on zsh, and set the options which allow our commands through
29603 # without removal of \ escapes.
29604 if test -n "${ZSH_VERSION+set}" ; then
29605 setopt NO_GLOB_SUBST
29607 # Now quote all the things that may contain metacharacters while being
29608 # careful not to overquote the AC_SUBSTed values. We take copies of the
29609 # variables and quote the copies for generation of the libtool script.
29610 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29612 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29613 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29614 deplibs_check_method reload_flag reload_cmds need_locks \
29615 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29616 lt_cv_sys_global_symbol_to_c_name_address \
29617 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29618 old_postinstall_cmds old_postuninstall_cmds \
29622 lt_prog_compiler_wl_GCJ \
29623 lt_prog_compiler_pic_GCJ \
29624 lt_prog_compiler_static_GCJ \
29625 lt_prog_compiler_no_builtin_flag_GCJ \
29626 export_dynamic_flag_spec_GCJ \
29627 thread_safe_flag_spec_GCJ \
29628 whole_archive_flag_spec_GCJ \
29629 enable_shared_with_static_runtimes_GCJ \
29630 old_archive_cmds_GCJ \
29631 old_archive_from_new_cmds_GCJ \
29632 predep_objects_GCJ \
29633 postdep_objects_GCJ \
29636 compiler_lib_search_path_GCJ \
29638 archive_expsym_cmds_GCJ \
29639 postinstall_cmds_GCJ \
29640 postuninstall_cmds_GCJ \
29641 old_archive_from_expsyms_cmds_GCJ \
29642 allow_undefined_flag_GCJ \
29643 no_undefined_flag_GCJ \
29644 export_symbols_cmds_GCJ \
29645 hardcode_libdir_flag_spec_GCJ \
29646 hardcode_libdir_flag_spec_ld_GCJ \
29647 hardcode_libdir_separator_GCJ \
29648 hardcode_automatic_GCJ \
29650 module_expsym_cmds_GCJ \
29651 lt_cv_prog_compiler_c_o_GCJ \
29652 exclude_expsyms_GCJ \
29653 include_expsyms_GCJ; do
29656 old_archive_cmds_GCJ | \
29657 old_archive_from_new_cmds_GCJ | \
29658 archive_cmds_GCJ | \
29659 archive_expsym_cmds_GCJ | \
29660 module_cmds_GCJ | \
29661 module_expsym_cmds_GCJ | \
29662 old_archive_from_expsyms_cmds_GCJ | \
29663 export_symbols_cmds_GCJ | \
29664 extract_expsyms_cmds | reload_cmds | finish_cmds | \
29665 postinstall_cmds | postuninstall_cmds | \
29666 old_postinstall_cmds | old_postuninstall_cmds | \
29667 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29668 # Double-quote double-evaled strings.
29669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29678 *'\$0 --fallback-echo"')
29679 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29685 cat <<__EOF__ >> "$cfgfile"
29686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
29688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29690 # Shell to use when invoking shell scripts.
29693 # Whether or not to build shared libraries.
29694 build_libtool_libs=$enable_shared
29696 # Whether or not to build static libraries.
29697 build_old_libs=$enable_static
29699 # Whether or not to add -lc for building shared libraries.
29700 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
29702 # Whether or not to disallow shared libs when runtime libs are static
29703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
29705 # Whether or not to optimize for fast installation.
29706 fast_install=$enable_fast_install
29709 host_alias=$host_alias
29713 # The build system.
29714 build_alias=$build_alias
29718 # An echo program that does not interpret backslashes.
29723 AR_FLAGS=$lt_AR_FLAGS
29728 # A language-specific compiler.
29729 CC=$lt_compiler_GCJ
29731 # Is the compiler the GNU C compiler?
29737 # The linker used to build libraries.
29740 # Whether we need hard or soft links.
29743 # A BSD-compatible nm program.
29746 # A symbol stripping program
29749 # Used to examine libraries when file_magic_cmd begins "file"
29750 MAGIC_CMD=$MAGIC_CMD
29752 # Used on cygwin: DLL creation program.
29755 # Used on cygwin: object dumper.
29758 # Used on cygwin: assembler.
29761 # The name of the directory that contains temporary libtool files.
29764 # How to create reloadable object files.
29765 reload_flag=$lt_reload_flag
29766 reload_cmds=$lt_reload_cmds
29768 # How to pass a linker flag through the compiler.
29769 wl=$lt_lt_prog_compiler_wl_GCJ
29771 # Object file suffix (normally "o").
29772 objext="$ac_objext"
29774 # Old archive suffix (normally "a").
29777 # Shared library suffix (normally ".so").
29778 shrext_cmds='$shrext_cmds'
29780 # Executable file suffix (normally "").
29783 # Additional compiler flags for building library objects.
29784 pic_flag=$lt_lt_prog_compiler_pic_GCJ
29787 # What is the maximum length of a command?
29788 max_cmd_len=$lt_cv_sys_max_cmd_len
29790 # Does compiler simultaneously support -c and -o options?
29791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
29793 # Must we lock files when doing compilation?
29794 need_locks=$lt_need_locks
29796 # Do we need the lib prefix for modules?
29797 need_lib_prefix=$need_lib_prefix
29799 # Do we need a version for libraries?
29800 need_version=$need_version
29802 # Whether dlopen is supported.
29803 dlopen_support=$enable_dlopen
29805 # Whether dlopen of programs is supported.
29806 dlopen_self=$enable_dlopen_self
29808 # Whether dlopen of statically linked programs is supported.
29809 dlopen_self_static=$enable_dlopen_self_static
29811 # Compiler flag to prevent dynamic linking.
29812 link_static_flag=$lt_lt_prog_compiler_static_GCJ
29814 # Compiler flag to turn off builtin functions.
29815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
29817 # Compiler flag to allow reflexive dlopens.
29818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
29820 # Compiler flag to generate shared objects directly from archives.
29821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
29823 # Compiler flag to generate thread-safe objects.
29824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
29826 # Library versioning type.
29827 version_type=$version_type
29829 # Format of library name prefix.
29830 libname_spec=$lt_libname_spec
29832 # List of archive names. First name is the real one, the rest are links.
29833 # The last name is the one that the linker finds with -lNAME.
29834 library_names_spec=$lt_library_names_spec
29836 # The coded name of the library, if different from the real name.
29837 soname_spec=$lt_soname_spec
29839 # Commands used to build and install an old-style archive.
29841 old_archive_cmds=$lt_old_archive_cmds_GCJ
29842 old_postinstall_cmds=$lt_old_postinstall_cmds
29843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29845 # Create an old-style archive from a shared archive.
29846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
29848 # Create a temporary old-style archive to link instead of a shared archive.
29849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
29851 # Commands used to build and install a shared archive.
29852 archive_cmds=$lt_archive_cmds_GCJ
29853 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
29854 postinstall_cmds=$lt_postinstall_cmds
29855 postuninstall_cmds=$lt_postuninstall_cmds
29857 # Commands used to build a loadable module (assumed same as above if empty)
29858 module_cmds=$lt_module_cmds_GCJ
29859 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
29861 # Commands to strip libraries.
29862 old_striplib=$lt_old_striplib
29863 striplib=$lt_striplib
29865 # Dependencies to place before the objects being linked to create a
29867 predep_objects=$lt_predep_objects_GCJ
29869 # Dependencies to place after the objects being linked to create a
29871 postdep_objects=$lt_postdep_objects_GCJ
29873 # Dependencies to place before the objects being linked to create a
29875 predeps=$lt_predeps_GCJ
29877 # Dependencies to place after the objects being linked to create a
29879 postdeps=$lt_postdeps_GCJ
29881 # The library search path used internally by the compiler when linking
29882 # a shared library.
29883 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
29885 # Method to check whether dependent libraries are shared objects.
29886 deplibs_check_method=$lt_deplibs_check_method
29888 # Command to use when deplibs_check_method == file_magic.
29889 file_magic_cmd=$lt_file_magic_cmd
29891 # Flag that allows shared libraries with undefined symbols to be built.
29892 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
29894 # Flag that forces no undefined symbols.
29895 no_undefined_flag=$lt_no_undefined_flag_GCJ
29897 # Commands used to finish a libtool library installation in a directory.
29898 finish_cmds=$lt_finish_cmds
29900 # Same as above, but a single script fragment to be evaled but not shown.
29901 finish_eval=$lt_finish_eval
29903 # Take the output of nm and produce a listing of raw symbols and C names.
29904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29906 # Transform the output of nm in a proper C declaration
29907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29909 # Transform the output of nm in a C name address pair
29910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29912 # This is the shared library runtime path variable.
29913 runpath_var=$runpath_var
29915 # This is the shared library path variable.
29916 shlibpath_var=$shlibpath_var
29918 # Is shlibpath searched before the hard-coded library search path?
29919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29921 # How to hardcode a shared library path into an executable.
29922 hardcode_action=$hardcode_action_GCJ
29924 # Whether we should hardcode library paths into libraries.
29925 hardcode_into_libs=$hardcode_into_libs
29927 # Flag to hardcode \$libdir into a binary during linking.
29928 # This must work even if \$libdir does not exist.
29929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
29931 # If ld is used when linking, flag to hardcode \$libdir into
29932 # a binary during linking. This must work even if \$libdir does
29934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
29936 # Whether we need a single -rpath flag with a separated argument.
29937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
29939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29940 # resulting binary.
29941 hardcode_direct=$hardcode_direct_GCJ
29943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29944 # resulting binary.
29945 hardcode_minus_L=$hardcode_minus_L_GCJ
29947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29948 # the resulting binary.
29949 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
29951 # Set to yes if building a shared library automatically hardcodes DIR into the library
29952 # and all subsequent libraries and executables linked against it.
29953 hardcode_automatic=$hardcode_automatic_GCJ
29955 # Variables whose values should be saved in libtool wrapper scripts and
29956 # restored at relink time.
29957 variables_saved_for_relink="$variables_saved_for_relink"
29959 # Whether libtool must link a program against all its dependency libraries.
29960 link_all_deplibs=$link_all_deplibs_GCJ
29962 # Compile-time system search path for libraries
29963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29965 # Run-time system search path for libraries
29966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29968 # Fix the shell variable \$srcfile for the compiler.
29969 fix_srcfile_path="$fix_srcfile_path_GCJ"
29971 # Set to yes if exported symbols are required.
29972 always_export_symbols=$always_export_symbols_GCJ
29974 # The commands to list exported symbols.
29975 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
29977 # The commands to extract the exported symbol list from a shared archive.
29978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29980 # Symbols that should not be listed in the preloaded symbols.
29981 exclude_expsyms=$lt_exclude_expsyms_GCJ
29983 # Symbols that must always be exported.
29984 include_expsyms=$lt_include_expsyms_GCJ
29986 # ### END LIBTOOL TAG CONFIG: $tagname
29992 # If there is no Makefile yet, we rely on a make rule to execute
29993 # `config.status --recheck' to rerun these tests and create the
29994 # libtool script then.
29995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29996 if test -f "$ltmain_in"; then
29997 test -f Makefile && make "$ltmain"
30003 ac_cpp='$CPP $CPPFLAGS'
30004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30019 # Source file extension for RC test sources.
30022 # Object file extension for compiled RC test sources.
30026 # Code to be used in simple compile tests
30027 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
30029 # Code to be used in simple link tests
30030 lt_simple_link_test_code="$lt_simple_compile_test_code"
30032 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
30034 # If no C compiler was specified, use CC.
30037 # Allow CC to be a program name with arguments.
30041 # save warnings/boilerplate of simple test code
30042 ac_outfile=conftest.$ac_objext
30043 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
30044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30045 _lt_compiler_boilerplate=`cat conftest.err`
30048 ac_outfile=conftest.$ac_objext
30049 printf "$lt_simple_link_test_code" >conftest.$ac_ext
30050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30051 _lt_linker_boilerplate=`cat conftest.err`
30055 # Allow CC to be a program name with arguments.
30060 for cc_temp in $compiler""; do
30062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30070 lt_cv_prog_compiler_c_o_RC=yes
30072 # The else clause should only fire when bootstrapping the
30073 # libtool distribution, otherwise you forgot to ship ltmain.sh
30074 # with your package, and you will get complaints that there are
30075 # no rules to generate ltmain.sh.
30076 if test -f "$ltmain"; then
30077 # See if we are running on zsh, and set the options which allow our commands through
30078 # without removal of \ escapes.
30079 if test -n "${ZSH_VERSION+set}" ; then
30080 setopt NO_GLOB_SUBST
30082 # Now quote all the things that may contain metacharacters while being
30083 # careful not to overquote the AC_SUBSTed values. We take copies of the
30084 # variables and quote the copies for generation of the libtool script.
30085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30089 deplibs_check_method reload_flag reload_cmds need_locks \
30090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30091 lt_cv_sys_global_symbol_to_c_name_address \
30092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30093 old_postinstall_cmds old_postuninstall_cmds \
30097 lt_prog_compiler_wl_RC \
30098 lt_prog_compiler_pic_RC \
30099 lt_prog_compiler_static_RC \
30100 lt_prog_compiler_no_builtin_flag_RC \
30101 export_dynamic_flag_spec_RC \
30102 thread_safe_flag_spec_RC \
30103 whole_archive_flag_spec_RC \
30104 enable_shared_with_static_runtimes_RC \
30105 old_archive_cmds_RC \
30106 old_archive_from_new_cmds_RC \
30107 predep_objects_RC \
30108 postdep_objects_RC \
30111 compiler_lib_search_path_RC \
30113 archive_expsym_cmds_RC \
30114 postinstall_cmds_RC \
30115 postuninstall_cmds_RC \
30116 old_archive_from_expsyms_cmds_RC \
30117 allow_undefined_flag_RC \
30118 no_undefined_flag_RC \
30119 export_symbols_cmds_RC \
30120 hardcode_libdir_flag_spec_RC \
30121 hardcode_libdir_flag_spec_ld_RC \
30122 hardcode_libdir_separator_RC \
30123 hardcode_automatic_RC \
30125 module_expsym_cmds_RC \
30126 lt_cv_prog_compiler_c_o_RC \
30127 exclude_expsyms_RC \
30128 include_expsyms_RC; do
30131 old_archive_cmds_RC | \
30132 old_archive_from_new_cmds_RC | \
30133 archive_cmds_RC | \
30134 archive_expsym_cmds_RC | \
30136 module_expsym_cmds_RC | \
30137 old_archive_from_expsyms_cmds_RC | \
30138 export_symbols_cmds_RC | \
30139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
30140 postinstall_cmds | postuninstall_cmds | \
30141 old_postinstall_cmds | old_postuninstall_cmds | \
30142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30143 # Double-quote double-evaled strings.
30144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30153 *'\$0 --fallback-echo"')
30154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30160 cat <<__EOF__ >> "$cfgfile"
30161 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
30163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30165 # Shell to use when invoking shell scripts.
30168 # Whether or not to build shared libraries.
30169 build_libtool_libs=$enable_shared
30171 # Whether or not to build static libraries.
30172 build_old_libs=$enable_static
30174 # Whether or not to add -lc for building shared libraries.
30175 build_libtool_need_lc=$archive_cmds_need_lc_RC
30177 # Whether or not to disallow shared libs when runtime libs are static
30178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30180 # Whether or not to optimize for fast installation.
30181 fast_install=$enable_fast_install
30184 host_alias=$host_alias
30188 # The build system.
30189 build_alias=$build_alias
30193 # An echo program that does not interpret backslashes.
30198 AR_FLAGS=$lt_AR_FLAGS
30203 # A language-specific compiler.
30206 # Is the compiler the GNU C compiler?
30212 # The linker used to build libraries.
30215 # Whether we need hard or soft links.
30218 # A BSD-compatible nm program.
30221 # A symbol stripping program
30224 # Used to examine libraries when file_magic_cmd begins "file"
30225 MAGIC_CMD=$MAGIC_CMD
30227 # Used on cygwin: DLL creation program.
30230 # Used on cygwin: object dumper.
30233 # Used on cygwin: assembler.
30236 # The name of the directory that contains temporary libtool files.
30239 # How to create reloadable object files.
30240 reload_flag=$lt_reload_flag
30241 reload_cmds=$lt_reload_cmds
30243 # How to pass a linker flag through the compiler.
30244 wl=$lt_lt_prog_compiler_wl_RC
30246 # Object file suffix (normally "o").
30247 objext="$ac_objext"
30249 # Old archive suffix (normally "a").
30252 # Shared library suffix (normally ".so").
30253 shrext_cmds='$shrext_cmds'
30255 # Executable file suffix (normally "").
30258 # Additional compiler flags for building library objects.
30259 pic_flag=$lt_lt_prog_compiler_pic_RC
30262 # What is the maximum length of a command?
30263 max_cmd_len=$lt_cv_sys_max_cmd_len
30265 # Does compiler simultaneously support -c and -o options?
30266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30268 # Must we lock files when doing compilation?
30269 need_locks=$lt_need_locks
30271 # Do we need the lib prefix for modules?
30272 need_lib_prefix=$need_lib_prefix
30274 # Do we need a version for libraries?
30275 need_version=$need_version
30277 # Whether dlopen is supported.
30278 dlopen_support=$enable_dlopen
30280 # Whether dlopen of programs is supported.
30281 dlopen_self=$enable_dlopen_self
30283 # Whether dlopen of statically linked programs is supported.
30284 dlopen_self_static=$enable_dlopen_self_static
30286 # Compiler flag to prevent dynamic linking.
30287 link_static_flag=$lt_lt_prog_compiler_static_RC
30289 # Compiler flag to turn off builtin functions.
30290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30292 # Compiler flag to allow reflexive dlopens.
30293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30295 # Compiler flag to generate shared objects directly from archives.
30296 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30298 # Compiler flag to generate thread-safe objects.
30299 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
30301 # Library versioning type.
30302 version_type=$version_type
30304 # Format of library name prefix.
30305 libname_spec=$lt_libname_spec
30307 # List of archive names. First name is the real one, the rest are links.
30308 # The last name is the one that the linker finds with -lNAME.
30309 library_names_spec=$lt_library_names_spec
30311 # The coded name of the library, if different from the real name.
30312 soname_spec=$lt_soname_spec
30314 # Commands used to build and install an old-style archive.
30316 old_archive_cmds=$lt_old_archive_cmds_RC
30317 old_postinstall_cmds=$lt_old_postinstall_cmds
30318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30320 # Create an old-style archive from a shared archive.
30321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30323 # Create a temporary old-style archive to link instead of a shared archive.
30324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30326 # Commands used to build and install a shared archive.
30327 archive_cmds=$lt_archive_cmds_RC
30328 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30329 postinstall_cmds=$lt_postinstall_cmds
30330 postuninstall_cmds=$lt_postuninstall_cmds
30332 # Commands used to build a loadable module (assumed same as above if empty)
30333 module_cmds=$lt_module_cmds_RC
30334 module_expsym_cmds=$lt_module_expsym_cmds_RC
30336 # Commands to strip libraries.
30337 old_striplib=$lt_old_striplib
30338 striplib=$lt_striplib
30340 # Dependencies to place before the objects being linked to create a
30342 predep_objects=$lt_predep_objects_RC
30344 # Dependencies to place after the objects being linked to create a
30346 postdep_objects=$lt_postdep_objects_RC
30348 # Dependencies to place before the objects being linked to create a
30350 predeps=$lt_predeps_RC
30352 # Dependencies to place after the objects being linked to create a
30354 postdeps=$lt_postdeps_RC
30356 # The library search path used internally by the compiler when linking
30357 # a shared library.
30358 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
30360 # Method to check whether dependent libraries are shared objects.
30361 deplibs_check_method=$lt_deplibs_check_method
30363 # Command to use when deplibs_check_method == file_magic.
30364 file_magic_cmd=$lt_file_magic_cmd
30366 # Flag that allows shared libraries with undefined symbols to be built.
30367 allow_undefined_flag=$lt_allow_undefined_flag_RC
30369 # Flag that forces no undefined symbols.
30370 no_undefined_flag=$lt_no_undefined_flag_RC
30372 # Commands used to finish a libtool library installation in a directory.
30373 finish_cmds=$lt_finish_cmds
30375 # Same as above, but a single script fragment to be evaled but not shown.
30376 finish_eval=$lt_finish_eval
30378 # Take the output of nm and produce a listing of raw symbols and C names.
30379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30381 # Transform the output of nm in a proper C declaration
30382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30384 # Transform the output of nm in a C name address pair
30385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30387 # This is the shared library runtime path variable.
30388 runpath_var=$runpath_var
30390 # This is the shared library path variable.
30391 shlibpath_var=$shlibpath_var
30393 # Is shlibpath searched before the hard-coded library search path?
30394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30396 # How to hardcode a shared library path into an executable.
30397 hardcode_action=$hardcode_action_RC
30399 # Whether we should hardcode library paths into libraries.
30400 hardcode_into_libs=$hardcode_into_libs
30402 # Flag to hardcode \$libdir into a binary during linking.
30403 # This must work even if \$libdir does not exist.
30404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30406 # If ld is used when linking, flag to hardcode \$libdir into
30407 # a binary during linking. This must work even if \$libdir does
30409 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
30411 # Whether we need a single -rpath flag with a separated argument.
30412 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30414 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30415 # resulting binary.
30416 hardcode_direct=$hardcode_direct_RC
30418 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30419 # resulting binary.
30420 hardcode_minus_L=$hardcode_minus_L_RC
30422 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30423 # the resulting binary.
30424 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30426 # Set to yes if building a shared library automatically hardcodes DIR into the library
30427 # and all subsequent libraries and executables linked against it.
30428 hardcode_automatic=$hardcode_automatic_RC
30430 # Variables whose values should be saved in libtool wrapper scripts and
30431 # restored at relink time.
30432 variables_saved_for_relink="$variables_saved_for_relink"
30434 # Whether libtool must link a program against all its dependency libraries.
30435 link_all_deplibs=$link_all_deplibs_RC
30437 # Compile-time system search path for libraries
30438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30440 # Run-time system search path for libraries
30441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30443 # Fix the shell variable \$srcfile for the compiler.
30444 fix_srcfile_path="$fix_srcfile_path_RC"
30446 # Set to yes if exported symbols are required.
30447 always_export_symbols=$always_export_symbols_RC
30449 # The commands to list exported symbols.
30450 export_symbols_cmds=$lt_export_symbols_cmds_RC
30452 # The commands to extract the exported symbol list from a shared archive.
30453 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30455 # Symbols that should not be listed in the preloaded symbols.
30456 exclude_expsyms=$lt_exclude_expsyms_RC
30458 # Symbols that must always be exported.
30459 include_expsyms=$lt_include_expsyms_RC
30461 # ### END LIBTOOL TAG CONFIG: $tagname
30467 # If there is no Makefile yet, we rely on a make rule to execute
30468 # `config.status --recheck' to rerun these tests and create the
30469 # libtool script then.
30470 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30471 if test -f "$ltmain_in"; then
30472 test -f Makefile && make "$ltmain"
30478 ac_cpp='$CPP $CPPFLAGS'
30479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30488 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
30489 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
30490 { (exit 1); exit 1; }; }
30494 # Append the new tag name to the list of available tags.
30495 if test -n "$tagname" ; then
30496 available_tags="$available_tags $tagname"
30502 # Now substitute the updated list of available tags.
30503 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
30504 mv "${ofile}T" "$ofile"
30508 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
30509 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
30510 { (exit 1); exit 1; }; }
30516 # This can be used to rebuild libtool when needed
30517 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30519 # Always use our own libtool.
30520 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30522 # Prevent multiple expansion
30545 if test $ac_cv_c_compiler_gnu = yes; then
30546 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
30547 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
30548 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
30549 echo $ECHO_N "(cached) $ECHO_C" >&6
30551 ac_pattern="Autoconf.*'x'"
30552 cat >conftest.$ac_ext <<_ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h. */
30561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30562 $EGREP "$ac_pattern" >/dev/null 2>&1; then
30563 ac_cv_prog_gcc_traditional=yes
30565 ac_cv_prog_gcc_traditional=no
30570 if test $ac_cv_prog_gcc_traditional = no; then
30571 cat >conftest.$ac_ext <<_ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h. */
30577 #include <termio.h>
30580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30581 $EGREP "$ac_pattern" >/dev/null 2>&1; then
30582 ac_cv_prog_gcc_traditional=yes
30588 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
30589 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
30590 if test $ac_cv_prog_gcc_traditional = yes; then
30591 CC="$CC -traditional"
30595 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30596 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30597 if test "${ac_cv_c_const+set}" = set; then
30598 echo $ECHO_N "(cached) $ECHO_C" >&6
30600 cat >conftest.$ac_ext <<_ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30610 /* FIXME: Include the comments suggested by Paul. */
30611 #ifndef __cplusplus
30612 /* Ultrix mips cc rejects this. */
30613 typedef int charset[2];
30615 /* SunOS 4.1.1 cc rejects this. */
30616 char const *const *ccp;
30618 /* NEC SVR4.0.2 mips cc rejects this. */
30619 struct point {int x, y;};
30620 static struct point const zero = {0,0};
30621 /* AIX XL C 1.02.0.0 rejects this.
30622 It does not let you subtract one const X* pointer from another in
30623 an arm of an if-expression whose if-part is not a constant
30625 const char *g = "string";
30626 ccp = &g + (g ? g-g : 0);
30627 /* HPUX 7.0 cc rejects these. */
30630 ccp = (char const *const *) p;
30631 { /* SCO 3.2v4 cc rejects this. */
30633 char const *s = 0 ? (char *) 0 : (char const *) 0;
30637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
30638 int x[] = {25, 17};
30639 const int *foo = &x[0];
30642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30643 typedef const int *iptr;
30647 { /* AIX XL C 1.02.0.0 rejects this saying
30648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30649 struct s { int j; const int *ap[3]; };
30650 struct s *b; b->j = 5;
30652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30653 const int foo = 10;
30661 rm -f conftest.$ac_objext
30662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30663 (eval $ac_compile) 2>conftest.er1
30665 grep -v '^ *+' conftest.er1 >conftest.err
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
30670 { ac_try='test -z "$ac_c_werror_flag"
30671 || test ! -s conftest.err'
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; } &&
30677 { ac_try='test -s conftest.$ac_objext'
30678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679 (eval $ac_try) 2>&5
30681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682 (exit $ac_status); }; }; then
30685 echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30692 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30693 echo "${ECHO_T}$ac_cv_c_const" >&6
30694 if test $ac_cv_c_const = no; then
30696 cat >>confdefs.h <<\_ACEOF
30703 echo "$as_me:$LINENO: checking for working volatile" >&5
30704 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
30705 if test "${amanda_cv_c_volatile+set}" = set; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30709 cat >conftest.$ac_ext <<_ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30720 volatile int aaa = 0;
30726 rm -f conftest.$ac_objext
30727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30728 (eval $ac_compile) 2>conftest.er1
30730 grep -v '^ *+' conftest.er1 >conftest.err
30732 cat conftest.err >&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } &&
30735 { ac_try='test -z "$ac_c_werror_flag"
30736 || test ! -s conftest.err'
30737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30738 (eval $ac_try) 2>&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; } &&
30742 { ac_try='test -s conftest.$ac_objext'
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
30748 amanda_cv_c_volatile=yes
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30753 amanda_cv_c_volatile=no
30756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30760 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
30761 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
30762 if test $amanda_cv_c_volatile = no; then
30764 cat >>confdefs.h <<\_ACEOF
30772 echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
30773 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
30774 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30778 cat >conftest.$ac_ext <<_ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h. */
30796 rm -f conftest.$ac_objext
30797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30798 (eval $ac_compile) 2>conftest.er1
30800 grep -v '^ *+' conftest.er1 >conftest.err
30802 cat conftest.err >&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } &&
30805 { ac_try='test -z "$ac_c_werror_flag"
30806 || test ! -s conftest.err'
30807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808 (eval $ac_try) 2>&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; } &&
30812 { ac_try='test -s conftest.$ac_objext'
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; }; then
30818 amanda_cv_c_unsigned_long_constants=yes
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30823 amanda_cv_c_unsigned_long_constants=no
30826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30830 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
30831 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
30832 if test "$amanda_cv_c_unsigned_long_constants" = yes; then
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
30841 echo "$as_me:$LINENO: checking for off_t" >&5
30842 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30843 if test "${ac_cv_type_off_t+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 cat >conftest.$ac_ext <<_ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h. */
30852 $ac_includes_default
30858 if (sizeof (off_t))
30864 rm -f conftest.$ac_objext
30865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30866 (eval $ac_compile) 2>conftest.er1
30868 grep -v '^ *+' conftest.er1 >conftest.err
30870 cat conftest.err >&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } &&
30873 { ac_try='test -z "$ac_c_werror_flag"
30874 || test ! -s conftest.err'
30875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876 (eval $ac_try) 2>&5
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; } &&
30880 { ac_try='test -s conftest.$ac_objext'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; }; then
30886 ac_cv_type_off_t=yes
30888 echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30891 ac_cv_type_off_t=no
30893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30895 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30896 echo "${ECHO_T}$ac_cv_type_off_t" >&6
30897 if test $ac_cv_type_off_t = yes; then
30901 cat >>confdefs.h <<_ACEOF
30907 echo "$as_me:$LINENO: checking for pid_t" >&5
30908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30909 if test "${ac_cv_type_pid_t+set}" = set; then
30910 echo $ECHO_N "(cached) $ECHO_C" >&6
30912 cat >conftest.$ac_ext <<_ACEOF
30915 cat confdefs.h >>conftest.$ac_ext
30916 cat >>conftest.$ac_ext <<_ACEOF
30917 /* end confdefs.h. */
30918 $ac_includes_default
30924 if (sizeof (pid_t))
30930 rm -f conftest.$ac_objext
30931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30932 (eval $ac_compile) 2>conftest.er1
30934 grep -v '^ *+' conftest.er1 >conftest.err
30936 cat conftest.err >&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } &&
30939 { ac_try='test -z "$ac_c_werror_flag"
30940 || test ! -s conftest.err'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest.$ac_objext'
30947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948 (eval $ac_try) 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 ac_cv_type_pid_t=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_cv_type_pid_t=no
30959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30963 if test $ac_cv_type_pid_t = yes; then
30967 cat >>confdefs.h <<_ACEOF
30973 echo "$as_me:$LINENO: checking for size_t" >&5
30974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30975 if test "${ac_cv_type_size_t+set}" = set; then
30976 echo $ECHO_N "(cached) $ECHO_C" >&6
30978 cat >conftest.$ac_ext <<_ACEOF
30981 cat confdefs.h >>conftest.$ac_ext
30982 cat >>conftest.$ac_ext <<_ACEOF
30983 /* end confdefs.h. */
30984 $ac_includes_default
30990 if (sizeof (size_t))
30996 rm -f conftest.$ac_objext
30997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30998 (eval $ac_compile) 2>conftest.er1
31000 grep -v '^ *+' conftest.er1 >conftest.err
31002 cat conftest.err >&5
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); } &&
31005 { ac_try='test -z "$ac_c_werror_flag"
31006 || test ! -s conftest.err'
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; } &&
31012 { ac_try='test -s conftest.$ac_objext'
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31018 ac_cv_type_size_t=yes
31020 echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31023 ac_cv_type_size_t=no
31025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31029 if test $ac_cv_type_size_t = yes; then
31033 cat >>confdefs.h <<_ACEOF
31034 #define size_t unsigned
31040 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31041 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31042 if test "${ac_cv_type_uid_t+set}" = set; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31045 cat >conftest.$ac_ext <<_ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h. */
31051 #include <sys/types.h>
31054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31055 $EGREP "uid_t" >/dev/null 2>&1; then
31056 ac_cv_type_uid_t=yes
31058 ac_cv_type_uid_t=no
31063 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31064 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31065 if test $ac_cv_type_uid_t = no; then
31067 cat >>confdefs.h <<\_ACEOF
31072 cat >>confdefs.h <<\_ACEOF
31078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31080 if test "${ac_cv_type_signal+set}" = set; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31083 cat >conftest.$ac_ext <<_ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h. */
31089 #include <sys/types.h>
31090 #include <signal.h>
31095 extern "C" void (*signal (int, void (*)(int)))(int);
31097 void (*signal ()) ();
31108 rm -f conftest.$ac_objext
31109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31110 (eval $ac_compile) 2>conftest.er1
31112 grep -v '^ *+' conftest.er1 >conftest.err
31114 cat conftest.err >&5
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); } &&
31117 { ac_try='test -z "$ac_c_werror_flag"
31118 || test ! -s conftest.err'
31119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31120 (eval $ac_try) 2>&5
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); }; } &&
31124 { ac_try='test -s conftest.$ac_objext'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; }; then
31130 ac_cv_type_signal=void
31132 echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.$ac_ext >&5
31135 ac_cv_type_signal=int
31137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31140 echo "${ECHO_T}$ac_cv_type_signal" >&6
31142 cat >>confdefs.h <<_ACEOF
31143 #define RETSIGTYPE $ac_cv_type_signal
31147 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31148 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31149 if test "${ac_cv_struct_tm+set}" = set; then
31150 echo $ECHO_N "(cached) $ECHO_C" >&6
31152 cat >conftest.$ac_ext <<_ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h. */
31158 #include <sys/types.h>
31164 struct tm *tp; tp->tm_sec;
31169 rm -f conftest.$ac_objext
31170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31171 (eval $ac_compile) 2>conftest.er1
31173 grep -v '^ *+' conftest.er1 >conftest.err
31175 cat conftest.err >&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); } &&
31178 { ac_try='test -z "$ac_c_werror_flag"
31179 || test ! -s conftest.err'
31180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31181 (eval $ac_try) 2>&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); }; } &&
31185 { ac_try='test -s conftest.$ac_objext'
31186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187 (eval $ac_try) 2>&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; }; then
31191 ac_cv_struct_tm=time.h
31193 echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31196 ac_cv_struct_tm=sys/time.h
31198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31200 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31201 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31202 if test $ac_cv_struct_tm = sys/time.h; then
31204 cat >>confdefs.h <<\_ACEOF
31205 #define TM_IN_SYS_TIME 1
31210 for ac_prog in flex lex
31212 # Extract the first word of "$ac_prog", so it can be a program name with args.
31213 set dummy $ac_prog; ac_word=$2
31214 echo "$as_me:$LINENO: checking for $ac_word" >&5
31215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31216 if test "${ac_cv_prog_LEX+set}" = set; then
31217 echo $ECHO_N "(cached) $ECHO_C" >&6
31219 if test -n "$LEX"; then
31220 ac_cv_prog_LEX="$LEX" # Let the user override the test.
31222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31223 for as_dir in $PATH
31226 test -z "$as_dir" && as_dir=.
31227 for ac_exec_ext in '' $ac_executable_extensions; do
31228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31229 ac_cv_prog_LEX="$ac_prog"
31230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31238 LEX=$ac_cv_prog_LEX
31239 if test -n "$LEX"; then
31240 echo "$as_me:$LINENO: result: $LEX" >&5
31241 echo "${ECHO_T}$LEX" >&6
31243 echo "$as_me:$LINENO: result: no" >&5
31244 echo "${ECHO_T}no" >&6
31247 test -n "$LEX" && break
31249 test -n "$LEX" || LEX=":"
31251 if test -z "$LEXLIB"
31253 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31254 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31255 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31258 ac_check_lib_save_LIBS=$LIBS
31260 cat >conftest.$ac_ext <<_ACEOF
31263 cat confdefs.h >>conftest.$ac_ext
31264 cat >>conftest.$ac_ext <<_ACEOF
31265 /* end confdefs.h. */
31267 /* Override any gcc2 internal prototype to avoid an error. */
31271 /* We use char because int might match the return type of a gcc2
31272 builtin and then its argument prototype would still apply. */
31282 rm -f conftest.$ac_objext conftest$ac_exeext
31283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31284 (eval $ac_link) 2>conftest.er1
31286 grep -v '^ *+' conftest.er1 >conftest.err
31288 cat conftest.err >&5
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); } &&
31291 { ac_try='test -z "$ac_c_werror_flag"
31292 || test ! -s conftest.err'
31293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31294 (eval $ac_try) 2>&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; } &&
31298 { ac_try='test -s conftest$ac_exeext'
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
31304 ac_cv_lib_fl_yywrap=yes
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31309 ac_cv_lib_fl_yywrap=no
31311 rm -f conftest.err conftest.$ac_objext \
31312 conftest$ac_exeext conftest.$ac_ext
31313 LIBS=$ac_check_lib_save_LIBS
31315 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31316 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31317 if test $ac_cv_lib_fl_yywrap = yes; then
31320 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31321 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31322 if test "${ac_cv_lib_l_yywrap+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31325 ac_check_lib_save_LIBS=$LIBS
31327 cat >conftest.$ac_ext <<_ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h. */
31334 /* Override any gcc2 internal prototype to avoid an error. */
31338 /* We use char because int might match the return type of a gcc2
31339 builtin and then its argument prototype would still apply. */
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31351 (eval $ac_link) 2>conftest.er1
31353 grep -v '^ *+' conftest.er1 >conftest.err
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag"
31359 || test ! -s conftest.err'
31360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31361 (eval $ac_try) 2>&5
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); }; } &&
31365 { ac_try='test -s conftest$ac_exeext'
31366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367 (eval $ac_try) 2>&5
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); }; }; then
31371 ac_cv_lib_l_yywrap=yes
31373 echo "$as_me: failed program was:" >&5
31374 sed 's/^/| /' conftest.$ac_ext >&5
31376 ac_cv_lib_l_yywrap=no
31378 rm -f conftest.err conftest.$ac_objext \
31379 conftest$ac_exeext conftest.$ac_ext
31380 LIBS=$ac_check_lib_save_LIBS
31382 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31383 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31384 if test $ac_cv_lib_l_yywrap = yes; then
31392 if test "x$LEX" != "x:"; then
31393 echo "$as_me:$LINENO: checking lex output file root" >&5
31394 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31395 if test "${ac_cv_prog_lex_root+set}" = set; then
31396 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 # The minimal lex program is just a single line: %%. But some broken lexes
31399 # (Solaris, I think it was) want two %% lines, so accommodate them.
31400 cat >conftest.l <<_ACEOF
31404 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31405 (eval $LEX conftest.l) 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }
31409 if test -f lex.yy.c; then
31410 ac_cv_prog_lex_root=lex.yy
31411 elif test -f lexyy.c; then
31412 ac_cv_prog_lex_root=lexyy
31414 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31415 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31416 { (exit 1); exit 1; }; }
31419 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31420 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31422 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31424 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31425 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31426 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31427 echo $ECHO_N "(cached) $ECHO_C" >&6
31429 # POSIX says lex can declare yytext either as a pointer or an array; the
31430 # default is implementation-dependent. Figure out which it is, since
31431 # not all implementations provide the %pointer and %array declarations.
31432 ac_cv_prog_lex_yytext_pointer=no
31433 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31435 LIBS="$LIBS $LEXLIB"
31436 cat >conftest.$ac_ext <<_ACEOF
31437 `cat $LEX_OUTPUT_ROOT.c`
31439 rm -f conftest.$ac_objext conftest$ac_exeext
31440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31441 (eval $ac_link) 2>conftest.er1
31443 grep -v '^ *+' conftest.er1 >conftest.err
31445 cat conftest.err >&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); } &&
31448 { ac_try='test -z "$ac_c_werror_flag"
31449 || test ! -s conftest.err'
31450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31451 (eval $ac_try) 2>&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); }; } &&
31455 { ac_try='test -s conftest$ac_exeext'
31456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457 (eval $ac_try) 2>&5
31459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460 (exit $ac_status); }; }; then
31461 ac_cv_prog_lex_yytext_pointer=yes
31463 echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.$ac_ext >&5
31467 rm -f conftest.err conftest.$ac_objext \
31468 conftest$ac_exeext conftest.$ac_ext
31470 rm -f "${LEX_OUTPUT_ROOT}.c"
31473 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31474 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31475 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31477 cat >>confdefs.h <<\_ACEOF
31478 #define YYTEXT_POINTER 1
31484 if test "$LEX" = :; then
31485 LEX=${am_missing_run}flex
31488 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31490 if test "${ac_cv_header_stdc+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <stdlib.h>
31500 #include <stdarg.h>
31501 #include <string.h>
31512 rm -f conftest.$ac_objext
31513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31514 (eval $ac_compile) 2>conftest.er1
31516 grep -v '^ *+' conftest.er1 >conftest.err
31518 cat conftest.err >&5
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); } &&
31521 { ac_try='test -z "$ac_c_werror_flag"
31522 || test ! -s conftest.err'
31523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524 (eval $ac_try) 2>&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; } &&
31528 { ac_try='test -s conftest.$ac_objext'
31529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530 (eval $ac_try) 2>&5
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; }; then
31534 ac_cv_header_stdc=yes
31536 echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31539 ac_cv_header_stdc=no
31541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31543 if test $ac_cv_header_stdc = yes; then
31544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31545 cat >conftest.$ac_ext <<_ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31551 #include <string.h>
31554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31555 $EGREP "memchr" >/dev/null 2>&1; then
31558 ac_cv_header_stdc=no
31564 if test $ac_cv_header_stdc = yes; then
31565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31566 cat >conftest.$ac_ext <<_ACEOF
31569 cat confdefs.h >>conftest.$ac_ext
31570 cat >>conftest.$ac_ext <<_ACEOF
31571 /* end confdefs.h. */
31572 #include <stdlib.h>
31575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31576 $EGREP "free" >/dev/null 2>&1; then
31579 ac_cv_header_stdc=no
31585 if test $ac_cv_header_stdc = yes; then
31586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31587 if test "$cross_compiling" = yes; then
31590 cat >conftest.$ac_ext <<_ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31597 #if ((' ' & 0x0FF) == 0x020)
31598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31601 # define ISLOWER(c) \
31602 (('a' <= (c) && (c) <= 'i') \
31603 || ('j' <= (c) && (c) <= 'r') \
31604 || ('s' <= (c) && (c) <= 'z'))
31605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31613 for (i = 0; i < 256; i++)
31614 if (XOR (islower (i), ISLOWER (i))
31615 || toupper (i) != TOUPPER (i))
31620 rm -f conftest$ac_exeext
31621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31622 (eval $ac_link) 2>&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627 (eval $ac_try) 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; }; then
31633 echo "$as_me: program exited with status $ac_status" >&5
31634 echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31637 ( exit $ac_status )
31638 ac_cv_header_stdc=no
31640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31646 if test $ac_cv_header_stdc = yes; then
31648 cat >>confdefs.h <<\_ACEOF
31649 #define STDC_HEADERS 1
31656 echo "$as_me:$LINENO: checking for socklen_t" >&5
31657 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31658 if test "${ac_cv_type_socklen_t+set}" = set; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31661 cat >conftest.$ac_ext <<_ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 #include <sys/types.h>
31669 #include <stdlib.h>
31670 #include <stddef.h>
31672 #include <sys/socket.h>
31674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31675 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31676 ac_cv_type_socklen_t=yes
31678 ac_cv_type_socklen_t=no
31683 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31684 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31685 if test "x$ac_cv_type_socklen_t" = xno; then
31687 cat >>confdefs.h <<\_ACEOF
31688 #define socklen_t int
31693 echo "$as_me:$LINENO: checking for sa_family_t" >&5
31694 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
31695 if test "${ac_cv_type_sa_family_t+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31698 cat >conftest.$ac_ext <<_ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h. */
31704 #include <sys/types.h>
31706 #include <stdlib.h>
31707 #include <stddef.h>
31709 #include <sys/socket.h>
31711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31712 $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31713 ac_cv_type_sa_family_t=yes
31715 ac_cv_type_sa_family_t=no
31720 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31721 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
31722 if test "x$ac_cv_type_sa_family_t" = xno; then
31724 cat >>confdefs.h <<\_ACEOF
31725 #define sa_family_t unsigned short
31736 ac_header_dirent=no
31737 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31739 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31740 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
31741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31744 cat >conftest.$ac_ext <<_ACEOF
31747 cat confdefs.h >>conftest.$ac_ext
31748 cat >>conftest.$ac_ext <<_ACEOF
31749 /* end confdefs.h. */
31750 #include <sys/types.h>
31762 rm -f conftest.$ac_objext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31764 (eval $ac_compile) 2>conftest.er1
31766 grep -v '^ *+' conftest.er1 >conftest.err
31768 cat conftest.err >&5
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); } &&
31771 { ac_try='test -z "$ac_c_werror_flag"
31772 || test ! -s conftest.err'
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; } &&
31778 { ac_try='test -s conftest.$ac_objext'
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; }; then
31784 eval "$as_ac_Header=yes"
31786 echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31789 eval "$as_ac_Header=no"
31791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31800 ac_header_dirent=$ac_hdr; break
31804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31805 if test $ac_header_dirent = dirent.h; then
31806 echo "$as_me:$LINENO: checking for library containing opendir" >&5
31807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31808 if test "${ac_cv_search_opendir+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 ac_func_search_save_LIBS=$LIBS
31812 ac_cv_search_opendir=no
31813 cat >conftest.$ac_ext <<_ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31820 /* Override any gcc2 internal prototype to avoid an error. */
31824 /* We use char because int might match the return type of a gcc2
31825 builtin and then its argument prototype would still apply. */
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837 (eval $ac_link) 2>conftest.er1
31839 grep -v '^ *+' conftest.er1 >conftest.err
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
31844 { ac_try='test -z "$ac_c_werror_flag"
31845 || test ! -s conftest.err'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853 (eval $ac_try) 2>&5
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 ac_cv_search_opendir="none required"
31859 echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31863 rm -f conftest.err conftest.$ac_objext \
31864 conftest$ac_exeext conftest.$ac_ext
31865 if test "$ac_cv_search_opendir" = no; then
31866 for ac_lib in dir; do
31867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31868 cat >conftest.$ac_ext <<_ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h. */
31875 /* Override any gcc2 internal prototype to avoid an error. */
31879 /* We use char because int might match the return type of a gcc2
31880 builtin and then its argument prototype would still apply. */
31890 rm -f conftest.$ac_objext conftest$ac_exeext
31891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31892 (eval $ac_link) 2>conftest.er1
31894 grep -v '^ *+' conftest.er1 >conftest.err
31896 cat conftest.err >&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } &&
31899 { ac_try='test -z "$ac_c_werror_flag"
31900 || test ! -s conftest.err'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; } &&
31906 { ac_try='test -s conftest$ac_exeext'
31907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908 (eval $ac_try) 2>&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; }; then
31912 ac_cv_search_opendir="-l$ac_lib"
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31919 rm -f conftest.err conftest.$ac_objext \
31920 conftest$ac_exeext conftest.$ac_ext
31923 LIBS=$ac_func_search_save_LIBS
31925 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31926 echo "${ECHO_T}$ac_cv_search_opendir" >&6
31927 if test "$ac_cv_search_opendir" != no; then
31928 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
31933 echo "$as_me:$LINENO: checking for library containing opendir" >&5
31934 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31935 if test "${ac_cv_search_opendir+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31938 ac_func_search_save_LIBS=$LIBS
31939 ac_cv_search_opendir=no
31940 cat >conftest.$ac_ext <<_ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31947 /* Override any gcc2 internal prototype to avoid an error. */
31951 /* We use char because int might match the return type of a gcc2
31952 builtin and then its argument prototype would still apply. */
31962 rm -f conftest.$ac_objext conftest$ac_exeext
31963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31964 (eval $ac_link) 2>conftest.er1
31966 grep -v '^ *+' conftest.er1 >conftest.err
31968 cat conftest.err >&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); } &&
31971 { ac_try='test -z "$ac_c_werror_flag"
31972 || test ! -s conftest.err'
31973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974 (eval $ac_try) 2>&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; } &&
31978 { ac_try='test -s conftest$ac_exeext'
31979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980 (eval $ac_try) 2>&5
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
31984 ac_cv_search_opendir="none required"
31986 echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31990 rm -f conftest.err conftest.$ac_objext \
31991 conftest$ac_exeext conftest.$ac_ext
31992 if test "$ac_cv_search_opendir" = no; then
31993 for ac_lib in x; do
31994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31995 cat >conftest.$ac_ext <<_ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h. */
32002 /* Override any gcc2 internal prototype to avoid an error. */
32006 /* We use char because int might match the return type of a gcc2
32007 builtin and then its argument prototype would still apply. */
32017 rm -f conftest.$ac_objext conftest$ac_exeext
32018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32019 (eval $ac_link) 2>conftest.er1
32021 grep -v '^ *+' conftest.er1 >conftest.err
32023 cat conftest.err >&5
32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025 (exit $ac_status); } &&
32026 { ac_try='test -z "$ac_c_werror_flag"
32027 || test ! -s conftest.err'
32028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029 (eval $ac_try) 2>&5
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest$ac_exeext'
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 ac_cv_search_opendir="-l$ac_lib"
32042 echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32046 rm -f conftest.err conftest.$ac_objext \
32047 conftest$ac_exeext conftest.$ac_ext
32050 LIBS=$ac_func_search_save_LIBS
32052 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32053 echo "${ECHO_T}$ac_cv_search_opendir" >&6
32054 if test "$ac_cv_search_opendir" != no; then
32055 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
32065 for ac_header in sys/wait.h wait.h
32067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069 echo "$as_me:$LINENO: checking for $ac_header" >&5
32070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32072 echo $ECHO_N "(cached) $ECHO_C" >&6
32074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32077 # Is the header compilable?
32078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32080 cat >conftest.$ac_ext <<_ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h. */
32086 $ac_includes_default
32087 #include <$ac_header>
32089 rm -f conftest.$ac_objext
32090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32091 (eval $ac_compile) 2>conftest.er1
32093 grep -v '^ *+' conftest.er1 >conftest.err
32095 cat conftest.err >&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); } &&
32098 { ac_try='test -z "$ac_c_werror_flag"
32099 || test ! -s conftest.err'
32100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101 (eval $ac_try) 2>&5
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; } &&
32105 { ac_try='test -s conftest.$ac_objext'
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; }; then
32111 ac_header_compiler=yes
32113 echo "$as_me: failed program was:" >&5
32114 sed 's/^/| /' conftest.$ac_ext >&5
32116 ac_header_compiler=no
32118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32120 echo "${ECHO_T}$ac_header_compiler" >&6
32122 # Is the header present?
32123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32125 cat >conftest.$ac_ext <<_ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h. */
32131 #include <$ac_header>
32133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32136 grep -v '^ *+' conftest.er1 >conftest.err
32138 cat conftest.err >&5
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); } >/dev/null; then
32141 if test -s conftest.err; then
32142 ac_cpp_err=$ac_c_preproc_warn_flag
32143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32150 if test -z "$ac_cpp_err"; then
32151 ac_header_preproc=yes
32153 echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32156 ac_header_preproc=no
32158 rm -f conftest.err conftest.$ac_ext
32159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32160 echo "${ECHO_T}$ac_header_preproc" >&6
32162 # So? What about this header?
32163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32169 ac_header_preproc=yes
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32186 ## ------------------------------------------ ##
32187 ## Report this to the AC_PACKAGE_NAME lists. ##
32188 ## ------------------------------------------ ##
32191 sed "s/^/$as_me: WARNING: /" >&2
32194 echo "$as_me:$LINENO: checking for $ac_header" >&5
32195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32197 echo $ECHO_N "(cached) $ECHO_C" >&6
32199 eval "$as_ac_Header=\$ac_header_preproc"
32201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32206 cat >>confdefs.h <<_ACEOF
32207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32214 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
32215 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
32216 if test "${cf_cv_arg_union_wait+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32219 cat >conftest.$ac_ext <<_ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h. */
32226 #include <sys/types.h>
32228 #if HAVE_SYS_WAIT_H
32229 # include <sys/wait.h>
32237 pid_t wait(union wait *);
32244 union wait x; int i;
32245 wait(&x); i = WIFEXITED(x)
32251 rm -f conftest.$ac_objext
32252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32253 (eval $ac_compile) 2>conftest.er1
32255 grep -v '^ *+' conftest.er1 >conftest.err
32257 cat conftest.err >&5
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); } &&
32260 { ac_try='test -z "$ac_c_werror_flag"
32261 || test ! -s conftest.err'
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; } &&
32267 { ac_try='test -s conftest.$ac_objext'
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 cf_cv_arg_union_wait=yes
32275 echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32278 cf_cv_arg_union_wait=no
32280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32282 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
32283 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
32284 if test $cf_cv_arg_union_wait = yes; then
32286 cat >>confdefs.h <<\_ACEOF
32287 #define WAIT_USES_UNION 1
32296 for ac_header in sys/wait.h wait.h
32298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32300 echo "$as_me:$LINENO: checking for $ac_header" >&5
32301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32308 # Is the header compilable?
32309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32311 cat >conftest.$ac_ext <<_ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32317 $ac_includes_default
32318 #include <$ac_header>
32320 rm -f conftest.$ac_objext
32321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32322 (eval $ac_compile) 2>conftest.er1
32324 grep -v '^ *+' conftest.er1 >conftest.err
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } &&
32329 { ac_try='test -z "$ac_c_werror_flag"
32330 || test ! -s conftest.err'
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; } &&
32336 { ac_try='test -s conftest.$ac_objext'
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_header_compiler=yes
32344 echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32347 ac_header_compiler=no
32349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32351 echo "${ECHO_T}$ac_header_compiler" >&6
32353 # Is the header present?
32354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h. */
32362 #include <$ac_header>
32364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32367 grep -v '^ *+' conftest.er1 >conftest.err
32369 cat conftest.err >&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } >/dev/null; then
32372 if test -s conftest.err; then
32373 ac_cpp_err=$ac_c_preproc_warn_flag
32374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32381 if test -z "$ac_cpp_err"; then
32382 ac_header_preproc=yes
32384 echo "$as_me: failed program was:" >&5
32385 sed 's/^/| /' conftest.$ac_ext >&5
32387 ac_header_preproc=no
32389 rm -f conftest.err conftest.$ac_ext
32390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391 echo "${ECHO_T}$ac_header_preproc" >&6
32393 # So? What about this header?
32394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32400 ac_header_preproc=yes
32403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32417 ## ------------------------------------------ ##
32418 ## Report this to the AC_PACKAGE_NAME lists. ##
32419 ## ------------------------------------------ ##
32422 sed "s/^/$as_me: WARNING: /" >&2
32425 echo "$as_me:$LINENO: checking for $ac_header" >&5
32426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32430 eval "$as_ac_Header=\$ac_header_preproc"
32432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32437 cat >>confdefs.h <<_ACEOF
32438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32445 echo "$as_me:$LINENO: checking whether wait uses int" >&5
32446 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
32447 if test "${cf_cv_arg_int+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32450 cat >conftest.$ac_ext <<_ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h. */
32457 #include <sys/types.h>
32459 #if HAVE_SYS_WAIT_H
32460 # include <sys/wait.h>
32476 wait(&x); i = WIFEXITED(x)
32482 rm -f conftest.$ac_objext
32483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32484 (eval $ac_compile) 2>conftest.er1
32486 grep -v '^ *+' conftest.er1 >conftest.err
32488 cat conftest.err >&5
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); } &&
32491 { ac_try='test -z "$ac_c_werror_flag"
32492 || test ! -s conftest.err'
32493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32494 (eval $ac_try) 2>&5
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); }; } &&
32498 { ac_try='test -s conftest.$ac_objext'
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; }; then
32506 echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.$ac_ext >&5
32511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32513 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
32514 echo "${ECHO_T}$cf_cv_arg_int" >&6
32515 if test $cf_cv_arg_int = yes; then
32517 cat >>confdefs.h <<\_ACEOF
32518 #define WAIT_USES_INT 1
32523 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32525 if test "${ac_cv_header_time+set}" = set; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 cat >conftest.$ac_ext <<_ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h. */
32534 #include <sys/types.h>
32535 #include <sys/time.h>
32541 if ((struct tm *) 0)
32547 rm -f conftest.$ac_objext
32548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32549 (eval $ac_compile) 2>conftest.er1
32551 grep -v '^ *+' conftest.er1 >conftest.err
32553 cat conftest.err >&5
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); } &&
32556 { ac_try='test -z "$ac_c_werror_flag"
32557 || test ! -s conftest.err'
32558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559 (eval $ac_try) 2>&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); }; } &&
32563 { ac_try='test -s conftest.$ac_objext'
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; }; then
32569 ac_cv_header_time=yes
32571 echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.$ac_ext >&5
32574 ac_cv_header_time=no
32576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32578 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32579 echo "${ECHO_T}$ac_cv_header_time" >&6
32580 if test $ac_cv_header_time = yes; then
32582 cat >>confdefs.h <<\_ACEOF
32583 #define TIME_WITH_SYS_TIME 1
32653 cam/scsi/scsi_message.h \
32671 netinet/in_systm.h \
32673 readline/history.h \
32674 readline/readline.h \
32676 scsi/scsi_ioctl.h \
32695 sys/scsi/impl/uscsi.h \
32696 sys/scsi/scsi/ioctl.h \
32713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32715 echo "$as_me:$LINENO: checking for $ac_header" >&5
32716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32718 echo $ECHO_N "(cached) $ECHO_C" >&6
32720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32723 # Is the header compilable?
32724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32726 cat >conftest.$ac_ext <<_ACEOF
32729 cat confdefs.h >>conftest.$ac_ext
32730 cat >>conftest.$ac_ext <<_ACEOF
32731 /* end confdefs.h. */
32732 $ac_includes_default
32733 #include <$ac_header>
32735 rm -f conftest.$ac_objext
32736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32737 (eval $ac_compile) 2>conftest.er1
32739 grep -v '^ *+' conftest.er1 >conftest.err
32741 cat conftest.err >&5
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); } &&
32744 { ac_try='test -z "$ac_c_werror_flag"
32745 || test ! -s conftest.err'
32746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747 (eval $ac_try) 2>&5
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); }; } &&
32751 { ac_try='test -s conftest.$ac_objext'
32752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753 (eval $ac_try) 2>&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); }; }; then
32757 ac_header_compiler=yes
32759 echo "$as_me: failed program was:" >&5
32760 sed 's/^/| /' conftest.$ac_ext >&5
32762 ac_header_compiler=no
32764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32766 echo "${ECHO_T}$ac_header_compiler" >&6
32768 # Is the header present?
32769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32771 cat >conftest.$ac_ext <<_ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h. */
32777 #include <$ac_header>
32779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32782 grep -v '^ *+' conftest.er1 >conftest.err
32784 cat conftest.err >&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } >/dev/null; then
32787 if test -s conftest.err; then
32788 ac_cpp_err=$ac_c_preproc_warn_flag
32789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32796 if test -z "$ac_cpp_err"; then
32797 ac_header_preproc=yes
32799 echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32802 ac_header_preproc=no
32804 rm -f conftest.err conftest.$ac_ext
32805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32806 echo "${ECHO_T}$ac_header_preproc" >&6
32808 # So? What about this header?
32809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32815 ac_header_preproc=yes
32818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32832 ## ------------------------------------------ ##
32833 ## Report this to the AC_PACKAGE_NAME lists. ##
32834 ## ------------------------------------------ ##
32837 sed "s/^/$as_me: WARNING: /" >&2
32840 echo "$as_me:$LINENO: checking for $ac_header" >&5
32841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32843 echo $ECHO_N "(cached) $ECHO_C" >&6
32845 eval "$as_ac_Header=\$ac_header_preproc"
32847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32852 cat >>confdefs.h <<_ACEOF
32853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32862 for ac_header in netinet/ip.h
32864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32865 echo "$as_me:$LINENO: checking for $ac_header" >&5
32866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32868 echo $ECHO_N "(cached) $ECHO_C" >&6
32870 cat >conftest.$ac_ext <<_ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h. */
32876 #include <sys/socket.h>
32877 #if HAVE_SYS_TYPES_H
32878 #include <sys/types.h>
32880 #ifdef HAVE_NETINET_IN_SYSTM_H
32881 #include <netinet/in_systm.h>
32883 #include <netinet/in.h>
32886 #include <$ac_header>
32888 rm -f conftest.$ac_objext
32889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32890 (eval $ac_compile) 2>conftest.er1
32892 grep -v '^ *+' conftest.er1 >conftest.err
32894 cat conftest.err >&5
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); } &&
32897 { ac_try='test -z "$ac_c_werror_flag"
32898 || test ! -s conftest.err'
32899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900 (eval $ac_try) 2>&5
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; } &&
32904 { ac_try='test -s conftest.$ac_objext'
32905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906 (eval $ac_try) 2>&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); }; }; then
32910 eval "$as_ac_Header=yes"
32912 echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32915 eval "$as_ac_Header=no"
32917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32922 cat >>confdefs.h <<_ACEOF
32923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32932 for ac_header in sys/mount.h
32934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32935 echo "$as_me:$LINENO: checking for $ac_header" >&5
32936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32940 cat >conftest.$ac_ext <<_ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h. */
32946 #ifdef HAVE_SYS_PARAM_H
32947 #include <sys/param.h>
32951 #include <$ac_header>
32953 rm -f conftest.$ac_objext
32954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32955 (eval $ac_compile) 2>conftest.er1
32957 grep -v '^ *+' conftest.er1 >conftest.err
32959 cat conftest.err >&5
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } &&
32962 { ac_try='test -z "$ac_c_werror_flag"
32963 || test ! -s conftest.err'
32964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965 (eval $ac_try) 2>&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; } &&
32969 { ac_try='test -s conftest.$ac_objext'
32970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32971 (eval $ac_try) 2>&5
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 eval "$as_ac_Header=yes"
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32980 eval "$as_ac_Header=no"
32982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32987 cat >>confdefs.h <<_ACEOF
32988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32996 NO_SCSI_CHANGER_MODE=true
32997 NO_CHIO_CHANGER_MODE=true
32999 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33000 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33001 if test "${ac_cv_c_bigendian+set}" = set; then
33002 echo $ECHO_N "(cached) $ECHO_C" >&6
33004 # See if sys/param.h defines the BYTE_ORDER macro.
33005 cat >conftest.$ac_ext <<_ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h. */
33011 #include <sys/types.h>
33012 #include <sys/param.h>
33017 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33018 bogus endian macros
33025 rm -f conftest.$ac_objext
33026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33027 (eval $ac_compile) 2>conftest.er1
33029 grep -v '^ *+' conftest.er1 >conftest.err
33031 cat conftest.err >&5
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } &&
33034 { ac_try='test -z "$ac_c_werror_flag"
33035 || test ! -s conftest.err'
33036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037 (eval $ac_try) 2>&5
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; } &&
33041 { ac_try='test -s conftest.$ac_objext'
33042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043 (eval $ac_try) 2>&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
33047 # It does; now see whether it defined to BIG_ENDIAN or not.
33048 cat >conftest.$ac_ext <<_ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 #include <sys/types.h>
33055 #include <sys/param.h>
33060 #if BYTE_ORDER != BIG_ENDIAN
33068 rm -f conftest.$ac_objext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33070 (eval $ac_compile) 2>conftest.er1
33072 grep -v '^ *+' conftest.er1 >conftest.err
33074 cat conftest.err >&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } &&
33077 { ac_try='test -z "$ac_c_werror_flag"
33078 || test ! -s conftest.err'
33079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080 (eval $ac_try) 2>&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); }; } &&
33084 { ac_try='test -s conftest.$ac_objext'
33085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086 (eval $ac_try) 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33090 ac_cv_c_bigendian=yes
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ac_cv_c_bigendian=no
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 # It does not; compile a test program.
33103 if test "$cross_compiling" = yes; then
33104 # try to guess the endianness by grepping values into an object file
33105 ac_cv_c_bigendian=unknown
33106 cat >conftest.$ac_ext <<_ACEOF
33109 cat confdefs.h >>conftest.$ac_ext
33110 cat >>conftest.$ac_ext <<_ACEOF
33111 /* end confdefs.h. */
33112 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33113 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33114 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33115 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33116 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33117 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33121 _ascii (); _ebcdic ();
33126 rm -f conftest.$ac_objext
33127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33128 (eval $ac_compile) 2>conftest.er1
33130 grep -v '^ *+' conftest.er1 >conftest.err
33132 cat conftest.err >&5
33133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134 (exit $ac_status); } &&
33135 { ac_try='test -z "$ac_c_werror_flag"
33136 || test ! -s conftest.err'
33137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138 (eval $ac_try) 2>&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; } &&
33142 { ac_try='test -s conftest.$ac_objext'
33143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144 (eval $ac_try) 2>&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; }; then
33148 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33149 ac_cv_c_bigendian=yes
33151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33152 if test "$ac_cv_c_bigendian" = unknown; then
33153 ac_cv_c_bigendian=no
33155 # finding both strings is unlikely to happen, but who knows?
33156 ac_cv_c_bigendian=unknown
33160 echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33166 cat >conftest.$ac_ext <<_ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h. */
33175 /* Are we little or big endian? From Harbison&Steele. */
33179 char c[sizeof (long)];
33182 exit (u.c[sizeof (long) - 1] == 1);
33185 rm -f conftest$ac_exeext
33186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33187 (eval $ac_link) 2>&5
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; }; then
33196 ac_cv_c_bigendian=no
33198 echo "$as_me: program exited with status $ac_status" >&5
33199 echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33202 ( exit $ac_status )
33203 ac_cv_c_bigendian=yes
33205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33212 case $ac_cv_c_bigendian in
33215 cat >>confdefs.h <<\_ACEOF
33216 #define WORDS_BIGENDIAN 1
33222 { { echo "$as_me:$LINENO: error: unknown endianness
33223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33224 echo "$as_me: error: unknown endianness
33225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33226 { (exit 1); exit 1; }; } ;;
33230 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33231 echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
33232 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
33233 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33236 cat >conftest.$ac_ext <<_ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h. */
33243 #include <sys/scsi.h>
33249 static struct element_addresses changer_info;
33250 int i = SIOC_ELEMENT_ADDRESSES;
33251 int j = SIOC_ELEMENT_STATUS;
33252 int k = SIOC_MOVE_MEDIUM;
33258 rm -f conftest.$ac_objext
33259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33260 (eval $ac_compile) 2>conftest.er1
33262 grep -v '^ *+' conftest.er1 >conftest.err
33264 cat conftest.err >&5
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); } &&
33267 { ac_try='test -z "$ac_c_werror_flag"
33268 || test ! -s conftest.err'
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; } &&
33274 { ac_try='test -s conftest.$ac_objext'
33275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276 (eval $ac_try) 2>&5
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); }; }; then
33280 amanda_cv_hpux_scsi_chio=yes
33282 echo "$as_me: failed program was:" >&5
33283 sed 's/^/| /' conftest.$ac_ext >&5
33285 amanda_cv_hpux_scsi_chio=no
33287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33289 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
33290 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
33291 if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
33293 cat >>confdefs.h <<\_ACEOF
33294 #define HAVE_HPUX_SCSI_CHIO 1
33297 NO_SCSI_CHANGER_MODE=false
33301 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33302 test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
33303 echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
33304 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
33305 if test "${amanda_cv_linux_scsi+set}" = set; then
33306 echo $ECHO_N "(cached) $ECHO_C" >&6
33308 cat >conftest.$ac_ext <<_ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h. */
33315 #include <scsi/scsi_ioctl.h>
33316 #include <sys/mtio.h>
33324 ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
33330 rm -f conftest.$ac_objext
33331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33332 (eval $ac_compile) 2>conftest.er1
33334 grep -v '^ *+' conftest.er1 >conftest.err
33336 cat conftest.err >&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } &&
33339 { ac_try='test -z "$ac_c_werror_flag"
33340 || test ! -s conftest.err'
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; } &&
33346 { ac_try='test -s conftest.$ac_objext'
33347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33348 (eval $ac_try) 2>&5
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
33352 amanda_cv_linux_scsi=yes
33354 echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33357 amanda_cv_linux_scsi=no
33359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33361 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
33362 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
33365 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33366 test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
33367 echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
33368 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
33369 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
33370 echo $ECHO_N "(cached) $ECHO_C" >&6
33372 cat >conftest.$ac_ext <<_ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h. */
33379 #include <sys/types.h>
33380 #include <scsi/sg.h>
33381 #include <sys/mtio.h>
33388 struct sg_header *psg_header;
33390 write(device, buffer, 1);
33396 rm -f conftest.$ac_objext
33397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33398 (eval $ac_compile) 2>conftest.er1
33400 grep -v '^ *+' conftest.er1 >conftest.err
33402 cat conftest.err >&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); } &&
33405 { ac_try='test -z "$ac_c_werror_flag"
33406 || test ! -s conftest.err'
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; } &&
33412 { ac_try='test -s conftest.$ac_objext'
33413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33414 (eval $ac_try) 2>&5
33416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); }; }; then
33418 amanda_cv_linux_sg_scsi=yes
33420 echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33423 amanda_cv_linux_sg_scsi=no
33425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33427 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
33428 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
33431 if test x"$amanda_cv_linux_scsi" = x"yes" ||
33432 test x"$amanda_cv_linux_sg_scsi" = x"yes";then
33434 cat >>confdefs.h <<\_ACEOF
33435 #define HAVE_LINUX_LIKE_SCSI 1
33438 NO_SCSI_CHANGER_MODE=false
33441 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33442 test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33443 echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
33444 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
33445 if test "${amanda_cv_hpux_scsi+set}" = set; then
33446 echo $ECHO_N "(cached) $ECHO_C" >&6
33448 cat >conftest.$ac_ext <<_ACEOF
33451 cat confdefs.h >>conftest.$ac_ext
33452 cat >>conftest.$ac_ext <<_ACEOF
33453 /* end confdefs.h. */
33456 #include <sys/ioctl.h>
33457 #include <sys/scsi.h>
33458 #include <sys/mtio.h>
33466 ioctl(device, SIOC_IO, Command);
33472 rm -f conftest.$ac_objext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474 (eval $ac_compile) 2>conftest.er1
33476 grep -v '^ *+' conftest.er1 >conftest.err
33478 cat conftest.err >&5
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); } &&
33481 { ac_try='test -z "$ac_c_werror_flag"
33482 || test ! -s conftest.err'
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; } &&
33488 { ac_try='test -s conftest.$ac_objext'
33489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490 (eval $ac_try) 2>&5
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
33494 amanda_cv_hpux_scsi=yes
33496 echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33499 amanda_cv_hpux_scsi=no
33501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33503 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
33504 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
33505 if test x"$amanda_cv_hpux_scsi" = x"yes";then
33507 cat >>confdefs.h <<\_ACEOF
33508 #define HAVE_HPUX_LIKE_SCSI 1
33511 NO_SCSI_CHANGER_MODE=false
33512 NO_CHIO_CHANGER_MODE=false
33516 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33517 test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
33518 echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
33519 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
33520 if test "${amanda_cv_irix_scsi+set}" = set; then
33521 echo $ECHO_N "(cached) $ECHO_C" >&6
33523 cat >conftest.$ac_ext <<_ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h. */
33530 #include <sys/types.h>
33531 #include <sys/dsreq.h>
33532 #include <sys/mtio.h>
33540 ioctl(device, DS_ENTER, &Command);
33546 rm -f conftest.$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548 (eval $ac_compile) 2>conftest.er1
33550 grep -v '^ *+' conftest.er1 >conftest.err
33552 cat conftest.err >&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } &&
33555 { ac_try='test -z "$ac_c_werror_flag"
33556 || test ! -s conftest.err'
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; } &&
33562 { ac_try='test -s conftest.$ac_objext'
33563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564 (eval $ac_try) 2>&5
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; }; then
33568 amanda_cv_irix_scsi=yes
33570 echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33573 amanda_cv_irix_scsi=no
33575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33577 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
33578 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
33579 if test x"$amanda_cv_irix_scsi" = x"yes";then
33581 cat >>confdefs.h <<\_ACEOF
33582 #define HAVE_IRIX_LIKE_SCSI 1
33585 NO_SCSI_CHANGER_MODE=false
33589 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33590 test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
33591 echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
33592 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
33593 if test "${amanda_cv_solaris_scsi+set}" = set; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33596 cat >conftest.$ac_ext <<_ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h. */
33603 #include <sys/types.h>
33604 #include <sys/scsi/impl/uscsi.h>
33605 #include <sys/mtio.h>
33613 ioctl(device, USCSICMD, Command);
33619 rm -f conftest.$ac_objext
33620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33621 (eval $ac_compile) 2>conftest.er1
33623 grep -v '^ *+' conftest.er1 >conftest.err
33625 cat conftest.err >&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); } &&
33628 { ac_try='test -z "$ac_c_werror_flag"
33629 || test ! -s conftest.err'
33630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631 (eval $ac_try) 2>&5
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); }; } &&
33635 { ac_try='test -s conftest.$ac_objext'
33636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637 (eval $ac_try) 2>&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; }; then
33641 amanda_cv_solaris_scsi=yes
33643 echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33646 amanda_cv_solaris_scsi=no
33648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33650 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
33651 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
33652 if test x"$amanda_cv_solaris_scsi" = x"yes";then
33654 cat >>confdefs.h <<\_ACEOF
33655 #define HAVE_SOLARIS_LIKE_SCSI 1
33658 NO_SCSI_CHANGER_MODE=false
33662 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
33663 test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
33664 test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
33665 echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
33666 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
33667 if test "${amanda_cv_aix_scsi+set}" = set; then
33668 echo $ECHO_N "(cached) $ECHO_C" >&6
33670 cat >conftest.$ac_ext <<_ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h. */
33677 #include <sys/types.h>
33678 #include <sys/scarray.h>
33679 #include <sys/tape.h>
33687 ioctl(device, STIOCMD, Command);
33693 rm -f conftest.$ac_objext
33694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33695 (eval $ac_compile) 2>conftest.er1
33697 grep -v '^ *+' conftest.er1 >conftest.err
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } &&
33702 { ac_try='test -z "$ac_c_werror_flag"
33703 || test ! -s conftest.err'
33704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33705 (eval $ac_try) 2>&5
33707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708 (exit $ac_status); }; } &&
33709 { ac_try='test -s conftest.$ac_objext'
33710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33711 (eval $ac_try) 2>&5
33713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714 (exit $ac_status); }; }; then
33715 amanda_cv_aix_scsi=yes
33717 echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33720 amanda_cv_aix_scsi=no
33722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33724 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
33725 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
33726 if test x"$amanda_cv_aix_scsi" = x"yes";then
33728 cat >>confdefs.h <<\_ACEOF
33729 #define HAVE_AIX_LIKE_SCSI 1
33732 NO_SCSI_CHANGER_MODE=false
33735 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
33736 echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
33737 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
33738 if test "${amanda_cv_cam_scsi+set}" = set; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33741 cat >conftest.$ac_ext <<_ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h. */
33749 # include <fcntl.h>
33750 # include <cam/cam.h>
33751 # include <cam/cam_ccb.h>
33752 # include <cam/scsi/scsi_message.h>
33753 # include <cam/scsi/scsi_pass.h>
33754 # include <camlib.h>
33760 struct cam_device *curdev;
33762 curdev = cam_open_pass("", O_RDWR, NULL);
33768 rm -f conftest.$ac_objext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33770 (eval $ac_compile) 2>conftest.er1
33772 grep -v '^ *+' conftest.er1 >conftest.err
33774 cat conftest.err >&5
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); } &&
33777 { ac_try='test -z "$ac_c_werror_flag"
33778 || test ! -s conftest.err'
33779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780 (eval $ac_try) 2>&5
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); }; } &&
33784 { ac_try='test -s conftest.$ac_objext'
33785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786 (eval $ac_try) 2>&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); }; }; then
33790 amanda_cv_cam_scsi=yes
33792 echo "$as_me: failed program was:" >&5
33793 sed 's/^/| /' conftest.$ac_ext >&5
33795 amanda_cv_cam_scsi=no
33797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33799 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
33800 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
33801 if test x"$amanda_cv_cam_scsi" = x"yes";then
33803 cat >>confdefs.h <<\_ACEOF
33804 #define HAVE_CAM_LIKE_SCSI 1
33807 NO_SCSI_CHANGER_MODE=false
33809 echo "$as_me:$LINENO: checking for main in -lcam" >&5
33810 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
33811 if test "${ac_cv_lib_cam_main+set}" = set; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
33814 ac_check_lib_save_LIBS=$LIBS
33816 cat >conftest.$ac_ext <<_ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h. */
33832 rm -f conftest.$ac_objext conftest$ac_exeext
33833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33834 (eval $ac_link) 2>conftest.er1
33836 grep -v '^ *+' conftest.er1 >conftest.err
33838 cat conftest.err >&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try='test -z "$ac_c_werror_flag"
33842 || test ! -s conftest.err'
33843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844 (eval $ac_try) 2>&5
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; } &&
33848 { ac_try='test -s conftest$ac_exeext'
33849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850 (eval $ac_try) 2>&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); }; }; then
33854 ac_cv_lib_cam_main=yes
33856 echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33859 ac_cv_lib_cam_main=no
33861 rm -f conftest.err conftest.$ac_objext \
33862 conftest$ac_exeext conftest.$ac_ext
33863 LIBS=$ac_check_lib_save_LIBS
33865 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
33866 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
33867 if test $ac_cv_lib_cam_main = yes; then
33868 cat >>confdefs.h <<_ACEOF
33869 #define HAVE_LIBCAM 1
33880 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33881 test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
33882 echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
33883 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
33884 if test "${amanda_cv_bsd_scsi+set}" = set; then
33885 echo $ECHO_N "(cached) $ECHO_C" >&6
33887 cat >conftest.$ac_ext <<_ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h. */
33894 #include <sys/types.h>
33895 #include <sys/scsiio.h>
33896 #include <sys/mtio.h>
33904 ioctl(device, SCIOCCOMMAND, &Command);
33910 rm -f conftest.$ac_objext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33912 (eval $ac_compile) 2>conftest.er1
33914 grep -v '^ *+' conftest.er1 >conftest.err
33916 cat conftest.err >&5
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); } &&
33919 { ac_try='test -z "$ac_c_werror_flag"
33920 || test ! -s conftest.err'
33921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922 (eval $ac_try) 2>&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest.$ac_objext'
33927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928 (eval $ac_try) 2>&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33932 amanda_cv_bsd_scsi=yes
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33937 amanda_cv_bsd_scsi=no
33939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33941 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
33942 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
33943 if test x"$amanda_cv_bsd_scsi" = x"yes";then
33945 cat >>confdefs.h <<\_ACEOF
33946 #define HAVE_BSD_LIKE_SCSI 1
33949 NO_SCSI_CHANGER_MODE=false
33953 if test x"$ac_cv_header_chio_h" = x"yes" ||
33954 test x"$ac_cv_header_sys_chio_h" = x"yes"; then
33955 if test x"$ac_cv_header_camlib_h" != x"yes"; then
33956 if $NO_SCSI_CHANGER_MODE; then
33957 NO_SCSI_CHANGER_MODE=false
33959 NO_CHIO_CHANGER_MODE=false
33965 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
33966 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
33967 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
33968 echo $ECHO_N "(cached) $ECHO_C" >&6
33970 ac_check_lib_save_LIBS=$LIBS
33971 LIBS="-lcur_colr $LIBS"
33972 cat >conftest.$ac_ext <<_ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h. */
33988 rm -f conftest.$ac_objext conftest$ac_exeext
33989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33990 (eval $ac_link) 2>conftest.er1
33992 grep -v '^ *+' conftest.er1 >conftest.err
33994 cat conftest.err >&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); } &&
33997 { ac_try='test -z "$ac_c_werror_flag"
33998 || test ! -s conftest.err'
33999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000 (eval $ac_try) 2>&5
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); }; } &&
34004 { ac_try='test -s conftest$ac_exeext'
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; }; then
34010 ac_cv_lib_cur_colr_main=yes
34012 echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34015 ac_cv_lib_cur_colr_main=no
34017 rm -f conftest.err conftest.$ac_objext \
34018 conftest$ac_exeext conftest.$ac_ext
34019 LIBS=$ac_check_lib_save_LIBS
34021 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
34022 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
34023 if test $ac_cv_lib_cur_colr_main = yes; then
34024 cat >>confdefs.h <<_ACEOF
34025 #define HAVE_LIBCUR_COLR 1
34028 LIBS="-lcur_colr $LIBS"
34034 echo "$as_me:$LINENO: checking for main in -lintl" >&5
34035 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
34036 if test "${ac_cv_lib_intl_main+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34039 ac_check_lib_save_LIBS=$LIBS
34040 LIBS="-lintl $LIBS"
34041 cat >conftest.$ac_ext <<_ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h. */
34057 rm -f conftest.$ac_objext conftest$ac_exeext
34058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34059 (eval $ac_link) 2>conftest.er1
34061 grep -v '^ *+' conftest.er1 >conftest.err
34063 cat conftest.err >&5
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } &&
34066 { ac_try='test -z "$ac_c_werror_flag"
34067 || test ! -s conftest.err'
34068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34069 (eval $ac_try) 2>&5
34071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072 (exit $ac_status); }; } &&
34073 { ac_try='test -s conftest$ac_exeext'
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; }; then
34079 ac_cv_lib_intl_main=yes
34081 echo "$as_me: failed program was:" >&5
34082 sed 's/^/| /' conftest.$ac_ext >&5
34084 ac_cv_lib_intl_main=no
34086 rm -f conftest.err conftest.$ac_objext \
34087 conftest$ac_exeext conftest.$ac_ext
34088 LIBS=$ac_check_lib_save_LIBS
34090 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
34091 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
34092 if test $ac_cv_lib_intl_main = yes; then
34093 cat >>confdefs.h <<_ACEOF
34094 #define HAVE_LIBINTL 1
34097 LIBS="-lintl $LIBS"
34105 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34106 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34107 if test "${ac_cv_lib_socket_main+set}" = set; then
34108 echo $ECHO_N "(cached) $ECHO_C" >&6
34110 ac_check_lib_save_LIBS=$LIBS
34111 LIBS="-lsocket $LIBS"
34112 cat >conftest.$ac_ext <<_ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h. */
34128 rm -f conftest.$ac_objext conftest$ac_exeext
34129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34130 (eval $ac_link) 2>conftest.er1
34132 grep -v '^ *+' conftest.er1 >conftest.err
34134 cat conftest.err >&5
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); } &&
34137 { ac_try='test -z "$ac_c_werror_flag"
34138 || test ! -s conftest.err'
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; } &&
34144 { ac_try='test -s conftest$ac_exeext'
34145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146 (eval $ac_try) 2>&5
34148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149 (exit $ac_status); }; }; then
34150 ac_cv_lib_socket_main=yes
34152 echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34155 ac_cv_lib_socket_main=no
34157 rm -f conftest.err conftest.$ac_objext \
34158 conftest$ac_exeext conftest.$ac_ext
34159 LIBS=$ac_check_lib_save_LIBS
34161 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34162 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34163 if test $ac_cv_lib_socket_main = yes; then
34164 cat >>confdefs.h <<_ACEOF
34165 #define HAVE_LIBSOCKET 1
34168 LIBS="-lsocket $LIBS"
34175 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
34176 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
34177 if test "${ac_cv_lib_resolv_main+set}" = set; then
34178 echo $ECHO_N "(cached) $ECHO_C" >&6
34180 ac_check_lib_save_LIBS=$LIBS
34181 LIBS="-lresolv $LIBS"
34182 cat >conftest.$ac_ext <<_ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34198 rm -f conftest.$ac_objext conftest$ac_exeext
34199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34200 (eval $ac_link) 2>conftest.er1
34202 grep -v '^ *+' conftest.er1 >conftest.err
34204 cat conftest.err >&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } &&
34207 { ac_try='test -z "$ac_c_werror_flag"
34208 || test ! -s conftest.err'
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; } &&
34214 { ac_try='test -s conftest$ac_exeext'
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; }; then
34220 ac_cv_lib_resolv_main=yes
34222 echo "$as_me: failed program was:" >&5
34223 sed 's/^/| /' conftest.$ac_ext >&5
34225 ac_cv_lib_resolv_main=no
34227 rm -f conftest.err conftest.$ac_objext \
34228 conftest$ac_exeext conftest.$ac_ext
34229 LIBS=$ac_check_lib_save_LIBS
34231 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
34232 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
34233 if test $ac_cv_lib_resolv_main = yes; then
34234 cat >>confdefs.h <<_ACEOF
34235 #define HAVE_LIBRESOLV 1
34238 LIBS="-lresolv $LIBS"
34243 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34244 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34245 if test "${ac_cv_lib_nsl_main+set}" = set; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34248 ac_check_lib_save_LIBS=$LIBS
34250 cat >conftest.$ac_ext <<_ACEOF
34253 cat confdefs.h >>conftest.$ac_ext
34254 cat >>conftest.$ac_ext <<_ACEOF
34255 /* end confdefs.h. */
34266 rm -f conftest.$ac_objext conftest$ac_exeext
34267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34268 (eval $ac_link) 2>conftest.er1
34270 grep -v '^ *+' conftest.er1 >conftest.err
34272 cat conftest.err >&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); } &&
34275 { ac_try='test -z "$ac_c_werror_flag"
34276 || test ! -s conftest.err'
34277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34278 (eval $ac_try) 2>&5
34280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281 (exit $ac_status); }; } &&
34282 { ac_try='test -s conftest$ac_exeext'
34283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284 (eval $ac_try) 2>&5
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
34288 ac_cv_lib_nsl_main=yes
34290 echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34293 ac_cv_lib_nsl_main=no
34295 rm -f conftest.err conftest.$ac_objext \
34296 conftest$ac_exeext conftest.$ac_ext
34297 LIBS=$ac_check_lib_save_LIBS
34299 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34300 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34301 if test $ac_cv_lib_nsl_main = yes; then
34302 cat >>confdefs.h <<_ACEOF
34303 #define HAVE_LIBNSL 1
34311 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34312 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34313 if test "${ac_cv_lib_socket_main+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34316 ac_check_lib_save_LIBS=$LIBS
34317 LIBS="-lsocket $LIBS"
34318 cat >conftest.$ac_ext <<_ACEOF
34321 cat confdefs.h >>conftest.$ac_ext
34322 cat >>conftest.$ac_ext <<_ACEOF
34323 /* end confdefs.h. */
34334 rm -f conftest.$ac_objext conftest$ac_exeext
34335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34336 (eval $ac_link) 2>conftest.er1
34338 grep -v '^ *+' conftest.er1 >conftest.err
34340 cat conftest.err >&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); } &&
34343 { ac_try='test -z "$ac_c_werror_flag"
34344 || test ! -s conftest.err'
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; } &&
34350 { ac_try='test -s conftest$ac_exeext'
34351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352 (eval $ac_try) 2>&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); }; }; then
34356 ac_cv_lib_socket_main=yes
34358 echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34361 ac_cv_lib_socket_main=no
34363 rm -f conftest.err conftest.$ac_objext \
34364 conftest$ac_exeext conftest.$ac_ext
34365 LIBS=$ac_check_lib_save_LIBS
34367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34369 if test $ac_cv_lib_socket_main = yes; then
34370 cat >>confdefs.h <<_ACEOF
34371 #define HAVE_LIBSOCKET 1
34374 LIBS="-lsocket $LIBS"
34379 echo "$as_me:$LINENO: checking for main in -lsun" >&5
34380 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
34381 if test "${ac_cv_lib_sun_main+set}" = set; then
34382 echo $ECHO_N "(cached) $ECHO_C" >&6
34384 ac_check_lib_save_LIBS=$LIBS
34386 cat >conftest.$ac_ext <<_ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h. */
34402 rm -f conftest.$ac_objext conftest$ac_exeext
34403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34404 (eval $ac_link) 2>conftest.er1
34406 grep -v '^ *+' conftest.er1 >conftest.err
34408 cat conftest.err >&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); } &&
34411 { ac_try='test -z "$ac_c_werror_flag"
34412 || test ! -s conftest.err'
34413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414 (eval $ac_try) 2>&5
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); }; } &&
34418 { ac_try='test -s conftest$ac_exeext'
34419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420 (eval $ac_try) 2>&5
34422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423 (exit $ac_status); }; }; then
34424 ac_cv_lib_sun_main=yes
34426 echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34429 ac_cv_lib_sun_main=no
34431 rm -f conftest.err conftest.$ac_objext \
34432 conftest$ac_exeext conftest.$ac_ext
34433 LIBS=$ac_check_lib_save_LIBS
34435 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
34436 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
34437 if test $ac_cv_lib_sun_main = yes; then
34438 cat >>confdefs.h <<_ACEOF
34439 #define HAVE_LIBSUN 1
34450 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34451 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
34452 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34455 ac_check_lib_save_LIBS=$LIBS
34456 LIBS="-ltermcap $LIBS"
34457 cat >conftest.$ac_ext <<_ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h. */
34464 /* Override any gcc2 internal prototype to avoid an error. */
34468 /* We use char because int might match the return type of a gcc2
34469 builtin and then its argument prototype would still apply. */
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481 (eval $ac_link) 2>conftest.er1
34483 grep -v '^ *+' conftest.er1 >conftest.err
34485 cat conftest.err >&5
34486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487 (exit $ac_status); } &&
34488 { ac_try='test -z "$ac_c_werror_flag"
34489 || test ! -s conftest.err'
34490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491 (eval $ac_try) 2>&5
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); }; } &&
34495 { ac_try='test -s conftest$ac_exeext'
34496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497 (eval $ac_try) 2>&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); }; }; then
34501 ac_cv_lib_termcap_tgetent=yes
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 ac_cv_lib_termcap_tgetent=no
34508 rm -f conftest.err conftest.$ac_objext \
34509 conftest$ac_exeext conftest.$ac_ext
34510 LIBS=$ac_check_lib_save_LIBS
34512 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34513 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
34514 if test $ac_cv_lib_termcap_tgetent = yes; then
34515 cat >>confdefs.h <<_ACEOF
34516 #define HAVE_LIBTERMCAP 1
34519 LIBS="-ltermcap $LIBS"
34523 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
34525 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
34526 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
34527 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
34528 echo $ECHO_N "(cached) $ECHO_C" >&6
34530 ac_check_lib_save_LIBS=$LIBS
34531 LIBS="-lcurses $LIBS"
34532 cat >conftest.$ac_ext <<_ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h. */
34539 /* Override any gcc2 internal prototype to avoid an error. */
34543 /* We use char because int might match the return type of a gcc2
34544 builtin and then its argument prototype would still apply. */
34554 rm -f conftest.$ac_objext conftest$ac_exeext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556 (eval $ac_link) 2>conftest.er1
34558 grep -v '^ *+' conftest.er1 >conftest.err
34560 cat conftest.err >&5
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } &&
34563 { ac_try='test -z "$ac_c_werror_flag"
34564 || test ! -s conftest.err'
34565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566 (eval $ac_try) 2>&5
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); }; } &&
34570 { ac_try='test -s conftest$ac_exeext'
34571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572 (eval $ac_try) 2>&5
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); }; }; then
34576 ac_cv_lib_curses_tgetent=yes
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 ac_cv_lib_curses_tgetent=no
34583 rm -f conftest.err conftest.$ac_objext \
34584 conftest$ac_exeext conftest.$ac_ext
34585 LIBS=$ac_check_lib_save_LIBS
34587 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
34588 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
34589 if test $ac_cv_lib_curses_tgetent = yes; then
34590 cat >>confdefs.h <<_ACEOF
34591 #define HAVE_LIBCURSES 1
34594 LIBS="-lcurses $LIBS"
34598 if test "x$ac_cv_lib_curses_tgetent" != xyes; then
34600 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
34601 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
34602 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
34603 echo $ECHO_N "(cached) $ECHO_C" >&6
34605 ac_check_lib_save_LIBS=$LIBS
34606 LIBS="-lncurses $LIBS"
34607 cat >conftest.$ac_ext <<_ACEOF
34610 cat confdefs.h >>conftest.$ac_ext
34611 cat >>conftest.$ac_ext <<_ACEOF
34612 /* end confdefs.h. */
34614 /* Override any gcc2 internal prototype to avoid an error. */
34618 /* We use char because int might match the return type of a gcc2
34619 builtin and then its argument prototype would still apply. */
34629 rm -f conftest.$ac_objext conftest$ac_exeext
34630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34631 (eval $ac_link) 2>conftest.er1
34633 grep -v '^ *+' conftest.er1 >conftest.err
34635 cat conftest.err >&5
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); } &&
34638 { ac_try='test -z "$ac_c_werror_flag"
34639 || test ! -s conftest.err'
34640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34641 (eval $ac_try) 2>&5
34643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644 (exit $ac_status); }; } &&
34645 { ac_try='test -s conftest$ac_exeext'
34646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34647 (eval $ac_try) 2>&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); }; }; then
34651 ac_cv_lib_ncurses_tgetent=yes
34653 echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34656 ac_cv_lib_ncurses_tgetent=no
34658 rm -f conftest.err conftest.$ac_objext \
34659 conftest$ac_exeext conftest.$ac_ext
34660 LIBS=$ac_check_lib_save_LIBS
34662 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
34663 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
34664 if test $ac_cv_lib_ncurses_tgetent = yes; then
34665 cat >>confdefs.h <<_ACEOF
34666 #define HAVE_LIBNCURSES 1
34669 LIBS="-lncurses $LIBS"
34675 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
34676 test "x$ac_cv_lib_curses_tgetent" = xyes ||
34677 test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
34679 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
34680 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
34681 if test "${ac_cv_lib_readline_readline+set}" = set; then
34682 echo $ECHO_N "(cached) $ECHO_C" >&6
34684 ac_check_lib_save_LIBS=$LIBS
34685 LIBS="-lreadline $LIBS"
34686 cat >conftest.$ac_ext <<_ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h. */
34693 /* Override any gcc2 internal prototype to avoid an error. */
34697 /* We use char because int might match the return type of a gcc2
34698 builtin and then its argument prototype would still apply. */
34708 rm -f conftest.$ac_objext conftest$ac_exeext
34709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34710 (eval $ac_link) 2>conftest.er1
34712 grep -v '^ *+' conftest.er1 >conftest.err
34714 cat conftest.err >&5
34715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716 (exit $ac_status); } &&
34717 { ac_try='test -z "$ac_c_werror_flag"
34718 || test ! -s conftest.err'
34719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720 (eval $ac_try) 2>&5
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); }; } &&
34724 { ac_try='test -s conftest$ac_exeext'
34725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726 (eval $ac_try) 2>&5
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); }; }; then
34730 ac_cv_lib_readline_readline=yes
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34735 ac_cv_lib_readline_readline=no
34737 rm -f conftest.err conftest.$ac_objext \
34738 conftest$ac_exeext conftest.$ac_ext
34739 LIBS=$ac_check_lib_save_LIBS
34741 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
34742 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
34743 if test $ac_cv_lib_readline_readline = yes; then
34744 cat >>confdefs.h <<_ACEOF
34745 #define HAVE_LIBREADLINE 1
34748 LIBS="-lreadline $LIBS"
34752 if test "x$ac_cv_lib_readline_readline" = xyes; then
34753 READLINE_LIBS="-lreadline"
34756 { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
34757 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
34760 { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
34761 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
34764 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
34765 if test "x$ac_cv_header_vtblc_h" = xyes; then
34767 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
34768 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
34769 if test "${ac_cv_lib_vtblc_main+set}" = set; then
34770 echo $ECHO_N "(cached) $ECHO_C" >&6
34772 ac_check_lib_save_LIBS=$LIBS
34773 LIBS="-lvtblc $LIBS"
34774 cat >conftest.$ac_ext <<_ACEOF
34777 cat confdefs.h >>conftest.$ac_ext
34778 cat >>conftest.$ac_ext <<_ACEOF
34779 /* end confdefs.h. */
34790 rm -f conftest.$ac_objext conftest$ac_exeext
34791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34792 (eval $ac_link) 2>conftest.er1
34794 grep -v '^ *+' conftest.er1 >conftest.err
34796 cat conftest.err >&5
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } &&
34799 { ac_try='test -z "$ac_c_werror_flag"
34800 || test ! -s conftest.err'
34801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802 (eval $ac_try) 2>&5
34804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805 (exit $ac_status); }; } &&
34806 { ac_try='test -s conftest$ac_exeext'
34807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34808 (eval $ac_try) 2>&5
34810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811 (exit $ac_status); }; }; then
34812 ac_cv_lib_vtblc_main=yes
34814 echo "$as_me: failed program was:" >&5
34815 sed 's/^/| /' conftest.$ac_ext >&5
34817 ac_cv_lib_vtblc_main=no
34819 rm -f conftest.err conftest.$ac_objext \
34820 conftest$ac_exeext conftest.$ac_ext
34821 LIBS=$ac_check_lib_save_LIBS
34823 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
34824 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
34825 if test $ac_cv_lib_vtblc_main = yes; then
34826 cat >>confdefs.h <<_ACEOF
34827 #define HAVE_LIBVTBLC 1
34830 LIBS="-lvtblc $LIBS"
34834 if test "x$ac_cv_lib_vtblc_main" != xyes; then
34835 { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
34836 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
34839 { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
34840 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
34845 echo "$as_me:$LINENO: checking for modf in -lm" >&5
34846 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
34847 if test "${ac_cv_lib_m_modf+set}" = set; then
34848 echo $ECHO_N "(cached) $ECHO_C" >&6
34850 ac_check_lib_save_LIBS=$LIBS
34852 cat >conftest.$ac_ext <<_ACEOF
34855 cat confdefs.h >>conftest.$ac_ext
34856 cat >>conftest.$ac_ext <<_ACEOF
34857 /* end confdefs.h. */
34859 /* Override any gcc2 internal prototype to avoid an error. */
34863 /* We use char because int might match the return type of a gcc2
34864 builtin and then its argument prototype would still apply. */
34874 rm -f conftest.$ac_objext conftest$ac_exeext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34876 (eval $ac_link) 2>conftest.er1
34878 grep -v '^ *+' conftest.er1 >conftest.err
34880 cat conftest.err >&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } &&
34883 { ac_try='test -z "$ac_c_werror_flag"
34884 || test ! -s conftest.err'
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } &&
34890 { ac_try='test -s conftest$ac_exeext'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; }; then
34896 ac_cv_lib_m_modf=yes
34898 echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34901 ac_cv_lib_m_modf=no
34903 rm -f conftest.err conftest.$ac_objext \
34904 conftest$ac_exeext conftest.$ac_ext
34905 LIBS=$ac_check_lib_save_LIBS
34907 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
34908 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
34909 if test $ac_cv_lib_m_modf = yes; then
34910 cat >>confdefs.h <<_ACEOF
34911 #define HAVE_LIBM 1
34920 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
34921 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
34922 mt_flags_result="found"
34923 cat >conftest.$ac_ext <<_ACEOF
34926 cat confdefs.h >>conftest.$ac_ext
34927 cat >>conftest.$ac_ext <<_ACEOF
34928 /* end confdefs.h. */
34931 #include <sys/types.h>
34932 #include <sys/mtio.h>
34947 rm -f conftest.$ac_objext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34949 (eval $ac_compile) 2>conftest.er1
34951 grep -v '^ *+' conftest.er1 >conftest.err
34953 cat conftest.err >&5
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); } &&
34956 { ac_try='test -z "$ac_c_werror_flag"
34957 || test ! -s conftest.err'
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; } &&
34963 { ac_try='test -s conftest.$ac_objext'
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34970 cat >>confdefs.h <<\_ACEOF
34971 #define HAVE_MT_FLAGS 1
34975 echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34978 mt_flags_result="not found"
34980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34981 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
34982 echo "${ECHO_T}$mt_flags_result" >&6
34984 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
34985 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
34986 mt_fileno_result="found"
34987 cat >conftest.$ac_ext <<_ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h. */
34995 #include <sys/types.h>
34996 #include <sys/mtio.h>
35005 ds = buf.mt_fileno;
35011 rm -f conftest.$ac_objext
35012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35013 (eval $ac_compile) 2>conftest.er1
35015 grep -v '^ *+' conftest.er1 >conftest.err
35017 cat conftest.err >&5
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } &&
35020 { ac_try='test -z "$ac_c_werror_flag"
35021 || test ! -s conftest.err'
35022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023 (eval $ac_try) 2>&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); }; } &&
35027 { ac_try='test -s conftest.$ac_objext'
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; }; then
35034 cat >>confdefs.h <<\_ACEOF
35035 #define HAVE_MT_FILENO 1
35039 echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35042 mt_fileno_result="not found"
35044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35045 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
35046 echo "${ECHO_T}$mt_fileno_result" >&6
35048 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
35049 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
35050 mt_blkno_result="found"
35051 cat >conftest.$ac_ext <<_ACEOF
35054 cat confdefs.h >>conftest.$ac_ext
35055 cat >>conftest.$ac_ext <<_ACEOF
35056 /* end confdefs.h. */
35059 #include <sys/types.h>
35060 #include <sys/mtio.h>
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077 (eval $ac_compile) 2>conftest.er1
35079 grep -v '^ *+' conftest.er1 >conftest.err
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } &&
35084 { ac_try='test -z "$ac_c_werror_flag"
35085 || test ! -s conftest.err'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; } &&
35091 { ac_try='test -s conftest.$ac_objext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35098 cat >>confdefs.h <<\_ACEOF
35099 #define HAVE_MT_BLKNO 1
35103 echo "$as_me: failed program was:" >&5
35104 sed 's/^/| /' conftest.$ac_ext >&5
35106 mt_blkno_result="not found"
35108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35109 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
35110 echo "${ECHO_T}$mt_blkno_result" >&6
35112 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
35113 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
35114 mt_dsreg_result="found"
35115 cat >conftest.$ac_ext <<_ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h. */
35123 #include <sys/types.h>
35124 #include <sys/mtio.h>
35139 rm -f conftest.$ac_objext
35140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35141 (eval $ac_compile) 2>conftest.er1
35143 grep -v '^ *+' conftest.er1 >conftest.err
35145 cat conftest.err >&5
35146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147 (exit $ac_status); } &&
35148 { ac_try='test -z "$ac_c_werror_flag"
35149 || test ! -s conftest.err'
35150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35151 (eval $ac_try) 2>&5
35153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154 (exit $ac_status); }; } &&
35155 { ac_try='test -s conftest.$ac_objext'
35156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35157 (eval $ac_try) 2>&5
35159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160 (exit $ac_status); }; }; then
35162 cat >>confdefs.h <<\_ACEOF
35163 #define HAVE_MT_DSREG 1
35167 echo "$as_me: failed program was:" >&5
35168 sed 's/^/| /' conftest.$ac_ext >&5
35170 mt_dsreg_result="not found"
35172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35173 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
35174 echo "${ECHO_T}$mt_dsreg_result" >&6
35176 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
35177 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
35178 mt_erreg_result="found"
35179 cat >conftest.$ac_ext <<_ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35187 #include <sys/types.h>
35188 #include <sys/mtio.h>
35203 rm -f conftest.$ac_objext
35204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35205 (eval $ac_compile) 2>conftest.er1
35207 grep -v '^ *+' conftest.er1 >conftest.err
35209 cat conftest.err >&5
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); } &&
35212 { ac_try='test -z "$ac_c_werror_flag"
35213 || test ! -s conftest.err'
35214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215 (eval $ac_try) 2>&5
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); }; } &&
35219 { ac_try='test -s conftest.$ac_objext'
35220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35221 (eval $ac_try) 2>&5
35223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224 (exit $ac_status); }; }; then
35226 cat >>confdefs.h <<\_ACEOF
35227 #define HAVE_MT_ERREG 1
35231 echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35234 mt_erreg_result="not found"
35236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35237 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
35238 echo "${ECHO_T}$mt_erreg_result" >&6
35246 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
35247 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
35248 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
35249 echo $ECHO_N "(cached) $ECHO_C" >&6
35251 ac_check_lib_save_LIBS=$LIBS
35253 cat >conftest.$ac_ext <<_ACEOF
35256 cat confdefs.h >>conftest.$ac_ext
35257 cat >>conftest.$ac_ext <<_ACEOF
35258 /* end confdefs.h. */
35260 /* Override any gcc2 internal prototype to avoid an error. */
35264 /* We use char because int might match the return type of a gcc2
35265 builtin and then its argument prototype would still apply. */
35275 rm -f conftest.$ac_objext conftest$ac_exeext
35276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35277 (eval $ac_link) 2>conftest.er1
35279 grep -v '^ *+' conftest.er1 >conftest.err
35281 cat conftest.err >&5
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); } &&
35284 { ac_try='test -z "$ac_c_werror_flag"
35285 || test ! -s conftest.err'
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; } &&
35291 { ac_try='test -s conftest$ac_exeext'
35292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35293 (eval $ac_try) 2>&5
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); }; }; then
35297 ac_cv_lib_c_dbm_open=yes
35299 echo "$as_me: failed program was:" >&5
35300 sed 's/^/| /' conftest.$ac_ext >&5
35302 ac_cv_lib_c_dbm_open=no
35304 rm -f conftest.err conftest.$ac_objext \
35305 conftest$ac_exeext conftest.$ac_ext
35306 LIBS=$ac_check_lib_save_LIBS
35308 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
35309 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
35310 if test $ac_cv_lib_c_dbm_open = yes; then
35311 cat >>confdefs.h <<_ACEOF
35312 #define HAVE_LIBC 1
35321 case "$DB_STYLE" in
35323 if test "x$ac_cv_header_db_h" = xyes; then
35325 echo "$as_me:$LINENO: checking for main in -ldb" >&5
35326 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
35327 if test "${ac_cv_lib_db_main+set}" = set; then
35328 echo $ECHO_N "(cached) $ECHO_C" >&6
35330 ac_check_lib_save_LIBS=$LIBS
35332 cat >conftest.$ac_ext <<_ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h. */
35348 rm -f conftest.$ac_objext conftest$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350 (eval $ac_link) 2>conftest.er1
35352 grep -v '^ *+' conftest.er1 >conftest.err
35354 cat conftest.err >&5
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); } &&
35357 { ac_try='test -z "$ac_c_werror_flag"
35358 || test ! -s conftest.err'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; } &&
35364 { ac_try='test -s conftest$ac_exeext'
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; }; then
35370 ac_cv_lib_db_main=yes
35372 echo "$as_me: failed program was:" >&5
35373 sed 's/^/| /' conftest.$ac_ext >&5
35375 ac_cv_lib_db_main=no
35377 rm -f conftest.err conftest.$ac_objext \
35378 conftest$ac_exeext conftest.$ac_ext
35379 LIBS=$ac_check_lib_save_LIBS
35381 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
35382 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
35383 if test $ac_cv_lib_db_main = yes; then
35384 cat >>confdefs.h <<_ACEOF
35385 #define HAVE_LIBDB 1
35392 if test "x$ac_cv_lib_db_main" = xyes; then
35394 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
35395 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
35396 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
35397 echo $ECHO_N "(cached) $ECHO_C" >&6
35399 ac_check_lib_save_LIBS=$LIBS
35401 cat >conftest.$ac_ext <<_ACEOF
35404 cat confdefs.h >>conftest.$ac_ext
35405 cat >>conftest.$ac_ext <<_ACEOF
35406 /* end confdefs.h. */
35408 /* Override any gcc2 internal prototype to avoid an error. */
35412 /* We use char because int might match the return type of a gcc2
35413 builtin and then its argument prototype would still apply. */
35423 rm -f conftest.$ac_objext conftest$ac_exeext
35424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35425 (eval $ac_link) 2>conftest.er1
35427 grep -v '^ *+' conftest.er1 >conftest.err
35429 cat conftest.err >&5
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } &&
35432 { ac_try='test -z "$ac_c_werror_flag"
35433 || test ! -s conftest.err'
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; } &&
35439 { ac_try='test -s conftest$ac_exeext'
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; }; then
35445 ac_cv_lib_db_dbm_open=yes
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35450 ac_cv_lib_db_dbm_open=no
35452 rm -f conftest.err conftest.$ac_objext \
35453 conftest$ac_exeext conftest.$ac_ext
35454 LIBS=$ac_check_lib_save_LIBS
35456 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
35457 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
35458 if test $ac_cv_lib_db_dbm_open = yes; then
35459 cat >>confdefs.h <<_ACEOF
35460 #define HAVE_LIBDB 1
35467 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
35472 { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
35473 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
35476 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35481 { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
35482 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
35487 { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
35488 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
35493 if test "x$ac_cv_header_dbm_h" = xyes; then
35495 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
35496 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
35497 if test "${ac_cv_lib_dbm_main+set}" = set; then
35498 echo $ECHO_N "(cached) $ECHO_C" >&6
35500 ac_check_lib_save_LIBS=$LIBS
35502 cat >conftest.$ac_ext <<_ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h. */
35518 rm -f conftest.$ac_objext conftest$ac_exeext
35519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35520 (eval $ac_link) 2>conftest.er1
35522 grep -v '^ *+' conftest.er1 >conftest.err
35524 cat conftest.err >&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } &&
35527 { ac_try='test -z "$ac_c_werror_flag"
35528 || test ! -s conftest.err'
35529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35530 (eval $ac_try) 2>&5
35532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533 (exit $ac_status); }; } &&
35534 { ac_try='test -s conftest$ac_exeext'
35535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536 (eval $ac_try) 2>&5
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); }; }; then
35540 ac_cv_lib_dbm_main=yes
35542 echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35545 ac_cv_lib_dbm_main=no
35547 rm -f conftest.err conftest.$ac_objext \
35548 conftest$ac_exeext conftest.$ac_ext
35549 LIBS=$ac_check_lib_save_LIBS
35551 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
35552 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
35553 if test $ac_cv_lib_dbm_main = yes; then
35554 cat >>confdefs.h <<_ACEOF
35555 #define HAVE_LIBDBM 1
35562 if test "x$ac_cv_lib_dbm_main" = xyes; then
35564 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35565 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35566 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35567 echo $ECHO_N "(cached) $ECHO_C" >&6
35569 ac_check_lib_save_LIBS=$LIBS
35571 cat >conftest.$ac_ext <<_ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h. */
35578 /* Override any gcc2 internal prototype to avoid an error. */
35582 /* We use char because int might match the return type of a gcc2
35583 builtin and then its argument prototype would still apply. */
35593 rm -f conftest.$ac_objext conftest$ac_exeext
35594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35595 (eval $ac_link) 2>conftest.er1
35597 grep -v '^ *+' conftest.er1 >conftest.err
35599 cat conftest.err >&5
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); } &&
35602 { ac_try='test -z "$ac_c_werror_flag"
35603 || test ! -s conftest.err'
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; } &&
35609 { ac_try='test -s conftest$ac_exeext'
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; }; then
35615 ac_cv_lib_dbm_dbm_open=yes
35617 echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35620 ac_cv_lib_dbm_dbm_open=no
35622 rm -f conftest.err conftest.$ac_objext \
35623 conftest$ac_exeext conftest.$ac_ext
35624 LIBS=$ac_check_lib_save_LIBS
35626 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35627 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35628 if test $ac_cv_lib_dbm_dbm_open = yes; then
35629 cat >>confdefs.h <<_ACEOF
35630 #define HAVE_LIBDBM 1
35637 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
35642 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
35643 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
35646 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35651 { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
35652 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
35657 { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
35658 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
35663 if test "x$ac_cv_header_ndbm_h" = xyes; then
35665 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
35666 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
35667 if test "${ac_cv_lib_gdbm_main+set}" = set; then
35668 echo $ECHO_N "(cached) $ECHO_C" >&6
35670 ac_check_lib_save_LIBS=$LIBS
35671 LIBS="-lgdbm $LIBS"
35672 cat >conftest.$ac_ext <<_ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h. */
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690 (eval $ac_link) 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } &&
35697 { ac_try='test -z "$ac_c_werror_flag"
35698 || test ! -s conftest.err'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; } &&
35704 { ac_try='test -s conftest$ac_exeext'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710 ac_cv_lib_gdbm_main=yes
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35715 ac_cv_lib_gdbm_main=no
35717 rm -f conftest.err conftest.$ac_objext \
35718 conftest$ac_exeext conftest.$ac_ext
35719 LIBS=$ac_check_lib_save_LIBS
35721 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
35722 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
35723 if test $ac_cv_lib_gdbm_main = yes; then
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_LIBGDBM 1
35728 LIBS="-lgdbm $LIBS"
35732 if test "x$ac_cv_lib_gdbm_main" = xyes; then
35734 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
35735 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
35736 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
35737 echo $ECHO_N "(cached) $ECHO_C" >&6
35739 ac_check_lib_save_LIBS=$LIBS
35740 LIBS="-lgdbm $LIBS"
35741 cat >conftest.$ac_ext <<_ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h. */
35748 /* Override any gcc2 internal prototype to avoid an error. */
35752 /* We use char because int might match the return type of a gcc2
35753 builtin and then its argument prototype would still apply. */
35763 rm -f conftest.$ac_objext conftest$ac_exeext
35764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35765 (eval $ac_link) 2>conftest.er1
35767 grep -v '^ *+' conftest.er1 >conftest.err
35769 cat conftest.err >&5
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); } &&
35772 { ac_try='test -z "$ac_c_werror_flag"
35773 || test ! -s conftest.err'
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; } &&
35779 { ac_try='test -s conftest$ac_exeext'
35780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35781 (eval $ac_try) 2>&5
35783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); }; }; then
35785 ac_cv_lib_gdbm_dbm_open=yes
35787 echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35790 ac_cv_lib_gdbm_dbm_open=no
35792 rm -f conftest.err conftest.$ac_objext \
35793 conftest$ac_exeext conftest.$ac_ext
35794 LIBS=$ac_check_lib_save_LIBS
35796 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
35797 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
35798 if test $ac_cv_lib_gdbm_dbm_open = yes; then
35799 cat >>confdefs.h <<_ACEOF
35800 #define HAVE_LIBGDBM 1
35803 LIBS="-lgdbm $LIBS"
35807 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
35812 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
35813 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
35816 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35821 { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
35822 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
35827 { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
35828 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
35833 if test "x$ac_cv_header_ndbm_h" = xyes; then
35835 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
35836 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
35837 if test "${ac_cv_lib_ndbm_main+set}" = set; then
35838 echo $ECHO_N "(cached) $ECHO_C" >&6
35840 ac_check_lib_save_LIBS=$LIBS
35841 LIBS="-lndbm $LIBS"
35842 cat >conftest.$ac_ext <<_ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h. */
35858 rm -f conftest.$ac_objext conftest$ac_exeext
35859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35860 (eval $ac_link) 2>conftest.er1
35862 grep -v '^ *+' conftest.er1 >conftest.err
35864 cat conftest.err >&5
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } &&
35867 { ac_try='test -z "$ac_c_werror_flag"
35868 || test ! -s conftest.err'
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; } &&
35874 { ac_try='test -s conftest$ac_exeext'
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; }; then
35880 ac_cv_lib_ndbm_main=yes
35882 echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35885 ac_cv_lib_ndbm_main=no
35887 rm -f conftest.err conftest.$ac_objext \
35888 conftest$ac_exeext conftest.$ac_ext
35889 LIBS=$ac_check_lib_save_LIBS
35891 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
35892 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
35893 if test $ac_cv_lib_ndbm_main = yes; then
35894 cat >>confdefs.h <<_ACEOF
35895 #define HAVE_LIBNDBM 1
35898 LIBS="-lndbm $LIBS"
35902 if test "x$ac_cv_lib_ndbm_main" = xyes; then
35904 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35905 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35906 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35907 echo $ECHO_N "(cached) $ECHO_C" >&6
35909 ac_check_lib_save_LIBS=$LIBS
35910 LIBS="-lndbm $LIBS"
35911 cat >conftest.$ac_ext <<_ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h. */
35918 /* Override any gcc2 internal prototype to avoid an error. */
35922 /* We use char because int might match the return type of a gcc2
35923 builtin and then its argument prototype would still apply. */
35933 rm -f conftest.$ac_objext conftest$ac_exeext
35934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35935 (eval $ac_link) 2>conftest.er1
35937 grep -v '^ *+' conftest.er1 >conftest.err
35939 cat conftest.err >&5
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); } &&
35942 { ac_try='test -z "$ac_c_werror_flag"
35943 || test ! -s conftest.err'
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } &&
35949 { ac_try='test -s conftest$ac_exeext'
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; }; then
35955 ac_cv_lib_ndbm_dbm_open=yes
35957 echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35960 ac_cv_lib_ndbm_dbm_open=no
35962 rm -f conftest.err conftest.$ac_objext \
35963 conftest$ac_exeext conftest.$ac_ext
35964 LIBS=$ac_check_lib_save_LIBS
35966 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35967 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35968 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35969 cat >>confdefs.h <<_ACEOF
35970 #define HAVE_LIBNDBM 1
35973 LIBS="-lndbm $LIBS"
35977 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
35982 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
35983 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
35986 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35991 { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
35992 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
35997 { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
35998 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
36008 if test -z "$DB_STYLE"; then
36015 if test "x$DB_STYLE" = xtext; then
36017 cat >>confdefs.h <<\_ACEOF
36022 echo "$as_me:$LINENO: checking for database" >&5
36023 echo $ECHO_N "checking for database... $ECHO_C" >&6
36024 echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
36025 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
36026 case "$DB_STYLE" in
36028 cat >>confdefs.h <<\_ACEOF
36033 cat >>confdefs.h <<\_ACEOF
36034 #define USE_DBM_H 1
36038 cat >>confdefs.h <<\_ACEOF
36039 #define USE_GDBM_H 1
36043 cat >>confdefs.h <<\_ACEOF
36044 #define USE_NDBM_H 1
36049 echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
36050 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
36051 if test "${amanda_cv_struct_datum+set}" = set; then
36052 echo $ECHO_N "(cached) $ECHO_C" >&6
36055 cat >conftest.$ac_ext <<_ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h. */
36062 #if defined(USE_DB_H)
36065 # if defined(USE_DBM_H)
36068 # if defined(USE_NDBM_H)
36084 rm -f conftest.$ac_objext
36085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36086 (eval $ac_compile) 2>conftest.er1
36088 grep -v '^ *+' conftest.er1 >conftest.err
36090 cat conftest.err >&5
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } &&
36093 { ac_try='test -z "$ac_c_werror_flag"
36094 || test ! -s conftest.err'
36095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096 (eval $ac_try) 2>&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); }; } &&
36100 { ac_try='test -s conftest.$ac_objext'
36101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102 (eval $ac_try) 2>&5
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); }; }; then
36106 amanda_cv_struct_datum=yes
36108 echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36111 amanda_cv_struct_datum=no
36114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36117 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
36118 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
36119 if test "x$amanda_cv_struct_datum" = xyes; then
36121 cat >>confdefs.h <<\_ACEOF
36122 #define HAVE_STRUCT_DATUM 1
36128 case "$DB_STYLE" in
36130 gdbm) DB_EXT='""';;
36131 dbm | ndbm) DB_EXT=".dir .pag";;
36132 text) DB_EXT='""';;
36137 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
36138 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
36139 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
36140 echo $ECHO_N "(cached) $ECHO_C" >&6
36142 cat >conftest.$ac_ext <<_ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h. */
36149 #include <limits.h>
36150 #ifdef _POSIX2_RE_DUP_MAX
36155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36156 $EGREP "yes" >/dev/null 2>&1; then
36157 amanda_cv_have__posix2_re_dup_max=yes
36159 amanda_cv_have__posix2_re_dup_max=no
36164 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
36165 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
36166 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
36168 cat >>confdefs.h <<\_ACEOF
36169 #define HAVE__POSIX2_RE_DUP_MAX 1
36174 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
36175 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
36176 if test "${amanda_cv_have_char_min+set}" = set; then
36177 echo $ECHO_N "(cached) $ECHO_C" >&6
36179 cat >conftest.$ac_ext <<_ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h. */
36186 #include <limits.h>
36192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36193 $EGREP "yes" >/dev/null 2>&1; then
36194 amanda_cv_have_char_min=yes
36196 amanda_cv_have_char_min=no
36201 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
36202 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
36203 if test "x$amanda_cv_have_char_min" = xyes; then
36205 cat >>confdefs.h <<\_ACEOF
36206 #define HAVE_CHAR_MIN 1
36211 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
36212 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
36213 if test "${amanda_cv_have_char_max+set}" = set; then
36214 echo $ECHO_N "(cached) $ECHO_C" >&6
36216 cat >conftest.$ac_ext <<_ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h. */
36223 #include <limits.h>
36229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36230 $EGREP "yes" >/dev/null 2>&1; then
36231 amanda_cv_have_char_max=yes
36233 amanda_cv_have_char_max=no
36238 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
36239 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
36240 if test "x$amanda_cv_have_char_max" = xyes; then
36242 cat >>confdefs.h <<\_ACEOF
36243 #define HAVE_CHAR_MAX 1
36248 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
36249 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
36250 if test "${amanda_cv_have_char_bit+set}" = set; then
36251 echo $ECHO_N "(cached) $ECHO_C" >&6
36253 cat >conftest.$ac_ext <<_ACEOF
36256 cat confdefs.h >>conftest.$ac_ext
36257 cat >>conftest.$ac_ext <<_ACEOF
36258 /* end confdefs.h. */
36260 #include <limits.h>
36266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36267 $EGREP "yes" >/dev/null 2>&1; then
36268 amanda_cv_have_char_bit=yes
36270 amanda_cv_have_char_bit=no
36275 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
36276 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
36277 if test "x$amanda_cv_have_char_bit" = xyes; then
36279 cat >>confdefs.h <<\_ACEOF
36280 #define HAVE_CHAR_BIT 1
36288 for ac_func in accept
36290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36291 echo "$as_me:$LINENO: checking for $ac_func" >&5
36292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36293 if eval "test \"\${$as_ac_var+set}\" = set"; then
36294 echo $ECHO_N "(cached) $ECHO_C" >&6
36296 cat >conftest.$ac_ext <<_ACEOF
36299 cat confdefs.h >>conftest.$ac_ext
36300 cat >>conftest.$ac_ext <<_ACEOF
36301 /* end confdefs.h. */
36302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36304 #define $ac_func innocuous_$ac_func
36306 /* System header to define __stub macros and hopefully few prototypes,
36307 which can conflict with char $ac_func (); below.
36308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36309 <limits.h> exists even on freestanding compilers. */
36312 # include <limits.h>
36314 # include <assert.h>
36319 /* Override any gcc2 internal prototype to avoid an error. */
36324 /* We use char because int might match the return type of a gcc2
36325 builtin and then its argument prototype would still apply. */
36327 /* The GNU C library defines this for functions which it implements
36328 to always fail with ENOSYS. Some functions are actually named
36329 something starting with __ and the normal name is an alias. */
36330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36333 char (*f) () = $ac_func;
36342 return f != $ac_func;
36347 rm -f conftest.$ac_objext conftest$ac_exeext
36348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36349 (eval $ac_link) 2>conftest.er1
36351 grep -v '^ *+' conftest.er1 >conftest.err
36353 cat conftest.err >&5
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); } &&
36356 { ac_try='test -z "$ac_c_werror_flag"
36357 || test ! -s conftest.err'
36358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359 (eval $ac_try) 2>&5
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); }; } &&
36363 { ac_try='test -s conftest$ac_exeext'
36364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365 (eval $ac_try) 2>&5
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); }; }; then
36369 eval "$as_ac_var=yes"
36371 echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36374 eval "$as_ac_var=no"
36376 rm -f conftest.err conftest.$ac_objext \
36377 conftest$ac_exeext conftest.$ac_ext
36379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36381 if test `eval echo '${'$as_ac_var'}'` = yes; then
36382 cat >>confdefs.h <<_ACEOF
36383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36385 ice_have_accept=yes
36389 if test "${ice_have_accept}" = yes; then
36390 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
36391 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36392 if test "${ice_cv_have_accept_decl+set}" = set; then
36393 echo $ECHO_N "(cached) $ECHO_C" >&6
36396 ice_cv_have_accept_decl=no
36397 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36398 ice_re_word='(^|[^a-zA-Z0-9_])'
36399 for header in sys/types.h sys/socket.h; do
36400 # Check for ordinary declaration
36401 cat >conftest.$ac_ext <<_ACEOF
36404 cat confdefs.h >>conftest.$ac_ext
36405 cat >>conftest.$ac_ext <<_ACEOF
36406 /* end confdefs.h. */
36410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36411 $EGREP "${ice_re_word}accept[ ]*\(" >/dev/null 2>&1; then
36412 ice_cv_have_accept_decl=yes
36416 if test "$ice_cv_have_accept_decl" = yes; then
36419 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36420 cat >conftest.$ac_ext <<_ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h. */
36429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36430 $EGREP "${ice_re_word}accept[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36431 ice_cv_have_accept_decl=yes
36435 if test "$ice_cv_have_accept_decl" = yes; then
36442 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
36443 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
36444 if test "$ice_cv_have_accept_decl" = yes; then
36446 cat >>confdefs.h <<_ACEOF
36447 #define HAVE_ACCEPT_DECL 1
36453 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
36454 # for constant arguments. Useless!
36455 echo "$as_me:$LINENO: checking for working alloca.h" >&5
36456 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
36457 if test "${ac_cv_working_alloca_h+set}" = set; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36460 cat >conftest.$ac_ext <<_ACEOF
36463 cat confdefs.h >>conftest.$ac_ext
36464 cat >>conftest.$ac_ext <<_ACEOF
36465 /* end confdefs.h. */
36466 #include <alloca.h>
36470 char *p = (char *) alloca (2 * sizeof (int));
36475 rm -f conftest.$ac_objext conftest$ac_exeext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36477 (eval $ac_link) 2>conftest.er1
36479 grep -v '^ *+' conftest.er1 >conftest.err
36481 cat conftest.err >&5
36482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483 (exit $ac_status); } &&
36484 { ac_try='test -z "$ac_c_werror_flag"
36485 || test ! -s conftest.err'
36486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487 (eval $ac_try) 2>&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); }; } &&
36491 { ac_try='test -s conftest$ac_exeext'
36492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493 (eval $ac_try) 2>&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); }; }; then
36497 ac_cv_working_alloca_h=yes
36499 echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36502 ac_cv_working_alloca_h=no
36504 rm -f conftest.err conftest.$ac_objext \
36505 conftest$ac_exeext conftest.$ac_ext
36507 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
36508 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
36509 if test $ac_cv_working_alloca_h = yes; then
36511 cat >>confdefs.h <<\_ACEOF
36512 #define HAVE_ALLOCA_H 1
36517 echo "$as_me:$LINENO: checking for alloca" >&5
36518 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
36519 if test "${ac_cv_func_alloca_works+set}" = set; then
36520 echo $ECHO_N "(cached) $ECHO_C" >&6
36522 cat >conftest.$ac_ext <<_ACEOF
36525 cat confdefs.h >>conftest.$ac_ext
36526 cat >>conftest.$ac_ext <<_ACEOF
36527 /* end confdefs.h. */
36529 # define alloca __builtin_alloca
36532 # include <malloc.h>
36533 # define alloca _alloca
36536 # include <alloca.h>
36541 # ifndef alloca /* predefined by HP cc +Olibcalls */
36552 char *p = (char *) alloca (1);
36557 rm -f conftest.$ac_objext conftest$ac_exeext
36558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36559 (eval $ac_link) 2>conftest.er1
36561 grep -v '^ *+' conftest.er1 >conftest.err
36563 cat conftest.err >&5
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); } &&
36566 { ac_try='test -z "$ac_c_werror_flag"
36567 || test ! -s conftest.err'
36568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569 (eval $ac_try) 2>&5
36571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572 (exit $ac_status); }; } &&
36573 { ac_try='test -s conftest$ac_exeext'
36574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575 (eval $ac_try) 2>&5
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); }; }; then
36579 ac_cv_func_alloca_works=yes
36581 echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36584 ac_cv_func_alloca_works=no
36586 rm -f conftest.err conftest.$ac_objext \
36587 conftest$ac_exeext conftest.$ac_ext
36589 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
36590 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
36592 if test $ac_cv_func_alloca_works = yes; then
36594 cat >>confdefs.h <<\_ACEOF
36595 #define HAVE_ALLOCA 1
36599 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
36600 # that cause trouble. Some versions do not even contain alloca or
36601 # contain a buggy version. If you still want to use their alloca,
36602 # use ar to extract alloca.o from them instead of compiling alloca.c.
36604 ALLOCA=alloca.$ac_objext
36606 cat >>confdefs.h <<\_ACEOF
36611 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
36612 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
36613 if test "${ac_cv_os_cray+set}" = set; then
36614 echo $ECHO_N "(cached) $ECHO_C" >&6
36616 cat >conftest.$ac_ext <<_ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h. */
36622 #if defined(CRAY) && ! defined(CRAY2)
36629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36630 $EGREP "webecray" >/dev/null 2>&1; then
36638 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
36639 echo "${ECHO_T}$ac_cv_os_cray" >&6
36640 if test $ac_cv_os_cray = yes; then
36641 for ac_func in _getb67 GETB67 getb67; do
36642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36643 echo "$as_me:$LINENO: checking for $ac_func" >&5
36644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36645 if eval "test \"\${$as_ac_var+set}\" = set"; then
36646 echo $ECHO_N "(cached) $ECHO_C" >&6
36648 cat >conftest.$ac_ext <<_ACEOF
36651 cat confdefs.h >>conftest.$ac_ext
36652 cat >>conftest.$ac_ext <<_ACEOF
36653 /* end confdefs.h. */
36654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36656 #define $ac_func innocuous_$ac_func
36658 /* System header to define __stub macros and hopefully few prototypes,
36659 which can conflict with char $ac_func (); below.
36660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36661 <limits.h> exists even on freestanding compilers. */
36664 # include <limits.h>
36666 # include <assert.h>
36671 /* Override any gcc2 internal prototype to avoid an error. */
36676 /* We use char because int might match the return type of a gcc2
36677 builtin and then its argument prototype would still apply. */
36679 /* The GNU C library defines this for functions which it implements
36680 to always fail with ENOSYS. Some functions are actually named
36681 something starting with __ and the normal name is an alias. */
36682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36685 char (*f) () = $ac_func;
36694 return f != $ac_func;
36699 rm -f conftest.$ac_objext conftest$ac_exeext
36700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36701 (eval $ac_link) 2>conftest.er1
36703 grep -v '^ *+' conftest.er1 >conftest.err
36705 cat conftest.err >&5
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } &&
36708 { ac_try='test -z "$ac_c_werror_flag"
36709 || test ! -s conftest.err'
36710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711 (eval $ac_try) 2>&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); }; } &&
36715 { ac_try='test -s conftest$ac_exeext'
36716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36717 (eval $ac_try) 2>&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); }; }; then
36721 eval "$as_ac_var=yes"
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36726 eval "$as_ac_var=no"
36728 rm -f conftest.err conftest.$ac_objext \
36729 conftest$ac_exeext conftest.$ac_ext
36731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36733 if test `eval echo '${'$as_ac_var'}'` = yes; then
36735 cat >>confdefs.h <<_ACEOF
36736 #define CRAY_STACKSEG_END $ac_func
36745 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
36746 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
36747 if test "${ac_cv_c_stack_direction+set}" = set; then
36748 echo $ECHO_N "(cached) $ECHO_C" >&6
36750 if test "$cross_compiling" = yes; then
36751 ac_cv_c_stack_direction=0
36753 cat >conftest.$ac_ext <<_ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h. */
36760 find_stack_direction ()
36762 static char *addr = 0;
36767 return find_stack_direction ();
36770 return (&dummy > addr) ? 1 : -1;
36776 exit (find_stack_direction () < 0);
36779 rm -f conftest$ac_exeext
36780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36781 (eval $ac_link) 2>&5
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786 (eval $ac_try) 2>&5
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; }; then
36790 ac_cv_c_stack_direction=1
36792 echo "$as_me: program exited with status $ac_status" >&5
36793 echo "$as_me: failed program was:" >&5
36794 sed 's/^/| /' conftest.$ac_ext >&5
36796 ( exit $ac_status )
36797 ac_cv_c_stack_direction=-1
36799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36802 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
36803 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
36805 cat >>confdefs.h <<_ACEOF
36806 #define STACK_DIRECTION $ac_cv_c_stack_direction
36813 for ac_func in atexit
36815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36816 echo "$as_me:$LINENO: checking for $ac_func" >&5
36817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36818 if eval "test \"\${$as_ac_var+set}\" = set"; then
36819 echo $ECHO_N "(cached) $ECHO_C" >&6
36821 cat >conftest.$ac_ext <<_ACEOF
36824 cat confdefs.h >>conftest.$ac_ext
36825 cat >>conftest.$ac_ext <<_ACEOF
36826 /* end confdefs.h. */
36827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36829 #define $ac_func innocuous_$ac_func
36831 /* System header to define __stub macros and hopefully few prototypes,
36832 which can conflict with char $ac_func (); below.
36833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36834 <limits.h> exists even on freestanding compilers. */
36837 # include <limits.h>
36839 # include <assert.h>
36844 /* Override any gcc2 internal prototype to avoid an error. */
36849 /* We use char because int might match the return type of a gcc2
36850 builtin and then its argument prototype would still apply. */
36852 /* The GNU C library defines this for functions which it implements
36853 to always fail with ENOSYS. Some functions are actually named
36854 something starting with __ and the normal name is an alias. */
36855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36858 char (*f) () = $ac_func;
36867 return f != $ac_func;
36872 rm -f conftest.$ac_objext conftest$ac_exeext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36874 (eval $ac_link) 2>conftest.er1
36876 grep -v '^ *+' conftest.er1 >conftest.err
36878 cat conftest.err >&5
36879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); } &&
36881 { ac_try='test -z "$ac_c_werror_flag"
36882 || test ! -s conftest.err'
36883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884 (eval $ac_try) 2>&5
36886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887 (exit $ac_status); }; } &&
36888 { ac_try='test -s conftest$ac_exeext'
36889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890 (eval $ac_try) 2>&5
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); }; }; then
36894 eval "$as_ac_var=yes"
36896 echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36899 eval "$as_ac_var=no"
36901 rm -f conftest.err conftest.$ac_objext \
36902 conftest$ac_exeext conftest.$ac_ext
36904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36906 if test `eval echo '${'$as_ac_var'}'` = yes; then
36907 cat >>confdefs.h <<_ACEOF
36908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36917 for ac_func in atof
36919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36920 echo "$as_me:$LINENO: checking for $ac_func" >&5
36921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36922 if eval "test \"\${$as_ac_var+set}\" = set"; then
36923 echo $ECHO_N "(cached) $ECHO_C" >&6
36925 cat >conftest.$ac_ext <<_ACEOF
36928 cat confdefs.h >>conftest.$ac_ext
36929 cat >>conftest.$ac_ext <<_ACEOF
36930 /* end confdefs.h. */
36931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36933 #define $ac_func innocuous_$ac_func
36935 /* System header to define __stub macros and hopefully few prototypes,
36936 which can conflict with char $ac_func (); below.
36937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36938 <limits.h> exists even on freestanding compilers. */
36941 # include <limits.h>
36943 # include <assert.h>
36948 /* Override any gcc2 internal prototype to avoid an error. */
36953 /* We use char because int might match the return type of a gcc2
36954 builtin and then its argument prototype would still apply. */
36956 /* The GNU C library defines this for functions which it implements
36957 to always fail with ENOSYS. Some functions are actually named
36958 something starting with __ and the normal name is an alias. */
36959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36962 char (*f) () = $ac_func;
36971 return f != $ac_func;
36976 rm -f conftest.$ac_objext conftest$ac_exeext
36977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36978 (eval $ac_link) 2>conftest.er1
36980 grep -v '^ *+' conftest.er1 >conftest.err
36982 cat conftest.err >&5
36983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); } &&
36985 { ac_try='test -z "$ac_c_werror_flag"
36986 || test ! -s conftest.err'
36987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36988 (eval $ac_try) 2>&5
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); }; } &&
36992 { ac_try='test -s conftest$ac_exeext'
36993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994 (eval $ac_try) 2>&5
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); }; }; then
36998 eval "$as_ac_var=yes"
37000 echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37003 eval "$as_ac_var=no"
37005 rm -f conftest.err conftest.$ac_objext \
37006 conftest$ac_exeext conftest.$ac_ext
37008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37010 if test `eval echo '${'$as_ac_var'}'` = yes; then
37011 cat >>confdefs.h <<_ACEOF
37012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37018 if test "${ice_have_atof}" = yes; then
37019 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
37020 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
37021 if test "${ice_cv_have_atof_decl+set}" = set; then
37022 echo $ECHO_N "(cached) $ECHO_C" >&6
37025 ice_cv_have_atof_decl=no
37026 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37027 ice_re_word='(^|[^a-zA-Z0-9_])'
37028 for header in stdlib.h; do
37029 # Check for ordinary declaration
37030 cat >conftest.$ac_ext <<_ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h. */
37039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37040 $EGREP "${ice_re_word}atof[ ]*\(" >/dev/null 2>&1; then
37041 ice_cv_have_atof_decl=yes
37045 if test "$ice_cv_have_atof_decl" = yes; then
37048 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37049 cat >conftest.$ac_ext <<_ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h. */
37058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37059 $EGREP "${ice_re_word}atof[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37060 ice_cv_have_atof_decl=yes
37064 if test "$ice_cv_have_atof_decl" = yes; then
37071 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
37072 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
37073 if test "$ice_cv_have_atof_decl" = yes; then
37075 cat >>confdefs.h <<_ACEOF
37076 #define HAVE_ATOF_DECL 1
37085 for ac_func in atoi
37087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37088 echo "$as_me:$LINENO: checking for $ac_func" >&5
37089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37090 if eval "test \"\${$as_ac_var+set}\" = set"; then
37091 echo $ECHO_N "(cached) $ECHO_C" >&6
37093 cat >conftest.$ac_ext <<_ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h. */
37099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37101 #define $ac_func innocuous_$ac_func
37103 /* System header to define __stub macros and hopefully few prototypes,
37104 which can conflict with char $ac_func (); below.
37105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37106 <limits.h> exists even on freestanding compilers. */
37109 # include <limits.h>
37111 # include <assert.h>
37116 /* Override any gcc2 internal prototype to avoid an error. */
37121 /* We use char because int might match the return type of a gcc2
37122 builtin and then its argument prototype would still apply. */
37124 /* The GNU C library defines this for functions which it implements
37125 to always fail with ENOSYS. Some functions are actually named
37126 something starting with __ and the normal name is an alias. */
37127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37130 char (*f) () = $ac_func;
37139 return f != $ac_func;
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37146 (eval $ac_link) 2>conftest.er1
37148 grep -v '^ *+' conftest.er1 >conftest.err
37150 cat conftest.err >&5
37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); } &&
37153 { ac_try='test -z "$ac_c_werror_flag"
37154 || test ! -s conftest.err'
37155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37156 (eval $ac_try) 2>&5
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); }; } &&
37160 { ac_try='test -s conftest$ac_exeext'
37161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162 (eval $ac_try) 2>&5
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); }; }; then
37166 eval "$as_ac_var=yes"
37168 echo "$as_me: failed program was:" >&5
37169 sed 's/^/| /' conftest.$ac_ext >&5
37171 eval "$as_ac_var=no"
37173 rm -f conftest.err conftest.$ac_objext \
37174 conftest$ac_exeext conftest.$ac_ext
37176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37178 if test `eval echo '${'$as_ac_var'}'` = yes; then
37179 cat >>confdefs.h <<_ACEOF
37180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37186 if test "${ice_have_atoi}" = yes; then
37187 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
37188 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
37189 if test "${ice_cv_have_atoi_decl+set}" = set; then
37190 echo $ECHO_N "(cached) $ECHO_C" >&6
37193 ice_cv_have_atoi_decl=no
37194 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37195 ice_re_word='(^|[^a-zA-Z0-9_])'
37196 for header in stdlib.h; do
37197 # Check for ordinary declaration
37198 cat >conftest.$ac_ext <<_ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h. */
37207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37208 $EGREP "${ice_re_word}atoi[ ]*\(" >/dev/null 2>&1; then
37209 ice_cv_have_atoi_decl=yes
37213 if test "$ice_cv_have_atoi_decl" = yes; then
37216 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37217 cat >conftest.$ac_ext <<_ACEOF
37220 cat confdefs.h >>conftest.$ac_ext
37221 cat >>conftest.$ac_ext <<_ACEOF
37222 /* end confdefs.h. */
37226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37227 $EGREP "${ice_re_word}atoi[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37228 ice_cv_have_atoi_decl=yes
37232 if test "$ice_cv_have_atoi_decl" = yes; then
37239 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
37240 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
37241 if test "$ice_cv_have_atoi_decl" = yes; then
37243 cat >>confdefs.h <<_ACEOF
37244 #define HAVE_ATOI_DECL 1
37253 for ac_func in atol
37255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37256 echo "$as_me:$LINENO: checking for $ac_func" >&5
37257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37258 if eval "test \"\${$as_ac_var+set}\" = set"; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37261 cat >conftest.$ac_ext <<_ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h. */
37267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37269 #define $ac_func innocuous_$ac_func
37271 /* System header to define __stub macros and hopefully few prototypes,
37272 which can conflict with char $ac_func (); below.
37273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37274 <limits.h> exists even on freestanding compilers. */
37277 # include <limits.h>
37279 # include <assert.h>
37284 /* Override any gcc2 internal prototype to avoid an error. */
37289 /* We use char because int might match the return type of a gcc2
37290 builtin and then its argument prototype would still apply. */
37292 /* The GNU C library defines this for functions which it implements
37293 to always fail with ENOSYS. Some functions are actually named
37294 something starting with __ and the normal name is an alias. */
37295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37298 char (*f) () = $ac_func;
37307 return f != $ac_func;
37312 rm -f conftest.$ac_objext conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314 (eval $ac_link) 2>conftest.er1
37316 grep -v '^ *+' conftest.er1 >conftest.err
37318 cat conftest.err >&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } &&
37321 { ac_try='test -z "$ac_c_werror_flag"
37322 || test ! -s conftest.err'
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; } &&
37328 { ac_try='test -s conftest$ac_exeext'
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; }; then
37334 eval "$as_ac_var=yes"
37336 echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37339 eval "$as_ac_var=no"
37341 rm -f conftest.err conftest.$ac_objext \
37342 conftest$ac_exeext conftest.$ac_ext
37344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37346 if test `eval echo '${'$as_ac_var'}'` = yes; then
37347 cat >>confdefs.h <<_ACEOF
37348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37354 if test "${ice_have_atol}" = yes; then
37355 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
37356 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
37357 if test "${ice_cv_have_atol_decl+set}" = set; then
37358 echo $ECHO_N "(cached) $ECHO_C" >&6
37361 ice_cv_have_atol_decl=no
37362 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37363 ice_re_word='(^|[^a-zA-Z0-9_])'
37364 for header in stdlib.h; do
37365 # Check for ordinary declaration
37366 cat >conftest.$ac_ext <<_ACEOF
37369 cat confdefs.h >>conftest.$ac_ext
37370 cat >>conftest.$ac_ext <<_ACEOF
37371 /* end confdefs.h. */
37375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37376 $EGREP "${ice_re_word}atol[ ]*\(" >/dev/null 2>&1; then
37377 ice_cv_have_atol_decl=yes
37381 if test "$ice_cv_have_atol_decl" = yes; then
37384 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37385 cat >conftest.$ac_ext <<_ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h. */
37394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37395 $EGREP "${ice_re_word}atol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37396 ice_cv_have_atol_decl=yes
37400 if test "$ice_cv_have_atol_decl" = yes; then
37407 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
37408 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
37409 if test "$ice_cv_have_atol_decl" = yes; then
37411 cat >>confdefs.h <<_ACEOF
37412 #define HAVE_ATOL_DECL 1
37421 for ac_func in atoll
37423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37424 echo "$as_me:$LINENO: checking for $ac_func" >&5
37425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37426 if eval "test \"\${$as_ac_var+set}\" = set"; then
37427 echo $ECHO_N "(cached) $ECHO_C" >&6
37429 cat >conftest.$ac_ext <<_ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h. */
37435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37437 #define $ac_func innocuous_$ac_func
37439 /* System header to define __stub macros and hopefully few prototypes,
37440 which can conflict with char $ac_func (); below.
37441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37442 <limits.h> exists even on freestanding compilers. */
37445 # include <limits.h>
37447 # include <assert.h>
37452 /* Override any gcc2 internal prototype to avoid an error. */
37457 /* We use char because int might match the return type of a gcc2
37458 builtin and then its argument prototype would still apply. */
37460 /* The GNU C library defines this for functions which it implements
37461 to always fail with ENOSYS. Some functions are actually named
37462 something starting with __ and the normal name is an alias. */
37463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37466 char (*f) () = $ac_func;
37475 return f != $ac_func;
37480 rm -f conftest.$ac_objext conftest$ac_exeext
37481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37482 (eval $ac_link) 2>conftest.er1
37484 grep -v '^ *+' conftest.er1 >conftest.err
37486 cat conftest.err >&5
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); } &&
37489 { ac_try='test -z "$ac_c_werror_flag"
37490 || test ! -s conftest.err'
37491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492 (eval $ac_try) 2>&5
37494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495 (exit $ac_status); }; } &&
37496 { ac_try='test -s conftest$ac_exeext'
37497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498 (eval $ac_try) 2>&5
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); }; }; then
37502 eval "$as_ac_var=yes"
37504 echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37507 eval "$as_ac_var=no"
37509 rm -f conftest.err conftest.$ac_objext \
37510 conftest$ac_exeext conftest.$ac_ext
37512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37514 if test `eval echo '${'$as_ac_var'}'` = yes; then
37515 cat >>confdefs.h <<_ACEOF
37516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37522 if test "${ice_have_atoll}" = yes; then
37523 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
37524 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
37525 if test "${ice_cv_have_atoll_decl+set}" = set; then
37526 echo $ECHO_N "(cached) $ECHO_C" >&6
37529 ice_cv_have_atoll_decl=no
37530 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37531 ice_re_word='(^|[^a-zA-Z0-9_])'
37532 for header in stdlib.h; do
37533 # Check for ordinary declaration
37534 cat >conftest.$ac_ext <<_ACEOF
37537 cat confdefs.h >>conftest.$ac_ext
37538 cat >>conftest.$ac_ext <<_ACEOF
37539 /* end confdefs.h. */
37543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37544 $EGREP "${ice_re_word}atoll[ ]*\(" >/dev/null 2>&1; then
37545 ice_cv_have_atoll_decl=yes
37549 if test "$ice_cv_have_atoll_decl" = yes; then
37552 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37553 cat >conftest.$ac_ext <<_ACEOF
37556 cat confdefs.h >>conftest.$ac_ext
37557 cat >>conftest.$ac_ext <<_ACEOF
37558 /* end confdefs.h. */
37562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37563 $EGREP "${ice_re_word}atoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37564 ice_cv_have_atoll_decl=yes
37568 if test "$ice_cv_have_atoll_decl" = yes; then
37575 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
37576 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
37577 if test "$ice_cv_have_atoll_decl" = yes; then
37579 cat >>confdefs.h <<_ACEOF
37580 #define HAVE_ATOLL_DECL 1
37589 for ac_func in strtol
37591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37592 echo "$as_me:$LINENO: checking for $ac_func" >&5
37593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37594 if eval "test \"\${$as_ac_var+set}\" = set"; then
37595 echo $ECHO_N "(cached) $ECHO_C" >&6
37597 cat >conftest.$ac_ext <<_ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h. */
37603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37605 #define $ac_func innocuous_$ac_func
37607 /* System header to define __stub macros and hopefully few prototypes,
37608 which can conflict with char $ac_func (); below.
37609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37610 <limits.h> exists even on freestanding compilers. */
37613 # include <limits.h>
37615 # include <assert.h>
37620 /* Override any gcc2 internal prototype to avoid an error. */
37625 /* We use char because int might match the return type of a gcc2
37626 builtin and then its argument prototype would still apply. */
37628 /* The GNU C library defines this for functions which it implements
37629 to always fail with ENOSYS. Some functions are actually named
37630 something starting with __ and the normal name is an alias. */
37631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37634 char (*f) () = $ac_func;
37643 return f != $ac_func;
37648 rm -f conftest.$ac_objext conftest$ac_exeext
37649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37650 (eval $ac_link) 2>conftest.er1
37652 grep -v '^ *+' conftest.er1 >conftest.err
37654 cat conftest.err >&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); } &&
37657 { ac_try='test -z "$ac_c_werror_flag"
37658 || test ! -s conftest.err'
37659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660 (eval $ac_try) 2>&5
37662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663 (exit $ac_status); }; } &&
37664 { ac_try='test -s conftest$ac_exeext'
37665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37666 (eval $ac_try) 2>&5
37668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669 (exit $ac_status); }; }; then
37670 eval "$as_ac_var=yes"
37672 echo "$as_me: failed program was:" >&5
37673 sed 's/^/| /' conftest.$ac_ext >&5
37675 eval "$as_ac_var=no"
37677 rm -f conftest.err conftest.$ac_objext \
37678 conftest$ac_exeext conftest.$ac_ext
37680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37682 if test `eval echo '${'$as_ac_var'}'` = yes; then
37683 cat >>confdefs.h <<_ACEOF
37684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37686 ice_have_strtol=yes
37690 if test "${ice_have_strtol}" = yes; then
37691 echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
37692 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6
37693 if test "${ice_cv_have_strtol_decl+set}" = set; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37697 ice_cv_have_strtol_decl=no
37698 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37699 ice_re_word='(^|[^a-zA-Z0-9_])'
37700 for header in stdlib.h; do
37701 # Check for ordinary declaration
37702 cat >conftest.$ac_ext <<_ACEOF
37705 cat confdefs.h >>conftest.$ac_ext
37706 cat >>conftest.$ac_ext <<_ACEOF
37707 /* end confdefs.h. */
37711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37712 $EGREP "${ice_re_word}strtol[ ]*\(" >/dev/null 2>&1; then
37713 ice_cv_have_strtol_decl=yes
37717 if test "$ice_cv_have_strtol_decl" = yes; then
37720 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37721 cat >conftest.$ac_ext <<_ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h. */
37730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37731 $EGREP "${ice_re_word}strtol[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37732 ice_cv_have_strtol_decl=yes
37736 if test "$ice_cv_have_strtol_decl" = yes; then
37743 echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
37744 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6
37745 if test "$ice_cv_have_strtol_decl" = yes; then
37747 cat >>confdefs.h <<_ACEOF
37748 #define HAVE_STRTOL_DECL 1
37755 ice_have_strtoll=no
37757 for ac_func in strtoll
37759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37760 echo "$as_me:$LINENO: checking for $ac_func" >&5
37761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37762 if eval "test \"\${$as_ac_var+set}\" = set"; then
37763 echo $ECHO_N "(cached) $ECHO_C" >&6
37765 cat >conftest.$ac_ext <<_ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h. */
37771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37773 #define $ac_func innocuous_$ac_func
37775 /* System header to define __stub macros and hopefully few prototypes,
37776 which can conflict with char $ac_func (); below.
37777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37778 <limits.h> exists even on freestanding compilers. */
37781 # include <limits.h>
37783 # include <assert.h>
37788 /* Override any gcc2 internal prototype to avoid an error. */
37793 /* We use char because int might match the return type of a gcc2
37794 builtin and then its argument prototype would still apply. */
37796 /* The GNU C library defines this for functions which it implements
37797 to always fail with ENOSYS. Some functions are actually named
37798 something starting with __ and the normal name is an alias. */
37799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37802 char (*f) () = $ac_func;
37811 return f != $ac_func;
37816 rm -f conftest.$ac_objext conftest$ac_exeext
37817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37818 (eval $ac_link) 2>conftest.er1
37820 grep -v '^ *+' conftest.er1 >conftest.err
37822 cat conftest.err >&5
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); } &&
37825 { ac_try='test -z "$ac_c_werror_flag"
37826 || test ! -s conftest.err'
37827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37828 (eval $ac_try) 2>&5
37830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831 (exit $ac_status); }; } &&
37832 { ac_try='test -s conftest$ac_exeext'
37833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37834 (eval $ac_try) 2>&5
37836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837 (exit $ac_status); }; }; then
37838 eval "$as_ac_var=yes"
37840 echo "$as_me: failed program was:" >&5
37841 sed 's/^/| /' conftest.$ac_ext >&5
37843 eval "$as_ac_var=no"
37845 rm -f conftest.err conftest.$ac_objext \
37846 conftest$ac_exeext conftest.$ac_ext
37848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37850 if test `eval echo '${'$as_ac_var'}'` = yes; then
37851 cat >>confdefs.h <<_ACEOF
37852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37854 ice_have_strtoll=yes
37858 if test "${ice_have_strtoll}" = yes; then
37859 echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
37860 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6
37861 if test "${ice_cv_have_strtoll_decl+set}" = set; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37865 ice_cv_have_strtoll_decl=no
37866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37867 ice_re_word='(^|[^a-zA-Z0-9_])'
37868 for header in stdlib.h; do
37869 # Check for ordinary declaration
37870 cat >conftest.$ac_ext <<_ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h. */
37879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37880 $EGREP "${ice_re_word}strtoll[ ]*\(" >/dev/null 2>&1; then
37881 ice_cv_have_strtoll_decl=yes
37885 if test "$ice_cv_have_strtoll_decl" = yes; then
37888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37889 cat >conftest.$ac_ext <<_ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h. */
37898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37899 $EGREP "${ice_re_word}strtoll[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37900 ice_cv_have_strtoll_decl=yes
37904 if test "$ice_cv_have_strtoll_decl" = yes; then
37911 echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
37912 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6
37913 if test "$ice_cv_have_strtoll_decl" = yes; then
37915 cat >>confdefs.h <<_ACEOF
37916 #define HAVE_STRTOLL_DECL 1
37923 for ac_func in basename
37925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37926 echo "$as_me:$LINENO: checking for $ac_func" >&5
37927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37928 if eval "test \"\${$as_ac_var+set}\" = set"; then
37929 echo $ECHO_N "(cached) $ECHO_C" >&6
37931 cat >conftest.$ac_ext <<_ACEOF
37934 cat confdefs.h >>conftest.$ac_ext
37935 cat >>conftest.$ac_ext <<_ACEOF
37936 /* end confdefs.h. */
37937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37939 #define $ac_func innocuous_$ac_func
37941 /* System header to define __stub macros and hopefully few prototypes,
37942 which can conflict with char $ac_func (); below.
37943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37944 <limits.h> exists even on freestanding compilers. */
37947 # include <limits.h>
37949 # include <assert.h>
37954 /* Override any gcc2 internal prototype to avoid an error. */
37959 /* We use char because int might match the return type of a gcc2
37960 builtin and then its argument prototype would still apply. */
37962 /* The GNU C library defines this for functions which it implements
37963 to always fail with ENOSYS. Some functions are actually named
37964 something starting with __ and the normal name is an alias. */
37965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37968 char (*f) () = $ac_func;
37977 return f != $ac_func;
37982 rm -f conftest.$ac_objext conftest$ac_exeext
37983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37984 (eval $ac_link) 2>conftest.er1
37986 grep -v '^ *+' conftest.er1 >conftest.err
37988 cat conftest.err >&5
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); } &&
37991 { ac_try='test -z "$ac_c_werror_flag"
37992 || test ! -s conftest.err'
37993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994 (eval $ac_try) 2>&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); }; } &&
37998 { ac_try='test -s conftest$ac_exeext'
37999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000 (eval $ac_try) 2>&5
38002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003 (exit $ac_status); }; }; then
38004 eval "$as_ac_var=yes"
38006 echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.$ac_ext >&5
38009 eval "$as_ac_var=no"
38011 rm -f conftest.err conftest.$ac_objext \
38012 conftest$ac_exeext conftest.$ac_ext
38014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38016 if test `eval echo '${'$as_ac_var'}'` = yes; then
38017 cat >>confdefs.h <<_ACEOF
38018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38027 for ac_func in bind
38029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38030 echo "$as_me:$LINENO: checking for $ac_func" >&5
38031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38032 if eval "test \"\${$as_ac_var+set}\" = set"; then
38033 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 cat >conftest.$ac_ext <<_ACEOF
38038 cat confdefs.h >>conftest.$ac_ext
38039 cat >>conftest.$ac_ext <<_ACEOF
38040 /* end confdefs.h. */
38041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38043 #define $ac_func innocuous_$ac_func
38045 /* System header to define __stub macros and hopefully few prototypes,
38046 which can conflict with char $ac_func (); below.
38047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38048 <limits.h> exists even on freestanding compilers. */
38051 # include <limits.h>
38053 # include <assert.h>
38058 /* Override any gcc2 internal prototype to avoid an error. */
38063 /* We use char because int might match the return type of a gcc2
38064 builtin and then its argument prototype would still apply. */
38066 /* The GNU C library defines this for functions which it implements
38067 to always fail with ENOSYS. Some functions are actually named
38068 something starting with __ and the normal name is an alias. */
38069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38072 char (*f) () = $ac_func;
38081 return f != $ac_func;
38086 rm -f conftest.$ac_objext conftest$ac_exeext
38087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38088 (eval $ac_link) 2>conftest.er1
38090 grep -v '^ *+' conftest.er1 >conftest.err
38092 cat conftest.err >&5
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } &&
38095 { ac_try='test -z "$ac_c_werror_flag"
38096 || test ! -s conftest.err'
38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098 (eval $ac_try) 2>&5
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; } &&
38102 { ac_try='test -s conftest$ac_exeext'
38103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104 (eval $ac_try) 2>&5
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); }; }; then
38108 eval "$as_ac_var=yes"
38110 echo "$as_me: failed program was:" >&5
38111 sed 's/^/| /' conftest.$ac_ext >&5
38113 eval "$as_ac_var=no"
38115 rm -f conftest.err conftest.$ac_objext \
38116 conftest$ac_exeext conftest.$ac_ext
38118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38120 if test `eval echo '${'$as_ac_var'}'` = yes; then
38121 cat >>confdefs.h <<_ACEOF
38122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38128 if test "${ice_have_bind}" = yes; then
38129 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
38130 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38131 if test "${ice_cv_have_bind_decl+set}" = set; then
38132 echo $ECHO_N "(cached) $ECHO_C" >&6
38135 ice_cv_have_bind_decl=no
38136 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38137 ice_re_word='(^|[^a-zA-Z0-9_])'
38138 for header in sys/types.h sys/socket.h; do
38139 # Check for ordinary declaration
38140 cat >conftest.$ac_ext <<_ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h. */
38149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38150 $EGREP "${ice_re_word}bind[ ]*\(" >/dev/null 2>&1; then
38151 ice_cv_have_bind_decl=yes
38155 if test "$ice_cv_have_bind_decl" = yes; then
38158 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38159 cat >conftest.$ac_ext <<_ACEOF
38162 cat confdefs.h >>conftest.$ac_ext
38163 cat >>conftest.$ac_ext <<_ACEOF
38164 /* end confdefs.h. */
38168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38169 $EGREP "${ice_re_word}bind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38170 ice_cv_have_bind_decl=yes
38174 if test "$ice_cv_have_bind_decl" = yes; then
38181 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
38182 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
38183 if test "$ice_cv_have_bind_decl" = yes; then
38185 cat >>confdefs.h <<_ACEOF
38186 #define HAVE_BIND_DECL 1
38195 for ac_func in bcopy
38197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38198 echo "$as_me:$LINENO: checking for $ac_func" >&5
38199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38200 if eval "test \"\${$as_ac_var+set}\" = set"; then
38201 echo $ECHO_N "(cached) $ECHO_C" >&6
38203 cat >conftest.$ac_ext <<_ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h. */
38209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38211 #define $ac_func innocuous_$ac_func
38213 /* System header to define __stub macros and hopefully few prototypes,
38214 which can conflict with char $ac_func (); below.
38215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38216 <limits.h> exists even on freestanding compilers. */
38219 # include <limits.h>
38221 # include <assert.h>
38226 /* Override any gcc2 internal prototype to avoid an error. */
38231 /* We use char because int might match the return type of a gcc2
38232 builtin and then its argument prototype would still apply. */
38234 /* The GNU C library defines this for functions which it implements
38235 to always fail with ENOSYS. Some functions are actually named
38236 something starting with __ and the normal name is an alias. */
38237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38240 char (*f) () = $ac_func;
38249 return f != $ac_func;
38254 rm -f conftest.$ac_objext conftest$ac_exeext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38256 (eval $ac_link) 2>conftest.er1
38258 grep -v '^ *+' conftest.er1 >conftest.err
38260 cat conftest.err >&5
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); } &&
38263 { ac_try='test -z "$ac_c_werror_flag"
38264 || test ! -s conftest.err'
38265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266 (eval $ac_try) 2>&5
38268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269 (exit $ac_status); }; } &&
38270 { ac_try='test -s conftest$ac_exeext'
38271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272 (eval $ac_try) 2>&5
38274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); }; }; then
38276 eval "$as_ac_var=yes"
38278 echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38281 eval "$as_ac_var=no"
38283 rm -f conftest.err conftest.$ac_objext \
38284 conftest$ac_exeext conftest.$ac_ext
38286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38288 if test `eval echo '${'$as_ac_var'}'` = yes; then
38289 cat >>confdefs.h <<_ACEOF
38290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38296 if test "${ice_have_bcopy}" = yes; then
38297 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
38298 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38299 if test "${ice_cv_have_bcopy_decl+set}" = set; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38303 ice_cv_have_bcopy_decl=no
38304 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38305 ice_re_word='(^|[^a-zA-Z0-9_])'
38306 for header in string.h strings.h stdlib.h; do
38307 # Check for ordinary declaration
38308 cat >conftest.$ac_ext <<_ACEOF
38311 cat confdefs.h >>conftest.$ac_ext
38312 cat >>conftest.$ac_ext <<_ACEOF
38313 /* end confdefs.h. */
38317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38318 $EGREP "${ice_re_word}bcopy[ ]*\(" >/dev/null 2>&1; then
38319 ice_cv_have_bcopy_decl=yes
38323 if test "$ice_cv_have_bcopy_decl" = yes; then
38326 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38327 cat >conftest.$ac_ext <<_ACEOF
38330 cat confdefs.h >>conftest.$ac_ext
38331 cat >>conftest.$ac_ext <<_ACEOF
38332 /* end confdefs.h. */
38336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38337 $EGREP "${ice_re_word}bcopy[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38338 ice_cv_have_bcopy_decl=yes
38342 if test "$ice_cv_have_bcopy_decl" = yes; then
38349 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
38350 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
38351 if test "$ice_cv_have_bcopy_decl" = yes; then
38353 cat >>confdefs.h <<_ACEOF
38354 #define HAVE_BCOPY_DECL 1
38363 for ac_func in bzero
38365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38366 echo "$as_me:$LINENO: checking for $ac_func" >&5
38367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38368 if eval "test \"\${$as_ac_var+set}\" = set"; then
38369 echo $ECHO_N "(cached) $ECHO_C" >&6
38371 cat >conftest.$ac_ext <<_ACEOF
38374 cat confdefs.h >>conftest.$ac_ext
38375 cat >>conftest.$ac_ext <<_ACEOF
38376 /* end confdefs.h. */
38377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38379 #define $ac_func innocuous_$ac_func
38381 /* System header to define __stub macros and hopefully few prototypes,
38382 which can conflict with char $ac_func (); below.
38383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38384 <limits.h> exists even on freestanding compilers. */
38387 # include <limits.h>
38389 # include <assert.h>
38394 /* Override any gcc2 internal prototype to avoid an error. */
38399 /* We use char because int might match the return type of a gcc2
38400 builtin and then its argument prototype would still apply. */
38402 /* The GNU C library defines this for functions which it implements
38403 to always fail with ENOSYS. Some functions are actually named
38404 something starting with __ and the normal name is an alias. */
38405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38408 char (*f) () = $ac_func;
38417 return f != $ac_func;
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38424 (eval $ac_link) 2>conftest.er1
38426 grep -v '^ *+' conftest.er1 >conftest.err
38428 cat conftest.err >&5
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); } &&
38431 { ac_try='test -z "$ac_c_werror_flag"
38432 || test ! -s conftest.err'
38433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434 (eval $ac_try) 2>&5
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); }; } &&
38438 { ac_try='test -s conftest$ac_exeext'
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; }; then
38444 eval "$as_ac_var=yes"
38446 echo "$as_me: failed program was:" >&5
38447 sed 's/^/| /' conftest.$ac_ext >&5
38449 eval "$as_ac_var=no"
38451 rm -f conftest.err conftest.$ac_objext \
38452 conftest$ac_exeext conftest.$ac_ext
38454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38456 if test `eval echo '${'$as_ac_var'}'` = yes; then
38457 cat >>confdefs.h <<_ACEOF
38458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38464 if test "${ice_have_bzero}" = yes; then
38465 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
38466 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38467 if test "${ice_cv_have_bzero_decl+set}" = set; then
38468 echo $ECHO_N "(cached) $ECHO_C" >&6
38471 ice_cv_have_bzero_decl=no
38472 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38473 ice_re_word='(^|[^a-zA-Z0-9_])'
38474 for header in string.h strings.h stdlib.h; do
38475 # Check for ordinary declaration
38476 cat >conftest.$ac_ext <<_ACEOF
38479 cat confdefs.h >>conftest.$ac_ext
38480 cat >>conftest.$ac_ext <<_ACEOF
38481 /* end confdefs.h. */
38485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38486 $EGREP "${ice_re_word}bzero[ ]*\(" >/dev/null 2>&1; then
38487 ice_cv_have_bzero_decl=yes
38491 if test "$ice_cv_have_bzero_decl" = yes; then
38494 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38495 cat >conftest.$ac_ext <<_ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h. */
38504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38505 $EGREP "${ice_re_word}bzero[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38506 ice_cv_have_bzero_decl=yes
38510 if test "$ice_cv_have_bzero_decl" = yes; then
38517 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
38518 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
38519 if test "$ice_cv_have_bzero_decl" = yes; then
38521 cat >>confdefs.h <<_ACEOF
38522 #define HAVE_BZERO_DECL 1
38528 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
38529 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
38530 if test "${ac_cv_func_closedir_void+set}" = set; then
38531 echo $ECHO_N "(cached) $ECHO_C" >&6
38533 if test "$cross_compiling" = yes; then
38534 ac_cv_func_closedir_void=yes
38536 cat >conftest.$ac_ext <<_ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38542 $ac_includes_default
38543 #include <$ac_header_dirent>
38544 #ifndef __cplusplus
38551 exit (closedir (opendir (".")) != 0);
38556 rm -f conftest$ac_exeext
38557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38558 (eval $ac_link) 2>&5
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563 (eval $ac_try) 2>&5
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); }; }; then
38567 ac_cv_func_closedir_void=no
38569 echo "$as_me: program exited with status $ac_status" >&5
38570 echo "$as_me: failed program was:" >&5
38571 sed 's/^/| /' conftest.$ac_ext >&5
38573 ( exit $ac_status )
38574 ac_cv_func_closedir_void=yes
38576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38579 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
38580 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
38581 if test $ac_cv_func_closedir_void = yes; then
38583 cat >>confdefs.h <<\_ACEOF
38584 #define CLOSEDIR_VOID 1
38590 ice_have_closelog=no
38592 for ac_func in closelog
38594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38595 echo "$as_me:$LINENO: checking for $ac_func" >&5
38596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38597 if eval "test \"\${$as_ac_var+set}\" = set"; then
38598 echo $ECHO_N "(cached) $ECHO_C" >&6
38600 cat >conftest.$ac_ext <<_ACEOF
38603 cat confdefs.h >>conftest.$ac_ext
38604 cat >>conftest.$ac_ext <<_ACEOF
38605 /* end confdefs.h. */
38606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38608 #define $ac_func innocuous_$ac_func
38610 /* System header to define __stub macros and hopefully few prototypes,
38611 which can conflict with char $ac_func (); below.
38612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38613 <limits.h> exists even on freestanding compilers. */
38616 # include <limits.h>
38618 # include <assert.h>
38623 /* Override any gcc2 internal prototype to avoid an error. */
38628 /* We use char because int might match the return type of a gcc2
38629 builtin and then its argument prototype would still apply. */
38631 /* The GNU C library defines this for functions which it implements
38632 to always fail with ENOSYS. Some functions are actually named
38633 something starting with __ and the normal name is an alias. */
38634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38637 char (*f) () = $ac_func;
38646 return f != $ac_func;
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38653 (eval $ac_link) 2>conftest.er1
38655 grep -v '^ *+' conftest.er1 >conftest.err
38657 cat conftest.err >&5
38658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659 (exit $ac_status); } &&
38660 { ac_try='test -z "$ac_c_werror_flag"
38661 || test ! -s conftest.err'
38662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663 (eval $ac_try) 2>&5
38665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666 (exit $ac_status); }; } &&
38667 { ac_try='test -s conftest$ac_exeext'
38668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669 (eval $ac_try) 2>&5
38671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); }; }; then
38673 eval "$as_ac_var=yes"
38675 echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38678 eval "$as_ac_var=no"
38680 rm -f conftest.err conftest.$ac_objext \
38681 conftest$ac_exeext conftest.$ac_ext
38683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38685 if test `eval echo '${'$as_ac_var'}'` = yes; then
38686 cat >>confdefs.h <<_ACEOF
38687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38689 ice_have_closelog=yes
38693 if test "${ice_have_closelog}" = yes; then
38694 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
38695 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
38696 if test "${ice_cv_have_closelog_decl+set}" = set; then
38697 echo $ECHO_N "(cached) $ECHO_C" >&6
38700 ice_cv_have_closelog_decl=no
38701 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38702 ice_re_word='(^|[^a-zA-Z0-9_])'
38703 for header in syslog.h; do
38704 # Check for ordinary declaration
38705 cat >conftest.$ac_ext <<_ACEOF
38708 cat confdefs.h >>conftest.$ac_ext
38709 cat >>conftest.$ac_ext <<_ACEOF
38710 /* end confdefs.h. */
38714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38715 $EGREP "${ice_re_word}closelog[ ]*\(" >/dev/null 2>&1; then
38716 ice_cv_have_closelog_decl=yes
38720 if test "$ice_cv_have_closelog_decl" = yes; then
38723 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38724 cat >conftest.$ac_ext <<_ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h. */
38733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38734 $EGREP "${ice_re_word}closelog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38735 ice_cv_have_closelog_decl=yes
38739 if test "$ice_cv_have_closelog_decl" = yes; then
38746 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
38747 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
38748 if test "$ice_cv_have_closelog_decl" = yes; then
38750 cat >>confdefs.h <<_ACEOF
38751 #define HAVE_CLOSELOG_DECL 1
38758 ice_have_connect=no
38760 for ac_func in connect
38762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38763 echo "$as_me:$LINENO: checking for $ac_func" >&5
38764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38765 if eval "test \"\${$as_ac_var+set}\" = set"; then
38766 echo $ECHO_N "(cached) $ECHO_C" >&6
38768 cat >conftest.$ac_ext <<_ACEOF
38771 cat confdefs.h >>conftest.$ac_ext
38772 cat >>conftest.$ac_ext <<_ACEOF
38773 /* end confdefs.h. */
38774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38776 #define $ac_func innocuous_$ac_func
38778 /* System header to define __stub macros and hopefully few prototypes,
38779 which can conflict with char $ac_func (); below.
38780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38781 <limits.h> exists even on freestanding compilers. */
38784 # include <limits.h>
38786 # include <assert.h>
38791 /* Override any gcc2 internal prototype to avoid an error. */
38796 /* We use char because int might match the return type of a gcc2
38797 builtin and then its argument prototype would still apply. */
38799 /* The GNU C library defines this for functions which it implements
38800 to always fail with ENOSYS. Some functions are actually named
38801 something starting with __ and the normal name is an alias. */
38802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38805 char (*f) () = $ac_func;
38814 return f != $ac_func;
38819 rm -f conftest.$ac_objext conftest$ac_exeext
38820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38821 (eval $ac_link) 2>conftest.er1
38823 grep -v '^ *+' conftest.er1 >conftest.err
38825 cat conftest.err >&5
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); } &&
38828 { ac_try='test -z "$ac_c_werror_flag"
38829 || test ! -s conftest.err'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; } &&
38835 { ac_try='test -s conftest$ac_exeext'
38836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38837 (eval $ac_try) 2>&5
38839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840 (exit $ac_status); }; }; then
38841 eval "$as_ac_var=yes"
38843 echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38846 eval "$as_ac_var=no"
38848 rm -f conftest.err conftest.$ac_objext \
38849 conftest$ac_exeext conftest.$ac_ext
38851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38853 if test `eval echo '${'$as_ac_var'}'` = yes; then
38854 cat >>confdefs.h <<_ACEOF
38855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38857 ice_have_connect=yes
38861 if test "${ice_have_connect}" = yes; then
38862 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
38863 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38864 if test "${ice_cv_have_connect_decl+set}" = set; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
38868 ice_cv_have_connect_decl=no
38869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38870 ice_re_word='(^|[^a-zA-Z0-9_])'
38871 for header in sys/types.h sys/socket.h; do
38872 # Check for ordinary declaration
38873 cat >conftest.$ac_ext <<_ACEOF
38876 cat confdefs.h >>conftest.$ac_ext
38877 cat >>conftest.$ac_ext <<_ACEOF
38878 /* end confdefs.h. */
38882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38883 $EGREP "${ice_re_word}connect[ ]*\(" >/dev/null 2>&1; then
38884 ice_cv_have_connect_decl=yes
38888 if test "$ice_cv_have_connect_decl" = yes; then
38891 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38892 cat >conftest.$ac_ext <<_ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h. */
38901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38902 $EGREP "${ice_re_word}connect[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38903 ice_cv_have_connect_decl=yes
38907 if test "$ice_cv_have_connect_decl" = yes; then
38914 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
38915 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
38916 if test "$ice_cv_have_connect_decl" = yes; then
38918 cat >>confdefs.h <<_ACEOF
38919 #define HAVE_CONNECT_DECL 1
38926 ice_have_dbm_open=no
38928 for ac_func in dbm_open
38930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38931 echo "$as_me:$LINENO: checking for $ac_func" >&5
38932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38933 if eval "test \"\${$as_ac_var+set}\" = set"; then
38934 echo $ECHO_N "(cached) $ECHO_C" >&6
38936 cat >conftest.$ac_ext <<_ACEOF
38939 cat confdefs.h >>conftest.$ac_ext
38940 cat >>conftest.$ac_ext <<_ACEOF
38941 /* end confdefs.h. */
38942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38944 #define $ac_func innocuous_$ac_func
38946 /* System header to define __stub macros and hopefully few prototypes,
38947 which can conflict with char $ac_func (); below.
38948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38949 <limits.h> exists even on freestanding compilers. */
38952 # include <limits.h>
38954 # include <assert.h>
38959 /* Override any gcc2 internal prototype to avoid an error. */
38964 /* We use char because int might match the return type of a gcc2
38965 builtin and then its argument prototype would still apply. */
38967 /* The GNU C library defines this for functions which it implements
38968 to always fail with ENOSYS. Some functions are actually named
38969 something starting with __ and the normal name is an alias. */
38970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38973 char (*f) () = $ac_func;
38982 return f != $ac_func;
38987 rm -f conftest.$ac_objext conftest$ac_exeext
38988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38989 (eval $ac_link) 2>conftest.er1
38991 grep -v '^ *+' conftest.er1 >conftest.err
38993 cat conftest.err >&5
38994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995 (exit $ac_status); } &&
38996 { ac_try='test -z "$ac_c_werror_flag"
38997 || test ! -s conftest.err'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; } &&
39003 { ac_try='test -s conftest$ac_exeext'
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; }; then
39009 eval "$as_ac_var=yes"
39011 echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39014 eval "$as_ac_var=no"
39016 rm -f conftest.err conftest.$ac_objext \
39017 conftest$ac_exeext conftest.$ac_ext
39019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39021 if test `eval echo '${'$as_ac_var'}'` = yes; then
39022 cat >>confdefs.h <<_ACEOF
39023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39025 ice_have_dbm_open=yes
39029 if test "${ice_have_dbm_open}" = yes; then
39030 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
39031 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
39032 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
39033 echo $ECHO_N "(cached) $ECHO_C" >&6
39036 ice_cv_have_dbm_open_decl=no
39037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39038 ice_re_word='(^|[^a-zA-Z0-9_])'
39039 for header in ${DB_HEADER-no/db/header/file}; do
39040 # Check for ordinary declaration
39041 cat >conftest.$ac_ext <<_ACEOF
39044 cat confdefs.h >>conftest.$ac_ext
39045 cat >>conftest.$ac_ext <<_ACEOF
39046 /* end confdefs.h. */
39050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39051 $EGREP "${ice_re_word}dbm_open[ ]*\(" >/dev/null 2>&1; then
39052 ice_cv_have_dbm_open_decl=yes
39056 if test "$ice_cv_have_dbm_open_decl" = yes; then
39059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39060 cat >conftest.$ac_ext <<_ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h. */
39069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39070 $EGREP "${ice_re_word}dbm_open[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39071 ice_cv_have_dbm_open_decl=yes
39075 if test "$ice_cv_have_dbm_open_decl" = yes; then
39082 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
39083 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
39084 if test "$ice_cv_have_dbm_open_decl" = yes; then
39086 cat >>confdefs.h <<_ACEOF
39087 #define HAVE_DBM_OPEN_DECL 1
39094 for ac_func in endmntent
39096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39097 echo "$as_me:$LINENO: checking for $ac_func" >&5
39098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39099 if eval "test \"\${$as_ac_var+set}\" = set"; then
39100 echo $ECHO_N "(cached) $ECHO_C" >&6
39102 cat >conftest.$ac_ext <<_ACEOF
39105 cat confdefs.h >>conftest.$ac_ext
39106 cat >>conftest.$ac_ext <<_ACEOF
39107 /* end confdefs.h. */
39108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39110 #define $ac_func innocuous_$ac_func
39112 /* System header to define __stub macros and hopefully few prototypes,
39113 which can conflict with char $ac_func (); below.
39114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39115 <limits.h> exists even on freestanding compilers. */
39118 # include <limits.h>
39120 # include <assert.h>
39125 /* Override any gcc2 internal prototype to avoid an error. */
39130 /* We use char because int might match the return type of a gcc2
39131 builtin and then its argument prototype would still apply. */
39133 /* The GNU C library defines this for functions which it implements
39134 to always fail with ENOSYS. Some functions are actually named
39135 something starting with __ and the normal name is an alias. */
39136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39139 char (*f) () = $ac_func;
39148 return f != $ac_func;
39153 rm -f conftest.$ac_objext conftest$ac_exeext
39154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39155 (eval $ac_link) 2>conftest.er1
39157 grep -v '^ *+' conftest.er1 >conftest.err
39159 cat conftest.err >&5
39160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161 (exit $ac_status); } &&
39162 { ac_try='test -z "$ac_c_werror_flag"
39163 || test ! -s conftest.err'
39164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39165 (eval $ac_try) 2>&5
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); }; } &&
39169 { ac_try='test -s conftest$ac_exeext'
39170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39171 (eval $ac_try) 2>&5
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); }; }; then
39175 eval "$as_ac_var=yes"
39177 echo "$as_me: failed program was:" >&5
39178 sed 's/^/| /' conftest.$ac_ext >&5
39180 eval "$as_ac_var=no"
39182 rm -f conftest.err conftest.$ac_objext \
39183 conftest$ac_exeext conftest.$ac_ext
39185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39187 if test `eval echo '${'$as_ac_var'}'` = yes; then
39188 cat >>confdefs.h <<_ACEOF
39189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39198 for ac_func in fclose
39200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39201 echo "$as_me:$LINENO: checking for $ac_func" >&5
39202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39203 if eval "test \"\${$as_ac_var+set}\" = set"; then
39204 echo $ECHO_N "(cached) $ECHO_C" >&6
39206 cat >conftest.$ac_ext <<_ACEOF
39209 cat confdefs.h >>conftest.$ac_ext
39210 cat >>conftest.$ac_ext <<_ACEOF
39211 /* end confdefs.h. */
39212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39214 #define $ac_func innocuous_$ac_func
39216 /* System header to define __stub macros and hopefully few prototypes,
39217 which can conflict with char $ac_func (); below.
39218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39219 <limits.h> exists even on freestanding compilers. */
39222 # include <limits.h>
39224 # include <assert.h>
39229 /* Override any gcc2 internal prototype to avoid an error. */
39234 /* We use char because int might match the return type of a gcc2
39235 builtin and then its argument prototype would still apply. */
39237 /* The GNU C library defines this for functions which it implements
39238 to always fail with ENOSYS. Some functions are actually named
39239 something starting with __ and the normal name is an alias. */
39240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39243 char (*f) () = $ac_func;
39252 return f != $ac_func;
39257 rm -f conftest.$ac_objext conftest$ac_exeext
39258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39259 (eval $ac_link) 2>conftest.er1
39261 grep -v '^ *+' conftest.er1 >conftest.err
39263 cat conftest.err >&5
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } &&
39266 { ac_try='test -z "$ac_c_werror_flag"
39267 || test ! -s conftest.err'
39268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269 (eval $ac_try) 2>&5
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); }; } &&
39273 { ac_try='test -s conftest$ac_exeext'
39274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275 (eval $ac_try) 2>&5
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); }; }; then
39279 eval "$as_ac_var=yes"
39281 echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39284 eval "$as_ac_var=no"
39286 rm -f conftest.err conftest.$ac_objext \
39287 conftest$ac_exeext conftest.$ac_ext
39289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39291 if test `eval echo '${'$as_ac_var'}'` = yes; then
39292 cat >>confdefs.h <<_ACEOF
39293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39295 ice_have_fclose=yes
39299 if test "${ice_have_fclose}" = yes; then
39300 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
39301 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
39302 if test "${ice_cv_have_fclose_decl+set}" = set; then
39303 echo $ECHO_N "(cached) $ECHO_C" >&6
39306 ice_cv_have_fclose_decl=no
39307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39308 ice_re_word='(^|[^a-zA-Z0-9_])'
39309 for header in stdio.h; do
39310 # Check for ordinary declaration
39311 cat >conftest.$ac_ext <<_ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h. */
39320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39321 $EGREP "${ice_re_word}fclose[ ]*\(" >/dev/null 2>&1; then
39322 ice_cv_have_fclose_decl=yes
39326 if test "$ice_cv_have_fclose_decl" = yes; then
39329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39330 cat >conftest.$ac_ext <<_ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h. */
39339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39340 $EGREP "${ice_re_word}fclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39341 ice_cv_have_fclose_decl=yes
39345 if test "$ice_cv_have_fclose_decl" = yes; then
39352 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
39353 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
39354 if test "$ice_cv_have_fclose_decl" = yes; then
39356 cat >>confdefs.h <<_ACEOF
39357 #define HAVE_FCLOSE_DECL 1
39366 for ac_func in fflush
39368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39369 echo "$as_me:$LINENO: checking for $ac_func" >&5
39370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39371 if eval "test \"\${$as_ac_var+set}\" = set"; then
39372 echo $ECHO_N "(cached) $ECHO_C" >&6
39374 cat >conftest.$ac_ext <<_ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h. */
39380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39382 #define $ac_func innocuous_$ac_func
39384 /* System header to define __stub macros and hopefully few prototypes,
39385 which can conflict with char $ac_func (); below.
39386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39387 <limits.h> exists even on freestanding compilers. */
39390 # include <limits.h>
39392 # include <assert.h>
39397 /* Override any gcc2 internal prototype to avoid an error. */
39402 /* We use char because int might match the return type of a gcc2
39403 builtin and then its argument prototype would still apply. */
39405 /* The GNU C library defines this for functions which it implements
39406 to always fail with ENOSYS. Some functions are actually named
39407 something starting with __ and the normal name is an alias. */
39408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39411 char (*f) () = $ac_func;
39420 return f != $ac_func;
39425 rm -f conftest.$ac_objext conftest$ac_exeext
39426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39427 (eval $ac_link) 2>conftest.er1
39429 grep -v '^ *+' conftest.er1 >conftest.err
39431 cat conftest.err >&5
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); } &&
39434 { ac_try='test -z "$ac_c_werror_flag"
39435 || test ! -s conftest.err'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437 (eval $ac_try) 2>&5
39439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; } &&
39441 { ac_try='test -s conftest$ac_exeext'
39442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39443 (eval $ac_try) 2>&5
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); }; }; then
39447 eval "$as_ac_var=yes"
39449 echo "$as_me: failed program was:" >&5
39450 sed 's/^/| /' conftest.$ac_ext >&5
39452 eval "$as_ac_var=no"
39454 rm -f conftest.err conftest.$ac_objext \
39455 conftest$ac_exeext conftest.$ac_ext
39457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39459 if test `eval echo '${'$as_ac_var'}'` = yes; then
39460 cat >>confdefs.h <<_ACEOF
39461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39463 ice_have_fflush=yes
39467 if test "${ice_have_fflush}" = yes; then
39468 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
39469 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
39470 if test "${ice_cv_have_fflush_decl+set}" = set; then
39471 echo $ECHO_N "(cached) $ECHO_C" >&6
39474 ice_cv_have_fflush_decl=no
39475 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39476 ice_re_word='(^|[^a-zA-Z0-9_])'
39477 for header in stdio.h; do
39478 # Check for ordinary declaration
39479 cat >conftest.$ac_ext <<_ACEOF
39482 cat confdefs.h >>conftest.$ac_ext
39483 cat >>conftest.$ac_ext <<_ACEOF
39484 /* end confdefs.h. */
39488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39489 $EGREP "${ice_re_word}fflush[ ]*\(" >/dev/null 2>&1; then
39490 ice_cv_have_fflush_decl=yes
39494 if test "$ice_cv_have_fflush_decl" = yes; then
39497 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39498 cat >conftest.$ac_ext <<_ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h. */
39507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39508 $EGREP "${ice_re_word}fflush[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39509 ice_cv_have_fflush_decl=yes
39513 if test "$ice_cv_have_fflush_decl" = yes; then
39520 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
39521 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
39522 if test "$ice_cv_have_fflush_decl" = yes; then
39524 cat >>confdefs.h <<_ACEOF
39525 #define HAVE_FFLUSH_DECL 1
39534 for ac_func in flock
39536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39537 echo "$as_me:$LINENO: checking for $ac_func" >&5
39538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39539 if eval "test \"\${$as_ac_var+set}\" = set"; then
39540 echo $ECHO_N "(cached) $ECHO_C" >&6
39542 cat >conftest.$ac_ext <<_ACEOF
39545 cat confdefs.h >>conftest.$ac_ext
39546 cat >>conftest.$ac_ext <<_ACEOF
39547 /* end confdefs.h. */
39548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39550 #define $ac_func innocuous_$ac_func
39552 /* System header to define __stub macros and hopefully few prototypes,
39553 which can conflict with char $ac_func (); below.
39554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39555 <limits.h> exists even on freestanding compilers. */
39558 # include <limits.h>
39560 # include <assert.h>
39565 /* Override any gcc2 internal prototype to avoid an error. */
39570 /* We use char because int might match the return type of a gcc2
39571 builtin and then its argument prototype would still apply. */
39573 /* The GNU C library defines this for functions which it implements
39574 to always fail with ENOSYS. Some functions are actually named
39575 something starting with __ and the normal name is an alias. */
39576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39579 char (*f) () = $ac_func;
39588 return f != $ac_func;
39593 rm -f conftest.$ac_objext conftest$ac_exeext
39594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39595 (eval $ac_link) 2>conftest.er1
39597 grep -v '^ *+' conftest.er1 >conftest.err
39599 cat conftest.err >&5
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); } &&
39602 { ac_try='test -z "$ac_c_werror_flag"
39603 || test ! -s conftest.err'
39604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39605 (eval $ac_try) 2>&5
39607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39608 (exit $ac_status); }; } &&
39609 { ac_try='test -s conftest$ac_exeext'
39610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39611 (eval $ac_try) 2>&5
39613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614 (exit $ac_status); }; }; then
39615 eval "$as_ac_var=yes"
39617 echo "$as_me: failed program was:" >&5
39618 sed 's/^/| /' conftest.$ac_ext >&5
39620 eval "$as_ac_var=no"
39622 rm -f conftest.err conftest.$ac_objext \
39623 conftest$ac_exeext conftest.$ac_ext
39625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39627 if test `eval echo '${'$as_ac_var'}'` = yes; then
39628 cat >>confdefs.h <<_ACEOF
39629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39635 if test "${ice_have_flock}" = yes; then
39636 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
39637 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
39638 if test "${ice_cv_have_flock_decl+set}" = set; then
39639 echo $ECHO_N "(cached) $ECHO_C" >&6
39642 ice_cv_have_flock_decl=no
39643 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39644 ice_re_word='(^|[^a-zA-Z0-9_])'
39645 for header in sys/file.h; do
39646 # Check for ordinary declaration
39647 cat >conftest.$ac_ext <<_ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h. */
39656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39657 $EGREP "${ice_re_word}flock[ ]*\(" >/dev/null 2>&1; then
39658 ice_cv_have_flock_decl=yes
39662 if test "$ice_cv_have_flock_decl" = yes; then
39665 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39666 cat >conftest.$ac_ext <<_ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39676 $EGREP "${ice_re_word}flock[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39677 ice_cv_have_flock_decl=yes
39681 if test "$ice_cv_have_flock_decl" = yes; then
39688 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
39689 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
39690 if test "$ice_cv_have_flock_decl" = yes; then
39692 cat >>confdefs.h <<_ACEOF
39693 #define HAVE_FLOCK_DECL 1
39700 ice_have_fprintf=no
39702 for ac_func in fprintf
39704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39705 echo "$as_me:$LINENO: checking for $ac_func" >&5
39706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39707 if eval "test \"\${$as_ac_var+set}\" = set"; then
39708 echo $ECHO_N "(cached) $ECHO_C" >&6
39710 cat >conftest.$ac_ext <<_ACEOF
39713 cat confdefs.h >>conftest.$ac_ext
39714 cat >>conftest.$ac_ext <<_ACEOF
39715 /* end confdefs.h. */
39716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39718 #define $ac_func innocuous_$ac_func
39720 /* System header to define __stub macros and hopefully few prototypes,
39721 which can conflict with char $ac_func (); below.
39722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39723 <limits.h> exists even on freestanding compilers. */
39726 # include <limits.h>
39728 # include <assert.h>
39733 /* Override any gcc2 internal prototype to avoid an error. */
39738 /* We use char because int might match the return type of a gcc2
39739 builtin and then its argument prototype would still apply. */
39741 /* The GNU C library defines this for functions which it implements
39742 to always fail with ENOSYS. Some functions are actually named
39743 something starting with __ and the normal name is an alias. */
39744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39747 char (*f) () = $ac_func;
39756 return f != $ac_func;
39761 rm -f conftest.$ac_objext conftest$ac_exeext
39762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39763 (eval $ac_link) 2>conftest.er1
39765 grep -v '^ *+' conftest.er1 >conftest.err
39767 cat conftest.err >&5
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); } &&
39770 { ac_try='test -z "$ac_c_werror_flag"
39771 || test ! -s conftest.err'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; } &&
39777 { ac_try='test -s conftest$ac_exeext'
39778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39779 (eval $ac_try) 2>&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); }; }; then
39783 eval "$as_ac_var=yes"
39785 echo "$as_me: failed program was:" >&5
39786 sed 's/^/| /' conftest.$ac_ext >&5
39788 eval "$as_ac_var=no"
39790 rm -f conftest.err conftest.$ac_objext \
39791 conftest$ac_exeext conftest.$ac_ext
39793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39795 if test `eval echo '${'$as_ac_var'}'` = yes; then
39796 cat >>confdefs.h <<_ACEOF
39797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39799 ice_have_fprintf=yes
39803 if test "${ice_have_fprintf}" = yes; then
39804 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
39805 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
39806 if test "${ice_cv_have_fprintf_decl+set}" = set; then
39807 echo $ECHO_N "(cached) $ECHO_C" >&6
39810 ice_cv_have_fprintf_decl=no
39811 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39812 ice_re_word='(^|[^a-zA-Z0-9_])'
39813 for header in stdio.h; do
39814 # Check for ordinary declaration
39815 cat >conftest.$ac_ext <<_ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h. */
39824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39825 $EGREP "${ice_re_word}fprintf[ ]*\(" >/dev/null 2>&1; then
39826 ice_cv_have_fprintf_decl=yes
39830 if test "$ice_cv_have_fprintf_decl" = yes; then
39833 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39834 cat >conftest.$ac_ext <<_ACEOF
39837 cat confdefs.h >>conftest.$ac_ext
39838 cat >>conftest.$ac_ext <<_ACEOF
39839 /* end confdefs.h. */
39843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39844 $EGREP "${ice_re_word}fprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39845 ice_cv_have_fprintf_decl=yes
39849 if test "$ice_cv_have_fprintf_decl" = yes; then
39856 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
39857 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
39858 if test "$ice_cv_have_fprintf_decl" = yes; then
39860 cat >>confdefs.h <<_ACEOF
39861 #define HAVE_FPRINTF_DECL 1
39870 for ac_func in fputc
39872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39873 echo "$as_me:$LINENO: checking for $ac_func" >&5
39874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39875 if eval "test \"\${$as_ac_var+set}\" = set"; then
39876 echo $ECHO_N "(cached) $ECHO_C" >&6
39878 cat >conftest.$ac_ext <<_ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h. */
39884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39886 #define $ac_func innocuous_$ac_func
39888 /* System header to define __stub macros and hopefully few prototypes,
39889 which can conflict with char $ac_func (); below.
39890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39891 <limits.h> exists even on freestanding compilers. */
39894 # include <limits.h>
39896 # include <assert.h>
39901 /* Override any gcc2 internal prototype to avoid an error. */
39906 /* We use char because int might match the return type of a gcc2
39907 builtin and then its argument prototype would still apply. */
39909 /* The GNU C library defines this for functions which it implements
39910 to always fail with ENOSYS. Some functions are actually named
39911 something starting with __ and the normal name is an alias. */
39912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39915 char (*f) () = $ac_func;
39924 return f != $ac_func;
39929 rm -f conftest.$ac_objext conftest$ac_exeext
39930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39931 (eval $ac_link) 2>conftest.er1
39933 grep -v '^ *+' conftest.er1 >conftest.err
39935 cat conftest.err >&5
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); } &&
39938 { ac_try='test -z "$ac_c_werror_flag"
39939 || test ! -s conftest.err'
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; } &&
39945 { ac_try='test -s conftest$ac_exeext'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; }; then
39951 eval "$as_ac_var=yes"
39953 echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39956 eval "$as_ac_var=no"
39958 rm -f conftest.err conftest.$ac_objext \
39959 conftest$ac_exeext conftest.$ac_ext
39961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39963 if test `eval echo '${'$as_ac_var'}'` = yes; then
39964 cat >>confdefs.h <<_ACEOF
39965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39971 if test "${ice_have_fputc}" = yes; then
39972 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
39973 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
39974 if test "${ice_cv_have_fputc_decl+set}" = set; then
39975 echo $ECHO_N "(cached) $ECHO_C" >&6
39978 ice_cv_have_fputc_decl=no
39979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39980 ice_re_word='(^|[^a-zA-Z0-9_])'
39981 for header in stdio.h; do
39982 # Check for ordinary declaration
39983 cat >conftest.$ac_ext <<_ACEOF
39986 cat confdefs.h >>conftest.$ac_ext
39987 cat >>conftest.$ac_ext <<_ACEOF
39988 /* end confdefs.h. */
39992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39993 $EGREP "${ice_re_word}fputc[ ]*\(" >/dev/null 2>&1; then
39994 ice_cv_have_fputc_decl=yes
39998 if test "$ice_cv_have_fputc_decl" = yes; then
40001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40002 cat >conftest.$ac_ext <<_ACEOF
40005 cat confdefs.h >>conftest.$ac_ext
40006 cat >>conftest.$ac_ext <<_ACEOF
40007 /* end confdefs.h. */
40011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40012 $EGREP "${ice_re_word}fputc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40013 ice_cv_have_fputc_decl=yes
40017 if test "$ice_cv_have_fputc_decl" = yes; then
40024 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
40025 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
40026 if test "$ice_cv_have_fputc_decl" = yes; then
40028 cat >>confdefs.h <<_ACEOF
40029 #define HAVE_FPUTC_DECL 1
40038 for ac_func in fputs
40040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40041 echo "$as_me:$LINENO: checking for $ac_func" >&5
40042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40043 if eval "test \"\${$as_ac_var+set}\" = set"; then
40044 echo $ECHO_N "(cached) $ECHO_C" >&6
40046 cat >conftest.$ac_ext <<_ACEOF
40049 cat confdefs.h >>conftest.$ac_ext
40050 cat >>conftest.$ac_ext <<_ACEOF
40051 /* end confdefs.h. */
40052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40054 #define $ac_func innocuous_$ac_func
40056 /* System header to define __stub macros and hopefully few prototypes,
40057 which can conflict with char $ac_func (); below.
40058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40059 <limits.h> exists even on freestanding compilers. */
40062 # include <limits.h>
40064 # include <assert.h>
40069 /* Override any gcc2 internal prototype to avoid an error. */
40074 /* We use char because int might match the return type of a gcc2
40075 builtin and then its argument prototype would still apply. */
40077 /* The GNU C library defines this for functions which it implements
40078 to always fail with ENOSYS. Some functions are actually named
40079 something starting with __ and the normal name is an alias. */
40080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40083 char (*f) () = $ac_func;
40092 return f != $ac_func;
40097 rm -f conftest.$ac_objext conftest$ac_exeext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40099 (eval $ac_link) 2>conftest.er1
40101 grep -v '^ *+' conftest.er1 >conftest.err
40103 cat conftest.err >&5
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); } &&
40106 { ac_try='test -z "$ac_c_werror_flag"
40107 || test ! -s conftest.err'
40108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109 (eval $ac_try) 2>&5
40111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); }; } &&
40113 { ac_try='test -s conftest$ac_exeext'
40114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115 (eval $ac_try) 2>&5
40117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118 (exit $ac_status); }; }; then
40119 eval "$as_ac_var=yes"
40121 echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40124 eval "$as_ac_var=no"
40126 rm -f conftest.err conftest.$ac_objext \
40127 conftest$ac_exeext conftest.$ac_ext
40129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40131 if test `eval echo '${'$as_ac_var'}'` = yes; then
40132 cat >>confdefs.h <<_ACEOF
40133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40139 if test "${ice_have_fputs}" = yes; then
40140 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
40141 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
40142 if test "${ice_cv_have_fputs_decl+set}" = set; then
40143 echo $ECHO_N "(cached) $ECHO_C" >&6
40146 ice_cv_have_fputs_decl=no
40147 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40148 ice_re_word='(^|[^a-zA-Z0-9_])'
40149 for header in stdio.h; do
40150 # Check for ordinary declaration
40151 cat >conftest.$ac_ext <<_ACEOF
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h. */
40160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40161 $EGREP "${ice_re_word}fputs[ ]*\(" >/dev/null 2>&1; then
40162 ice_cv_have_fputs_decl=yes
40166 if test "$ice_cv_have_fputs_decl" = yes; then
40169 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40170 cat >conftest.$ac_ext <<_ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h. */
40179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40180 $EGREP "${ice_re_word}fputs[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40181 ice_cv_have_fputs_decl=yes
40185 if test "$ice_cv_have_fputs_decl" = yes; then
40192 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
40193 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
40194 if test "$ice_cv_have_fputs_decl" = yes; then
40196 cat >>confdefs.h <<_ACEOF
40197 #define HAVE_FPUTS_DECL 1
40206 for ac_func in fread
40208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40209 echo "$as_me:$LINENO: checking for $ac_func" >&5
40210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40211 if eval "test \"\${$as_ac_var+set}\" = set"; then
40212 echo $ECHO_N "(cached) $ECHO_C" >&6
40214 cat >conftest.$ac_ext <<_ACEOF
40217 cat confdefs.h >>conftest.$ac_ext
40218 cat >>conftest.$ac_ext <<_ACEOF
40219 /* end confdefs.h. */
40220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40222 #define $ac_func innocuous_$ac_func
40224 /* System header to define __stub macros and hopefully few prototypes,
40225 which can conflict with char $ac_func (); below.
40226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40227 <limits.h> exists even on freestanding compilers. */
40230 # include <limits.h>
40232 # include <assert.h>
40237 /* Override any gcc2 internal prototype to avoid an error. */
40242 /* We use char because int might match the return type of a gcc2
40243 builtin and then its argument prototype would still apply. */
40245 /* The GNU C library defines this for functions which it implements
40246 to always fail with ENOSYS. Some functions are actually named
40247 something starting with __ and the normal name is an alias. */
40248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40251 char (*f) () = $ac_func;
40260 return f != $ac_func;
40265 rm -f conftest.$ac_objext conftest$ac_exeext
40266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40267 (eval $ac_link) 2>conftest.er1
40269 grep -v '^ *+' conftest.er1 >conftest.err
40271 cat conftest.err >&5
40272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273 (exit $ac_status); } &&
40274 { ac_try='test -z "$ac_c_werror_flag"
40275 || test ! -s conftest.err'
40276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277 (eval $ac_try) 2>&5
40279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); }; } &&
40281 { ac_try='test -s conftest$ac_exeext'
40282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283 (eval $ac_try) 2>&5
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); }; }; then
40287 eval "$as_ac_var=yes"
40289 echo "$as_me: failed program was:" >&5
40290 sed 's/^/| /' conftest.$ac_ext >&5
40292 eval "$as_ac_var=no"
40294 rm -f conftest.err conftest.$ac_objext \
40295 conftest$ac_exeext conftest.$ac_ext
40297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40299 if test `eval echo '${'$as_ac_var'}'` = yes; then
40300 cat >>confdefs.h <<_ACEOF
40301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40307 if test "${ice_have_fread}" = yes; then
40308 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
40309 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
40310 if test "${ice_cv_have_fread_decl+set}" = set; then
40311 echo $ECHO_N "(cached) $ECHO_C" >&6
40314 ice_cv_have_fread_decl=no
40315 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40316 ice_re_word='(^|[^a-zA-Z0-9_])'
40317 for header in stdio.h stdlib.h; do
40318 # Check for ordinary declaration
40319 cat >conftest.$ac_ext <<_ACEOF
40322 cat confdefs.h >>conftest.$ac_ext
40323 cat >>conftest.$ac_ext <<_ACEOF
40324 /* end confdefs.h. */
40328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40329 $EGREP "${ice_re_word}fread[ ]*\(" >/dev/null 2>&1; then
40330 ice_cv_have_fread_decl=yes
40334 if test "$ice_cv_have_fread_decl" = yes; then
40337 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40338 cat >conftest.$ac_ext <<_ACEOF
40341 cat confdefs.h >>conftest.$ac_ext
40342 cat >>conftest.$ac_ext <<_ACEOF
40343 /* end confdefs.h. */
40347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40348 $EGREP "${ice_re_word}fread[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40349 ice_cv_have_fread_decl=yes
40353 if test "$ice_cv_have_fread_decl" = yes; then
40360 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
40361 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
40362 if test "$ice_cv_have_fread_decl" = yes; then
40364 cat >>confdefs.h <<_ACEOF
40365 #define HAVE_FREAD_DECL 1
40374 for ac_func in fseek
40376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40377 echo "$as_me:$LINENO: checking for $ac_func" >&5
40378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40379 if eval "test \"\${$as_ac_var+set}\" = set"; then
40380 echo $ECHO_N "(cached) $ECHO_C" >&6
40382 cat >conftest.$ac_ext <<_ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h. */
40388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40390 #define $ac_func innocuous_$ac_func
40392 /* System header to define __stub macros and hopefully few prototypes,
40393 which can conflict with char $ac_func (); below.
40394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40395 <limits.h> exists even on freestanding compilers. */
40398 # include <limits.h>
40400 # include <assert.h>
40405 /* Override any gcc2 internal prototype to avoid an error. */
40410 /* We use char because int might match the return type of a gcc2
40411 builtin and then its argument prototype would still apply. */
40413 /* The GNU C library defines this for functions which it implements
40414 to always fail with ENOSYS. Some functions are actually named
40415 something starting with __ and the normal name is an alias. */
40416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40419 char (*f) () = $ac_func;
40428 return f != $ac_func;
40433 rm -f conftest.$ac_objext conftest$ac_exeext
40434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40435 (eval $ac_link) 2>conftest.er1
40437 grep -v '^ *+' conftest.er1 >conftest.err
40439 cat conftest.err >&5
40440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); } &&
40442 { ac_try='test -z "$ac_c_werror_flag"
40443 || test ! -s conftest.err'
40444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40445 (eval $ac_try) 2>&5
40447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448 (exit $ac_status); }; } &&
40449 { ac_try='test -s conftest$ac_exeext'
40450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40451 (eval $ac_try) 2>&5
40453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454 (exit $ac_status); }; }; then
40455 eval "$as_ac_var=yes"
40457 echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40460 eval "$as_ac_var=no"
40462 rm -f conftest.err conftest.$ac_objext \
40463 conftest$ac_exeext conftest.$ac_ext
40465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40467 if test `eval echo '${'$as_ac_var'}'` = yes; then
40468 cat >>confdefs.h <<_ACEOF
40469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40475 if test "${ice_have_fseek}" = yes; then
40476 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
40477 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
40478 if test "${ice_cv_have_fseek_decl+set}" = set; then
40479 echo $ECHO_N "(cached) $ECHO_C" >&6
40482 ice_cv_have_fseek_decl=no
40483 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40484 ice_re_word='(^|[^a-zA-Z0-9_])'
40485 for header in stdio.h; do
40486 # Check for ordinary declaration
40487 cat >conftest.$ac_ext <<_ACEOF
40490 cat confdefs.h >>conftest.$ac_ext
40491 cat >>conftest.$ac_ext <<_ACEOF
40492 /* end confdefs.h. */
40496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40497 $EGREP "${ice_re_word}fseek[ ]*\(" >/dev/null 2>&1; then
40498 ice_cv_have_fseek_decl=yes
40502 if test "$ice_cv_have_fseek_decl" = yes; then
40505 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40506 cat >conftest.$ac_ext <<_ACEOF
40509 cat confdefs.h >>conftest.$ac_ext
40510 cat >>conftest.$ac_ext <<_ACEOF
40511 /* end confdefs.h. */
40515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40516 $EGREP "${ice_re_word}fseek[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40517 ice_cv_have_fseek_decl=yes
40521 if test "$ice_cv_have_fseek_decl" = yes; then
40528 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
40529 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
40530 if test "$ice_cv_have_fseek_decl" = yes; then
40532 cat >>confdefs.h <<_ACEOF
40533 #define HAVE_FSEEK_DECL 1
40542 for ac_func in fwrite
40544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40545 echo "$as_me:$LINENO: checking for $ac_func" >&5
40546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40547 if eval "test \"\${$as_ac_var+set}\" = set"; then
40548 echo $ECHO_N "(cached) $ECHO_C" >&6
40550 cat >conftest.$ac_ext <<_ACEOF
40553 cat confdefs.h >>conftest.$ac_ext
40554 cat >>conftest.$ac_ext <<_ACEOF
40555 /* end confdefs.h. */
40556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40558 #define $ac_func innocuous_$ac_func
40560 /* System header to define __stub macros and hopefully few prototypes,
40561 which can conflict with char $ac_func (); below.
40562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40563 <limits.h> exists even on freestanding compilers. */
40566 # include <limits.h>
40568 # include <assert.h>
40573 /* Override any gcc2 internal prototype to avoid an error. */
40578 /* We use char because int might match the return type of a gcc2
40579 builtin and then its argument prototype would still apply. */
40581 /* The GNU C library defines this for functions which it implements
40582 to always fail with ENOSYS. Some functions are actually named
40583 something starting with __ and the normal name is an alias. */
40584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40587 char (*f) () = $ac_func;
40596 return f != $ac_func;
40601 rm -f conftest.$ac_objext conftest$ac_exeext
40602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40603 (eval $ac_link) 2>conftest.er1
40605 grep -v '^ *+' conftest.er1 >conftest.err
40607 cat conftest.err >&5
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); } &&
40610 { ac_try='test -z "$ac_c_werror_flag"
40611 || test ! -s conftest.err'
40612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40613 (eval $ac_try) 2>&5
40615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616 (exit $ac_status); }; } &&
40617 { ac_try='test -s conftest$ac_exeext'
40618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40619 (eval $ac_try) 2>&5
40621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622 (exit $ac_status); }; }; then
40623 eval "$as_ac_var=yes"
40625 echo "$as_me: failed program was:" >&5
40626 sed 's/^/| /' conftest.$ac_ext >&5
40628 eval "$as_ac_var=no"
40630 rm -f conftest.err conftest.$ac_objext \
40631 conftest$ac_exeext conftest.$ac_ext
40633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40635 if test `eval echo '${'$as_ac_var'}'` = yes; then
40636 cat >>confdefs.h <<_ACEOF
40637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40639 ice_have_fwrite=yes
40643 if test "${ice_have_fwrite}" = yes; then
40644 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
40645 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
40646 if test "${ice_cv_have_fwrite_decl+set}" = set; then
40647 echo $ECHO_N "(cached) $ECHO_C" >&6
40650 ice_cv_have_fwrite_decl=no
40651 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40652 ice_re_word='(^|[^a-zA-Z0-9_])'
40653 for header in stdio.h stdlib.h; do
40654 # Check for ordinary declaration
40655 cat >conftest.$ac_ext <<_ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h. */
40664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40665 $EGREP "${ice_re_word}fwrite[ ]*\(" >/dev/null 2>&1; then
40666 ice_cv_have_fwrite_decl=yes
40670 if test "$ice_cv_have_fwrite_decl" = yes; then
40673 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40674 cat >conftest.$ac_ext <<_ACEOF
40677 cat confdefs.h >>conftest.$ac_ext
40678 cat >>conftest.$ac_ext <<_ACEOF
40679 /* end confdefs.h. */
40683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40684 $EGREP "${ice_re_word}fwrite[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40685 ice_cv_have_fwrite_decl=yes
40689 if test "$ice_cv_have_fwrite_decl" = yes; then
40696 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
40697 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
40698 if test "$ice_cv_have_fwrite_decl" = yes; then
40700 cat >>confdefs.h <<_ACEOF
40701 #define HAVE_FWRITE_DECL 1
40708 for ac_func in getcwd
40710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40711 echo "$as_me:$LINENO: checking for $ac_func" >&5
40712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40713 if eval "test \"\${$as_ac_var+set}\" = set"; then
40714 echo $ECHO_N "(cached) $ECHO_C" >&6
40716 cat >conftest.$ac_ext <<_ACEOF
40719 cat confdefs.h >>conftest.$ac_ext
40720 cat >>conftest.$ac_ext <<_ACEOF
40721 /* end confdefs.h. */
40722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40724 #define $ac_func innocuous_$ac_func
40726 /* System header to define __stub macros and hopefully few prototypes,
40727 which can conflict with char $ac_func (); below.
40728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40729 <limits.h> exists even on freestanding compilers. */
40732 # include <limits.h>
40734 # include <assert.h>
40739 /* Override any gcc2 internal prototype to avoid an error. */
40744 /* We use char because int might match the return type of a gcc2
40745 builtin and then its argument prototype would still apply. */
40747 /* The GNU C library defines this for functions which it implements
40748 to always fail with ENOSYS. Some functions are actually named
40749 something starting with __ and the normal name is an alias. */
40750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40753 char (*f) () = $ac_func;
40762 return f != $ac_func;
40767 rm -f conftest.$ac_objext conftest$ac_exeext
40768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40769 (eval $ac_link) 2>conftest.er1
40771 grep -v '^ *+' conftest.er1 >conftest.err
40773 cat conftest.err >&5
40774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40775 (exit $ac_status); } &&
40776 { ac_try='test -z "$ac_c_werror_flag"
40777 || test ! -s conftest.err'
40778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40779 (eval $ac_try) 2>&5
40781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40782 (exit $ac_status); }; } &&
40783 { ac_try='test -s conftest$ac_exeext'
40784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40785 (eval $ac_try) 2>&5
40787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40788 (exit $ac_status); }; }; then
40789 eval "$as_ac_var=yes"
40791 echo "$as_me: failed program was:" >&5
40792 sed 's/^/| /' conftest.$ac_ext >&5
40794 eval "$as_ac_var=no"
40796 rm -f conftest.err conftest.$ac_objext \
40797 conftest$ac_exeext conftest.$ac_ext
40799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40801 if test `eval echo '${'$as_ac_var'}'` = yes; then
40802 cat >>confdefs.h <<_ACEOF
40803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40808 "$ac_func.$ac_objext" | \
40809 *" $ac_func.$ac_objext" | \
40810 "$ac_func.$ac_objext "* | \
40811 *" $ac_func.$ac_objext "* ) ;;
40812 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40820 for ac_func in getfsent
40822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40823 echo "$as_me:$LINENO: checking for $ac_func" >&5
40824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40825 if eval "test \"\${$as_ac_var+set}\" = set"; then
40826 echo $ECHO_N "(cached) $ECHO_C" >&6
40828 cat >conftest.$ac_ext <<_ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h. */
40834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40836 #define $ac_func innocuous_$ac_func
40838 /* System header to define __stub macros and hopefully few prototypes,
40839 which can conflict with char $ac_func (); below.
40840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40841 <limits.h> exists even on freestanding compilers. */
40844 # include <limits.h>
40846 # include <assert.h>
40851 /* Override any gcc2 internal prototype to avoid an error. */
40856 /* We use char because int might match the return type of a gcc2
40857 builtin and then its argument prototype would still apply. */
40859 /* The GNU C library defines this for functions which it implements
40860 to always fail with ENOSYS. Some functions are actually named
40861 something starting with __ and the normal name is an alias. */
40862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40865 char (*f) () = $ac_func;
40874 return f != $ac_func;
40879 rm -f conftest.$ac_objext conftest$ac_exeext
40880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40881 (eval $ac_link) 2>conftest.er1
40883 grep -v '^ *+' conftest.er1 >conftest.err
40885 cat conftest.err >&5
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); } &&
40888 { ac_try='test -z "$ac_c_werror_flag"
40889 || test ! -s conftest.err'
40890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40891 (eval $ac_try) 2>&5
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); }; } &&
40895 { ac_try='test -s conftest$ac_exeext'
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; }; then
40901 eval "$as_ac_var=yes"
40903 echo "$as_me: failed program was:" >&5
40904 sed 's/^/| /' conftest.$ac_ext >&5
40906 eval "$as_ac_var=no"
40908 rm -f conftest.err conftest.$ac_objext \
40909 conftest$ac_exeext conftest.$ac_ext
40911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40913 if test `eval echo '${'$as_ac_var'}'` = yes; then
40914 cat >>confdefs.h <<_ACEOF
40915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40922 ice_have_gethostname=no
40924 for ac_func in gethostname
40926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40927 echo "$as_me:$LINENO: checking for $ac_func" >&5
40928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40929 if eval "test \"\${$as_ac_var+set}\" = set"; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40932 cat >conftest.$ac_ext <<_ACEOF
40935 cat confdefs.h >>conftest.$ac_ext
40936 cat >>conftest.$ac_ext <<_ACEOF
40937 /* end confdefs.h. */
40938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40940 #define $ac_func innocuous_$ac_func
40942 /* System header to define __stub macros and hopefully few prototypes,
40943 which can conflict with char $ac_func (); below.
40944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40945 <limits.h> exists even on freestanding compilers. */
40948 # include <limits.h>
40950 # include <assert.h>
40955 /* Override any gcc2 internal prototype to avoid an error. */
40960 /* We use char because int might match the return type of a gcc2
40961 builtin and then its argument prototype would still apply. */
40963 /* The GNU C library defines this for functions which it implements
40964 to always fail with ENOSYS. Some functions are actually named
40965 something starting with __ and the normal name is an alias. */
40966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40969 char (*f) () = $ac_func;
40978 return f != $ac_func;
40983 rm -f conftest.$ac_objext conftest$ac_exeext
40984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40985 (eval $ac_link) 2>conftest.er1
40987 grep -v '^ *+' conftest.er1 >conftest.err
40989 cat conftest.err >&5
40990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991 (exit $ac_status); } &&
40992 { ac_try='test -z "$ac_c_werror_flag"
40993 || test ! -s conftest.err'
40994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995 (eval $ac_try) 2>&5
40997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998 (exit $ac_status); }; } &&
40999 { ac_try='test -s conftest$ac_exeext'
41000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001 (eval $ac_try) 2>&5
41003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004 (exit $ac_status); }; }; then
41005 eval "$as_ac_var=yes"
41007 echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41010 eval "$as_ac_var=no"
41012 rm -f conftest.err conftest.$ac_objext \
41013 conftest$ac_exeext conftest.$ac_ext
41015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41017 if test `eval echo '${'$as_ac_var'}'` = yes; then
41018 cat >>confdefs.h <<_ACEOF
41019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41021 ice_have_gethostname=yes
41025 if test "${ice_have_gethostname}" = yes; then
41026 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
41027 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
41028 if test "${ice_cv_have_gethostname_decl+set}" = set; then
41029 echo $ECHO_N "(cached) $ECHO_C" >&6
41032 ice_cv_have_gethostname_decl=no
41033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41034 ice_re_word='(^|[^a-zA-Z0-9_])'
41035 for header in unistd.h; do
41036 # Check for ordinary declaration
41037 cat >conftest.$ac_ext <<_ACEOF
41040 cat confdefs.h >>conftest.$ac_ext
41041 cat >>conftest.$ac_ext <<_ACEOF
41042 /* end confdefs.h. */
41046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41047 $EGREP "${ice_re_word}gethostname[ ]*\(" >/dev/null 2>&1; then
41048 ice_cv_have_gethostname_decl=yes
41052 if test "$ice_cv_have_gethostname_decl" = yes; then
41055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41056 cat >conftest.$ac_ext <<_ACEOF
41059 cat confdefs.h >>conftest.$ac_ext
41060 cat >>conftest.$ac_ext <<_ACEOF
41061 /* end confdefs.h. */
41065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41066 $EGREP "${ice_re_word}gethostname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41067 ice_cv_have_gethostname_decl=yes
41071 if test "$ice_cv_have_gethostname_decl" = yes; then
41078 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
41079 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
41080 if test "$ice_cv_have_gethostname_decl" = yes; then
41082 cat >>confdefs.h <<_ACEOF
41083 #define HAVE_GETHOSTNAME_DECL 1
41089 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
41090 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
41091 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
41092 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
41093 echo $ECHO_N "(cached) $ECHO_C" >&6
41095 ac_check_lib_save_LIBS=$LIBS
41097 cat >conftest.$ac_ext <<_ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h. */
41104 /* Override any gcc2 internal prototype to avoid an error. */
41108 /* We use char because int might match the return type of a gcc2
41109 builtin and then its argument prototype would still apply. */
41119 rm -f conftest.$ac_objext conftest$ac_exeext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41121 (eval $ac_link) 2>conftest.er1
41123 grep -v '^ *+' conftest.er1 >conftest.err
41125 cat conftest.err >&5
41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); } &&
41128 { ac_try='test -z "$ac_c_werror_flag"
41129 || test ! -s conftest.err'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; } &&
41135 { ac_try='test -s conftest$ac_exeext'
41136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137 (eval $ac_try) 2>&5
41139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140 (exit $ac_status); }; }; then
41141 ac_cv_lib_sun_getmntent=yes
41143 echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41146 ac_cv_lib_sun_getmntent=no
41148 rm -f conftest.err conftest.$ac_objext \
41149 conftest$ac_exeext conftest.$ac_ext
41150 LIBS=$ac_check_lib_save_LIBS
41152 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
41153 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
41154 if test $ac_cv_lib_sun_getmntent = yes; then
41157 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
41158 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
41159 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
41160 echo $ECHO_N "(cached) $ECHO_C" >&6
41162 ac_check_lib_save_LIBS=$LIBS
41164 cat >conftest.$ac_ext <<_ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h. */
41171 /* Override any gcc2 internal prototype to avoid an error. */
41175 /* We use char because int might match the return type of a gcc2
41176 builtin and then its argument prototype would still apply. */
41186 rm -f conftest.$ac_objext conftest$ac_exeext
41187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41188 (eval $ac_link) 2>conftest.er1
41190 grep -v '^ *+' conftest.er1 >conftest.err
41192 cat conftest.err >&5
41193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194 (exit $ac_status); } &&
41195 { ac_try='test -z "$ac_c_werror_flag"
41196 || test ! -s conftest.err'
41197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41198 (eval $ac_try) 2>&5
41200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41201 (exit $ac_status); }; } &&
41202 { ac_try='test -s conftest$ac_exeext'
41203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41204 (eval $ac_try) 2>&5
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); }; }; then
41208 ac_cv_lib_seq_getmntent=yes
41210 echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41213 ac_cv_lib_seq_getmntent=no
41215 rm -f conftest.err conftest.$ac_objext \
41216 conftest$ac_exeext conftest.$ac_ext
41217 LIBS=$ac_check_lib_save_LIBS
41219 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
41220 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
41221 if test $ac_cv_lib_seq_getmntent = yes; then
41224 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
41225 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
41226 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
41227 echo $ECHO_N "(cached) $ECHO_C" >&6
41229 ac_check_lib_save_LIBS=$LIBS
41231 cat >conftest.$ac_ext <<_ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h. */
41238 /* Override any gcc2 internal prototype to avoid an error. */
41242 /* We use char because int might match the return type of a gcc2
41243 builtin and then its argument prototype would still apply. */
41253 rm -f conftest.$ac_objext conftest$ac_exeext
41254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41255 (eval $ac_link) 2>conftest.er1
41257 grep -v '^ *+' conftest.er1 >conftest.err
41259 cat conftest.err >&5
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); } &&
41262 { ac_try='test -z "$ac_c_werror_flag"
41263 || test ! -s conftest.err'
41264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265 (eval $ac_try) 2>&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); }; } &&
41269 { ac_try='test -s conftest$ac_exeext'
41270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271 (eval $ac_try) 2>&5
41273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274 (exit $ac_status); }; }; then
41275 ac_cv_lib_gen_getmntent=yes
41277 echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41280 ac_cv_lib_gen_getmntent=no
41282 rm -f conftest.err conftest.$ac_objext \
41283 conftest$ac_exeext conftest.$ac_ext
41284 LIBS=$ac_check_lib_save_LIBS
41286 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
41287 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
41288 if test $ac_cv_lib_gen_getmntent = yes; then
41297 for ac_func in getmntent
41299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41300 echo "$as_me:$LINENO: checking for $ac_func" >&5
41301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41302 if eval "test \"\${$as_ac_var+set}\" = set"; then
41303 echo $ECHO_N "(cached) $ECHO_C" >&6
41305 cat >conftest.$ac_ext <<_ACEOF
41308 cat confdefs.h >>conftest.$ac_ext
41309 cat >>conftest.$ac_ext <<_ACEOF
41310 /* end confdefs.h. */
41311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41313 #define $ac_func innocuous_$ac_func
41315 /* System header to define __stub macros and hopefully few prototypes,
41316 which can conflict with char $ac_func (); below.
41317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41318 <limits.h> exists even on freestanding compilers. */
41321 # include <limits.h>
41323 # include <assert.h>
41328 /* Override any gcc2 internal prototype to avoid an error. */
41333 /* We use char because int might match the return type of a gcc2
41334 builtin and then its argument prototype would still apply. */
41336 /* The GNU C library defines this for functions which it implements
41337 to always fail with ENOSYS. Some functions are actually named
41338 something starting with __ and the normal name is an alias. */
41339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41342 char (*f) () = $ac_func;
41351 return f != $ac_func;
41356 rm -f conftest.$ac_objext conftest$ac_exeext
41357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41358 (eval $ac_link) 2>conftest.er1
41360 grep -v '^ *+' conftest.er1 >conftest.err
41362 cat conftest.err >&5
41363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364 (exit $ac_status); } &&
41365 { ac_try='test -z "$ac_c_werror_flag"
41366 || test ! -s conftest.err'
41367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 (eval $ac_try) 2>&5
41370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 (exit $ac_status); }; } &&
41372 { ac_try='test -s conftest$ac_exeext'
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; }; then
41378 eval "$as_ac_var=yes"
41380 echo "$as_me: failed program was:" >&5
41381 sed 's/^/| /' conftest.$ac_ext >&5
41383 eval "$as_ac_var=no"
41385 rm -f conftest.err conftest.$ac_objext \
41386 conftest$ac_exeext conftest.$ac_ext
41388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41390 if test `eval echo '${'$as_ac_var'}'` = yes; then
41391 cat >>confdefs.h <<_ACEOF
41392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41402 for ac_func in getopt
41404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41405 echo "$as_me:$LINENO: checking for $ac_func" >&5
41406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41407 if eval "test \"\${$as_ac_var+set}\" = set"; then
41408 echo $ECHO_N "(cached) $ECHO_C" >&6
41410 cat >conftest.$ac_ext <<_ACEOF
41413 cat confdefs.h >>conftest.$ac_ext
41414 cat >>conftest.$ac_ext <<_ACEOF
41415 /* end confdefs.h. */
41416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41418 #define $ac_func innocuous_$ac_func
41420 /* System header to define __stub macros and hopefully few prototypes,
41421 which can conflict with char $ac_func (); below.
41422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41423 <limits.h> exists even on freestanding compilers. */
41426 # include <limits.h>
41428 # include <assert.h>
41433 /* Override any gcc2 internal prototype to avoid an error. */
41438 /* We use char because int might match the return type of a gcc2
41439 builtin and then its argument prototype would still apply. */
41441 /* The GNU C library defines this for functions which it implements
41442 to always fail with ENOSYS. Some functions are actually named
41443 something starting with __ and the normal name is an alias. */
41444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41447 char (*f) () = $ac_func;
41456 return f != $ac_func;
41461 rm -f conftest.$ac_objext conftest$ac_exeext
41462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41463 (eval $ac_link) 2>conftest.er1
41465 grep -v '^ *+' conftest.er1 >conftest.err
41467 cat conftest.err >&5
41468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469 (exit $ac_status); } &&
41470 { ac_try='test -z "$ac_c_werror_flag"
41471 || test ! -s conftest.err'
41472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41473 (eval $ac_try) 2>&5
41475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41476 (exit $ac_status); }; } &&
41477 { ac_try='test -s conftest$ac_exeext'
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; }; then
41483 eval "$as_ac_var=yes"
41485 echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41488 eval "$as_ac_var=no"
41490 rm -f conftest.err conftest.$ac_objext \
41491 conftest$ac_exeext conftest.$ac_ext
41493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41495 if test `eval echo '${'$as_ac_var'}'` = yes; then
41496 cat >>confdefs.h <<_ACEOF
41497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41499 ice_have_getopt=yes
41503 if test "${ice_have_getopt}" = yes; then
41504 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
41505 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
41506 if test "${ice_cv_have_getopt_decl+set}" = set; then
41507 echo $ECHO_N "(cached) $ECHO_C" >&6
41510 ice_cv_have_getopt_decl=no
41511 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41512 ice_re_word='(^|[^a-zA-Z0-9_])'
41513 for header in stdlib.h unistd.h libc.h; do
41514 # Check for ordinary declaration
41515 cat >conftest.$ac_ext <<_ACEOF
41518 cat confdefs.h >>conftest.$ac_ext
41519 cat >>conftest.$ac_ext <<_ACEOF
41520 /* end confdefs.h. */
41524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41525 $EGREP "${ice_re_word}getopt[ ]*\(" >/dev/null 2>&1; then
41526 ice_cv_have_getopt_decl=yes
41530 if test "$ice_cv_have_getopt_decl" = yes; then
41533 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41534 cat >conftest.$ac_ext <<_ACEOF
41537 cat confdefs.h >>conftest.$ac_ext
41538 cat >>conftest.$ac_ext <<_ACEOF
41539 /* end confdefs.h. */
41543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41544 $EGREP "${ice_re_word}getopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41545 ice_cv_have_getopt_decl=yes
41549 if test "$ice_cv_have_getopt_decl" = yes; then
41556 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
41557 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
41558 if test "$ice_cv_have_getopt_decl" = yes; then
41560 cat >>confdefs.h <<_ACEOF
41561 #define HAVE_GETOPT_DECL 1
41568 ice_have_getpeername=no
41570 for ac_func in getpeername
41572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41573 echo "$as_me:$LINENO: checking for $ac_func" >&5
41574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41575 if eval "test \"\${$as_ac_var+set}\" = set"; then
41576 echo $ECHO_N "(cached) $ECHO_C" >&6
41578 cat >conftest.$ac_ext <<_ACEOF
41581 cat confdefs.h >>conftest.$ac_ext
41582 cat >>conftest.$ac_ext <<_ACEOF
41583 /* end confdefs.h. */
41584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41586 #define $ac_func innocuous_$ac_func
41588 /* System header to define __stub macros and hopefully few prototypes,
41589 which can conflict with char $ac_func (); below.
41590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41591 <limits.h> exists even on freestanding compilers. */
41594 # include <limits.h>
41596 # include <assert.h>
41601 /* Override any gcc2 internal prototype to avoid an error. */
41606 /* We use char because int might match the return type of a gcc2
41607 builtin and then its argument prototype would still apply. */
41609 /* The GNU C library defines this for functions which it implements
41610 to always fail with ENOSYS. Some functions are actually named
41611 something starting with __ and the normal name is an alias. */
41612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41615 char (*f) () = $ac_func;
41624 return f != $ac_func;
41629 rm -f conftest.$ac_objext conftest$ac_exeext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41631 (eval $ac_link) 2>conftest.er1
41633 grep -v '^ *+' conftest.er1 >conftest.err
41635 cat conftest.err >&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } &&
41638 { ac_try='test -z "$ac_c_werror_flag"
41639 || test ! -s conftest.err'
41640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641 (eval $ac_try) 2>&5
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); }; } &&
41645 { ac_try='test -s conftest$ac_exeext'
41646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647 (eval $ac_try) 2>&5
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); }; }; then
41651 eval "$as_ac_var=yes"
41653 echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41656 eval "$as_ac_var=no"
41658 rm -f conftest.err conftest.$ac_objext \
41659 conftest$ac_exeext conftest.$ac_ext
41661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41663 if test `eval echo '${'$as_ac_var'}'` = yes; then
41664 cat >>confdefs.h <<_ACEOF
41665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41667 ice_have_getpeername=yes
41671 if test "${ice_have_getpeername}" = yes; then
41672 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
41673 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41674 if test "${ice_cv_have_getpeername_decl+set}" = set; then
41675 echo $ECHO_N "(cached) $ECHO_C" >&6
41678 ice_cv_have_getpeername_decl=no
41679 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41680 ice_re_word='(^|[^a-zA-Z0-9_])'
41681 for header in sys/types.h sys/socket.h; do
41682 # Check for ordinary declaration
41683 cat >conftest.$ac_ext <<_ACEOF
41686 cat confdefs.h >>conftest.$ac_ext
41687 cat >>conftest.$ac_ext <<_ACEOF
41688 /* end confdefs.h. */
41692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41693 $EGREP "${ice_re_word}getpeername[ ]*\(" >/dev/null 2>&1; then
41694 ice_cv_have_getpeername_decl=yes
41698 if test "$ice_cv_have_getpeername_decl" = yes; then
41701 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41702 cat >conftest.$ac_ext <<_ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h. */
41711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41712 $EGREP "${ice_re_word}getpeername[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41713 ice_cv_have_getpeername_decl=yes
41717 if test "$ice_cv_have_getpeername_decl" = yes; then
41724 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
41725 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
41726 if test "$ice_cv_have_getpeername_decl" = yes; then
41728 cat >>confdefs.h <<_ACEOF
41729 #define HAVE_GETPEERNAME_DECL 1
41736 for ac_func in getpgrp
41738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41739 echo "$as_me:$LINENO: checking for $ac_func" >&5
41740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41741 if eval "test \"\${$as_ac_var+set}\" = set"; then
41742 echo $ECHO_N "(cached) $ECHO_C" >&6
41744 cat >conftest.$ac_ext <<_ACEOF
41747 cat confdefs.h >>conftest.$ac_ext
41748 cat >>conftest.$ac_ext <<_ACEOF
41749 /* end confdefs.h. */
41750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41752 #define $ac_func innocuous_$ac_func
41754 /* System header to define __stub macros and hopefully few prototypes,
41755 which can conflict with char $ac_func (); below.
41756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41757 <limits.h> exists even on freestanding compilers. */
41760 # include <limits.h>
41762 # include <assert.h>
41767 /* Override any gcc2 internal prototype to avoid an error. */
41772 /* We use char because int might match the return type of a gcc2
41773 builtin and then its argument prototype would still apply. */
41775 /* The GNU C library defines this for functions which it implements
41776 to always fail with ENOSYS. Some functions are actually named
41777 something starting with __ and the normal name is an alias. */
41778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41781 char (*f) () = $ac_func;
41790 return f != $ac_func;
41795 rm -f conftest.$ac_objext conftest$ac_exeext
41796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41797 (eval $ac_link) 2>conftest.er1
41799 grep -v '^ *+' conftest.er1 >conftest.err
41801 cat conftest.err >&5
41802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803 (exit $ac_status); } &&
41804 { ac_try='test -z "$ac_c_werror_flag"
41805 || test ! -s conftest.err'
41806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41807 (eval $ac_try) 2>&5
41809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41810 (exit $ac_status); }; } &&
41811 { ac_try='test -s conftest$ac_exeext'
41812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41813 (eval $ac_try) 2>&5
41815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816 (exit $ac_status); }; }; then
41817 eval "$as_ac_var=yes"
41819 echo "$as_me: failed program was:" >&5
41820 sed 's/^/| /' conftest.$ac_ext >&5
41822 eval "$as_ac_var=no"
41824 rm -f conftest.err conftest.$ac_objext \
41825 conftest$ac_exeext conftest.$ac_ext
41827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41829 if test `eval echo '${'$as_ac_var'}'` = yes; then
41830 cat >>confdefs.h <<_ACEOF
41831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41837 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
41838 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
41839 if test "${ac_cv_func_getpgrp_void+set}" = set; then
41840 echo $ECHO_N "(cached) $ECHO_C" >&6
41842 # Use it with a single arg.
41843 cat >conftest.$ac_ext <<_ACEOF
41846 cat confdefs.h >>conftest.$ac_ext
41847 cat >>conftest.$ac_ext <<_ACEOF
41848 /* end confdefs.h. */
41849 $ac_includes_default
41858 rm -f conftest.$ac_objext
41859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41860 (eval $ac_compile) 2>conftest.er1
41862 grep -v '^ *+' conftest.er1 >conftest.err
41864 cat conftest.err >&5
41865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866 (exit $ac_status); } &&
41867 { ac_try='test -z "$ac_c_werror_flag"
41868 || test ! -s conftest.err'
41869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41870 (eval $ac_try) 2>&5
41872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41873 (exit $ac_status); }; } &&
41874 { ac_try='test -s conftest.$ac_objext'
41875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41876 (eval $ac_try) 2>&5
41878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41879 (exit $ac_status); }; }; then
41880 ac_cv_func_getpgrp_void=no
41882 echo "$as_me: failed program was:" >&5
41883 sed 's/^/| /' conftest.$ac_ext >&5
41885 ac_cv_func_getpgrp_void=yes
41887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41890 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
41891 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
41892 if test $ac_cv_func_getpgrp_void = yes; then
41894 cat >>confdefs.h <<\_ACEOF
41895 #define GETPGRP_VOID 1
41901 ice_have_getsockname=no
41903 for ac_func in getsockname
41905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41906 echo "$as_me:$LINENO: checking for $ac_func" >&5
41907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41908 if eval "test \"\${$as_ac_var+set}\" = set"; then
41909 echo $ECHO_N "(cached) $ECHO_C" >&6
41911 cat >conftest.$ac_ext <<_ACEOF
41914 cat confdefs.h >>conftest.$ac_ext
41915 cat >>conftest.$ac_ext <<_ACEOF
41916 /* end confdefs.h. */
41917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41919 #define $ac_func innocuous_$ac_func
41921 /* System header to define __stub macros and hopefully few prototypes,
41922 which can conflict with char $ac_func (); below.
41923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41924 <limits.h> exists even on freestanding compilers. */
41927 # include <limits.h>
41929 # include <assert.h>
41934 /* Override any gcc2 internal prototype to avoid an error. */
41939 /* We use char because int might match the return type of a gcc2
41940 builtin and then its argument prototype would still apply. */
41942 /* The GNU C library defines this for functions which it implements
41943 to always fail with ENOSYS. Some functions are actually named
41944 something starting with __ and the normal name is an alias. */
41945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41948 char (*f) () = $ac_func;
41957 return f != $ac_func;
41962 rm -f conftest.$ac_objext conftest$ac_exeext
41963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41964 (eval $ac_link) 2>conftest.er1
41966 grep -v '^ *+' conftest.er1 >conftest.err
41968 cat conftest.err >&5
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); } &&
41971 { ac_try='test -z "$ac_c_werror_flag"
41972 || test ! -s conftest.err'
41973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41974 (eval $ac_try) 2>&5
41976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977 (exit $ac_status); }; } &&
41978 { ac_try='test -s conftest$ac_exeext'
41979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41980 (eval $ac_try) 2>&5
41982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983 (exit $ac_status); }; }; then
41984 eval "$as_ac_var=yes"
41986 echo "$as_me: failed program was:" >&5
41987 sed 's/^/| /' conftest.$ac_ext >&5
41989 eval "$as_ac_var=no"
41991 rm -f conftest.err conftest.$ac_objext \
41992 conftest$ac_exeext conftest.$ac_ext
41994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41996 if test `eval echo '${'$as_ac_var'}'` = yes; then
41997 cat >>confdefs.h <<_ACEOF
41998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42000 ice_have_getsockname=yes
42004 if test "${ice_have_getsockname}" = yes; then
42005 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
42006 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42007 if test "${ice_cv_have_getsockname_decl+set}" = set; then
42008 echo $ECHO_N "(cached) $ECHO_C" >&6
42011 ice_cv_have_getsockname_decl=no
42012 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42013 ice_re_word='(^|[^a-zA-Z0-9_])'
42014 for header in sys/types.h sys/socket.h; do
42015 # Check for ordinary declaration
42016 cat >conftest.$ac_ext <<_ACEOF
42019 cat confdefs.h >>conftest.$ac_ext
42020 cat >>conftest.$ac_ext <<_ACEOF
42021 /* end confdefs.h. */
42025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42026 $EGREP "${ice_re_word}getsockname[ ]*\(" >/dev/null 2>&1; then
42027 ice_cv_have_getsockname_decl=yes
42031 if test "$ice_cv_have_getsockname_decl" = yes; then
42034 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42035 cat >conftest.$ac_ext <<_ACEOF
42038 cat confdefs.h >>conftest.$ac_ext
42039 cat >>conftest.$ac_ext <<_ACEOF
42040 /* end confdefs.h. */
42044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42045 $EGREP "${ice_re_word}getsockname[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42046 ice_cv_have_getsockname_decl=yes
42050 if test "$ice_cv_have_getsockname_decl" = yes; then
42057 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
42058 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
42059 if test "$ice_cv_have_getsockname_decl" = yes; then
42061 cat >>confdefs.h <<_ACEOF
42062 #define HAVE_GETSOCKNAME_DECL 1
42069 ice_have_getsockopt=no
42071 for ac_func in getsockopt
42073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42074 echo "$as_me:$LINENO: checking for $ac_func" >&5
42075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42076 if eval "test \"\${$as_ac_var+set}\" = set"; then
42077 echo $ECHO_N "(cached) $ECHO_C" >&6
42079 cat >conftest.$ac_ext <<_ACEOF
42082 cat confdefs.h >>conftest.$ac_ext
42083 cat >>conftest.$ac_ext <<_ACEOF
42084 /* end confdefs.h. */
42085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42087 #define $ac_func innocuous_$ac_func
42089 /* System header to define __stub macros and hopefully few prototypes,
42090 which can conflict with char $ac_func (); below.
42091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42092 <limits.h> exists even on freestanding compilers. */
42095 # include <limits.h>
42097 # include <assert.h>
42102 /* Override any gcc2 internal prototype to avoid an error. */
42107 /* We use char because int might match the return type of a gcc2
42108 builtin and then its argument prototype would still apply. */
42110 /* The GNU C library defines this for functions which it implements
42111 to always fail with ENOSYS. Some functions are actually named
42112 something starting with __ and the normal name is an alias. */
42113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42116 char (*f) () = $ac_func;
42125 return f != $ac_func;
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42132 (eval $ac_link) 2>conftest.er1
42134 grep -v '^ *+' conftest.er1 >conftest.err
42136 cat conftest.err >&5
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); } &&
42139 { ac_try='test -z "$ac_c_werror_flag"
42140 || test ! -s conftest.err'
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; } &&
42146 { ac_try='test -s conftest$ac_exeext'
42147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148 (eval $ac_try) 2>&5
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); }; }; then
42152 eval "$as_ac_var=yes"
42154 echo "$as_me: failed program was:" >&5
42155 sed 's/^/| /' conftest.$ac_ext >&5
42157 eval "$as_ac_var=no"
42159 rm -f conftest.err conftest.$ac_objext \
42160 conftest$ac_exeext conftest.$ac_ext
42162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42164 if test `eval echo '${'$as_ac_var'}'` = yes; then
42165 cat >>confdefs.h <<_ACEOF
42166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42168 ice_have_getsockopt=yes
42172 if test "${ice_have_getsockopt}" = yes; then
42173 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
42174 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42175 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
42176 echo $ECHO_N "(cached) $ECHO_C" >&6
42179 ice_cv_have_getsockopt_decl=no
42180 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42181 ice_re_word='(^|[^a-zA-Z0-9_])'
42182 for header in sys/types.h sys/socket.h; do
42183 # Check for ordinary declaration
42184 cat >conftest.$ac_ext <<_ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h. */
42193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42194 $EGREP "${ice_re_word}getsockopt[ ]*\(" >/dev/null 2>&1; then
42195 ice_cv_have_getsockopt_decl=yes
42199 if test "$ice_cv_have_getsockopt_decl" = yes; then
42202 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42203 cat >conftest.$ac_ext <<_ACEOF
42206 cat confdefs.h >>conftest.$ac_ext
42207 cat >>conftest.$ac_ext <<_ACEOF
42208 /* end confdefs.h. */
42212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42213 $EGREP "${ice_re_word}getsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42214 ice_cv_have_getsockopt_decl=yes
42218 if test "$ice_cv_have_getsockopt_decl" = yes; then
42225 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
42226 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
42227 if test "$ice_cv_have_getsockopt_decl" = yes; then
42229 cat >>confdefs.h <<_ACEOF
42230 #define HAVE_GETSOCKOPT_DECL 1
42237 ice_have_gettimeofday=no
42239 for ac_func in gettimeofday
42241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42242 echo "$as_me:$LINENO: checking for $ac_func" >&5
42243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42244 if eval "test \"\${$as_ac_var+set}\" = set"; then
42245 echo $ECHO_N "(cached) $ECHO_C" >&6
42247 cat >conftest.$ac_ext <<_ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h. */
42253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42255 #define $ac_func innocuous_$ac_func
42257 /* System header to define __stub macros and hopefully few prototypes,
42258 which can conflict with char $ac_func (); below.
42259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42260 <limits.h> exists even on freestanding compilers. */
42263 # include <limits.h>
42265 # include <assert.h>
42270 /* Override any gcc2 internal prototype to avoid an error. */
42275 /* We use char because int might match the return type of a gcc2
42276 builtin and then its argument prototype would still apply. */
42278 /* The GNU C library defines this for functions which it implements
42279 to always fail with ENOSYS. Some functions are actually named
42280 something starting with __ and the normal name is an alias. */
42281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42284 char (*f) () = $ac_func;
42293 return f != $ac_func;
42298 rm -f conftest.$ac_objext conftest$ac_exeext
42299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42300 (eval $ac_link) 2>conftest.er1
42302 grep -v '^ *+' conftest.er1 >conftest.err
42304 cat conftest.err >&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306 (exit $ac_status); } &&
42307 { ac_try='test -z "$ac_c_werror_flag"
42308 || test ! -s conftest.err'
42309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42310 (eval $ac_try) 2>&5
42312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313 (exit $ac_status); }; } &&
42314 { ac_try='test -s conftest$ac_exeext'
42315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42316 (eval $ac_try) 2>&5
42318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42319 (exit $ac_status); }; }; then
42320 eval "$as_ac_var=yes"
42322 echo "$as_me: failed program was:" >&5
42323 sed 's/^/| /' conftest.$ac_ext >&5
42325 eval "$as_ac_var=no"
42327 rm -f conftest.err conftest.$ac_objext \
42328 conftest$ac_exeext conftest.$ac_ext
42330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42332 if test `eval echo '${'$as_ac_var'}'` = yes; then
42333 cat >>confdefs.h <<_ACEOF
42334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42336 ice_have_gettimeofday=yes
42340 if test "${ice_have_gettimeofday}" = yes; then
42341 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
42342 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
42343 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
42344 echo $ECHO_N "(cached) $ECHO_C" >&6
42347 ice_cv_have_gettimeofday_decl=no
42348 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42349 ice_re_word='(^|[^a-zA-Z0-9_])'
42350 for header in time.h sys/time.h; do
42351 # Check for ordinary declaration
42352 cat >conftest.$ac_ext <<_ACEOF
42355 cat confdefs.h >>conftest.$ac_ext
42356 cat >>conftest.$ac_ext <<_ACEOF
42357 /* end confdefs.h. */
42361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42362 $EGREP "${ice_re_word}gettimeofday[ ]*\(" >/dev/null 2>&1; then
42363 ice_cv_have_gettimeofday_decl=yes
42367 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42370 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42371 cat >conftest.$ac_ext <<_ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h. */
42380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42381 $EGREP "${ice_re_word}gettimeofday[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42382 ice_cv_have_gettimeofday_decl=yes
42386 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42393 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
42394 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
42395 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42397 cat >>confdefs.h <<_ACEOF
42398 #define HAVE_GETTIMEOFDAY_DECL 1
42406 echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
42407 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
42408 if test "${amanda_cv_gettimeofday_args+set}" = set; then
42409 echo $ECHO_N "(cached) $ECHO_C" >&6
42412 cat >conftest.$ac_ext <<_ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h. */
42419 #ifdef TIME_WITH_SYS_TIME
42420 # include <sys/time.h>
42423 # ifdef HAVE_SYS_TIME_H
42424 # include <sys/time.h>
42434 struct timeval val;
42435 struct timezone zone;
42436 gettimeofday(&val, &zone);
42442 rm -f conftest.$ac_objext
42443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42444 (eval $ac_compile) 2>conftest.er1
42446 grep -v '^ *+' conftest.er1 >conftest.err
42448 cat conftest.err >&5
42449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42450 (exit $ac_status); } &&
42451 { ac_try='test -z "$ac_c_werror_flag"
42452 || test ! -s conftest.err'
42453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42454 (eval $ac_try) 2>&5
42456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42457 (exit $ac_status); }; } &&
42458 { ac_try='test -s conftest.$ac_objext'
42459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42460 (eval $ac_try) 2>&5
42462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463 (exit $ac_status); }; }; then
42464 amanda_cv_gettimeofday_args=2
42466 echo "$as_me: failed program was:" >&5
42467 sed 's/^/| /' conftest.$ac_ext >&5
42469 amanda_cv_gettimeofday_args=1
42472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42476 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
42477 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
42478 if test "$amanda_cv_gettimeofday_args" = 2; then
42480 cat >>confdefs.h <<\_ACEOF
42481 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
42490 for ac_func in getvfsent initgroups isascii
42492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42493 echo "$as_me:$LINENO: checking for $ac_func" >&5
42494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42495 if eval "test \"\${$as_ac_var+set}\" = set"; then
42496 echo $ECHO_N "(cached) $ECHO_C" >&6
42498 cat >conftest.$ac_ext <<_ACEOF
42501 cat confdefs.h >>conftest.$ac_ext
42502 cat >>conftest.$ac_ext <<_ACEOF
42503 /* end confdefs.h. */
42504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42506 #define $ac_func innocuous_$ac_func
42508 /* System header to define __stub macros and hopefully few prototypes,
42509 which can conflict with char $ac_func (); below.
42510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42511 <limits.h> exists even on freestanding compilers. */
42514 # include <limits.h>
42516 # include <assert.h>
42521 /* Override any gcc2 internal prototype to avoid an error. */
42526 /* We use char because int might match the return type of a gcc2
42527 builtin and then its argument prototype would still apply. */
42529 /* The GNU C library defines this for functions which it implements
42530 to always fail with ENOSYS. Some functions are actually named
42531 something starting with __ and the normal name is an alias. */
42532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42535 char (*f) () = $ac_func;
42544 return f != $ac_func;
42549 rm -f conftest.$ac_objext conftest$ac_exeext
42550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42551 (eval $ac_link) 2>conftest.er1
42553 grep -v '^ *+' conftest.er1 >conftest.err
42555 cat conftest.err >&5
42556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557 (exit $ac_status); } &&
42558 { ac_try='test -z "$ac_c_werror_flag"
42559 || test ! -s conftest.err'
42560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42561 (eval $ac_try) 2>&5
42563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42564 (exit $ac_status); }; } &&
42565 { ac_try='test -s conftest$ac_exeext'
42566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567 (eval $ac_try) 2>&5
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; }; then
42571 eval "$as_ac_var=yes"
42573 echo "$as_me: failed program was:" >&5
42574 sed 's/^/| /' conftest.$ac_ext >&5
42576 eval "$as_ac_var=no"
42578 rm -f conftest.err conftest.$ac_objext \
42579 conftest$ac_exeext conftest.$ac_ext
42581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42583 if test `eval echo '${'$as_ac_var'}'` = yes; then
42584 cat >>confdefs.h <<_ACEOF
42585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42592 ice_have_initgroups=no
42594 for ac_func in initgroups
42596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42597 echo "$as_me:$LINENO: checking for $ac_func" >&5
42598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42599 if eval "test \"\${$as_ac_var+set}\" = set"; then
42600 echo $ECHO_N "(cached) $ECHO_C" >&6
42602 cat >conftest.$ac_ext <<_ACEOF
42605 cat confdefs.h >>conftest.$ac_ext
42606 cat >>conftest.$ac_ext <<_ACEOF
42607 /* end confdefs.h. */
42608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42610 #define $ac_func innocuous_$ac_func
42612 /* System header to define __stub macros and hopefully few prototypes,
42613 which can conflict with char $ac_func (); below.
42614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42615 <limits.h> exists even on freestanding compilers. */
42618 # include <limits.h>
42620 # include <assert.h>
42625 /* Override any gcc2 internal prototype to avoid an error. */
42630 /* We use char because int might match the return type of a gcc2
42631 builtin and then its argument prototype would still apply. */
42633 /* The GNU C library defines this for functions which it implements
42634 to always fail with ENOSYS. Some functions are actually named
42635 something starting with __ and the normal name is an alias. */
42636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42639 char (*f) () = $ac_func;
42648 return f != $ac_func;
42653 rm -f conftest.$ac_objext conftest$ac_exeext
42654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42655 (eval $ac_link) 2>conftest.er1
42657 grep -v '^ *+' conftest.er1 >conftest.err
42659 cat conftest.err >&5
42660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661 (exit $ac_status); } &&
42662 { ac_try='test -z "$ac_c_werror_flag"
42663 || test ! -s conftest.err'
42664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42665 (eval $ac_try) 2>&5
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); }; } &&
42669 { ac_try='test -s conftest$ac_exeext'
42670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42671 (eval $ac_try) 2>&5
42673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42674 (exit $ac_status); }; }; then
42675 eval "$as_ac_var=yes"
42677 echo "$as_me: failed program was:" >&5
42678 sed 's/^/| /' conftest.$ac_ext >&5
42680 eval "$as_ac_var=no"
42682 rm -f conftest.err conftest.$ac_objext \
42683 conftest$ac_exeext conftest.$ac_ext
42685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42687 if test `eval echo '${'$as_ac_var'}'` = yes; then
42688 cat >>confdefs.h <<_ACEOF
42689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42691 ice_have_initgroups=yes
42695 if test "${ice_have_initgroups}" = yes; then
42696 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
42697 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
42698 if test "${ice_cv_have_initgroups_decl+set}" = set; then
42699 echo $ECHO_N "(cached) $ECHO_C" >&6
42702 ice_cv_have_initgroups_decl=no
42703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42704 ice_re_word='(^|[^a-zA-Z0-9_])'
42705 for header in grp.h sys/types.h unistd.h libc.h; do
42706 # Check for ordinary declaration
42707 cat >conftest.$ac_ext <<_ACEOF
42710 cat confdefs.h >>conftest.$ac_ext
42711 cat >>conftest.$ac_ext <<_ACEOF
42712 /* end confdefs.h. */
42716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42717 $EGREP "${ice_re_word}initgroups[ ]*\(" >/dev/null 2>&1; then
42718 ice_cv_have_initgroups_decl=yes
42722 if test "$ice_cv_have_initgroups_decl" = yes; then
42725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42726 cat >conftest.$ac_ext <<_ACEOF
42729 cat confdefs.h >>conftest.$ac_ext
42730 cat >>conftest.$ac_ext <<_ACEOF
42731 /* end confdefs.h. */
42735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42736 $EGREP "${ice_re_word}initgroups[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42737 ice_cv_have_initgroups_decl=yes
42741 if test "$ice_cv_have_initgroups_decl" = yes; then
42748 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
42749 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
42750 if test "$ice_cv_have_initgroups_decl" = yes; then
42752 cat >>confdefs.h <<_ACEOF
42753 #define HAVE_INITGROUPS_DECL 1
42762 for ac_func in ioctl
42764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42765 echo "$as_me:$LINENO: checking for $ac_func" >&5
42766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42767 if eval "test \"\${$as_ac_var+set}\" = set"; then
42768 echo $ECHO_N "(cached) $ECHO_C" >&6
42770 cat >conftest.$ac_ext <<_ACEOF
42773 cat confdefs.h >>conftest.$ac_ext
42774 cat >>conftest.$ac_ext <<_ACEOF
42775 /* end confdefs.h. */
42776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42778 #define $ac_func innocuous_$ac_func
42780 /* System header to define __stub macros and hopefully few prototypes,
42781 which can conflict with char $ac_func (); below.
42782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42783 <limits.h> exists even on freestanding compilers. */
42786 # include <limits.h>
42788 # include <assert.h>
42793 /* Override any gcc2 internal prototype to avoid an error. */
42798 /* We use char because int might match the return type of a gcc2
42799 builtin and then its argument prototype would still apply. */
42801 /* The GNU C library defines this for functions which it implements
42802 to always fail with ENOSYS. Some functions are actually named
42803 something starting with __ and the normal name is an alias. */
42804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42807 char (*f) () = $ac_func;
42816 return f != $ac_func;
42821 rm -f conftest.$ac_objext conftest$ac_exeext
42822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42823 (eval $ac_link) 2>conftest.er1
42825 grep -v '^ *+' conftest.er1 >conftest.err
42827 cat conftest.err >&5
42828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829 (exit $ac_status); } &&
42830 { ac_try='test -z "$ac_c_werror_flag"
42831 || test ! -s conftest.err'
42832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833 (eval $ac_try) 2>&5
42835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836 (exit $ac_status); }; } &&
42837 { ac_try='test -s conftest$ac_exeext'
42838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42839 (eval $ac_try) 2>&5
42841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42842 (exit $ac_status); }; }; then
42843 eval "$as_ac_var=yes"
42845 echo "$as_me: failed program was:" >&5
42846 sed 's/^/| /' conftest.$ac_ext >&5
42848 eval "$as_ac_var=no"
42850 rm -f conftest.err conftest.$ac_objext \
42851 conftest$ac_exeext conftest.$ac_ext
42853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42855 if test `eval echo '${'$as_ac_var'}'` = yes; then
42856 cat >>confdefs.h <<_ACEOF
42857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42863 if test "${ice_have_ioctl}" = yes; then
42864 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
42865 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
42866 if test "${ice_cv_have_ioctl_decl+set}" = set; then
42867 echo $ECHO_N "(cached) $ECHO_C" >&6
42870 ice_cv_have_ioctl_decl=no
42871 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42872 ice_re_word='(^|[^a-zA-Z0-9_])'
42873 for header in sys/ioctl.h unistd.h libc.h; do
42874 # Check for ordinary declaration
42875 cat >conftest.$ac_ext <<_ACEOF
42878 cat confdefs.h >>conftest.$ac_ext
42879 cat >>conftest.$ac_ext <<_ACEOF
42880 /* end confdefs.h. */
42884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42885 $EGREP "${ice_re_word}ioctl[ ]*\(" >/dev/null 2>&1; then
42886 ice_cv_have_ioctl_decl=yes
42890 if test "$ice_cv_have_ioctl_decl" = yes; then
42893 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42894 cat >conftest.$ac_ext <<_ACEOF
42897 cat confdefs.h >>conftest.$ac_ext
42898 cat >>conftest.$ac_ext <<_ACEOF
42899 /* end confdefs.h. */
42903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42904 $EGREP "${ice_re_word}ioctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42905 ice_cv_have_ioctl_decl=yes
42909 if test "$ice_cv_have_ioctl_decl" = yes; then
42916 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
42917 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
42918 if test "$ice_cv_have_ioctl_decl" = yes; then
42920 cat >>confdefs.h <<_ACEOF
42921 #define HAVE_IOCTL_DECL 1
42928 ice_have_isnormal=no
42930 for ac_func in isnormal
42932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42933 echo "$as_me:$LINENO: checking for $ac_func" >&5
42934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42935 if eval "test \"\${$as_ac_var+set}\" = set"; then
42936 echo $ECHO_N "(cached) $ECHO_C" >&6
42938 cat >conftest.$ac_ext <<_ACEOF
42941 cat confdefs.h >>conftest.$ac_ext
42942 cat >>conftest.$ac_ext <<_ACEOF
42943 /* end confdefs.h. */
42944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42946 #define $ac_func innocuous_$ac_func
42948 /* System header to define __stub macros and hopefully few prototypes,
42949 which can conflict with char $ac_func (); below.
42950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42951 <limits.h> exists even on freestanding compilers. */
42954 # include <limits.h>
42956 # include <assert.h>
42961 /* Override any gcc2 internal prototype to avoid an error. */
42966 /* We use char because int might match the return type of a gcc2
42967 builtin and then its argument prototype would still apply. */
42969 /* The GNU C library defines this for functions which it implements
42970 to always fail with ENOSYS. Some functions are actually named
42971 something starting with __ and the normal name is an alias. */
42972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42975 char (*f) () = $ac_func;
42984 return f != $ac_func;
42989 rm -f conftest.$ac_objext conftest$ac_exeext
42990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42991 (eval $ac_link) 2>conftest.er1
42993 grep -v '^ *+' conftest.er1 >conftest.err
42995 cat conftest.err >&5
42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997 (exit $ac_status); } &&
42998 { ac_try='test -z "$ac_c_werror_flag"
42999 || test ! -s conftest.err'
43000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001 (eval $ac_try) 2>&5
43003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004 (exit $ac_status); }; } &&
43005 { ac_try='test -s conftest$ac_exeext'
43006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43007 (eval $ac_try) 2>&5
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); }; }; then
43011 eval "$as_ac_var=yes"
43013 echo "$as_me: failed program was:" >&5
43014 sed 's/^/| /' conftest.$ac_ext >&5
43016 eval "$as_ac_var=no"
43018 rm -f conftest.err conftest.$ac_objext \
43019 conftest$ac_exeext conftest.$ac_ext
43021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43023 if test `eval echo '${'$as_ac_var'}'` = yes; then
43024 cat >>confdefs.h <<_ACEOF
43025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43027 ice_have_isnormal=yes
43031 if test "${ice_have_isnormal}" = yes; then
43032 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
43033 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
43034 if test "${ice_cv_have_isnormal_decl+set}" = set; then
43035 echo $ECHO_N "(cached) $ECHO_C" >&6
43038 ice_cv_have_isnormal_decl=no
43039 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43040 ice_re_word='(^|[^a-zA-Z0-9_])'
43041 for header in math.h; do
43042 # Check for ordinary declaration
43043 cat >conftest.$ac_ext <<_ACEOF
43046 cat confdefs.h >>conftest.$ac_ext
43047 cat >>conftest.$ac_ext <<_ACEOF
43048 /* end confdefs.h. */
43052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43053 $EGREP "${ice_re_word}isnormal[ ]*\(" >/dev/null 2>&1; then
43054 ice_cv_have_isnormal_decl=yes
43058 if test "$ice_cv_have_isnormal_decl" = yes; then
43061 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43062 cat >conftest.$ac_ext <<_ACEOF
43065 cat confdefs.h >>conftest.$ac_ext
43066 cat >>conftest.$ac_ext <<_ACEOF
43067 /* end confdefs.h. */
43071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43072 $EGREP "${ice_re_word}isnormal[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43073 ice_cv_have_isnormal_decl=yes
43077 if test "$ice_cv_have_isnormal_decl" = yes; then
43084 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
43085 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
43086 if test "$ice_cv_have_isnormal_decl" = yes; then
43088 cat >>confdefs.h <<_ACEOF
43089 #define HAVE_ISNORMAL_DECL 1
43098 for ac_func in listen
43100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43101 echo "$as_me:$LINENO: checking for $ac_func" >&5
43102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43103 if eval "test \"\${$as_ac_var+set}\" = set"; then
43104 echo $ECHO_N "(cached) $ECHO_C" >&6
43106 cat >conftest.$ac_ext <<_ACEOF
43109 cat confdefs.h >>conftest.$ac_ext
43110 cat >>conftest.$ac_ext <<_ACEOF
43111 /* end confdefs.h. */
43112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43114 #define $ac_func innocuous_$ac_func
43116 /* System header to define __stub macros and hopefully few prototypes,
43117 which can conflict with char $ac_func (); below.
43118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43119 <limits.h> exists even on freestanding compilers. */
43122 # include <limits.h>
43124 # include <assert.h>
43129 /* Override any gcc2 internal prototype to avoid an error. */
43134 /* We use char because int might match the return type of a gcc2
43135 builtin and then its argument prototype would still apply. */
43137 /* The GNU C library defines this for functions which it implements
43138 to always fail with ENOSYS. Some functions are actually named
43139 something starting with __ and the normal name is an alias. */
43140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43143 char (*f) () = $ac_func;
43152 return f != $ac_func;
43157 rm -f conftest.$ac_objext conftest$ac_exeext
43158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43159 (eval $ac_link) 2>conftest.er1
43161 grep -v '^ *+' conftest.er1 >conftest.err
43163 cat conftest.err >&5
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); } &&
43166 { ac_try='test -z "$ac_c_werror_flag"
43167 || test ! -s conftest.err'
43168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43169 (eval $ac_try) 2>&5
43171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172 (exit $ac_status); }; } &&
43173 { ac_try='test -s conftest$ac_exeext'
43174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175 (eval $ac_try) 2>&5
43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178 (exit $ac_status); }; }; then
43179 eval "$as_ac_var=yes"
43181 echo "$as_me: failed program was:" >&5
43182 sed 's/^/| /' conftest.$ac_ext >&5
43184 eval "$as_ac_var=no"
43186 rm -f conftest.err conftest.$ac_objext \
43187 conftest$ac_exeext conftest.$ac_ext
43189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43191 if test `eval echo '${'$as_ac_var'}'` = yes; then
43192 cat >>confdefs.h <<_ACEOF
43193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43195 ice_have_listen=yes
43199 if test "${ice_have_listen}" = yes; then
43200 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
43201 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43202 if test "${ice_cv_have_listen_decl+set}" = set; then
43203 echo $ECHO_N "(cached) $ECHO_C" >&6
43206 ice_cv_have_listen_decl=no
43207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43208 ice_re_word='(^|[^a-zA-Z0-9_])'
43209 for header in sys/types.h sys/socket.h; do
43210 # Check for ordinary declaration
43211 cat >conftest.$ac_ext <<_ACEOF
43214 cat confdefs.h >>conftest.$ac_ext
43215 cat >>conftest.$ac_ext <<_ACEOF
43216 /* end confdefs.h. */
43220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43221 $EGREP "${ice_re_word}listen[ ]*\(" >/dev/null 2>&1; then
43222 ice_cv_have_listen_decl=yes
43226 if test "$ice_cv_have_listen_decl" = yes; then
43229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43230 cat >conftest.$ac_ext <<_ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h. */
43239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43240 $EGREP "${ice_re_word}listen[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43241 ice_cv_have_listen_decl=yes
43245 if test "$ice_cv_have_listen_decl" = yes; then
43252 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
43253 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
43254 if test "$ice_cv_have_listen_decl" = yes; then
43256 cat >>confdefs.h <<_ACEOF
43257 #define HAVE_LISTEN_DECL 1
43266 for ac_func in lstat
43268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43269 echo "$as_me:$LINENO: checking for $ac_func" >&5
43270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43271 if eval "test \"\${$as_ac_var+set}\" = set"; then
43272 echo $ECHO_N "(cached) $ECHO_C" >&6
43274 cat >conftest.$ac_ext <<_ACEOF
43277 cat confdefs.h >>conftest.$ac_ext
43278 cat >>conftest.$ac_ext <<_ACEOF
43279 /* end confdefs.h. */
43280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43282 #define $ac_func innocuous_$ac_func
43284 /* System header to define __stub macros and hopefully few prototypes,
43285 which can conflict with char $ac_func (); below.
43286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43287 <limits.h> exists even on freestanding compilers. */
43290 # include <limits.h>
43292 # include <assert.h>
43297 /* Override any gcc2 internal prototype to avoid an error. */
43302 /* We use char because int might match the return type of a gcc2
43303 builtin and then its argument prototype would still apply. */
43305 /* The GNU C library defines this for functions which it implements
43306 to always fail with ENOSYS. Some functions are actually named
43307 something starting with __ and the normal name is an alias. */
43308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43311 char (*f) () = $ac_func;
43320 return f != $ac_func;
43325 rm -f conftest.$ac_objext conftest$ac_exeext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43327 (eval $ac_link) 2>conftest.er1
43329 grep -v '^ *+' conftest.er1 >conftest.err
43331 cat conftest.err >&5
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
43334 { ac_try='test -z "$ac_c_werror_flag"
43335 || test ! -s conftest.err'
43336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337 (eval $ac_try) 2>&5
43339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340 (exit $ac_status); }; } &&
43341 { ac_try='test -s conftest$ac_exeext'
43342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343 (eval $ac_try) 2>&5
43345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346 (exit $ac_status); }; }; then
43347 eval "$as_ac_var=yes"
43349 echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43352 eval "$as_ac_var=no"
43354 rm -f conftest.err conftest.$ac_objext \
43355 conftest$ac_exeext conftest.$ac_ext
43357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43359 if test `eval echo '${'$as_ac_var'}'` = yes; then
43360 cat >>confdefs.h <<_ACEOF
43361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43367 if test "${ice_have_lstat}" = yes; then
43368 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
43369 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
43370 if test "${ice_cv_have_lstat_decl+set}" = set; then
43371 echo $ECHO_N "(cached) $ECHO_C" >&6
43374 ice_cv_have_lstat_decl=no
43375 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43376 ice_re_word='(^|[^a-zA-Z0-9_])'
43377 for header in sys/types.h sys/stat.h; do
43378 # Check for ordinary declaration
43379 cat >conftest.$ac_ext <<_ACEOF
43382 cat confdefs.h >>conftest.$ac_ext
43383 cat >>conftest.$ac_ext <<_ACEOF
43384 /* end confdefs.h. */
43388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43389 $EGREP "${ice_re_word}lstat[ ]*\(" >/dev/null 2>&1; then
43390 ice_cv_have_lstat_decl=yes
43394 if test "$ice_cv_have_lstat_decl" = yes; then
43397 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43398 cat >conftest.$ac_ext <<_ACEOF
43401 cat confdefs.h >>conftest.$ac_ext
43402 cat >>conftest.$ac_ext <<_ACEOF
43403 /* end confdefs.h. */
43407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43408 $EGREP "${ice_re_word}lstat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43409 ice_cv_have_lstat_decl=yes
43413 if test "$ice_cv_have_lstat_decl" = yes; then
43420 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
43421 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
43422 if test "$ice_cv_have_lstat_decl" = yes; then
43424 cat >>confdefs.h <<_ACEOF
43425 #define HAVE_LSTAT_DECL 1
43434 for ac_func in malloc
43436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43437 echo "$as_me:$LINENO: checking for $ac_func" >&5
43438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43439 if eval "test \"\${$as_ac_var+set}\" = set"; then
43440 echo $ECHO_N "(cached) $ECHO_C" >&6
43442 cat >conftest.$ac_ext <<_ACEOF
43445 cat confdefs.h >>conftest.$ac_ext
43446 cat >>conftest.$ac_ext <<_ACEOF
43447 /* end confdefs.h. */
43448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43450 #define $ac_func innocuous_$ac_func
43452 /* System header to define __stub macros and hopefully few prototypes,
43453 which can conflict with char $ac_func (); below.
43454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43455 <limits.h> exists even on freestanding compilers. */
43458 # include <limits.h>
43460 # include <assert.h>
43465 /* Override any gcc2 internal prototype to avoid an error. */
43470 /* We use char because int might match the return type of a gcc2
43471 builtin and then its argument prototype would still apply. */
43473 /* The GNU C library defines this for functions which it implements
43474 to always fail with ENOSYS. Some functions are actually named
43475 something starting with __ and the normal name is an alias. */
43476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43479 char (*f) () = $ac_func;
43488 return f != $ac_func;
43493 rm -f conftest.$ac_objext conftest$ac_exeext
43494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43495 (eval $ac_link) 2>conftest.er1
43497 grep -v '^ *+' conftest.er1 >conftest.err
43499 cat conftest.err >&5
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); } &&
43502 { ac_try='test -z "$ac_c_werror_flag"
43503 || test ! -s conftest.err'
43504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43505 (eval $ac_try) 2>&5
43507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508 (exit $ac_status); }; } &&
43509 { ac_try='test -s conftest$ac_exeext'
43510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43511 (eval $ac_try) 2>&5
43513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43514 (exit $ac_status); }; }; then
43515 eval "$as_ac_var=yes"
43517 echo "$as_me: failed program was:" >&5
43518 sed 's/^/| /' conftest.$ac_ext >&5
43520 eval "$as_ac_var=no"
43522 rm -f conftest.err conftest.$ac_objext \
43523 conftest$ac_exeext conftest.$ac_ext
43525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43527 if test `eval echo '${'$as_ac_var'}'` = yes; then
43528 cat >>confdefs.h <<_ACEOF
43529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43531 ice_have_malloc=yes
43535 if test "${ice_have_malloc}" = yes; then
43536 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
43537 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
43538 if test "${ice_cv_have_malloc_decl+set}" = set; then
43539 echo $ECHO_N "(cached) $ECHO_C" >&6
43542 ice_cv_have_malloc_decl=no
43543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43544 ice_re_word='(^|[^a-zA-Z0-9_])'
43545 for header in stdlib.h; do
43546 # Check for ordinary declaration
43547 cat >conftest.$ac_ext <<_ACEOF
43550 cat confdefs.h >>conftest.$ac_ext
43551 cat >>conftest.$ac_ext <<_ACEOF
43552 /* end confdefs.h. */
43556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43557 $EGREP "${ice_re_word}malloc[ ]*\(" >/dev/null 2>&1; then
43558 ice_cv_have_malloc_decl=yes
43562 if test "$ice_cv_have_malloc_decl" = yes; then
43565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43566 cat >conftest.$ac_ext <<_ACEOF
43569 cat confdefs.h >>conftest.$ac_ext
43570 cat >>conftest.$ac_ext <<_ACEOF
43571 /* end confdefs.h. */
43575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43576 $EGREP "${ice_re_word}malloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43577 ice_cv_have_malloc_decl=yes
43581 if test "$ice_cv_have_malloc_decl" = yes; then
43588 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
43589 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
43590 if test "$ice_cv_have_malloc_decl" = yes; then
43592 cat >>confdefs.h <<_ACEOF
43593 #define HAVE_MALLOC_DECL 1
43600 for ac_func in memmove
43602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43603 echo "$as_me:$LINENO: checking for $ac_func" >&5
43604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43605 if eval "test \"\${$as_ac_var+set}\" = set"; then
43606 echo $ECHO_N "(cached) $ECHO_C" >&6
43608 cat >conftest.$ac_ext <<_ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h. */
43614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43616 #define $ac_func innocuous_$ac_func
43618 /* System header to define __stub macros and hopefully few prototypes,
43619 which can conflict with char $ac_func (); below.
43620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43621 <limits.h> exists even on freestanding compilers. */
43624 # include <limits.h>
43626 # include <assert.h>
43631 /* Override any gcc2 internal prototype to avoid an error. */
43636 /* We use char because int might match the return type of a gcc2
43637 builtin and then its argument prototype would still apply. */
43639 /* The GNU C library defines this for functions which it implements
43640 to always fail with ENOSYS. Some functions are actually named
43641 something starting with __ and the normal name is an alias. */
43642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43645 char (*f) () = $ac_func;
43654 return f != $ac_func;
43659 rm -f conftest.$ac_objext conftest$ac_exeext
43660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43661 (eval $ac_link) 2>conftest.er1
43663 grep -v '^ *+' conftest.er1 >conftest.err
43665 cat conftest.err >&5
43666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); } &&
43668 { ac_try='test -z "$ac_c_werror_flag"
43669 || test ! -s conftest.err'
43670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43671 (eval $ac_try) 2>&5
43673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674 (exit $ac_status); }; } &&
43675 { ac_try='test -s conftest$ac_exeext'
43676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43677 (eval $ac_try) 2>&5
43679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680 (exit $ac_status); }; }; then
43681 eval "$as_ac_var=yes"
43683 echo "$as_me: failed program was:" >&5
43684 sed 's/^/| /' conftest.$ac_ext >&5
43686 eval "$as_ac_var=no"
43688 rm -f conftest.err conftest.$ac_objext \
43689 conftest$ac_exeext conftest.$ac_ext
43691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43693 if test `eval echo '${'$as_ac_var'}'` = yes; then
43694 cat >>confdefs.h <<_ACEOF
43695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43700 "$ac_func.$ac_objext" | \
43701 *" $ac_func.$ac_objext" | \
43702 "$ac_func.$ac_objext "* | \
43703 *" $ac_func.$ac_objext "* ) ;;
43704 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43712 ice_have_memmove=no
43714 for ac_func in memmove
43716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43717 echo "$as_me:$LINENO: checking for $ac_func" >&5
43718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43719 if eval "test \"\${$as_ac_var+set}\" = set"; then
43720 echo $ECHO_N "(cached) $ECHO_C" >&6
43722 cat >conftest.$ac_ext <<_ACEOF
43725 cat confdefs.h >>conftest.$ac_ext
43726 cat >>conftest.$ac_ext <<_ACEOF
43727 /* end confdefs.h. */
43728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43730 #define $ac_func innocuous_$ac_func
43732 /* System header to define __stub macros and hopefully few prototypes,
43733 which can conflict with char $ac_func (); below.
43734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43735 <limits.h> exists even on freestanding compilers. */
43738 # include <limits.h>
43740 # include <assert.h>
43745 /* Override any gcc2 internal prototype to avoid an error. */
43750 /* We use char because int might match the return type of a gcc2
43751 builtin and then its argument prototype would still apply. */
43753 /* The GNU C library defines this for functions which it implements
43754 to always fail with ENOSYS. Some functions are actually named
43755 something starting with __ and the normal name is an alias. */
43756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43759 char (*f) () = $ac_func;
43768 return f != $ac_func;
43773 rm -f conftest.$ac_objext conftest$ac_exeext
43774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43775 (eval $ac_link) 2>conftest.er1
43777 grep -v '^ *+' conftest.er1 >conftest.err
43779 cat conftest.err >&5
43780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781 (exit $ac_status); } &&
43782 { ac_try='test -z "$ac_c_werror_flag"
43783 || test ! -s conftest.err'
43784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43785 (eval $ac_try) 2>&5
43787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788 (exit $ac_status); }; } &&
43789 { ac_try='test -s conftest$ac_exeext'
43790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43791 (eval $ac_try) 2>&5
43793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794 (exit $ac_status); }; }; then
43795 eval "$as_ac_var=yes"
43797 echo "$as_me: failed program was:" >&5
43798 sed 's/^/| /' conftest.$ac_ext >&5
43800 eval "$as_ac_var=no"
43802 rm -f conftest.err conftest.$ac_objext \
43803 conftest$ac_exeext conftest.$ac_ext
43805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43807 if test `eval echo '${'$as_ac_var'}'` = yes; then
43808 cat >>confdefs.h <<_ACEOF
43809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43811 ice_have_memmove=yes
43815 if test "${ice_have_memmove}" = yes; then
43816 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
43817 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
43818 if test "${ice_cv_have_memmove_decl+set}" = set; then
43819 echo $ECHO_N "(cached) $ECHO_C" >&6
43822 ice_cv_have_memmove_decl=no
43823 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43824 ice_re_word='(^|[^a-zA-Z0-9_])'
43825 for header in string.h strings.h; do
43826 # Check for ordinary declaration
43827 cat >conftest.$ac_ext <<_ACEOF
43830 cat confdefs.h >>conftest.$ac_ext
43831 cat >>conftest.$ac_ext <<_ACEOF
43832 /* end confdefs.h. */
43836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43837 $EGREP "${ice_re_word}memmove[ ]*\(" >/dev/null 2>&1; then
43838 ice_cv_have_memmove_decl=yes
43842 if test "$ice_cv_have_memmove_decl" = yes; then
43845 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43846 cat >conftest.$ac_ext <<_ACEOF
43849 cat confdefs.h >>conftest.$ac_ext
43850 cat >>conftest.$ac_ext <<_ACEOF
43851 /* end confdefs.h. */
43855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43856 $EGREP "${ice_re_word}memmove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43857 ice_cv_have_memmove_decl=yes
43861 if test "$ice_cv_have_memmove_decl" = yes; then
43868 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
43869 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
43870 if test "$ice_cv_have_memmove_decl" = yes; then
43872 cat >>confdefs.h <<_ACEOF
43873 #define HAVE_MEMMOVE_DECL 1
43882 for ac_func in memset
43884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43885 echo "$as_me:$LINENO: checking for $ac_func" >&5
43886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43887 if eval "test \"\${$as_ac_var+set}\" = set"; then
43888 echo $ECHO_N "(cached) $ECHO_C" >&6
43890 cat >conftest.$ac_ext <<_ACEOF
43893 cat confdefs.h >>conftest.$ac_ext
43894 cat >>conftest.$ac_ext <<_ACEOF
43895 /* end confdefs.h. */
43896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43898 #define $ac_func innocuous_$ac_func
43900 /* System header to define __stub macros and hopefully few prototypes,
43901 which can conflict with char $ac_func (); below.
43902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43903 <limits.h> exists even on freestanding compilers. */
43906 # include <limits.h>
43908 # include <assert.h>
43913 /* Override any gcc2 internal prototype to avoid an error. */
43918 /* We use char because int might match the return type of a gcc2
43919 builtin and then its argument prototype would still apply. */
43921 /* The GNU C library defines this for functions which it implements
43922 to always fail with ENOSYS. Some functions are actually named
43923 something starting with __ and the normal name is an alias. */
43924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43927 char (*f) () = $ac_func;
43936 return f != $ac_func;
43941 rm -f conftest.$ac_objext conftest$ac_exeext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43943 (eval $ac_link) 2>conftest.er1
43945 grep -v '^ *+' conftest.er1 >conftest.err
43947 cat conftest.err >&5
43948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949 (exit $ac_status); } &&
43950 { ac_try='test -z "$ac_c_werror_flag"
43951 || test ! -s conftest.err'
43952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43953 (eval $ac_try) 2>&5
43955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43956 (exit $ac_status); }; } &&
43957 { ac_try='test -s conftest$ac_exeext'
43958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959 (eval $ac_try) 2>&5
43961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962 (exit $ac_status); }; }; then
43963 eval "$as_ac_var=yes"
43965 echo "$as_me: failed program was:" >&5
43966 sed 's/^/| /' conftest.$ac_ext >&5
43968 eval "$as_ac_var=no"
43970 rm -f conftest.err conftest.$ac_objext \
43971 conftest$ac_exeext conftest.$ac_ext
43973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43975 if test `eval echo '${'$as_ac_var'}'` = yes; then
43976 cat >>confdefs.h <<_ACEOF
43977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43979 ice_have_memset=yes
43983 if test "${ice_have_memset}" = yes; then
43984 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
43985 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
43986 if test "${ice_cv_have_memset_decl+set}" = set; then
43987 echo $ECHO_N "(cached) $ECHO_C" >&6
43990 ice_cv_have_memset_decl=no
43991 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43992 ice_re_word='(^|[^a-zA-Z0-9_])'
43993 for header in string.h strings.h; do
43994 # Check for ordinary declaration
43995 cat >conftest.$ac_ext <<_ACEOF
43998 cat confdefs.h >>conftest.$ac_ext
43999 cat >>conftest.$ac_ext <<_ACEOF
44000 /* end confdefs.h. */
44004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44005 $EGREP "${ice_re_word}memset[ ]*\(" >/dev/null 2>&1; then
44006 ice_cv_have_memset_decl=yes
44010 if test "$ice_cv_have_memset_decl" = yes; then
44013 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44014 cat >conftest.$ac_ext <<_ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h. */
44023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44024 $EGREP "${ice_re_word}memset[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44025 ice_cv_have_memset_decl=yes
44029 if test "$ice_cv_have_memset_decl" = yes; then
44036 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
44037 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
44038 if test "$ice_cv_have_memset_decl" = yes; then
44040 cat >>confdefs.h <<_ACEOF
44041 #define HAVE_MEMSET_DECL 1
44048 for ac_func in mkdir
44050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44051 echo "$as_me:$LINENO: checking for $ac_func" >&5
44052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44053 if eval "test \"\${$as_ac_var+set}\" = set"; then
44054 echo $ECHO_N "(cached) $ECHO_C" >&6
44056 cat >conftest.$ac_ext <<_ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h. */
44062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44064 #define $ac_func innocuous_$ac_func
44066 /* System header to define __stub macros and hopefully few prototypes,
44067 which can conflict with char $ac_func (); below.
44068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44069 <limits.h> exists even on freestanding compilers. */
44072 # include <limits.h>
44074 # include <assert.h>
44079 /* Override any gcc2 internal prototype to avoid an error. */
44084 /* We use char because int might match the return type of a gcc2
44085 builtin and then its argument prototype would still apply. */
44087 /* The GNU C library defines this for functions which it implements
44088 to always fail with ENOSYS. Some functions are actually named
44089 something starting with __ and the normal name is an alias. */
44090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44093 char (*f) () = $ac_func;
44102 return f != $ac_func;
44107 rm -f conftest.$ac_objext conftest$ac_exeext
44108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44109 (eval $ac_link) 2>conftest.er1
44111 grep -v '^ *+' conftest.er1 >conftest.err
44113 cat conftest.err >&5
44114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115 (exit $ac_status); } &&
44116 { ac_try='test -z "$ac_c_werror_flag"
44117 || test ! -s conftest.err'
44118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44119 (eval $ac_try) 2>&5
44121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122 (exit $ac_status); }; } &&
44123 { ac_try='test -s conftest$ac_exeext'
44124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44125 (eval $ac_try) 2>&5
44127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128 (exit $ac_status); }; }; then
44129 eval "$as_ac_var=yes"
44131 echo "$as_me: failed program was:" >&5
44132 sed 's/^/| /' conftest.$ac_ext >&5
44134 eval "$as_ac_var=no"
44136 rm -f conftest.err conftest.$ac_objext \
44137 conftest$ac_exeext conftest.$ac_ext
44139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44141 if test `eval echo '${'$as_ac_var'}'` = yes; then
44142 cat >>confdefs.h <<_ACEOF
44143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44150 ice_have_mkstemp=no
44152 for ac_func in mkstemp
44154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44155 echo "$as_me:$LINENO: checking for $ac_func" >&5
44156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44157 if eval "test \"\${$as_ac_var+set}\" = set"; then
44158 echo $ECHO_N "(cached) $ECHO_C" >&6
44160 cat >conftest.$ac_ext <<_ACEOF
44163 cat confdefs.h >>conftest.$ac_ext
44164 cat >>conftest.$ac_ext <<_ACEOF
44165 /* end confdefs.h. */
44166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44168 #define $ac_func innocuous_$ac_func
44170 /* System header to define __stub macros and hopefully few prototypes,
44171 which can conflict with char $ac_func (); below.
44172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44173 <limits.h> exists even on freestanding compilers. */
44176 # include <limits.h>
44178 # include <assert.h>
44183 /* Override any gcc2 internal prototype to avoid an error. */
44188 /* We use char because int might match the return type of a gcc2
44189 builtin and then its argument prototype would still apply. */
44191 /* The GNU C library defines this for functions which it implements
44192 to always fail with ENOSYS. Some functions are actually named
44193 something starting with __ and the normal name is an alias. */
44194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44197 char (*f) () = $ac_func;
44206 return f != $ac_func;
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44213 (eval $ac_link) 2>conftest.er1
44215 grep -v '^ *+' conftest.er1 >conftest.err
44217 cat conftest.err >&5
44218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219 (exit $ac_status); } &&
44220 { ac_try='test -z "$ac_c_werror_flag"
44221 || test ! -s conftest.err'
44222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44223 (eval $ac_try) 2>&5
44225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44226 (exit $ac_status); }; } &&
44227 { ac_try='test -s conftest$ac_exeext'
44228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44229 (eval $ac_try) 2>&5
44231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232 (exit $ac_status); }; }; then
44233 eval "$as_ac_var=yes"
44235 echo "$as_me: failed program was:" >&5
44236 sed 's/^/| /' conftest.$ac_ext >&5
44238 eval "$as_ac_var=no"
44240 rm -f conftest.err conftest.$ac_objext \
44241 conftest$ac_exeext conftest.$ac_ext
44243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44245 if test `eval echo '${'$as_ac_var'}'` = yes; then
44246 cat >>confdefs.h <<_ACEOF
44247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44249 ice_have_mkstemp=yes
44253 if test "${ice_have_mkstemp}" = yes; then
44254 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
44255 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
44256 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
44257 echo $ECHO_N "(cached) $ECHO_C" >&6
44260 ice_cv_have_mkstemp_decl=no
44261 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44262 ice_re_word='(^|[^a-zA-Z0-9_])'
44263 for header in stdlib.h; do
44264 # Check for ordinary declaration
44265 cat >conftest.$ac_ext <<_ACEOF
44268 cat confdefs.h >>conftest.$ac_ext
44269 cat >>conftest.$ac_ext <<_ACEOF
44270 /* end confdefs.h. */
44274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44275 $EGREP "${ice_re_word}mkstemp[ ]*\(" >/dev/null 2>&1; then
44276 ice_cv_have_mkstemp_decl=yes
44280 if test "$ice_cv_have_mkstemp_decl" = yes; then
44283 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44284 cat >conftest.$ac_ext <<_ACEOF
44287 cat confdefs.h >>conftest.$ac_ext
44288 cat >>conftest.$ac_ext <<_ACEOF
44289 /* end confdefs.h. */
44293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44294 $EGREP "${ice_re_word}mkstemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44295 ice_cv_have_mkstemp_decl=yes
44299 if test "$ice_cv_have_mkstemp_decl" = yes; then
44306 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
44307 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
44308 if test "$ice_cv_have_mkstemp_decl" = yes; then
44310 cat >>confdefs.h <<_ACEOF
44311 #define HAVE_MKSTEMP_DECL 1
44320 for ac_func in mktemp
44322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44323 echo "$as_me:$LINENO: checking for $ac_func" >&5
44324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44325 if eval "test \"\${$as_ac_var+set}\" = set"; then
44326 echo $ECHO_N "(cached) $ECHO_C" >&6
44328 cat >conftest.$ac_ext <<_ACEOF
44331 cat confdefs.h >>conftest.$ac_ext
44332 cat >>conftest.$ac_ext <<_ACEOF
44333 /* end confdefs.h. */
44334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44336 #define $ac_func innocuous_$ac_func
44338 /* System header to define __stub macros and hopefully few prototypes,
44339 which can conflict with char $ac_func (); below.
44340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44341 <limits.h> exists even on freestanding compilers. */
44344 # include <limits.h>
44346 # include <assert.h>
44351 /* Override any gcc2 internal prototype to avoid an error. */
44356 /* We use char because int might match the return type of a gcc2
44357 builtin and then its argument prototype would still apply. */
44359 /* The GNU C library defines this for functions which it implements
44360 to always fail with ENOSYS. Some functions are actually named
44361 something starting with __ and the normal name is an alias. */
44362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44365 char (*f) () = $ac_func;
44374 return f != $ac_func;
44379 rm -f conftest.$ac_objext conftest$ac_exeext
44380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44381 (eval $ac_link) 2>conftest.er1
44383 grep -v '^ *+' conftest.er1 >conftest.err
44385 cat conftest.err >&5
44386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387 (exit $ac_status); } &&
44388 { ac_try='test -z "$ac_c_werror_flag"
44389 || test ! -s conftest.err'
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; } &&
44395 { ac_try='test -s conftest$ac_exeext'
44396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44397 (eval $ac_try) 2>&5
44399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400 (exit $ac_status); }; }; then
44401 eval "$as_ac_var=yes"
44403 echo "$as_me: failed program was:" >&5
44404 sed 's/^/| /' conftest.$ac_ext >&5
44406 eval "$as_ac_var=no"
44408 rm -f conftest.err conftest.$ac_objext \
44409 conftest$ac_exeext conftest.$ac_ext
44411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44413 if test `eval echo '${'$as_ac_var'}'` = yes; then
44414 cat >>confdefs.h <<_ACEOF
44415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44417 ice_have_mktemp=yes
44421 if test "${ice_have_mktemp}" = yes; then
44422 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
44423 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
44424 if test "${ice_cv_have_mktemp_decl+set}" = set; then
44425 echo $ECHO_N "(cached) $ECHO_C" >&6
44428 ice_cv_have_mktemp_decl=no
44429 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44430 ice_re_word='(^|[^a-zA-Z0-9_])'
44431 for header in stdlib.h; do
44432 # Check for ordinary declaration
44433 cat >conftest.$ac_ext <<_ACEOF
44436 cat confdefs.h >>conftest.$ac_ext
44437 cat >>conftest.$ac_ext <<_ACEOF
44438 /* end confdefs.h. */
44442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44443 $EGREP "${ice_re_word}mktemp[ ]*\(" >/dev/null 2>&1; then
44444 ice_cv_have_mktemp_decl=yes
44448 if test "$ice_cv_have_mktemp_decl" = yes; then
44451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44452 cat >conftest.$ac_ext <<_ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h. */
44461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44462 $EGREP "${ice_re_word}mktemp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44463 ice_cv_have_mktemp_decl=yes
44467 if test "$ice_cv_have_mktemp_decl" = yes; then
44474 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
44475 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
44476 if test "$ice_cv_have_mktemp_decl" = yes; then
44478 cat >>confdefs.h <<_ACEOF
44479 #define HAVE_MKTEMP_DECL 1
44486 for ac_func in mktime
44488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44489 echo "$as_me:$LINENO: checking for $ac_func" >&5
44490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44491 if eval "test \"\${$as_ac_var+set}\" = set"; then
44492 echo $ECHO_N "(cached) $ECHO_C" >&6
44494 cat >conftest.$ac_ext <<_ACEOF
44497 cat confdefs.h >>conftest.$ac_ext
44498 cat >>conftest.$ac_ext <<_ACEOF
44499 /* end confdefs.h. */
44500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44502 #define $ac_func innocuous_$ac_func
44504 /* System header to define __stub macros and hopefully few prototypes,
44505 which can conflict with char $ac_func (); below.
44506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44507 <limits.h> exists even on freestanding compilers. */
44510 # include <limits.h>
44512 # include <assert.h>
44517 /* Override any gcc2 internal prototype to avoid an error. */
44522 /* We use char because int might match the return type of a gcc2
44523 builtin and then its argument prototype would still apply. */
44525 /* The GNU C library defines this for functions which it implements
44526 to always fail with ENOSYS. Some functions are actually named
44527 something starting with __ and the normal name is an alias. */
44528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44531 char (*f) () = $ac_func;
44540 return f != $ac_func;
44545 rm -f conftest.$ac_objext conftest$ac_exeext
44546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44547 (eval $ac_link) 2>conftest.er1
44549 grep -v '^ *+' conftest.er1 >conftest.err
44551 cat conftest.err >&5
44552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44553 (exit $ac_status); } &&
44554 { ac_try='test -z "$ac_c_werror_flag"
44555 || test ! -s conftest.err'
44556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44557 (eval $ac_try) 2>&5
44559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560 (exit $ac_status); }; } &&
44561 { ac_try='test -s conftest$ac_exeext'
44562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44563 (eval $ac_try) 2>&5
44565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566 (exit $ac_status); }; }; then
44567 eval "$as_ac_var=yes"
44569 echo "$as_me: failed program was:" >&5
44570 sed 's/^/| /' conftest.$ac_ext >&5
44572 eval "$as_ac_var=no"
44574 rm -f conftest.err conftest.$ac_objext \
44575 conftest$ac_exeext conftest.$ac_ext
44577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44579 if test `eval echo '${'$as_ac_var'}'` = yes; then
44580 cat >>confdefs.h <<_ACEOF
44581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44586 "$ac_func.$ac_objext" | \
44587 *" $ac_func.$ac_objext" | \
44588 "$ac_func.$ac_objext "* | \
44589 *" $ac_func.$ac_objext "* ) ;;
44590 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44600 for ac_func in mktime
44602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44603 echo "$as_me:$LINENO: checking for $ac_func" >&5
44604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44605 if eval "test \"\${$as_ac_var+set}\" = set"; then
44606 echo $ECHO_N "(cached) $ECHO_C" >&6
44608 cat >conftest.$ac_ext <<_ACEOF
44611 cat confdefs.h >>conftest.$ac_ext
44612 cat >>conftest.$ac_ext <<_ACEOF
44613 /* end confdefs.h. */
44614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44616 #define $ac_func innocuous_$ac_func
44618 /* System header to define __stub macros and hopefully few prototypes,
44619 which can conflict with char $ac_func (); below.
44620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44621 <limits.h> exists even on freestanding compilers. */
44624 # include <limits.h>
44626 # include <assert.h>
44631 /* Override any gcc2 internal prototype to avoid an error. */
44636 /* We use char because int might match the return type of a gcc2
44637 builtin and then its argument prototype would still apply. */
44639 /* The GNU C library defines this for functions which it implements
44640 to always fail with ENOSYS. Some functions are actually named
44641 something starting with __ and the normal name is an alias. */
44642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44645 char (*f) () = $ac_func;
44654 return f != $ac_func;
44659 rm -f conftest.$ac_objext conftest$ac_exeext
44660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44661 (eval $ac_link) 2>conftest.er1
44663 grep -v '^ *+' conftest.er1 >conftest.err
44665 cat conftest.err >&5
44666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44667 (exit $ac_status); } &&
44668 { ac_try='test -z "$ac_c_werror_flag"
44669 || test ! -s conftest.err'
44670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44671 (eval $ac_try) 2>&5
44673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674 (exit $ac_status); }; } &&
44675 { ac_try='test -s conftest$ac_exeext'
44676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44677 (eval $ac_try) 2>&5
44679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680 (exit $ac_status); }; }; then
44681 eval "$as_ac_var=yes"
44683 echo "$as_me: failed program was:" >&5
44684 sed 's/^/| /' conftest.$ac_ext >&5
44686 eval "$as_ac_var=no"
44688 rm -f conftest.err conftest.$ac_objext \
44689 conftest$ac_exeext conftest.$ac_ext
44691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44693 if test `eval echo '${'$as_ac_var'}'` = yes; then
44694 cat >>confdefs.h <<_ACEOF
44695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44697 ice_have_mktime=yes
44701 if test "${ice_have_mktime}" = yes; then
44702 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
44703 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
44704 if test "${ice_cv_have_mktime_decl+set}" = set; then
44705 echo $ECHO_N "(cached) $ECHO_C" >&6
44708 ice_cv_have_mktime_decl=no
44709 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44710 ice_re_word='(^|[^a-zA-Z0-9_])'
44711 for header in time.h sys/time.h; do
44712 # Check for ordinary declaration
44713 cat >conftest.$ac_ext <<_ACEOF
44716 cat confdefs.h >>conftest.$ac_ext
44717 cat >>conftest.$ac_ext <<_ACEOF
44718 /* end confdefs.h. */
44722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44723 $EGREP "${ice_re_word}mktime[ ]*\(" >/dev/null 2>&1; then
44724 ice_cv_have_mktime_decl=yes
44728 if test "$ice_cv_have_mktime_decl" = yes; then
44731 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44732 cat >conftest.$ac_ext <<_ACEOF
44735 cat confdefs.h >>conftest.$ac_ext
44736 cat >>conftest.$ac_ext <<_ACEOF
44737 /* end confdefs.h. */
44741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44742 $EGREP "${ice_re_word}mktime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44743 ice_cv_have_mktime_decl=yes
44747 if test "$ice_cv_have_mktime_decl" = yes; then
44754 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
44755 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
44756 if test "$ice_cv_have_mktime_decl" = yes; then
44758 cat >>confdefs.h <<_ACEOF
44759 #define HAVE_MKTIME_DECL 1
44767 for ac_header in stdlib.h unistd.h
44769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44771 echo "$as_me:$LINENO: checking for $ac_header" >&5
44772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44774 echo $ECHO_N "(cached) $ECHO_C" >&6
44776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44779 # Is the header compilable?
44780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44782 cat >conftest.$ac_ext <<_ACEOF
44785 cat confdefs.h >>conftest.$ac_ext
44786 cat >>conftest.$ac_ext <<_ACEOF
44787 /* end confdefs.h. */
44788 $ac_includes_default
44789 #include <$ac_header>
44791 rm -f conftest.$ac_objext
44792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44793 (eval $ac_compile) 2>conftest.er1
44795 grep -v '^ *+' conftest.er1 >conftest.err
44797 cat conftest.err >&5
44798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799 (exit $ac_status); } &&
44800 { ac_try='test -z "$ac_c_werror_flag"
44801 || test ! -s conftest.err'
44802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44803 (eval $ac_try) 2>&5
44805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806 (exit $ac_status); }; } &&
44807 { ac_try='test -s conftest.$ac_objext'
44808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809 (eval $ac_try) 2>&5
44811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); }; }; then
44813 ac_header_compiler=yes
44815 echo "$as_me: failed program was:" >&5
44816 sed 's/^/| /' conftest.$ac_ext >&5
44818 ac_header_compiler=no
44820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44822 echo "${ECHO_T}$ac_header_compiler" >&6
44824 # Is the header present?
44825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44827 cat >conftest.$ac_ext <<_ACEOF
44830 cat confdefs.h >>conftest.$ac_ext
44831 cat >>conftest.$ac_ext <<_ACEOF
44832 /* end confdefs.h. */
44833 #include <$ac_header>
44835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44838 grep -v '^ *+' conftest.er1 >conftest.err
44840 cat conftest.err >&5
44841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842 (exit $ac_status); } >/dev/null; then
44843 if test -s conftest.err; then
44844 ac_cpp_err=$ac_c_preproc_warn_flag
44845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44852 if test -z "$ac_cpp_err"; then
44853 ac_header_preproc=yes
44855 echo "$as_me: failed program was:" >&5
44856 sed 's/^/| /' conftest.$ac_ext >&5
44858 ac_header_preproc=no
44860 rm -f conftest.err conftest.$ac_ext
44861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44862 echo "${ECHO_T}$ac_header_preproc" >&6
44864 # So? What about this header?
44865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44871 ac_header_preproc=yes
44874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44888 ## ------------------------------------------ ##
44889 ## Report this to the AC_PACKAGE_NAME lists. ##
44890 ## ------------------------------------------ ##
44893 sed "s/^/$as_me: WARNING: /" >&2
44896 echo "$as_me:$LINENO: checking for $ac_header" >&5
44897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44899 echo $ECHO_N "(cached) $ECHO_C" >&6
44901 eval "$as_ac_Header=\$ac_header_preproc"
44903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44908 cat >>confdefs.h <<_ACEOF
44909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44917 for ac_func in getpagesize
44919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44920 echo "$as_me:$LINENO: checking for $ac_func" >&5
44921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44922 if eval "test \"\${$as_ac_var+set}\" = set"; then
44923 echo $ECHO_N "(cached) $ECHO_C" >&6
44925 cat >conftest.$ac_ext <<_ACEOF
44928 cat confdefs.h >>conftest.$ac_ext
44929 cat >>conftest.$ac_ext <<_ACEOF
44930 /* end confdefs.h. */
44931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44933 #define $ac_func innocuous_$ac_func
44935 /* System header to define __stub macros and hopefully few prototypes,
44936 which can conflict with char $ac_func (); below.
44937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44938 <limits.h> exists even on freestanding compilers. */
44941 # include <limits.h>
44943 # include <assert.h>
44948 /* Override any gcc2 internal prototype to avoid an error. */
44953 /* We use char because int might match the return type of a gcc2
44954 builtin and then its argument prototype would still apply. */
44956 /* The GNU C library defines this for functions which it implements
44957 to always fail with ENOSYS. Some functions are actually named
44958 something starting with __ and the normal name is an alias. */
44959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44962 char (*f) () = $ac_func;
44971 return f != $ac_func;
44976 rm -f conftest.$ac_objext conftest$ac_exeext
44977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44978 (eval $ac_link) 2>conftest.er1
44980 grep -v '^ *+' conftest.er1 >conftest.err
44982 cat conftest.err >&5
44983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44984 (exit $ac_status); } &&
44985 { ac_try='test -z "$ac_c_werror_flag"
44986 || test ! -s conftest.err'
44987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44988 (eval $ac_try) 2>&5
44990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44991 (exit $ac_status); }; } &&
44992 { ac_try='test -s conftest$ac_exeext'
44993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44994 (eval $ac_try) 2>&5
44996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997 (exit $ac_status); }; }; then
44998 eval "$as_ac_var=yes"
45000 echo "$as_me: failed program was:" >&5
45001 sed 's/^/| /' conftest.$ac_ext >&5
45003 eval "$as_ac_var=no"
45005 rm -f conftest.err conftest.$ac_objext \
45006 conftest$ac_exeext conftest.$ac_ext
45008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45010 if test `eval echo '${'$as_ac_var'}'` = yes; then
45011 cat >>confdefs.h <<_ACEOF
45012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45018 echo "$as_me:$LINENO: checking for working mmap" >&5
45019 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
45020 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
45021 echo $ECHO_N "(cached) $ECHO_C" >&6
45023 if test "$cross_compiling" = yes; then
45024 ac_cv_func_mmap_fixed_mapped=no
45026 cat >conftest.$ac_ext <<_ACEOF
45029 cat confdefs.h >>conftest.$ac_ext
45030 cat >>conftest.$ac_ext <<_ACEOF
45031 /* end confdefs.h. */
45032 $ac_includes_default
45033 /* malloc might have been renamed as rpl_malloc. */
45036 /* Thanks to Mike Haertel and Jim Avera for this test.
45037 Here is a matrix of mmap possibilities:
45038 mmap private not fixed
45039 mmap private fixed at somewhere currently unmapped
45040 mmap private fixed at somewhere already mapped
45041 mmap shared not fixed
45042 mmap shared fixed at somewhere currently unmapped
45043 mmap shared fixed at somewhere already mapped
45044 For private mappings, we should verify that changes cannot be read()
45045 back from the file, nor mmap's back from the file at a different
45046 address. (There have been systems where private was not correctly
45047 implemented like the infamous i386 svr4.0, and systems where the
45048 VM page cache was not coherent with the file system buffer cache
45049 like early versions of FreeBSD and possibly contemporary NetBSD.)
45050 For shared mappings, we should conversely verify that changes get
45051 propagated back to all the places they're supposed to be.
45053 Grep wants private fixed already mapped.
45054 The main things grep needs to know about mmap are:
45055 * does it exist and is it safe to write into the mmap'd area
45056 * how to use it (BSD variants) */
45059 #include <sys/mman.h>
45061 #if !STDC_HEADERS && !HAVE_STDLIB_H
45065 /* This mess was copied from the GNU getpagesize.h. */
45066 #if !HAVE_GETPAGESIZE
45067 /* Assume that all systems that can run configure have sys/param.h. */
45068 # if !HAVE_SYS_PARAM_H
45069 # define HAVE_SYS_PARAM_H 1
45072 # ifdef _SC_PAGESIZE
45073 # define getpagesize() sysconf(_SC_PAGESIZE)
45074 # else /* no _SC_PAGESIZE */
45075 # if HAVE_SYS_PARAM_H
45076 # include <sys/param.h>
45077 # ifdef EXEC_PAGESIZE
45078 # define getpagesize() EXEC_PAGESIZE
45079 # else /* no EXEC_PAGESIZE */
45081 # define getpagesize() NBPG * CLSIZE
45084 # endif /* no CLSIZE */
45085 # else /* no NBPG */
45087 # define getpagesize() NBPC
45088 # else /* no NBPC */
45090 # define getpagesize() PAGESIZE
45091 # endif /* PAGESIZE */
45092 # endif /* no NBPC */
45093 # endif /* no NBPG */
45094 # endif /* no EXEC_PAGESIZE */
45095 # else /* no HAVE_SYS_PARAM_H */
45096 # define getpagesize() 8192 /* punt totally */
45097 # endif /* no HAVE_SYS_PARAM_H */
45098 # endif /* no _SC_PAGESIZE */
45100 #endif /* no HAVE_GETPAGESIZE */
45105 char *data, *data2, *data3;
45109 pagesize = getpagesize ();
45111 /* First, make a file with some known garbage in it. */
45112 data = (char *) malloc (pagesize);
45115 for (i = 0; i < pagesize; ++i)
45116 *(data + i) = rand ();
45118 fd = creat ("conftest.mmap", 0600);
45121 if (write (fd, data, pagesize) != pagesize)
45125 /* Next, try to mmap the file at a fixed address which already has
45126 something else allocated at it. If we can, also make sure that
45127 we see the same garbage. */
45128 fd = open ("conftest.mmap", O_RDWR);
45131 data2 = (char *) malloc (2 * pagesize);
45134 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
45135 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
45136 MAP_PRIVATE | MAP_FIXED, fd, 0L))
45138 for (i = 0; i < pagesize; ++i)
45139 if (*(data + i) != *(data2 + i))
45142 /* Finally, make sure that changes to the mapped area do not
45143 percolate back to the file as seen by read(). (This is a bug on
45144 some variants of i386 svr4.0.) */
45145 for (i = 0; i < pagesize; ++i)
45146 *(data2 + i) = *(data2 + i) + 1;
45147 data3 = (char *) malloc (pagesize);
45150 if (read (fd, data3, pagesize) != pagesize)
45152 for (i = 0; i < pagesize; ++i)
45153 if (*(data + i) != *(data3 + i))
45159 rm -f conftest$ac_exeext
45160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45161 (eval $ac_link) 2>&5
45163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45166 (eval $ac_try) 2>&5
45168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169 (exit $ac_status); }; }; then
45170 ac_cv_func_mmap_fixed_mapped=yes
45172 echo "$as_me: program exited with status $ac_status" >&5
45173 echo "$as_me: failed program was:" >&5
45174 sed 's/^/| /' conftest.$ac_ext >&5
45176 ( exit $ac_status )
45177 ac_cv_func_mmap_fixed_mapped=no
45179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45182 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
45183 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
45184 if test $ac_cv_func_mmap_fixed_mapped = yes; then
45186 cat >>confdefs.h <<\_ACEOF
45187 #define HAVE_MMAP 1
45191 rm -f conftest.mmap
45194 for ac_func in on_exit
45196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45197 echo "$as_me:$LINENO: checking for $ac_func" >&5
45198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45199 if eval "test \"\${$as_ac_var+set}\" = set"; then
45200 echo $ECHO_N "(cached) $ECHO_C" >&6
45202 cat >conftest.$ac_ext <<_ACEOF
45205 cat confdefs.h >>conftest.$ac_ext
45206 cat >>conftest.$ac_ext <<_ACEOF
45207 /* end confdefs.h. */
45208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45210 #define $ac_func innocuous_$ac_func
45212 /* System header to define __stub macros and hopefully few prototypes,
45213 which can conflict with char $ac_func (); below.
45214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45215 <limits.h> exists even on freestanding compilers. */
45218 # include <limits.h>
45220 # include <assert.h>
45225 /* Override any gcc2 internal prototype to avoid an error. */
45230 /* We use char because int might match the return type of a gcc2
45231 builtin and then its argument prototype would still apply. */
45233 /* The GNU C library defines this for functions which it implements
45234 to always fail with ENOSYS. Some functions are actually named
45235 something starting with __ and the normal name is an alias. */
45236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45239 char (*f) () = $ac_func;
45248 return f != $ac_func;
45253 rm -f conftest.$ac_objext conftest$ac_exeext
45254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45255 (eval $ac_link) 2>conftest.er1
45257 grep -v '^ *+' conftest.er1 >conftest.err
45259 cat conftest.err >&5
45260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261 (exit $ac_status); } &&
45262 { ac_try='test -z "$ac_c_werror_flag"
45263 || test ! -s conftest.err'
45264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45265 (eval $ac_try) 2>&5
45267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45268 (exit $ac_status); }; } &&
45269 { ac_try='test -s conftest$ac_exeext'
45270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45271 (eval $ac_try) 2>&5
45273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45274 (exit $ac_status); }; }; then
45275 eval "$as_ac_var=yes"
45277 echo "$as_me: failed program was:" >&5
45278 sed 's/^/| /' conftest.$ac_ext >&5
45280 eval "$as_ac_var=no"
45282 rm -f conftest.err conftest.$ac_objext \
45283 conftest$ac_exeext conftest.$ac_ext
45285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45287 if test `eval echo '${'$as_ac_var'}'` = yes; then
45288 cat >>confdefs.h <<_ACEOF
45289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45296 ice_have_openlog=no
45298 for ac_func in openlog
45300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45301 echo "$as_me:$LINENO: checking for $ac_func" >&5
45302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45303 if eval "test \"\${$as_ac_var+set}\" = set"; then
45304 echo $ECHO_N "(cached) $ECHO_C" >&6
45306 cat >conftest.$ac_ext <<_ACEOF
45309 cat confdefs.h >>conftest.$ac_ext
45310 cat >>conftest.$ac_ext <<_ACEOF
45311 /* end confdefs.h. */
45312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45314 #define $ac_func innocuous_$ac_func
45316 /* System header to define __stub macros and hopefully few prototypes,
45317 which can conflict with char $ac_func (); below.
45318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45319 <limits.h> exists even on freestanding compilers. */
45322 # include <limits.h>
45324 # include <assert.h>
45329 /* Override any gcc2 internal prototype to avoid an error. */
45334 /* We use char because int might match the return type of a gcc2
45335 builtin and then its argument prototype would still apply. */
45337 /* The GNU C library defines this for functions which it implements
45338 to always fail with ENOSYS. Some functions are actually named
45339 something starting with __ and the normal name is an alias. */
45340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45343 char (*f) () = $ac_func;
45352 return f != $ac_func;
45357 rm -f conftest.$ac_objext conftest$ac_exeext
45358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45359 (eval $ac_link) 2>conftest.er1
45361 grep -v '^ *+' conftest.er1 >conftest.err
45363 cat conftest.err >&5
45364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45365 (exit $ac_status); } &&
45366 { ac_try='test -z "$ac_c_werror_flag"
45367 || test ! -s conftest.err'
45368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45369 (eval $ac_try) 2>&5
45371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45372 (exit $ac_status); }; } &&
45373 { ac_try='test -s conftest$ac_exeext'
45374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45375 (eval $ac_try) 2>&5
45377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45378 (exit $ac_status); }; }; then
45379 eval "$as_ac_var=yes"
45381 echo "$as_me: failed program was:" >&5
45382 sed 's/^/| /' conftest.$ac_ext >&5
45384 eval "$as_ac_var=no"
45386 rm -f conftest.err conftest.$ac_objext \
45387 conftest$ac_exeext conftest.$ac_ext
45389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45391 if test `eval echo '${'$as_ac_var'}'` = yes; then
45392 cat >>confdefs.h <<_ACEOF
45393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45395 ice_have_openlog=yes
45399 if test "${ice_have_openlog}" = yes; then
45400 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
45401 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
45402 if test "${ice_cv_have_openlog_decl+set}" = set; then
45403 echo $ECHO_N "(cached) $ECHO_C" >&6
45406 ice_cv_have_openlog_decl=no
45407 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45408 ice_re_word='(^|[^a-zA-Z0-9_])'
45409 for header in syslog.h; do
45410 # Check for ordinary declaration
45411 cat >conftest.$ac_ext <<_ACEOF
45414 cat confdefs.h >>conftest.$ac_ext
45415 cat >>conftest.$ac_ext <<_ACEOF
45416 /* end confdefs.h. */
45420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45421 $EGREP "${ice_re_word}openlog[ ]*\(" >/dev/null 2>&1; then
45422 ice_cv_have_openlog_decl=yes
45426 if test "$ice_cv_have_openlog_decl" = yes; then
45429 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45430 cat >conftest.$ac_ext <<_ACEOF
45433 cat confdefs.h >>conftest.$ac_ext
45434 cat >>conftest.$ac_ext <<_ACEOF
45435 /* end confdefs.h. */
45439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45440 $EGREP "${ice_re_word}openlog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45441 ice_cv_have_openlog_decl=yes
45445 if test "$ice_cv_have_openlog_decl" = yes; then
45452 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
45453 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
45454 if test "$ice_cv_have_openlog_decl" = yes; then
45456 cat >>confdefs.h <<_ACEOF
45457 #define HAVE_OPENLOG_DECL 1
45466 for ac_func in pclose
45468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45469 echo "$as_me:$LINENO: checking for $ac_func" >&5
45470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45471 if eval "test \"\${$as_ac_var+set}\" = set"; then
45472 echo $ECHO_N "(cached) $ECHO_C" >&6
45474 cat >conftest.$ac_ext <<_ACEOF
45477 cat confdefs.h >>conftest.$ac_ext
45478 cat >>conftest.$ac_ext <<_ACEOF
45479 /* end confdefs.h. */
45480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45482 #define $ac_func innocuous_$ac_func
45484 /* System header to define __stub macros and hopefully few prototypes,
45485 which can conflict with char $ac_func (); below.
45486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45487 <limits.h> exists even on freestanding compilers. */
45490 # include <limits.h>
45492 # include <assert.h>
45497 /* Override any gcc2 internal prototype to avoid an error. */
45502 /* We use char because int might match the return type of a gcc2
45503 builtin and then its argument prototype would still apply. */
45505 /* The GNU C library defines this for functions which it implements
45506 to always fail with ENOSYS. Some functions are actually named
45507 something starting with __ and the normal name is an alias. */
45508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45511 char (*f) () = $ac_func;
45520 return f != $ac_func;
45525 rm -f conftest.$ac_objext conftest$ac_exeext
45526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45527 (eval $ac_link) 2>conftest.er1
45529 grep -v '^ *+' conftest.er1 >conftest.err
45531 cat conftest.err >&5
45532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45533 (exit $ac_status); } &&
45534 { ac_try='test -z "$ac_c_werror_flag"
45535 || test ! -s conftest.err'
45536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45537 (eval $ac_try) 2>&5
45539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45540 (exit $ac_status); }; } &&
45541 { ac_try='test -s conftest$ac_exeext'
45542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45543 (eval $ac_try) 2>&5
45545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45546 (exit $ac_status); }; }; then
45547 eval "$as_ac_var=yes"
45549 echo "$as_me: failed program was:" >&5
45550 sed 's/^/| /' conftest.$ac_ext >&5
45552 eval "$as_ac_var=no"
45554 rm -f conftest.err conftest.$ac_objext \
45555 conftest$ac_exeext conftest.$ac_ext
45557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45559 if test `eval echo '${'$as_ac_var'}'` = yes; then
45560 cat >>confdefs.h <<_ACEOF
45561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45563 ice_have_pclose=yes
45567 if test "${ice_have_pclose}" = yes; then
45568 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
45569 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
45570 if test "${ice_cv_have_pclose_decl+set}" = set; then
45571 echo $ECHO_N "(cached) $ECHO_C" >&6
45574 ice_cv_have_pclose_decl=no
45575 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45576 ice_re_word='(^|[^a-zA-Z0-9_])'
45577 for header in stdio.h; do
45578 # Check for ordinary declaration
45579 cat >conftest.$ac_ext <<_ACEOF
45582 cat confdefs.h >>conftest.$ac_ext
45583 cat >>conftest.$ac_ext <<_ACEOF
45584 /* end confdefs.h. */
45588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45589 $EGREP "${ice_re_word}pclose[ ]*\(" >/dev/null 2>&1; then
45590 ice_cv_have_pclose_decl=yes
45594 if test "$ice_cv_have_pclose_decl" = yes; then
45597 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45598 cat >conftest.$ac_ext <<_ACEOF
45601 cat confdefs.h >>conftest.$ac_ext
45602 cat >>conftest.$ac_ext <<_ACEOF
45603 /* end confdefs.h. */
45607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45608 $EGREP "${ice_re_word}pclose[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45609 ice_cv_have_pclose_decl=yes
45613 if test "$ice_cv_have_pclose_decl" = yes; then
45620 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
45621 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
45622 if test "$ice_cv_have_pclose_decl" = yes; then
45624 cat >>confdefs.h <<_ACEOF
45625 #define HAVE_PCLOSE_DECL 1
45634 for ac_func in perror
45636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45637 echo "$as_me:$LINENO: checking for $ac_func" >&5
45638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45639 if eval "test \"\${$as_ac_var+set}\" = set"; then
45640 echo $ECHO_N "(cached) $ECHO_C" >&6
45642 cat >conftest.$ac_ext <<_ACEOF
45645 cat confdefs.h >>conftest.$ac_ext
45646 cat >>conftest.$ac_ext <<_ACEOF
45647 /* end confdefs.h. */
45648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45650 #define $ac_func innocuous_$ac_func
45652 /* System header to define __stub macros and hopefully few prototypes,
45653 which can conflict with char $ac_func (); below.
45654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45655 <limits.h> exists even on freestanding compilers. */
45658 # include <limits.h>
45660 # include <assert.h>
45665 /* Override any gcc2 internal prototype to avoid an error. */
45670 /* We use char because int might match the return type of a gcc2
45671 builtin and then its argument prototype would still apply. */
45673 /* The GNU C library defines this for functions which it implements
45674 to always fail with ENOSYS. Some functions are actually named
45675 something starting with __ and the normal name is an alias. */
45676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45679 char (*f) () = $ac_func;
45688 return f != $ac_func;
45693 rm -f conftest.$ac_objext conftest$ac_exeext
45694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45695 (eval $ac_link) 2>conftest.er1
45697 grep -v '^ *+' conftest.er1 >conftest.err
45699 cat conftest.err >&5
45700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45701 (exit $ac_status); } &&
45702 { ac_try='test -z "$ac_c_werror_flag"
45703 || test ! -s conftest.err'
45704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45705 (eval $ac_try) 2>&5
45707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45708 (exit $ac_status); }; } &&
45709 { ac_try='test -s conftest$ac_exeext'
45710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45711 (eval $ac_try) 2>&5
45713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45714 (exit $ac_status); }; }; then
45715 eval "$as_ac_var=yes"
45717 echo "$as_me: failed program was:" >&5
45718 sed 's/^/| /' conftest.$ac_ext >&5
45720 eval "$as_ac_var=no"
45722 rm -f conftest.err conftest.$ac_objext \
45723 conftest$ac_exeext conftest.$ac_ext
45725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45727 if test `eval echo '${'$as_ac_var'}'` = yes; then
45728 cat >>confdefs.h <<_ACEOF
45729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45731 ice_have_perror=yes
45735 if test "${ice_have_perror}" = yes; then
45736 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
45737 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
45738 if test "${ice_cv_have_perror_decl+set}" = set; then
45739 echo $ECHO_N "(cached) $ECHO_C" >&6
45742 ice_cv_have_perror_decl=no
45743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45744 ice_re_word='(^|[^a-zA-Z0-9_])'
45745 for header in stdio.h; do
45746 # Check for ordinary declaration
45747 cat >conftest.$ac_ext <<_ACEOF
45750 cat confdefs.h >>conftest.$ac_ext
45751 cat >>conftest.$ac_ext <<_ACEOF
45752 /* end confdefs.h. */
45756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45757 $EGREP "${ice_re_word}perror[ ]*\(" >/dev/null 2>&1; then
45758 ice_cv_have_perror_decl=yes
45762 if test "$ice_cv_have_perror_decl" = yes; then
45765 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45766 cat >conftest.$ac_ext <<_ACEOF
45769 cat confdefs.h >>conftest.$ac_ext
45770 cat >>conftest.$ac_ext <<_ACEOF
45771 /* end confdefs.h. */
45775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45776 $EGREP "${ice_re_word}perror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45777 ice_cv_have_perror_decl=yes
45781 if test "$ice_cv_have_perror_decl" = yes; then
45788 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
45789 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
45790 if test "$ice_cv_have_perror_decl" = yes; then
45792 cat >>confdefs.h <<_ACEOF
45793 #define HAVE_PERROR_DECL 1
45802 for ac_func in printf
45804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45805 echo "$as_me:$LINENO: checking for $ac_func" >&5
45806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45807 if eval "test \"\${$as_ac_var+set}\" = set"; then
45808 echo $ECHO_N "(cached) $ECHO_C" >&6
45810 cat >conftest.$ac_ext <<_ACEOF
45813 cat confdefs.h >>conftest.$ac_ext
45814 cat >>conftest.$ac_ext <<_ACEOF
45815 /* end confdefs.h. */
45816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45818 #define $ac_func innocuous_$ac_func
45820 /* System header to define __stub macros and hopefully few prototypes,
45821 which can conflict with char $ac_func (); below.
45822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45823 <limits.h> exists even on freestanding compilers. */
45826 # include <limits.h>
45828 # include <assert.h>
45833 /* Override any gcc2 internal prototype to avoid an error. */
45838 /* We use char because int might match the return type of a gcc2
45839 builtin and then its argument prototype would still apply. */
45841 /* The GNU C library defines this for functions which it implements
45842 to always fail with ENOSYS. Some functions are actually named
45843 something starting with __ and the normal name is an alias. */
45844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45847 char (*f) () = $ac_func;
45856 return f != $ac_func;
45861 rm -f conftest.$ac_objext conftest$ac_exeext
45862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45863 (eval $ac_link) 2>conftest.er1
45865 grep -v '^ *+' conftest.er1 >conftest.err
45867 cat conftest.err >&5
45868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45869 (exit $ac_status); } &&
45870 { ac_try='test -z "$ac_c_werror_flag"
45871 || test ! -s conftest.err'
45872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45873 (eval $ac_try) 2>&5
45875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45876 (exit $ac_status); }; } &&
45877 { ac_try='test -s conftest$ac_exeext'
45878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45879 (eval $ac_try) 2>&5
45881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882 (exit $ac_status); }; }; then
45883 eval "$as_ac_var=yes"
45885 echo "$as_me: failed program was:" >&5
45886 sed 's/^/| /' conftest.$ac_ext >&5
45888 eval "$as_ac_var=no"
45890 rm -f conftest.err conftest.$ac_objext \
45891 conftest$ac_exeext conftest.$ac_ext
45893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45895 if test `eval echo '${'$as_ac_var'}'` = yes; then
45896 cat >>confdefs.h <<_ACEOF
45897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45899 ice_have_printf=yes
45903 if test "${ice_have_printf}" = yes; then
45904 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
45905 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
45906 if test "${ice_cv_have_printf_decl+set}" = set; then
45907 echo $ECHO_N "(cached) $ECHO_C" >&6
45910 ice_cv_have_printf_decl=no
45911 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45912 ice_re_word='(^|[^a-zA-Z0-9_])'
45913 for header in stdio.h; do
45914 # Check for ordinary declaration
45915 cat >conftest.$ac_ext <<_ACEOF
45918 cat confdefs.h >>conftest.$ac_ext
45919 cat >>conftest.$ac_ext <<_ACEOF
45920 /* end confdefs.h. */
45924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45925 $EGREP "${ice_re_word}printf[ ]*\(" >/dev/null 2>&1; then
45926 ice_cv_have_printf_decl=yes
45930 if test "$ice_cv_have_printf_decl" = yes; then
45933 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45934 cat >conftest.$ac_ext <<_ACEOF
45937 cat confdefs.h >>conftest.$ac_ext
45938 cat >>conftest.$ac_ext <<_ACEOF
45939 /* end confdefs.h. */
45943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45944 $EGREP "${ice_re_word}printf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45945 ice_cv_have_printf_decl=yes
45949 if test "$ice_cv_have_printf_decl" = yes; then
45956 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
45957 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
45958 if test "$ice_cv_have_printf_decl" = yes; then
45960 cat >>confdefs.h <<_ACEOF
45961 #define HAVE_PRINTF_DECL 1
45968 for ac_func in putenv
45970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45971 echo "$as_me:$LINENO: checking for $ac_func" >&5
45972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45973 if eval "test \"\${$as_ac_var+set}\" = set"; then
45974 echo $ECHO_N "(cached) $ECHO_C" >&6
45976 cat >conftest.$ac_ext <<_ACEOF
45979 cat confdefs.h >>conftest.$ac_ext
45980 cat >>conftest.$ac_ext <<_ACEOF
45981 /* end confdefs.h. */
45982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45984 #define $ac_func innocuous_$ac_func
45986 /* System header to define __stub macros and hopefully few prototypes,
45987 which can conflict with char $ac_func (); below.
45988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45989 <limits.h> exists even on freestanding compilers. */
45992 # include <limits.h>
45994 # include <assert.h>
45999 /* Override any gcc2 internal prototype to avoid an error. */
46004 /* We use char because int might match the return type of a gcc2
46005 builtin and then its argument prototype would still apply. */
46007 /* The GNU C library defines this for functions which it implements
46008 to always fail with ENOSYS. Some functions are actually named
46009 something starting with __ and the normal name is an alias. */
46010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46013 char (*f) () = $ac_func;
46022 return f != $ac_func;
46027 rm -f conftest.$ac_objext conftest$ac_exeext
46028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46029 (eval $ac_link) 2>conftest.er1
46031 grep -v '^ *+' conftest.er1 >conftest.err
46033 cat conftest.err >&5
46034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035 (exit $ac_status); } &&
46036 { ac_try='test -z "$ac_c_werror_flag"
46037 || test ! -s conftest.err'
46038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46039 (eval $ac_try) 2>&5
46041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46042 (exit $ac_status); }; } &&
46043 { ac_try='test -s conftest$ac_exeext'
46044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045 (eval $ac_try) 2>&5
46047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048 (exit $ac_status); }; }; then
46049 eval "$as_ac_var=yes"
46051 echo "$as_me: failed program was:" >&5
46052 sed 's/^/| /' conftest.$ac_ext >&5
46054 eval "$as_ac_var=no"
46056 rm -f conftest.err conftest.$ac_objext \
46057 conftest$ac_exeext conftest.$ac_ext
46059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46061 if test `eval echo '${'$as_ac_var'}'` = yes; then
46062 cat >>confdefs.h <<_ACEOF
46063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46072 for ac_func in puts
46074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46075 echo "$as_me:$LINENO: checking for $ac_func" >&5
46076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46077 if eval "test \"\${$as_ac_var+set}\" = set"; then
46078 echo $ECHO_N "(cached) $ECHO_C" >&6
46080 cat >conftest.$ac_ext <<_ACEOF
46083 cat confdefs.h >>conftest.$ac_ext
46084 cat >>conftest.$ac_ext <<_ACEOF
46085 /* end confdefs.h. */
46086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46088 #define $ac_func innocuous_$ac_func
46090 /* System header to define __stub macros and hopefully few prototypes,
46091 which can conflict with char $ac_func (); below.
46092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46093 <limits.h> exists even on freestanding compilers. */
46096 # include <limits.h>
46098 # include <assert.h>
46103 /* Override any gcc2 internal prototype to avoid an error. */
46108 /* We use char because int might match the return type of a gcc2
46109 builtin and then its argument prototype would still apply. */
46111 /* The GNU C library defines this for functions which it implements
46112 to always fail with ENOSYS. Some functions are actually named
46113 something starting with __ and the normal name is an alias. */
46114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46117 char (*f) () = $ac_func;
46126 return f != $ac_func;
46131 rm -f conftest.$ac_objext conftest$ac_exeext
46132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46133 (eval $ac_link) 2>conftest.er1
46135 grep -v '^ *+' conftest.er1 >conftest.err
46137 cat conftest.err >&5
46138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46139 (exit $ac_status); } &&
46140 { ac_try='test -z "$ac_c_werror_flag"
46141 || test ! -s conftest.err'
46142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46143 (eval $ac_try) 2>&5
46145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46146 (exit $ac_status); }; } &&
46147 { ac_try='test -s conftest$ac_exeext'
46148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46149 (eval $ac_try) 2>&5
46151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46152 (exit $ac_status); }; }; then
46153 eval "$as_ac_var=yes"
46155 echo "$as_me: failed program was:" >&5
46156 sed 's/^/| /' conftest.$ac_ext >&5
46158 eval "$as_ac_var=no"
46160 rm -f conftest.err conftest.$ac_objext \
46161 conftest$ac_exeext conftest.$ac_ext
46163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46165 if test `eval echo '${'$as_ac_var'}'` = yes; then
46166 cat >>confdefs.h <<_ACEOF
46167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46173 if test "${ice_have_puts}" = yes; then
46174 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
46175 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
46176 if test "${ice_cv_have_puts_decl+set}" = set; then
46177 echo $ECHO_N "(cached) $ECHO_C" >&6
46180 ice_cv_have_puts_decl=no
46181 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46182 ice_re_word='(^|[^a-zA-Z0-9_])'
46183 for header in stdio.h; do
46184 # Check for ordinary declaration
46185 cat >conftest.$ac_ext <<_ACEOF
46188 cat confdefs.h >>conftest.$ac_ext
46189 cat >>conftest.$ac_ext <<_ACEOF
46190 /* end confdefs.h. */
46194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46195 $EGREP "${ice_re_word}puts[ ]*\(" >/dev/null 2>&1; then
46196 ice_cv_have_puts_decl=yes
46200 if test "$ice_cv_have_puts_decl" = yes; then
46203 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46204 cat >conftest.$ac_ext <<_ACEOF
46207 cat confdefs.h >>conftest.$ac_ext
46208 cat >>conftest.$ac_ext <<_ACEOF
46209 /* end confdefs.h. */
46213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46214 $EGREP "${ice_re_word}puts[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46215 ice_cv_have_puts_decl=yes
46219 if test "$ice_cv_have_puts_decl" = yes; then
46226 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
46227 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
46228 if test "$ice_cv_have_puts_decl" = yes; then
46230 cat >>confdefs.h <<_ACEOF
46231 #define HAVE_PUTS_DECL 1
46238 ice_have_realloc=no
46240 for ac_func in realloc
46242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46243 echo "$as_me:$LINENO: checking for $ac_func" >&5
46244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46245 if eval "test \"\${$as_ac_var+set}\" = set"; then
46246 echo $ECHO_N "(cached) $ECHO_C" >&6
46248 cat >conftest.$ac_ext <<_ACEOF
46251 cat confdefs.h >>conftest.$ac_ext
46252 cat >>conftest.$ac_ext <<_ACEOF
46253 /* end confdefs.h. */
46254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46256 #define $ac_func innocuous_$ac_func
46258 /* System header to define __stub macros and hopefully few prototypes,
46259 which can conflict with char $ac_func (); below.
46260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46261 <limits.h> exists even on freestanding compilers. */
46264 # include <limits.h>
46266 # include <assert.h>
46271 /* Override any gcc2 internal prototype to avoid an error. */
46276 /* We use char because int might match the return type of a gcc2
46277 builtin and then its argument prototype would still apply. */
46279 /* The GNU C library defines this for functions which it implements
46280 to always fail with ENOSYS. Some functions are actually named
46281 something starting with __ and the normal name is an alias. */
46282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46285 char (*f) () = $ac_func;
46294 return f != $ac_func;
46299 rm -f conftest.$ac_objext conftest$ac_exeext
46300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46301 (eval $ac_link) 2>conftest.er1
46303 grep -v '^ *+' conftest.er1 >conftest.err
46305 cat conftest.err >&5
46306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46307 (exit $ac_status); } &&
46308 { ac_try='test -z "$ac_c_werror_flag"
46309 || test ! -s conftest.err'
46310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46311 (eval $ac_try) 2>&5
46313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46314 (exit $ac_status); }; } &&
46315 { ac_try='test -s conftest$ac_exeext'
46316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46317 (eval $ac_try) 2>&5
46319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46320 (exit $ac_status); }; }; then
46321 eval "$as_ac_var=yes"
46323 echo "$as_me: failed program was:" >&5
46324 sed 's/^/| /' conftest.$ac_ext >&5
46326 eval "$as_ac_var=no"
46328 rm -f conftest.err conftest.$ac_objext \
46329 conftest$ac_exeext conftest.$ac_ext
46331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46333 if test `eval echo '${'$as_ac_var'}'` = yes; then
46334 cat >>confdefs.h <<_ACEOF
46335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46337 ice_have_realloc=yes
46341 if test "${ice_have_realloc}" = yes; then
46342 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
46343 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
46344 if test "${ice_cv_have_realloc_decl+set}" = set; then
46345 echo $ECHO_N "(cached) $ECHO_C" >&6
46348 ice_cv_have_realloc_decl=no
46349 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46350 ice_re_word='(^|[^a-zA-Z0-9_])'
46351 for header in stdlib.h; do
46352 # Check for ordinary declaration
46353 cat >conftest.$ac_ext <<_ACEOF
46356 cat confdefs.h >>conftest.$ac_ext
46357 cat >>conftest.$ac_ext <<_ACEOF
46358 /* end confdefs.h. */
46362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46363 $EGREP "${ice_re_word}realloc[ ]*\(" >/dev/null 2>&1; then
46364 ice_cv_have_realloc_decl=yes
46368 if test "$ice_cv_have_realloc_decl" = yes; then
46371 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46372 cat >conftest.$ac_ext <<_ACEOF
46375 cat confdefs.h >>conftest.$ac_ext
46376 cat >>conftest.$ac_ext <<_ACEOF
46377 /* end confdefs.h. */
46381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46382 $EGREP "${ice_re_word}realloc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46383 ice_cv_have_realloc_decl=yes
46387 if test "$ice_cv_have_realloc_decl" = yes; then
46394 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
46395 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
46396 if test "$ice_cv_have_realloc_decl" = yes; then
46398 cat >>confdefs.h <<_ACEOF
46399 #define HAVE_REALLOC_DECL 1
46406 ice_have_recvfrom=no
46408 for ac_func in recvfrom
46410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46411 echo "$as_me:$LINENO: checking for $ac_func" >&5
46412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46413 if eval "test \"\${$as_ac_var+set}\" = set"; then
46414 echo $ECHO_N "(cached) $ECHO_C" >&6
46416 cat >conftest.$ac_ext <<_ACEOF
46419 cat confdefs.h >>conftest.$ac_ext
46420 cat >>conftest.$ac_ext <<_ACEOF
46421 /* end confdefs.h. */
46422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46424 #define $ac_func innocuous_$ac_func
46426 /* System header to define __stub macros and hopefully few prototypes,
46427 which can conflict with char $ac_func (); below.
46428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46429 <limits.h> exists even on freestanding compilers. */
46432 # include <limits.h>
46434 # include <assert.h>
46439 /* Override any gcc2 internal prototype to avoid an error. */
46444 /* We use char because int might match the return type of a gcc2
46445 builtin and then its argument prototype would still apply. */
46447 /* The GNU C library defines this for functions which it implements
46448 to always fail with ENOSYS. Some functions are actually named
46449 something starting with __ and the normal name is an alias. */
46450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46453 char (*f) () = $ac_func;
46462 return f != $ac_func;
46467 rm -f conftest.$ac_objext conftest$ac_exeext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46469 (eval $ac_link) 2>conftest.er1
46471 grep -v '^ *+' conftest.er1 >conftest.err
46473 cat conftest.err >&5
46474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475 (exit $ac_status); } &&
46476 { ac_try='test -z "$ac_c_werror_flag"
46477 || test ! -s conftest.err'
46478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46479 (eval $ac_try) 2>&5
46481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482 (exit $ac_status); }; } &&
46483 { ac_try='test -s conftest$ac_exeext'
46484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485 (eval $ac_try) 2>&5
46487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488 (exit $ac_status); }; }; then
46489 eval "$as_ac_var=yes"
46491 echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46494 eval "$as_ac_var=no"
46496 rm -f conftest.err conftest.$ac_objext \
46497 conftest$ac_exeext conftest.$ac_ext
46499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46501 if test `eval echo '${'$as_ac_var'}'` = yes; then
46502 cat >>confdefs.h <<_ACEOF
46503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46505 ice_have_recvfrom=yes
46509 if test "${ice_have_recvfrom}" = yes; then
46510 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
46511 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46512 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
46513 echo $ECHO_N "(cached) $ECHO_C" >&6
46516 ice_cv_have_recvfrom_decl=no
46517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46518 ice_re_word='(^|[^a-zA-Z0-9_])'
46519 for header in sys/types.h sys/socket.h; do
46520 # Check for ordinary declaration
46521 cat >conftest.$ac_ext <<_ACEOF
46524 cat confdefs.h >>conftest.$ac_ext
46525 cat >>conftest.$ac_ext <<_ACEOF
46526 /* end confdefs.h. */
46530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46531 $EGREP "${ice_re_word}recvfrom[ ]*\(" >/dev/null 2>&1; then
46532 ice_cv_have_recvfrom_decl=yes
46536 if test "$ice_cv_have_recvfrom_decl" = yes; then
46539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46540 cat >conftest.$ac_ext <<_ACEOF
46543 cat confdefs.h >>conftest.$ac_ext
46544 cat >>conftest.$ac_ext <<_ACEOF
46545 /* end confdefs.h. */
46549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46550 $EGREP "${ice_re_word}recvfrom[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46551 ice_cv_have_recvfrom_decl=yes
46555 if test "$ice_cv_have_recvfrom_decl" = yes; then
46562 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
46563 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
46564 if test "$ice_cv_have_recvfrom_decl" = yes; then
46566 cat >>confdefs.h <<_ACEOF
46567 #define HAVE_RECVFROM_DECL 1
46576 for ac_func in remove
46578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46579 echo "$as_me:$LINENO: checking for $ac_func" >&5
46580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46581 if eval "test \"\${$as_ac_var+set}\" = set"; then
46582 echo $ECHO_N "(cached) $ECHO_C" >&6
46584 cat >conftest.$ac_ext <<_ACEOF
46587 cat confdefs.h >>conftest.$ac_ext
46588 cat >>conftest.$ac_ext <<_ACEOF
46589 /* end confdefs.h. */
46590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46592 #define $ac_func innocuous_$ac_func
46594 /* System header to define __stub macros and hopefully few prototypes,
46595 which can conflict with char $ac_func (); below.
46596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46597 <limits.h> exists even on freestanding compilers. */
46600 # include <limits.h>
46602 # include <assert.h>
46607 /* Override any gcc2 internal prototype to avoid an error. */
46612 /* We use char because int might match the return type of a gcc2
46613 builtin and then its argument prototype would still apply. */
46615 /* The GNU C library defines this for functions which it implements
46616 to always fail with ENOSYS. Some functions are actually named
46617 something starting with __ and the normal name is an alias. */
46618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46621 char (*f) () = $ac_func;
46630 return f != $ac_func;
46635 rm -f conftest.$ac_objext conftest$ac_exeext
46636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46637 (eval $ac_link) 2>conftest.er1
46639 grep -v '^ *+' conftest.er1 >conftest.err
46641 cat conftest.err >&5
46642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643 (exit $ac_status); } &&
46644 { ac_try='test -z "$ac_c_werror_flag"
46645 || test ! -s conftest.err'
46646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46647 (eval $ac_try) 2>&5
46649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46650 (exit $ac_status); }; } &&
46651 { ac_try='test -s conftest$ac_exeext'
46652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46653 (eval $ac_try) 2>&5
46655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656 (exit $ac_status); }; }; then
46657 eval "$as_ac_var=yes"
46659 echo "$as_me: failed program was:" >&5
46660 sed 's/^/| /' conftest.$ac_ext >&5
46662 eval "$as_ac_var=no"
46664 rm -f conftest.err conftest.$ac_objext \
46665 conftest$ac_exeext conftest.$ac_ext
46667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46669 if test `eval echo '${'$as_ac_var'}'` = yes; then
46670 cat >>confdefs.h <<_ACEOF
46671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46673 ice_have_remove=yes
46677 if test "${ice_have_remove}" = yes; then
46678 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
46679 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
46680 if test "${ice_cv_have_remove_decl+set}" = set; then
46681 echo $ECHO_N "(cached) $ECHO_C" >&6
46684 ice_cv_have_remove_decl=no
46685 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46686 ice_re_word='(^|[^a-zA-Z0-9_])'
46687 for header in stdio.h; do
46688 # Check for ordinary declaration
46689 cat >conftest.$ac_ext <<_ACEOF
46692 cat confdefs.h >>conftest.$ac_ext
46693 cat >>conftest.$ac_ext <<_ACEOF
46694 /* end confdefs.h. */
46698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46699 $EGREP "${ice_re_word}remove[ ]*\(" >/dev/null 2>&1; then
46700 ice_cv_have_remove_decl=yes
46704 if test "$ice_cv_have_remove_decl" = yes; then
46707 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46708 cat >conftest.$ac_ext <<_ACEOF
46711 cat confdefs.h >>conftest.$ac_ext
46712 cat >>conftest.$ac_ext <<_ACEOF
46713 /* end confdefs.h. */
46717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46718 $EGREP "${ice_re_word}remove[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46719 ice_cv_have_remove_decl=yes
46723 if test "$ice_cv_have_remove_decl" = yes; then
46730 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
46731 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
46732 if test "$ice_cv_have_remove_decl" = yes; then
46734 cat >>confdefs.h <<_ACEOF
46735 #define HAVE_REMOVE_DECL 1
46744 for ac_func in rename
46746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46747 echo "$as_me:$LINENO: checking for $ac_func" >&5
46748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46749 if eval "test \"\${$as_ac_var+set}\" = set"; then
46750 echo $ECHO_N "(cached) $ECHO_C" >&6
46752 cat >conftest.$ac_ext <<_ACEOF
46755 cat confdefs.h >>conftest.$ac_ext
46756 cat >>conftest.$ac_ext <<_ACEOF
46757 /* end confdefs.h. */
46758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46760 #define $ac_func innocuous_$ac_func
46762 /* System header to define __stub macros and hopefully few prototypes,
46763 which can conflict with char $ac_func (); below.
46764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46765 <limits.h> exists even on freestanding compilers. */
46768 # include <limits.h>
46770 # include <assert.h>
46775 /* Override any gcc2 internal prototype to avoid an error. */
46780 /* We use char because int might match the return type of a gcc2
46781 builtin and then its argument prototype would still apply. */
46783 /* The GNU C library defines this for functions which it implements
46784 to always fail with ENOSYS. Some functions are actually named
46785 something starting with __ and the normal name is an alias. */
46786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46789 char (*f) () = $ac_func;
46798 return f != $ac_func;
46803 rm -f conftest.$ac_objext conftest$ac_exeext
46804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46805 (eval $ac_link) 2>conftest.er1
46807 grep -v '^ *+' conftest.er1 >conftest.err
46809 cat conftest.err >&5
46810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46811 (exit $ac_status); } &&
46812 { ac_try='test -z "$ac_c_werror_flag"
46813 || test ! -s conftest.err'
46814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46815 (eval $ac_try) 2>&5
46817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818 (exit $ac_status); }; } &&
46819 { ac_try='test -s conftest$ac_exeext'
46820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46821 (eval $ac_try) 2>&5
46823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824 (exit $ac_status); }; }; then
46825 eval "$as_ac_var=yes"
46827 echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46830 eval "$as_ac_var=no"
46832 rm -f conftest.err conftest.$ac_objext \
46833 conftest$ac_exeext conftest.$ac_ext
46835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46837 if test `eval echo '${'$as_ac_var'}'` = yes; then
46838 cat >>confdefs.h <<_ACEOF
46839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46841 ice_have_rename=yes
46845 if test "${ice_have_rename}" = yes; then
46846 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
46847 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
46848 if test "${ice_cv_have_rename_decl+set}" = set; then
46849 echo $ECHO_N "(cached) $ECHO_C" >&6
46852 ice_cv_have_rename_decl=no
46853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46854 ice_re_word='(^|[^a-zA-Z0-9_])'
46855 for header in stdio.h; do
46856 # Check for ordinary declaration
46857 cat >conftest.$ac_ext <<_ACEOF
46860 cat confdefs.h >>conftest.$ac_ext
46861 cat >>conftest.$ac_ext <<_ACEOF
46862 /* end confdefs.h. */
46866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46867 $EGREP "${ice_re_word}rename[ ]*\(" >/dev/null 2>&1; then
46868 ice_cv_have_rename_decl=yes
46872 if test "$ice_cv_have_rename_decl" = yes; then
46875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46876 cat >conftest.$ac_ext <<_ACEOF
46879 cat confdefs.h >>conftest.$ac_ext
46880 cat >>conftest.$ac_ext <<_ACEOF
46881 /* end confdefs.h. */
46885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46886 $EGREP "${ice_re_word}rename[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46887 ice_cv_have_rename_decl=yes
46891 if test "$ice_cv_have_rename_decl" = yes; then
46898 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
46899 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
46900 if test "$ice_cv_have_rename_decl" = yes; then
46902 cat >>confdefs.h <<_ACEOF
46903 #define HAVE_RENAME_DECL 1
46912 for ac_func in rewind
46914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46915 echo "$as_me:$LINENO: checking for $ac_func" >&5
46916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46917 if eval "test \"\${$as_ac_var+set}\" = set"; then
46918 echo $ECHO_N "(cached) $ECHO_C" >&6
46920 cat >conftest.$ac_ext <<_ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h. */
46926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46928 #define $ac_func innocuous_$ac_func
46930 /* System header to define __stub macros and hopefully few prototypes,
46931 which can conflict with char $ac_func (); below.
46932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46933 <limits.h> exists even on freestanding compilers. */
46936 # include <limits.h>
46938 # include <assert.h>
46943 /* Override any gcc2 internal prototype to avoid an error. */
46948 /* We use char because int might match the return type of a gcc2
46949 builtin and then its argument prototype would still apply. */
46951 /* The GNU C library defines this for functions which it implements
46952 to always fail with ENOSYS. Some functions are actually named
46953 something starting with __ and the normal name is an alias. */
46954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46957 char (*f) () = $ac_func;
46966 return f != $ac_func;
46971 rm -f conftest.$ac_objext conftest$ac_exeext
46972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46973 (eval $ac_link) 2>conftest.er1
46975 grep -v '^ *+' conftest.er1 >conftest.err
46977 cat conftest.err >&5
46978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46979 (exit $ac_status); } &&
46980 { ac_try='test -z "$ac_c_werror_flag"
46981 || test ! -s conftest.err'
46982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46983 (eval $ac_try) 2>&5
46985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46986 (exit $ac_status); }; } &&
46987 { ac_try='test -s conftest$ac_exeext'
46988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46989 (eval $ac_try) 2>&5
46991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46992 (exit $ac_status); }; }; then
46993 eval "$as_ac_var=yes"
46995 echo "$as_me: failed program was:" >&5
46996 sed 's/^/| /' conftest.$ac_ext >&5
46998 eval "$as_ac_var=no"
47000 rm -f conftest.err conftest.$ac_objext \
47001 conftest$ac_exeext conftest.$ac_ext
47003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47005 if test `eval echo '${'$as_ac_var'}'` = yes; then
47006 cat >>confdefs.h <<_ACEOF
47007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47009 ice_have_rewind=yes
47013 if test "${ice_have_rewind}" = yes; then
47014 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
47015 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
47016 if test "${ice_cv_have_rewind_decl+set}" = set; then
47017 echo $ECHO_N "(cached) $ECHO_C" >&6
47020 ice_cv_have_rewind_decl=no
47021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47022 ice_re_word='(^|[^a-zA-Z0-9_])'
47023 for header in stdio.h; do
47024 # Check for ordinary declaration
47025 cat >conftest.$ac_ext <<_ACEOF
47028 cat confdefs.h >>conftest.$ac_ext
47029 cat >>conftest.$ac_ext <<_ACEOF
47030 /* end confdefs.h. */
47034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47035 $EGREP "${ice_re_word}rewind[ ]*\(" >/dev/null 2>&1; then
47036 ice_cv_have_rewind_decl=yes
47040 if test "$ice_cv_have_rewind_decl" = yes; then
47043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47044 cat >conftest.$ac_ext <<_ACEOF
47047 cat confdefs.h >>conftest.$ac_ext
47048 cat >>conftest.$ac_ext <<_ACEOF
47049 /* end confdefs.h. */
47053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47054 $EGREP "${ice_re_word}rewind[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47055 ice_cv_have_rewind_decl=yes
47059 if test "$ice_cv_have_rewind_decl" = yes; then
47066 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
47067 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
47068 if test "$ice_cv_have_rewind_decl" = yes; then
47070 cat >>confdefs.h <<_ACEOF
47071 #define HAVE_REWIND_DECL 1
47078 for ac_func in rmdir
47080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47081 echo "$as_me:$LINENO: checking for $ac_func" >&5
47082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47083 if eval "test \"\${$as_ac_var+set}\" = set"; then
47084 echo $ECHO_N "(cached) $ECHO_C" >&6
47086 cat >conftest.$ac_ext <<_ACEOF
47089 cat confdefs.h >>conftest.$ac_ext
47090 cat >>conftest.$ac_ext <<_ACEOF
47091 /* end confdefs.h. */
47092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47094 #define $ac_func innocuous_$ac_func
47096 /* System header to define __stub macros and hopefully few prototypes,
47097 which can conflict with char $ac_func (); below.
47098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47099 <limits.h> exists even on freestanding compilers. */
47102 # include <limits.h>
47104 # include <assert.h>
47109 /* Override any gcc2 internal prototype to avoid an error. */
47114 /* We use char because int might match the return type of a gcc2
47115 builtin and then its argument prototype would still apply. */
47117 /* The GNU C library defines this for functions which it implements
47118 to always fail with ENOSYS. Some functions are actually named
47119 something starting with __ and the normal name is an alias. */
47120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47123 char (*f) () = $ac_func;
47132 return f != $ac_func;
47137 rm -f conftest.$ac_objext conftest$ac_exeext
47138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47139 (eval $ac_link) 2>conftest.er1
47141 grep -v '^ *+' conftest.er1 >conftest.err
47143 cat conftest.err >&5
47144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145 (exit $ac_status); } &&
47146 { ac_try='test -z "$ac_c_werror_flag"
47147 || test ! -s conftest.err'
47148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47149 (eval $ac_try) 2>&5
47151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152 (exit $ac_status); }; } &&
47153 { ac_try='test -s conftest$ac_exeext'
47154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47155 (eval $ac_try) 2>&5
47157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47158 (exit $ac_status); }; }; then
47159 eval "$as_ac_var=yes"
47161 echo "$as_me: failed program was:" >&5
47162 sed 's/^/| /' conftest.$ac_ext >&5
47164 eval "$as_ac_var=no"
47166 rm -f conftest.err conftest.$ac_objext \
47167 conftest$ac_exeext conftest.$ac_ext
47169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47171 if test `eval echo '${'$as_ac_var'}'` = yes; then
47172 cat >>confdefs.h <<_ACEOF
47173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47180 ice_have_ruserok=no
47182 for ac_func in ruserok
47184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47185 echo "$as_me:$LINENO: checking for $ac_func" >&5
47186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47187 if eval "test \"\${$as_ac_var+set}\" = set"; then
47188 echo $ECHO_N "(cached) $ECHO_C" >&6
47190 cat >conftest.$ac_ext <<_ACEOF
47193 cat confdefs.h >>conftest.$ac_ext
47194 cat >>conftest.$ac_ext <<_ACEOF
47195 /* end confdefs.h. */
47196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47198 #define $ac_func innocuous_$ac_func
47200 /* System header to define __stub macros and hopefully few prototypes,
47201 which can conflict with char $ac_func (); below.
47202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47203 <limits.h> exists even on freestanding compilers. */
47206 # include <limits.h>
47208 # include <assert.h>
47213 /* Override any gcc2 internal prototype to avoid an error. */
47218 /* We use char because int might match the return type of a gcc2
47219 builtin and then its argument prototype would still apply. */
47221 /* The GNU C library defines this for functions which it implements
47222 to always fail with ENOSYS. Some functions are actually named
47223 something starting with __ and the normal name is an alias. */
47224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47227 char (*f) () = $ac_func;
47236 return f != $ac_func;
47241 rm -f conftest.$ac_objext conftest$ac_exeext
47242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47243 (eval $ac_link) 2>conftest.er1
47245 grep -v '^ *+' conftest.er1 >conftest.err
47247 cat conftest.err >&5
47248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47249 (exit $ac_status); } &&
47250 { ac_try='test -z "$ac_c_werror_flag"
47251 || test ! -s conftest.err'
47252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47253 (eval $ac_try) 2>&5
47255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256 (exit $ac_status); }; } &&
47257 { ac_try='test -s conftest$ac_exeext'
47258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47259 (eval $ac_try) 2>&5
47261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47262 (exit $ac_status); }; }; then
47263 eval "$as_ac_var=yes"
47265 echo "$as_me: failed program was:" >&5
47266 sed 's/^/| /' conftest.$ac_ext >&5
47268 eval "$as_ac_var=no"
47270 rm -f conftest.err conftest.$ac_objext \
47271 conftest$ac_exeext conftest.$ac_ext
47273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47275 if test `eval echo '${'$as_ac_var'}'` = yes; then
47276 cat >>confdefs.h <<_ACEOF
47277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47279 ice_have_ruserok=yes
47283 if test "${ice_have_ruserok}" = yes; then
47284 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
47285 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
47286 if test "${ice_cv_have_ruserok_decl+set}" = set; then
47287 echo $ECHO_N "(cached) $ECHO_C" >&6
47290 ice_cv_have_ruserok_decl=no
47291 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47292 ice_re_word='(^|[^a-zA-Z0-9_])'
47293 for header in netdb.h sys/socket.h libc.h unistd.h; do
47294 # Check for ordinary declaration
47295 cat >conftest.$ac_ext <<_ACEOF
47298 cat confdefs.h >>conftest.$ac_ext
47299 cat >>conftest.$ac_ext <<_ACEOF
47300 /* end confdefs.h. */
47304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47305 $EGREP "${ice_re_word}ruserok[ ]*\(" >/dev/null 2>&1; then
47306 ice_cv_have_ruserok_decl=yes
47310 if test "$ice_cv_have_ruserok_decl" = yes; then
47313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47314 cat >conftest.$ac_ext <<_ACEOF
47317 cat confdefs.h >>conftest.$ac_ext
47318 cat >>conftest.$ac_ext <<_ACEOF
47319 /* end confdefs.h. */
47323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47324 $EGREP "${ice_re_word}ruserok[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47325 ice_cv_have_ruserok_decl=yes
47329 if test "$ice_cv_have_ruserok_decl" = yes; then
47336 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
47337 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
47338 if test "$ice_cv_have_ruserok_decl" = yes; then
47340 cat >>confdefs.h <<_ACEOF
47341 #define HAVE_RUSEROK_DECL 1
47350 for ac_func in select
47352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47353 echo "$as_me:$LINENO: checking for $ac_func" >&5
47354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47355 if eval "test \"\${$as_ac_var+set}\" = set"; then
47356 echo $ECHO_N "(cached) $ECHO_C" >&6
47358 cat >conftest.$ac_ext <<_ACEOF
47361 cat confdefs.h >>conftest.$ac_ext
47362 cat >>conftest.$ac_ext <<_ACEOF
47363 /* end confdefs.h. */
47364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47366 #define $ac_func innocuous_$ac_func
47368 /* System header to define __stub macros and hopefully few prototypes,
47369 which can conflict with char $ac_func (); below.
47370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47371 <limits.h> exists even on freestanding compilers. */
47374 # include <limits.h>
47376 # include <assert.h>
47381 /* Override any gcc2 internal prototype to avoid an error. */
47386 /* We use char because int might match the return type of a gcc2
47387 builtin and then its argument prototype would still apply. */
47389 /* The GNU C library defines this for functions which it implements
47390 to always fail with ENOSYS. Some functions are actually named
47391 something starting with __ and the normal name is an alias. */
47392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47395 char (*f) () = $ac_func;
47404 return f != $ac_func;
47409 rm -f conftest.$ac_objext conftest$ac_exeext
47410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47411 (eval $ac_link) 2>conftest.er1
47413 grep -v '^ *+' conftest.er1 >conftest.err
47415 cat conftest.err >&5
47416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417 (exit $ac_status); } &&
47418 { ac_try='test -z "$ac_c_werror_flag"
47419 || test ! -s conftest.err'
47420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421 (eval $ac_try) 2>&5
47423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424 (exit $ac_status); }; } &&
47425 { ac_try='test -s conftest$ac_exeext'
47426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427 (eval $ac_try) 2>&5
47429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430 (exit $ac_status); }; }; then
47431 eval "$as_ac_var=yes"
47433 echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47436 eval "$as_ac_var=no"
47438 rm -f conftest.err conftest.$ac_objext \
47439 conftest$ac_exeext conftest.$ac_ext
47441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47443 if test `eval echo '${'$as_ac_var'}'` = yes; then
47444 cat >>confdefs.h <<_ACEOF
47445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47447 ice_have_select=yes
47451 if test "${ice_have_select}" = yes; then
47452 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
47453 echo $ECHO_N "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... $ECHO_C" >&6
47454 if test "${ice_cv_have_select_decl+set}" = set; then
47455 echo $ECHO_N "(cached) $ECHO_C" >&6
47458 ice_cv_have_select_decl=no
47459 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47460 ice_re_word='(^|[^a-zA-Z0-9_])'
47461 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
47462 # Check for ordinary declaration
47463 cat >conftest.$ac_ext <<_ACEOF
47466 cat confdefs.h >>conftest.$ac_ext
47467 cat >>conftest.$ac_ext <<_ACEOF
47468 /* end confdefs.h. */
47472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47473 $EGREP "${ice_re_word}select[ ]*\(" >/dev/null 2>&1; then
47474 ice_cv_have_select_decl=yes
47478 if test "$ice_cv_have_select_decl" = yes; then
47481 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47482 cat >conftest.$ac_ext <<_ACEOF
47485 cat confdefs.h >>conftest.$ac_ext
47486 cat >>conftest.$ac_ext <<_ACEOF
47487 /* end confdefs.h. */
47491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47492 $EGREP "${ice_re_word}select[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47493 ice_cv_have_select_decl=yes
47497 if test "$ice_cv_have_select_decl" = yes; then
47504 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
47505 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
47506 if test "$ice_cv_have_select_decl" = yes; then
47508 cat >>confdefs.h <<_ACEOF
47509 #define HAVE_SELECT_DECL 1
47516 echo "$as_me:$LINENO: checking for select() argument type" >&5
47517 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
47518 if test "${amanda_cv_select_arg_type+set}" = set; then
47519 echo $ECHO_N "(cached) $ECHO_C" >&6
47523 cat <<EOF >conftest.$ac_ext
47524 #include "confdefs.h"
47525 #ifdef HAVE_SYS_TIME_H
47526 # include <sys/time.h>
47528 #ifdef HAVE_SYS_TYPES_H
47529 # include <sys/types.h>
47531 #ifdef HAVE_SYS_SELECT_H
47532 # include <sys/select.h>
47534 #ifdef HAVE_SYS_SOCKET_H
47535 # include <sys/socket.h>
47537 #ifdef HAVE_UNISTD_H
47538 # include <unistd.h>
47543 #ifdef FD_SET_POINTER
47544 (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
47546 (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
47552 amanda_cv_select_arg_type=no
47553 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
47554 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
47555 if test $? -ne 0; then
47556 amanda_cv_select_arg_type=int
47558 if test "$amanda_cv_select_arg_type" = no; then
47559 $select_compile conftest.$ac_ext 1>conftest.int 2>&1
47560 if test $? -ne 0; then
47561 amanda_cv_select_arg_type=fd_set
47564 if test "$amanda_cv_select_arg_type" = no; then
47565 wc_fdset=`wc -l <conftest.fd_set`
47566 wc_int=`wc -l <conftest.int`
47567 if test "$wc_fdset" -le "$wc_int"; then
47568 amanda_cv_select_arg_type=fd_set
47570 amanda_cv_select_arg_type=int
47577 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
47578 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
47580 cat >>confdefs.h <<_ACEOF
47581 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
47589 for ac_func in sendto
47591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47592 echo "$as_me:$LINENO: checking for $ac_func" >&5
47593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47594 if eval "test \"\${$as_ac_var+set}\" = set"; then
47595 echo $ECHO_N "(cached) $ECHO_C" >&6
47597 cat >conftest.$ac_ext <<_ACEOF
47600 cat confdefs.h >>conftest.$ac_ext
47601 cat >>conftest.$ac_ext <<_ACEOF
47602 /* end confdefs.h. */
47603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47605 #define $ac_func innocuous_$ac_func
47607 /* System header to define __stub macros and hopefully few prototypes,
47608 which can conflict with char $ac_func (); below.
47609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47610 <limits.h> exists even on freestanding compilers. */
47613 # include <limits.h>
47615 # include <assert.h>
47620 /* Override any gcc2 internal prototype to avoid an error. */
47625 /* We use char because int might match the return type of a gcc2
47626 builtin and then its argument prototype would still apply. */
47628 /* The GNU C library defines this for functions which it implements
47629 to always fail with ENOSYS. Some functions are actually named
47630 something starting with __ and the normal name is an alias. */
47631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47634 char (*f) () = $ac_func;
47643 return f != $ac_func;
47648 rm -f conftest.$ac_objext conftest$ac_exeext
47649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47650 (eval $ac_link) 2>conftest.er1
47652 grep -v '^ *+' conftest.er1 >conftest.err
47654 cat conftest.err >&5
47655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47656 (exit $ac_status); } &&
47657 { ac_try='test -z "$ac_c_werror_flag"
47658 || test ! -s conftest.err'
47659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47660 (eval $ac_try) 2>&5
47662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663 (exit $ac_status); }; } &&
47664 { ac_try='test -s conftest$ac_exeext'
47665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47666 (eval $ac_try) 2>&5
47668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47669 (exit $ac_status); }; }; then
47670 eval "$as_ac_var=yes"
47672 echo "$as_me: failed program was:" >&5
47673 sed 's/^/| /' conftest.$ac_ext >&5
47675 eval "$as_ac_var=no"
47677 rm -f conftest.err conftest.$ac_objext \
47678 conftest$ac_exeext conftest.$ac_ext
47680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47682 if test `eval echo '${'$as_ac_var'}'` = yes; then
47683 cat >>confdefs.h <<_ACEOF
47684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47686 ice_have_sendto=yes
47690 if test "${ice_have_sendto}" = yes; then
47691 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
47692 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47693 if test "${ice_cv_have_sendto_decl+set}" = set; then
47694 echo $ECHO_N "(cached) $ECHO_C" >&6
47697 ice_cv_have_sendto_decl=no
47698 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47699 ice_re_word='(^|[^a-zA-Z0-9_])'
47700 for header in sys/types.h sys/socket.h; do
47701 # Check for ordinary declaration
47702 cat >conftest.$ac_ext <<_ACEOF
47705 cat confdefs.h >>conftest.$ac_ext
47706 cat >>conftest.$ac_ext <<_ACEOF
47707 /* end confdefs.h. */
47711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47712 $EGREP "${ice_re_word}sendto[ ]*\(" >/dev/null 2>&1; then
47713 ice_cv_have_sendto_decl=yes
47717 if test "$ice_cv_have_sendto_decl" = yes; then
47720 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47721 cat >conftest.$ac_ext <<_ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h. */
47730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47731 $EGREP "${ice_re_word}sendto[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47732 ice_cv_have_sendto_decl=yes
47736 if test "$ice_cv_have_sendto_decl" = yes; then
47743 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
47744 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
47745 if test "$ice_cv_have_sendto_decl" = yes; then
47747 cat >>confdefs.h <<_ACEOF
47748 #define HAVE_SENDTO_DECL 1
47755 ice_have_setegid=no
47757 for ac_func in setegid
47759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47760 echo "$as_me:$LINENO: checking for $ac_func" >&5
47761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47762 if eval "test \"\${$as_ac_var+set}\" = set"; then
47763 echo $ECHO_N "(cached) $ECHO_C" >&6
47765 cat >conftest.$ac_ext <<_ACEOF
47768 cat confdefs.h >>conftest.$ac_ext
47769 cat >>conftest.$ac_ext <<_ACEOF
47770 /* end confdefs.h. */
47771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47773 #define $ac_func innocuous_$ac_func
47775 /* System header to define __stub macros and hopefully few prototypes,
47776 which can conflict with char $ac_func (); below.
47777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47778 <limits.h> exists even on freestanding compilers. */
47781 # include <limits.h>
47783 # include <assert.h>
47788 /* Override any gcc2 internal prototype to avoid an error. */
47793 /* We use char because int might match the return type of a gcc2
47794 builtin and then its argument prototype would still apply. */
47796 /* The GNU C library defines this for functions which it implements
47797 to always fail with ENOSYS. Some functions are actually named
47798 something starting with __ and the normal name is an alias. */
47799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47802 char (*f) () = $ac_func;
47811 return f != $ac_func;
47816 rm -f conftest.$ac_objext conftest$ac_exeext
47817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47818 (eval $ac_link) 2>conftest.er1
47820 grep -v '^ *+' conftest.er1 >conftest.err
47822 cat conftest.err >&5
47823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824 (exit $ac_status); } &&
47825 { ac_try='test -z "$ac_c_werror_flag"
47826 || test ! -s conftest.err'
47827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47828 (eval $ac_try) 2>&5
47830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831 (exit $ac_status); }; } &&
47832 { ac_try='test -s conftest$ac_exeext'
47833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47834 (eval $ac_try) 2>&5
47836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47837 (exit $ac_status); }; }; then
47838 eval "$as_ac_var=yes"
47840 echo "$as_me: failed program was:" >&5
47841 sed 's/^/| /' conftest.$ac_ext >&5
47843 eval "$as_ac_var=no"
47845 rm -f conftest.err conftest.$ac_objext \
47846 conftest$ac_exeext conftest.$ac_ext
47848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47850 if test `eval echo '${'$as_ac_var'}'` = yes; then
47851 cat >>confdefs.h <<_ACEOF
47852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47854 ice_have_setegid=yes
47858 if test "${ice_have_setegid}" = yes; then
47859 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
47860 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
47861 if test "${ice_cv_have_setegid_decl+set}" = set; then
47862 echo $ECHO_N "(cached) $ECHO_C" >&6
47865 ice_cv_have_setegid_decl=no
47866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47867 ice_re_word='(^|[^a-zA-Z0-9_])'
47868 for header in unistd.h; do
47869 # Check for ordinary declaration
47870 cat >conftest.$ac_ext <<_ACEOF
47873 cat confdefs.h >>conftest.$ac_ext
47874 cat >>conftest.$ac_ext <<_ACEOF
47875 /* end confdefs.h. */
47879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47880 $EGREP "${ice_re_word}setegid[ ]*\(" >/dev/null 2>&1; then
47881 ice_cv_have_setegid_decl=yes
47885 if test "$ice_cv_have_setegid_decl" = yes; then
47888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47889 cat >conftest.$ac_ext <<_ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h. */
47898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47899 $EGREP "${ice_re_word}setegid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47900 ice_cv_have_setegid_decl=yes
47904 if test "$ice_cv_have_setegid_decl" = yes; then
47911 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
47912 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
47913 if test "$ice_cv_have_setegid_decl" = yes; then
47915 cat >>confdefs.h <<_ACEOF
47916 #define HAVE_SETEGID_DECL 1
47923 ice_have_seteuid=no
47925 for ac_func in seteuid
47927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47928 echo "$as_me:$LINENO: checking for $ac_func" >&5
47929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47930 if eval "test \"\${$as_ac_var+set}\" = set"; then
47931 echo $ECHO_N "(cached) $ECHO_C" >&6
47933 cat >conftest.$ac_ext <<_ACEOF
47936 cat confdefs.h >>conftest.$ac_ext
47937 cat >>conftest.$ac_ext <<_ACEOF
47938 /* end confdefs.h. */
47939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47941 #define $ac_func innocuous_$ac_func
47943 /* System header to define __stub macros and hopefully few prototypes,
47944 which can conflict with char $ac_func (); below.
47945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47946 <limits.h> exists even on freestanding compilers. */
47949 # include <limits.h>
47951 # include <assert.h>
47956 /* Override any gcc2 internal prototype to avoid an error. */
47961 /* We use char because int might match the return type of a gcc2
47962 builtin and then its argument prototype would still apply. */
47964 /* The GNU C library defines this for functions which it implements
47965 to always fail with ENOSYS. Some functions are actually named
47966 something starting with __ and the normal name is an alias. */
47967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47970 char (*f) () = $ac_func;
47979 return f != $ac_func;
47984 rm -f conftest.$ac_objext conftest$ac_exeext
47985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47986 (eval $ac_link) 2>conftest.er1
47988 grep -v '^ *+' conftest.er1 >conftest.err
47990 cat conftest.err >&5
47991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992 (exit $ac_status); } &&
47993 { ac_try='test -z "$ac_c_werror_flag"
47994 || test ! -s conftest.err'
47995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996 (eval $ac_try) 2>&5
47998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999 (exit $ac_status); }; } &&
48000 { ac_try='test -s conftest$ac_exeext'
48001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002 (eval $ac_try) 2>&5
48004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005 (exit $ac_status); }; }; then
48006 eval "$as_ac_var=yes"
48008 echo "$as_me: failed program was:" >&5
48009 sed 's/^/| /' conftest.$ac_ext >&5
48011 eval "$as_ac_var=no"
48013 rm -f conftest.err conftest.$ac_objext \
48014 conftest$ac_exeext conftest.$ac_ext
48016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48018 if test `eval echo '${'$as_ac_var'}'` = yes; then
48019 cat >>confdefs.h <<_ACEOF
48020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48022 ice_have_seteuid=yes
48026 if test "${ice_have_seteuid}" = yes; then
48027 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
48028 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
48029 if test "${ice_cv_have_seteuid_decl+set}" = set; then
48030 echo $ECHO_N "(cached) $ECHO_C" >&6
48033 ice_cv_have_seteuid_decl=no
48034 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48035 ice_re_word='(^|[^a-zA-Z0-9_])'
48036 for header in unistd.h; do
48037 # Check for ordinary declaration
48038 cat >conftest.$ac_ext <<_ACEOF
48041 cat confdefs.h >>conftest.$ac_ext
48042 cat >>conftest.$ac_ext <<_ACEOF
48043 /* end confdefs.h. */
48047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48048 $EGREP "${ice_re_word}seteuid[ ]*\(" >/dev/null 2>&1; then
48049 ice_cv_have_seteuid_decl=yes
48053 if test "$ice_cv_have_seteuid_decl" = yes; then
48056 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48057 cat >conftest.$ac_ext <<_ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h. */
48066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48067 $EGREP "${ice_re_word}seteuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48068 ice_cv_have_seteuid_decl=yes
48072 if test "$ice_cv_have_seteuid_decl" = yes; then
48079 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
48080 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
48081 if test "$ice_cv_have_seteuid_decl" = yes; then
48083 cat >>confdefs.h <<_ACEOF
48084 #define HAVE_SETEUID_DECL 1
48091 for ac_func in setmntent
48093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48094 echo "$as_me:$LINENO: checking for $ac_func" >&5
48095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48096 if eval "test \"\${$as_ac_var+set}\" = set"; then
48097 echo $ECHO_N "(cached) $ECHO_C" >&6
48099 cat >conftest.$ac_ext <<_ACEOF
48102 cat confdefs.h >>conftest.$ac_ext
48103 cat >>conftest.$ac_ext <<_ACEOF
48104 /* end confdefs.h. */
48105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48107 #define $ac_func innocuous_$ac_func
48109 /* System header to define __stub macros and hopefully few prototypes,
48110 which can conflict with char $ac_func (); below.
48111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48112 <limits.h> exists even on freestanding compilers. */
48115 # include <limits.h>
48117 # include <assert.h>
48122 /* Override any gcc2 internal prototype to avoid an error. */
48127 /* We use char because int might match the return type of a gcc2
48128 builtin and then its argument prototype would still apply. */
48130 /* The GNU C library defines this for functions which it implements
48131 to always fail with ENOSYS. Some functions are actually named
48132 something starting with __ and the normal name is an alias. */
48133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48136 char (*f) () = $ac_func;
48145 return f != $ac_func;
48150 rm -f conftest.$ac_objext conftest$ac_exeext
48151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48152 (eval $ac_link) 2>conftest.er1
48154 grep -v '^ *+' conftest.er1 >conftest.err
48156 cat conftest.err >&5
48157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48158 (exit $ac_status); } &&
48159 { ac_try='test -z "$ac_c_werror_flag"
48160 || test ! -s conftest.err'
48161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48162 (eval $ac_try) 2>&5
48164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48165 (exit $ac_status); }; } &&
48166 { ac_try='test -s conftest$ac_exeext'
48167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48168 (eval $ac_try) 2>&5
48170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48171 (exit $ac_status); }; }; then
48172 eval "$as_ac_var=yes"
48174 echo "$as_me: failed program was:" >&5
48175 sed 's/^/| /' conftest.$ac_ext >&5
48177 eval "$as_ac_var=no"
48179 rm -f conftest.err conftest.$ac_objext \
48180 conftest$ac_exeext conftest.$ac_ext
48182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48184 if test `eval echo '${'$as_ac_var'}'` = yes; then
48185 cat >>confdefs.h <<_ACEOF
48186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48193 for ac_func in shquote
48195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48196 echo "$as_me:$LINENO: checking for $ac_func" >&5
48197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48198 if eval "test \"\${$as_ac_var+set}\" = set"; then
48199 echo $ECHO_N "(cached) $ECHO_C" >&6
48201 cat >conftest.$ac_ext <<_ACEOF
48204 cat confdefs.h >>conftest.$ac_ext
48205 cat >>conftest.$ac_ext <<_ACEOF
48206 /* end confdefs.h. */
48207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48209 #define $ac_func innocuous_$ac_func
48211 /* System header to define __stub macros and hopefully few prototypes,
48212 which can conflict with char $ac_func (); below.
48213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48214 <limits.h> exists even on freestanding compilers. */
48217 # include <limits.h>
48219 # include <assert.h>
48224 /* Override any gcc2 internal prototype to avoid an error. */
48229 /* We use char because int might match the return type of a gcc2
48230 builtin and then its argument prototype would still apply. */
48232 /* The GNU C library defines this for functions which it implements
48233 to always fail with ENOSYS. Some functions are actually named
48234 something starting with __ and the normal name is an alias. */
48235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48238 char (*f) () = $ac_func;
48247 return f != $ac_func;
48252 rm -f conftest.$ac_objext conftest$ac_exeext
48253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48254 (eval $ac_link) 2>conftest.er1
48256 grep -v '^ *+' conftest.er1 >conftest.err
48258 cat conftest.err >&5
48259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260 (exit $ac_status); } &&
48261 { ac_try='test -z "$ac_c_werror_flag"
48262 || test ! -s conftest.err'
48263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48264 (eval $ac_try) 2>&5
48266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48267 (exit $ac_status); }; } &&
48268 { ac_try='test -s conftest$ac_exeext'
48269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48270 (eval $ac_try) 2>&5
48272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48273 (exit $ac_status); }; }; then
48274 eval "$as_ac_var=yes"
48276 echo "$as_me: failed program was:" >&5
48277 sed 's/^/| /' conftest.$ac_ext >&5
48279 eval "$as_ac_var=no"
48281 rm -f conftest.err conftest.$ac_objext \
48282 conftest$ac_exeext conftest.$ac_ext
48284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48286 if test `eval echo '${'$as_ac_var'}'` = yes; then
48287 cat >>confdefs.h <<_ACEOF
48288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48296 ice_have_setresgid=no
48298 for ac_func in setresgid
48300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48301 echo "$as_me:$LINENO: checking for $ac_func" >&5
48302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48303 if eval "test \"\${$as_ac_var+set}\" = set"; then
48304 echo $ECHO_N "(cached) $ECHO_C" >&6
48306 cat >conftest.$ac_ext <<_ACEOF
48309 cat confdefs.h >>conftest.$ac_ext
48310 cat >>conftest.$ac_ext <<_ACEOF
48311 /* end confdefs.h. */
48312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48314 #define $ac_func innocuous_$ac_func
48316 /* System header to define __stub macros and hopefully few prototypes,
48317 which can conflict with char $ac_func (); below.
48318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48319 <limits.h> exists even on freestanding compilers. */
48322 # include <limits.h>
48324 # include <assert.h>
48329 /* Override any gcc2 internal prototype to avoid an error. */
48334 /* We use char because int might match the return type of a gcc2
48335 builtin and then its argument prototype would still apply. */
48337 /* The GNU C library defines this for functions which it implements
48338 to always fail with ENOSYS. Some functions are actually named
48339 something starting with __ and the normal name is an alias. */
48340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48343 char (*f) () = $ac_func;
48352 return f != $ac_func;
48357 rm -f conftest.$ac_objext conftest$ac_exeext
48358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48359 (eval $ac_link) 2>conftest.er1
48361 grep -v '^ *+' conftest.er1 >conftest.err
48363 cat conftest.err >&5
48364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48365 (exit $ac_status); } &&
48366 { ac_try='test -z "$ac_c_werror_flag"
48367 || test ! -s conftest.err'
48368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48369 (eval $ac_try) 2>&5
48371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48372 (exit $ac_status); }; } &&
48373 { ac_try='test -s conftest$ac_exeext'
48374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375 (eval $ac_try) 2>&5
48377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378 (exit $ac_status); }; }; then
48379 eval "$as_ac_var=yes"
48381 echo "$as_me: failed program was:" >&5
48382 sed 's/^/| /' conftest.$ac_ext >&5
48384 eval "$as_ac_var=no"
48386 rm -f conftest.err conftest.$ac_objext \
48387 conftest$ac_exeext conftest.$ac_ext
48389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48391 if test `eval echo '${'$as_ac_var'}'` = yes; then
48392 cat >>confdefs.h <<_ACEOF
48393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48395 ice_have_setresgid=yes
48399 if test "${ice_have_setresgid}" = yes; then
48400 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
48401 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
48402 if test "${ice_cv_have_setresgid_decl+set}" = set; then
48403 echo $ECHO_N "(cached) $ECHO_C" >&6
48406 ice_cv_have_setresgid_decl=no
48407 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48408 ice_re_word='(^|[^a-zA-Z0-9_])'
48409 for header in unistd.h; do
48410 # Check for ordinary declaration
48411 cat >conftest.$ac_ext <<_ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h. */
48420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48421 $EGREP "${ice_re_word}setresgid[ ]*\(" >/dev/null 2>&1; then
48422 ice_cv_have_setresgid_decl=yes
48426 if test "$ice_cv_have_setresgid_decl" = yes; then
48429 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48430 cat >conftest.$ac_ext <<_ACEOF
48433 cat confdefs.h >>conftest.$ac_ext
48434 cat >>conftest.$ac_ext <<_ACEOF
48435 /* end confdefs.h. */
48439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48440 $EGREP "${ice_re_word}setresgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48441 ice_cv_have_setresgid_decl=yes
48445 if test "$ice_cv_have_setresgid_decl" = yes; then
48452 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
48453 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
48454 if test "$ice_cv_have_setresgid_decl" = yes; then
48456 cat >>confdefs.h <<_ACEOF
48457 #define HAVE_SETRESGID_DECL 1
48464 ice_have_setresuid=no
48466 for ac_func in setresuid
48468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48469 echo "$as_me:$LINENO: checking for $ac_func" >&5
48470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48471 if eval "test \"\${$as_ac_var+set}\" = set"; then
48472 echo $ECHO_N "(cached) $ECHO_C" >&6
48474 cat >conftest.$ac_ext <<_ACEOF
48477 cat confdefs.h >>conftest.$ac_ext
48478 cat >>conftest.$ac_ext <<_ACEOF
48479 /* end confdefs.h. */
48480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48482 #define $ac_func innocuous_$ac_func
48484 /* System header to define __stub macros and hopefully few prototypes,
48485 which can conflict with char $ac_func (); below.
48486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48487 <limits.h> exists even on freestanding compilers. */
48490 # include <limits.h>
48492 # include <assert.h>
48497 /* Override any gcc2 internal prototype to avoid an error. */
48502 /* We use char because int might match the return type of a gcc2
48503 builtin and then its argument prototype would still apply. */
48505 /* The GNU C library defines this for functions which it implements
48506 to always fail with ENOSYS. Some functions are actually named
48507 something starting with __ and the normal name is an alias. */
48508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48511 char (*f) () = $ac_func;
48520 return f != $ac_func;
48525 rm -f conftest.$ac_objext conftest$ac_exeext
48526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48527 (eval $ac_link) 2>conftest.er1
48529 grep -v '^ *+' conftest.er1 >conftest.err
48531 cat conftest.err >&5
48532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48533 (exit $ac_status); } &&
48534 { ac_try='test -z "$ac_c_werror_flag"
48535 || test ! -s conftest.err'
48536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48537 (eval $ac_try) 2>&5
48539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540 (exit $ac_status); }; } &&
48541 { ac_try='test -s conftest$ac_exeext'
48542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48543 (eval $ac_try) 2>&5
48545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48546 (exit $ac_status); }; }; then
48547 eval "$as_ac_var=yes"
48549 echo "$as_me: failed program was:" >&5
48550 sed 's/^/| /' conftest.$ac_ext >&5
48552 eval "$as_ac_var=no"
48554 rm -f conftest.err conftest.$ac_objext \
48555 conftest$ac_exeext conftest.$ac_ext
48557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48559 if test `eval echo '${'$as_ac_var'}'` = yes; then
48560 cat >>confdefs.h <<_ACEOF
48561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48563 ice_have_setresuid=yes
48567 if test "${ice_have_setresuid}" = yes; then
48568 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
48569 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
48570 if test "${ice_cv_have_setresuid_decl+set}" = set; then
48571 echo $ECHO_N "(cached) $ECHO_C" >&6
48574 ice_cv_have_setresuid_decl=no
48575 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48576 ice_re_word='(^|[^a-zA-Z0-9_])'
48577 for header in unistd.h; do
48578 # Check for ordinary declaration
48579 cat >conftest.$ac_ext <<_ACEOF
48582 cat confdefs.h >>conftest.$ac_ext
48583 cat >>conftest.$ac_ext <<_ACEOF
48584 /* end confdefs.h. */
48588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48589 $EGREP "${ice_re_word}setresuid[ ]*\(" >/dev/null 2>&1; then
48590 ice_cv_have_setresuid_decl=yes
48594 if test "$ice_cv_have_setresuid_decl" = yes; then
48597 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48598 cat >conftest.$ac_ext <<_ACEOF
48601 cat confdefs.h >>conftest.$ac_ext
48602 cat >>conftest.$ac_ext <<_ACEOF
48603 /* end confdefs.h. */
48607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48608 $EGREP "${ice_re_word}setresuid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48609 ice_cv_have_setresuid_decl=yes
48613 if test "$ice_cv_have_setresuid_decl" = yes; then
48620 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
48621 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
48622 if test "$ice_cv_have_setresuid_decl" = yes; then
48624 cat >>confdefs.h <<_ACEOF
48625 #define HAVE_SETRESUID_DECL 1
48632 echo "$as_me:$LINENO: checking for setpgid" >&5
48633 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
48634 if test "${ac_cv_func_setpgid+set}" = set; then
48635 echo $ECHO_N "(cached) $ECHO_C" >&6
48637 cat >conftest.$ac_ext <<_ACEOF
48640 cat confdefs.h >>conftest.$ac_ext
48641 cat >>conftest.$ac_ext <<_ACEOF
48642 /* end confdefs.h. */
48643 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
48644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48645 #define setpgid innocuous_setpgid
48647 /* System header to define __stub macros and hopefully few prototypes,
48648 which can conflict with char setpgid (); below.
48649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48650 <limits.h> exists even on freestanding compilers. */
48653 # include <limits.h>
48655 # include <assert.h>
48660 /* Override any gcc2 internal prototype to avoid an error. */
48665 /* We use char because int might match the return type of a gcc2
48666 builtin and then its argument prototype would still apply. */
48668 /* The GNU C library defines this for functions which it implements
48669 to always fail with ENOSYS. Some functions are actually named
48670 something starting with __ and the normal name is an alias. */
48671 #if defined (__stub_setpgid) || defined (__stub___setpgid)
48674 char (*f) () = setpgid;
48683 return f != setpgid;
48688 rm -f conftest.$ac_objext conftest$ac_exeext
48689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48690 (eval $ac_link) 2>conftest.er1
48692 grep -v '^ *+' conftest.er1 >conftest.err
48694 cat conftest.err >&5
48695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696 (exit $ac_status); } &&
48697 { ac_try='test -z "$ac_c_werror_flag"
48698 || test ! -s conftest.err'
48699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48700 (eval $ac_try) 2>&5
48702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703 (exit $ac_status); }; } &&
48704 { ac_try='test -s conftest$ac_exeext'
48705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48706 (eval $ac_try) 2>&5
48708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48709 (exit $ac_status); }; }; then
48710 ac_cv_func_setpgid=yes
48712 echo "$as_me: failed program was:" >&5
48713 sed 's/^/| /' conftest.$ac_ext >&5
48715 ac_cv_func_setpgid=no
48717 rm -f conftest.err conftest.$ac_objext \
48718 conftest$ac_exeext conftest.$ac_ext
48720 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
48721 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
48722 if test $ac_cv_func_setpgid = yes; then
48725 cat >>confdefs.h <<\_ACEOF
48726 #define HAVE_SETPGID 1
48730 ice_have_setpgid=no
48732 for ac_func in setpgid
48734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48735 echo "$as_me:$LINENO: checking for $ac_func" >&5
48736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48737 if eval "test \"\${$as_ac_var+set}\" = set"; then
48738 echo $ECHO_N "(cached) $ECHO_C" >&6
48740 cat >conftest.$ac_ext <<_ACEOF
48743 cat confdefs.h >>conftest.$ac_ext
48744 cat >>conftest.$ac_ext <<_ACEOF
48745 /* end confdefs.h. */
48746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48748 #define $ac_func innocuous_$ac_func
48750 /* System header to define __stub macros and hopefully few prototypes,
48751 which can conflict with char $ac_func (); below.
48752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48753 <limits.h> exists even on freestanding compilers. */
48756 # include <limits.h>
48758 # include <assert.h>
48763 /* Override any gcc2 internal prototype to avoid an error. */
48768 /* We use char because int might match the return type of a gcc2
48769 builtin and then its argument prototype would still apply. */
48771 /* The GNU C library defines this for functions which it implements
48772 to always fail with ENOSYS. Some functions are actually named
48773 something starting with __ and the normal name is an alias. */
48774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48777 char (*f) () = $ac_func;
48786 return f != $ac_func;
48791 rm -f conftest.$ac_objext conftest$ac_exeext
48792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48793 (eval $ac_link) 2>conftest.er1
48795 grep -v '^ *+' conftest.er1 >conftest.err
48797 cat conftest.err >&5
48798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48799 (exit $ac_status); } &&
48800 { ac_try='test -z "$ac_c_werror_flag"
48801 || test ! -s conftest.err'
48802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48803 (eval $ac_try) 2>&5
48805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806 (exit $ac_status); }; } &&
48807 { ac_try='test -s conftest$ac_exeext'
48808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48809 (eval $ac_try) 2>&5
48811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48812 (exit $ac_status); }; }; then
48813 eval "$as_ac_var=yes"
48815 echo "$as_me: failed program was:" >&5
48816 sed 's/^/| /' conftest.$ac_ext >&5
48818 eval "$as_ac_var=no"
48820 rm -f conftest.err conftest.$ac_objext \
48821 conftest$ac_exeext conftest.$ac_ext
48823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48825 if test `eval echo '${'$as_ac_var'}'` = yes; then
48826 cat >>confdefs.h <<_ACEOF
48827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48829 ice_have_setpgid=yes
48833 if test "${ice_have_setpgid}" = yes; then
48834 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
48835 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
48836 if test "${ice_cv_have_setpgid_decl+set}" = set; then
48837 echo $ECHO_N "(cached) $ECHO_C" >&6
48840 ice_cv_have_setpgid_decl=no
48841 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48842 ice_re_word='(^|[^a-zA-Z0-9_])'
48843 for header in sys/types.h unistd.h; do
48844 # Check for ordinary declaration
48845 cat >conftest.$ac_ext <<_ACEOF
48848 cat confdefs.h >>conftest.$ac_ext
48849 cat >>conftest.$ac_ext <<_ACEOF
48850 /* end confdefs.h. */
48854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48855 $EGREP "${ice_re_word}setpgid[ ]*\(" >/dev/null 2>&1; then
48856 ice_cv_have_setpgid_decl=yes
48860 if test "$ice_cv_have_setpgid_decl" = yes; then
48863 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48864 cat >conftest.$ac_ext <<_ACEOF
48867 cat confdefs.h >>conftest.$ac_ext
48868 cat >>conftest.$ac_ext <<_ACEOF
48869 /* end confdefs.h. */
48873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48874 $EGREP "${ice_re_word}setpgid[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48875 ice_cv_have_setpgid_decl=yes
48879 if test "$ice_cv_have_setpgid_decl" = yes; then
48886 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
48887 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
48888 if test "$ice_cv_have_setpgid_decl" = yes; then
48890 cat >>confdefs.h <<_ACEOF
48891 #define HAVE_SETPGID_DECL 1
48900 echo "$as_me:$LINENO: checking for setpgrp" >&5
48901 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
48902 if test "${ac_cv_func_setpgrp+set}" = set; then
48903 echo $ECHO_N "(cached) $ECHO_C" >&6
48905 cat >conftest.$ac_ext <<_ACEOF
48908 cat confdefs.h >>conftest.$ac_ext
48909 cat >>conftest.$ac_ext <<_ACEOF
48910 /* end confdefs.h. */
48911 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
48912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48913 #define setpgrp innocuous_setpgrp
48915 /* System header to define __stub macros and hopefully few prototypes,
48916 which can conflict with char setpgrp (); below.
48917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48918 <limits.h> exists even on freestanding compilers. */
48921 # include <limits.h>
48923 # include <assert.h>
48928 /* Override any gcc2 internal prototype to avoid an error. */
48933 /* We use char because int might match the return type of a gcc2
48934 builtin and then its argument prototype would still apply. */
48936 /* The GNU C library defines this for functions which it implements
48937 to always fail with ENOSYS. Some functions are actually named
48938 something starting with __ and the normal name is an alias. */
48939 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
48942 char (*f) () = setpgrp;
48951 return f != setpgrp;
48956 rm -f conftest.$ac_objext conftest$ac_exeext
48957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48958 (eval $ac_link) 2>conftest.er1
48960 grep -v '^ *+' conftest.er1 >conftest.err
48962 cat conftest.err >&5
48963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48964 (exit $ac_status); } &&
48965 { ac_try='test -z "$ac_c_werror_flag"
48966 || test ! -s conftest.err'
48967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48968 (eval $ac_try) 2>&5
48970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48971 (exit $ac_status); }; } &&
48972 { ac_try='test -s conftest$ac_exeext'
48973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48974 (eval $ac_try) 2>&5
48976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48977 (exit $ac_status); }; }; then
48978 ac_cv_func_setpgrp=yes
48980 echo "$as_me: failed program was:" >&5
48981 sed 's/^/| /' conftest.$ac_ext >&5
48983 ac_cv_func_setpgrp=no
48985 rm -f conftest.err conftest.$ac_objext \
48986 conftest$ac_exeext conftest.$ac_ext
48988 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
48989 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
48990 if test $ac_cv_func_setpgrp = yes; then
48991 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
48992 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
48993 if test "${ac_cv_func_setpgrp_void+set}" = set; then
48994 echo $ECHO_N "(cached) $ECHO_C" >&6
48996 if test "$cross_compiling" = yes; then
48997 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
48998 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
48999 { (exit 1); exit 1; }; }
49001 cat >conftest.$ac_ext <<_ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h. */
49008 # include <unistd.h>
49014 /* If this system has a BSD-style setpgrp which takes arguments,
49015 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
49016 exit successfully. */
49017 exit (setpgrp (1,1) == -1 ? 0 : 1);
49022 rm -f conftest$ac_exeext
49023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49024 (eval $ac_link) 2>&5
49026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49029 (eval $ac_try) 2>&5
49031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49032 (exit $ac_status); }; }; then
49033 ac_cv_func_setpgrp_void=no
49035 echo "$as_me: program exited with status $ac_status" >&5
49036 echo "$as_me: failed program was:" >&5
49037 sed 's/^/| /' conftest.$ac_ext >&5
49039 ( exit $ac_status )
49040 ac_cv_func_setpgrp_void=yes
49042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49045 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
49046 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
49047 if test $ac_cv_func_setpgrp_void = yes; then
49049 cat >>confdefs.h <<\_ACEOF
49050 #define SETPGRP_VOID 1
49058 ice_have_setpgrp=no
49060 for ac_func in setpgrp
49062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49063 echo "$as_me:$LINENO: checking for $ac_func" >&5
49064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49065 if eval "test \"\${$as_ac_var+set}\" = set"; then
49066 echo $ECHO_N "(cached) $ECHO_C" >&6
49068 cat >conftest.$ac_ext <<_ACEOF
49071 cat confdefs.h >>conftest.$ac_ext
49072 cat >>conftest.$ac_ext <<_ACEOF
49073 /* end confdefs.h. */
49074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49076 #define $ac_func innocuous_$ac_func
49078 /* System header to define __stub macros and hopefully few prototypes,
49079 which can conflict with char $ac_func (); below.
49080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49081 <limits.h> exists even on freestanding compilers. */
49084 # include <limits.h>
49086 # include <assert.h>
49091 /* Override any gcc2 internal prototype to avoid an error. */
49096 /* We use char because int might match the return type of a gcc2
49097 builtin and then its argument prototype would still apply. */
49099 /* The GNU C library defines this for functions which it implements
49100 to always fail with ENOSYS. Some functions are actually named
49101 something starting with __ and the normal name is an alias. */
49102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49105 char (*f) () = $ac_func;
49114 return f != $ac_func;
49119 rm -f conftest.$ac_objext conftest$ac_exeext
49120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49121 (eval $ac_link) 2>conftest.er1
49123 grep -v '^ *+' conftest.er1 >conftest.err
49125 cat conftest.err >&5
49126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49127 (exit $ac_status); } &&
49128 { ac_try='test -z "$ac_c_werror_flag"
49129 || test ! -s conftest.err'
49130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49131 (eval $ac_try) 2>&5
49133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49134 (exit $ac_status); }; } &&
49135 { ac_try='test -s conftest$ac_exeext'
49136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49137 (eval $ac_try) 2>&5
49139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49140 (exit $ac_status); }; }; then
49141 eval "$as_ac_var=yes"
49143 echo "$as_me: failed program was:" >&5
49144 sed 's/^/| /' conftest.$ac_ext >&5
49146 eval "$as_ac_var=no"
49148 rm -f conftest.err conftest.$ac_objext \
49149 conftest$ac_exeext conftest.$ac_ext
49151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49153 if test `eval echo '${'$as_ac_var'}'` = yes; then
49154 cat >>confdefs.h <<_ACEOF
49155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49157 ice_have_setpgrp=yes
49161 if test "${ice_have_setpgrp}" = yes; then
49162 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
49163 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
49164 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
49165 echo $ECHO_N "(cached) $ECHO_C" >&6
49168 ice_cv_have_setpgrp_decl=no
49169 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49170 ice_re_word='(^|[^a-zA-Z0-9_])'
49171 for header in sys/types.h unistd.h libc.h; do
49172 # Check for ordinary declaration
49173 cat >conftest.$ac_ext <<_ACEOF
49176 cat confdefs.h >>conftest.$ac_ext
49177 cat >>conftest.$ac_ext <<_ACEOF
49178 /* end confdefs.h. */
49182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49183 $EGREP "${ice_re_word}setpgrp[ ]*\(" >/dev/null 2>&1; then
49184 ice_cv_have_setpgrp_decl=yes
49188 if test "$ice_cv_have_setpgrp_decl" = yes; then
49191 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49192 cat >conftest.$ac_ext <<_ACEOF
49195 cat confdefs.h >>conftest.$ac_ext
49196 cat >>conftest.$ac_ext <<_ACEOF
49197 /* end confdefs.h. */
49201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49202 $EGREP "${ice_re_word}setpgrp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49203 ice_cv_have_setpgrp_decl=yes
49207 if test "$ice_cv_have_setpgrp_decl" = yes; then
49214 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
49215 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
49216 if test "$ice_cv_have_setpgrp_decl" = yes; then
49218 cat >>confdefs.h <<_ACEOF
49219 #define HAVE_SETPGRP_DECL 1
49227 ice_have_setsockopt=no
49229 for ac_func in setsockopt
49231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49232 echo "$as_me:$LINENO: checking for $ac_func" >&5
49233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49234 if eval "test \"\${$as_ac_var+set}\" = set"; then
49235 echo $ECHO_N "(cached) $ECHO_C" >&6
49237 cat >conftest.$ac_ext <<_ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h. */
49243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49245 #define $ac_func innocuous_$ac_func
49247 /* System header to define __stub macros and hopefully few prototypes,
49248 which can conflict with char $ac_func (); below.
49249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49250 <limits.h> exists even on freestanding compilers. */
49253 # include <limits.h>
49255 # include <assert.h>
49260 /* Override any gcc2 internal prototype to avoid an error. */
49265 /* We use char because int might match the return type of a gcc2
49266 builtin and then its argument prototype would still apply. */
49268 /* The GNU C library defines this for functions which it implements
49269 to always fail with ENOSYS. Some functions are actually named
49270 something starting with __ and the normal name is an alias. */
49271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49274 char (*f) () = $ac_func;
49283 return f != $ac_func;
49288 rm -f conftest.$ac_objext conftest$ac_exeext
49289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49290 (eval $ac_link) 2>conftest.er1
49292 grep -v '^ *+' conftest.er1 >conftest.err
49294 cat conftest.err >&5
49295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49296 (exit $ac_status); } &&
49297 { ac_try='test -z "$ac_c_werror_flag"
49298 || test ! -s conftest.err'
49299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49300 (eval $ac_try) 2>&5
49302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49303 (exit $ac_status); }; } &&
49304 { ac_try='test -s conftest$ac_exeext'
49305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49306 (eval $ac_try) 2>&5
49308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49309 (exit $ac_status); }; }; then
49310 eval "$as_ac_var=yes"
49312 echo "$as_me: failed program was:" >&5
49313 sed 's/^/| /' conftest.$ac_ext >&5
49315 eval "$as_ac_var=no"
49317 rm -f conftest.err conftest.$ac_objext \
49318 conftest$ac_exeext conftest.$ac_ext
49320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49322 if test `eval echo '${'$as_ac_var'}'` = yes; then
49323 cat >>confdefs.h <<_ACEOF
49324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49326 ice_have_setsockopt=yes
49330 if test "${ice_have_setsockopt}" = yes; then
49331 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
49332 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49333 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
49334 echo $ECHO_N "(cached) $ECHO_C" >&6
49337 ice_cv_have_setsockopt_decl=no
49338 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49339 ice_re_word='(^|[^a-zA-Z0-9_])'
49340 for header in sys/types.h sys/socket.h; do
49341 # Check for ordinary declaration
49342 cat >conftest.$ac_ext <<_ACEOF
49345 cat confdefs.h >>conftest.$ac_ext
49346 cat >>conftest.$ac_ext <<_ACEOF
49347 /* end confdefs.h. */
49351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49352 $EGREP "${ice_re_word}setsockopt[ ]*\(" >/dev/null 2>&1; then
49353 ice_cv_have_setsockopt_decl=yes
49357 if test "$ice_cv_have_setsockopt_decl" = yes; then
49360 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49361 cat >conftest.$ac_ext <<_ACEOF
49364 cat confdefs.h >>conftest.$ac_ext
49365 cat >>conftest.$ac_ext <<_ACEOF
49366 /* end confdefs.h. */
49370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49371 $EGREP "${ice_re_word}setsockopt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49372 ice_cv_have_setsockopt_decl=yes
49376 if test "$ice_cv_have_setsockopt_decl" = yes; then
49383 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
49384 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
49385 if test "$ice_cv_have_setsockopt_decl" = yes; then
49387 cat >>confdefs.h <<_ACEOF
49388 #define HAVE_SETSOCKOPT_DECL 1
49396 for ac_func in shmget
49398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49399 echo "$as_me:$LINENO: checking for $ac_func" >&5
49400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49401 if eval "test \"\${$as_ac_var+set}\" = set"; then
49402 echo $ECHO_N "(cached) $ECHO_C" >&6
49404 cat >conftest.$ac_ext <<_ACEOF
49407 cat confdefs.h >>conftest.$ac_ext
49408 cat >>conftest.$ac_ext <<_ACEOF
49409 /* end confdefs.h. */
49410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49412 #define $ac_func innocuous_$ac_func
49414 /* System header to define __stub macros and hopefully few prototypes,
49415 which can conflict with char $ac_func (); below.
49416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49417 <limits.h> exists even on freestanding compilers. */
49420 # include <limits.h>
49422 # include <assert.h>
49427 /* Override any gcc2 internal prototype to avoid an error. */
49432 /* We use char because int might match the return type of a gcc2
49433 builtin and then its argument prototype would still apply. */
49435 /* The GNU C library defines this for functions which it implements
49436 to always fail with ENOSYS. Some functions are actually named
49437 something starting with __ and the normal name is an alias. */
49438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49441 char (*f) () = $ac_func;
49450 return f != $ac_func;
49455 rm -f conftest.$ac_objext conftest$ac_exeext
49456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49457 (eval $ac_link) 2>conftest.er1
49459 grep -v '^ *+' conftest.er1 >conftest.err
49461 cat conftest.err >&5
49462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49463 (exit $ac_status); } &&
49464 { ac_try='test -z "$ac_c_werror_flag"
49465 || test ! -s conftest.err'
49466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49467 (eval $ac_try) 2>&5
49469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49470 (exit $ac_status); }; } &&
49471 { ac_try='test -s conftest$ac_exeext'
49472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473 (eval $ac_try) 2>&5
49475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476 (exit $ac_status); }; }; then
49477 eval "$as_ac_var=yes"
49479 echo "$as_me: failed program was:" >&5
49480 sed 's/^/| /' conftest.$ac_ext >&5
49482 eval "$as_ac_var=no"
49484 rm -f conftest.err conftest.$ac_objext \
49485 conftest$ac_exeext conftest.$ac_ext
49487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49489 if test `eval echo '${'$as_ac_var'}'` = yes; then
49490 cat >>confdefs.h <<_ACEOF
49491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49495 echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
49496 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
49497 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
49498 echo $ECHO_N "(cached) $ECHO_C" >&6
49501 if test "$ac_cv_func_shmget" = yes; then
49502 cat <<EOF >conftest.$ac_ext
49503 #include "confdefs.h"
49504 #ifdef HAVE_SYS_TYPES_H
49505 # include <sys/types.h>
49507 #ifdef HAVE_SYS_IPC_H
49508 # include <sys/ipc.h>
49510 #ifdef HAVE_SYS_SHM_H
49511 # include <sys/shm.h>
49515 extern "C" void *shmat(int, void *, int);
49526 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
49527 if test $? = 0; then
49528 amanda_cv_shmdt_arg_type=void
49530 amanda_cv_shmdt_arg_type=char
49534 amanda_cv_shmdt_arg_type=nothing
49539 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
49540 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
49542 cat >>confdefs.h <<_ACEOF
49543 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
49548 case "$FORCE_MMAP" in
49551 cat >>confdefs.h <<\_ACEOF
49552 #define HAVE_SYSVSHM 1
49565 for ac_func in shmat
49567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49568 echo "$as_me:$LINENO: checking for $ac_func" >&5
49569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49570 if eval "test \"\${$as_ac_var+set}\" = set"; then
49571 echo $ECHO_N "(cached) $ECHO_C" >&6
49573 cat >conftest.$ac_ext <<_ACEOF
49576 cat confdefs.h >>conftest.$ac_ext
49577 cat >>conftest.$ac_ext <<_ACEOF
49578 /* end confdefs.h. */
49579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49581 #define $ac_func innocuous_$ac_func
49583 /* System header to define __stub macros and hopefully few prototypes,
49584 which can conflict with char $ac_func (); below.
49585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49586 <limits.h> exists even on freestanding compilers. */
49589 # include <limits.h>
49591 # include <assert.h>
49596 /* Override any gcc2 internal prototype to avoid an error. */
49601 /* We use char because int might match the return type of a gcc2
49602 builtin and then its argument prototype would still apply. */
49604 /* The GNU C library defines this for functions which it implements
49605 to always fail with ENOSYS. Some functions are actually named
49606 something starting with __ and the normal name is an alias. */
49607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49610 char (*f) () = $ac_func;
49619 return f != $ac_func;
49624 rm -f conftest.$ac_objext conftest$ac_exeext
49625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49626 (eval $ac_link) 2>conftest.er1
49628 grep -v '^ *+' conftest.er1 >conftest.err
49630 cat conftest.err >&5
49631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49632 (exit $ac_status); } &&
49633 { ac_try='test -z "$ac_c_werror_flag"
49634 || test ! -s conftest.err'
49635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49636 (eval $ac_try) 2>&5
49638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49639 (exit $ac_status); }; } &&
49640 { ac_try='test -s conftest$ac_exeext'
49641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49642 (eval $ac_try) 2>&5
49644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645 (exit $ac_status); }; }; then
49646 eval "$as_ac_var=yes"
49648 echo "$as_me: failed program was:" >&5
49649 sed 's/^/| /' conftest.$ac_ext >&5
49651 eval "$as_ac_var=no"
49653 rm -f conftest.err conftest.$ac_objext \
49654 conftest$ac_exeext conftest.$ac_ext
49656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49658 if test `eval echo '${'$as_ac_var'}'` = yes; then
49659 cat >>confdefs.h <<_ACEOF
49660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49666 if test "${ice_have_shmat}" = yes; then
49667 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49668 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49669 if test "${ice_cv_have_shmat_decl+set}" = set; then
49670 echo $ECHO_N "(cached) $ECHO_C" >&6
49673 ice_cv_have_shmat_decl=no
49674 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49675 ice_re_word='(^|[^a-zA-Z0-9_])'
49676 for header in sys/types.h sys/ipc.h sys/shm.h; do
49677 # Check for ordinary declaration
49678 cat >conftest.$ac_ext <<_ACEOF
49681 cat confdefs.h >>conftest.$ac_ext
49682 cat >>conftest.$ac_ext <<_ACEOF
49683 /* end confdefs.h. */
49687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49688 $EGREP "${ice_re_word}shmat[ ]*\(" >/dev/null 2>&1; then
49689 ice_cv_have_shmat_decl=yes
49693 if test "$ice_cv_have_shmat_decl" = yes; then
49696 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49697 cat >conftest.$ac_ext <<_ACEOF
49700 cat confdefs.h >>conftest.$ac_ext
49701 cat >>conftest.$ac_ext <<_ACEOF
49702 /* end confdefs.h. */
49706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49707 $EGREP "${ice_re_word}shmat[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49708 ice_cv_have_shmat_decl=yes
49712 if test "$ice_cv_have_shmat_decl" = yes; then
49719 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
49720 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
49721 if test "$ice_cv_have_shmat_decl" = yes; then
49723 cat >>confdefs.h <<_ACEOF
49724 #define HAVE_SHMAT_DECL 1
49733 for ac_func in shmctl
49735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49736 echo "$as_me:$LINENO: checking for $ac_func" >&5
49737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49738 if eval "test \"\${$as_ac_var+set}\" = set"; then
49739 echo $ECHO_N "(cached) $ECHO_C" >&6
49741 cat >conftest.$ac_ext <<_ACEOF
49744 cat confdefs.h >>conftest.$ac_ext
49745 cat >>conftest.$ac_ext <<_ACEOF
49746 /* end confdefs.h. */
49747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49749 #define $ac_func innocuous_$ac_func
49751 /* System header to define __stub macros and hopefully few prototypes,
49752 which can conflict with char $ac_func (); below.
49753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49754 <limits.h> exists even on freestanding compilers. */
49757 # include <limits.h>
49759 # include <assert.h>
49764 /* Override any gcc2 internal prototype to avoid an error. */
49769 /* We use char because int might match the return type of a gcc2
49770 builtin and then its argument prototype would still apply. */
49772 /* The GNU C library defines this for functions which it implements
49773 to always fail with ENOSYS. Some functions are actually named
49774 something starting with __ and the normal name is an alias. */
49775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49778 char (*f) () = $ac_func;
49787 return f != $ac_func;
49792 rm -f conftest.$ac_objext conftest$ac_exeext
49793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49794 (eval $ac_link) 2>conftest.er1
49796 grep -v '^ *+' conftest.er1 >conftest.err
49798 cat conftest.err >&5
49799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49800 (exit $ac_status); } &&
49801 { ac_try='test -z "$ac_c_werror_flag"
49802 || test ! -s conftest.err'
49803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49804 (eval $ac_try) 2>&5
49806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49807 (exit $ac_status); }; } &&
49808 { ac_try='test -s conftest$ac_exeext'
49809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49810 (eval $ac_try) 2>&5
49812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49813 (exit $ac_status); }; }; then
49814 eval "$as_ac_var=yes"
49816 echo "$as_me: failed program was:" >&5
49817 sed 's/^/| /' conftest.$ac_ext >&5
49819 eval "$as_ac_var=no"
49821 rm -f conftest.err conftest.$ac_objext \
49822 conftest$ac_exeext conftest.$ac_ext
49824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49826 if test `eval echo '${'$as_ac_var'}'` = yes; then
49827 cat >>confdefs.h <<_ACEOF
49828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49830 ice_have_shmctl=yes
49834 if test "${ice_have_shmctl}" = yes; then
49835 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49836 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49837 if test "${ice_cv_have_shmctl_decl+set}" = set; then
49838 echo $ECHO_N "(cached) $ECHO_C" >&6
49841 ice_cv_have_shmctl_decl=no
49842 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49843 ice_re_word='(^|[^a-zA-Z0-9_])'
49844 for header in sys/types.h sys/ipc.h sys/shm.h; do
49845 # Check for ordinary declaration
49846 cat >conftest.$ac_ext <<_ACEOF
49849 cat confdefs.h >>conftest.$ac_ext
49850 cat >>conftest.$ac_ext <<_ACEOF
49851 /* end confdefs.h. */
49855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49856 $EGREP "${ice_re_word}shmctl[ ]*\(" >/dev/null 2>&1; then
49857 ice_cv_have_shmctl_decl=yes
49861 if test "$ice_cv_have_shmctl_decl" = yes; then
49864 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49865 cat >conftest.$ac_ext <<_ACEOF
49868 cat confdefs.h >>conftest.$ac_ext
49869 cat >>conftest.$ac_ext <<_ACEOF
49870 /* end confdefs.h. */
49874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49875 $EGREP "${ice_re_word}shmctl[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49876 ice_cv_have_shmctl_decl=yes
49880 if test "$ice_cv_have_shmctl_decl" = yes; then
49887 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
49888 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
49889 if test "$ice_cv_have_shmctl_decl" = yes; then
49891 cat >>confdefs.h <<_ACEOF
49892 #define HAVE_SHMCTL_DECL 1
49901 for ac_func in shmdt
49903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49904 echo "$as_me:$LINENO: checking for $ac_func" >&5
49905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49906 if eval "test \"\${$as_ac_var+set}\" = set"; then
49907 echo $ECHO_N "(cached) $ECHO_C" >&6
49909 cat >conftest.$ac_ext <<_ACEOF
49912 cat confdefs.h >>conftest.$ac_ext
49913 cat >>conftest.$ac_ext <<_ACEOF
49914 /* end confdefs.h. */
49915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49917 #define $ac_func innocuous_$ac_func
49919 /* System header to define __stub macros and hopefully few prototypes,
49920 which can conflict with char $ac_func (); below.
49921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49922 <limits.h> exists even on freestanding compilers. */
49925 # include <limits.h>
49927 # include <assert.h>
49932 /* Override any gcc2 internal prototype to avoid an error. */
49937 /* We use char because int might match the return type of a gcc2
49938 builtin and then its argument prototype would still apply. */
49940 /* The GNU C library defines this for functions which it implements
49941 to always fail with ENOSYS. Some functions are actually named
49942 something starting with __ and the normal name is an alias. */
49943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49946 char (*f) () = $ac_func;
49955 return f != $ac_func;
49960 rm -f conftest.$ac_objext conftest$ac_exeext
49961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49962 (eval $ac_link) 2>conftest.er1
49964 grep -v '^ *+' conftest.er1 >conftest.err
49966 cat conftest.err >&5
49967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49968 (exit $ac_status); } &&
49969 { ac_try='test -z "$ac_c_werror_flag"
49970 || test ! -s conftest.err'
49971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49972 (eval $ac_try) 2>&5
49974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49975 (exit $ac_status); }; } &&
49976 { ac_try='test -s conftest$ac_exeext'
49977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49978 (eval $ac_try) 2>&5
49980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981 (exit $ac_status); }; }; then
49982 eval "$as_ac_var=yes"
49984 echo "$as_me: failed program was:" >&5
49985 sed 's/^/| /' conftest.$ac_ext >&5
49987 eval "$as_ac_var=no"
49989 rm -f conftest.err conftest.$ac_objext \
49990 conftest$ac_exeext conftest.$ac_ext
49992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49994 if test `eval echo '${'$as_ac_var'}'` = yes; then
49995 cat >>confdefs.h <<_ACEOF
49996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50002 if test "${ice_have_shmdt}" = yes; then
50003 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
50004 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
50005 if test "${ice_cv_have_shmdt_decl+set}" = set; then
50006 echo $ECHO_N "(cached) $ECHO_C" >&6
50009 ice_cv_have_shmdt_decl=no
50010 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50011 ice_re_word='(^|[^a-zA-Z0-9_])'
50012 for header in sys/types.h sys/ipc.h sys/shm.h; do
50013 # Check for ordinary declaration
50014 cat >conftest.$ac_ext <<_ACEOF
50017 cat confdefs.h >>conftest.$ac_ext
50018 cat >>conftest.$ac_ext <<_ACEOF
50019 /* end confdefs.h. */
50023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50024 $EGREP "${ice_re_word}shmdt[ ]*\(" >/dev/null 2>&1; then
50025 ice_cv_have_shmdt_decl=yes
50029 if test "$ice_cv_have_shmdt_decl" = yes; then
50032 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50033 cat >conftest.$ac_ext <<_ACEOF
50036 cat confdefs.h >>conftest.$ac_ext
50037 cat >>conftest.$ac_ext <<_ACEOF
50038 /* end confdefs.h. */
50042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50043 $EGREP "${ice_re_word}shmdt[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50044 ice_cv_have_shmdt_decl=yes
50048 if test "$ice_cv_have_shmdt_decl" = yes; then
50055 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
50056 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
50057 if test "$ice_cv_have_shmdt_decl" = yes; then
50059 cat >>confdefs.h <<_ACEOF
50060 #define HAVE_SHMDT_DECL 1
50069 for ac_func in shmget
50071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50072 echo "$as_me:$LINENO: checking for $ac_func" >&5
50073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50074 if eval "test \"\${$as_ac_var+set}\" = set"; then
50075 echo $ECHO_N "(cached) $ECHO_C" >&6
50077 cat >conftest.$ac_ext <<_ACEOF
50080 cat confdefs.h >>conftest.$ac_ext
50081 cat >>conftest.$ac_ext <<_ACEOF
50082 /* end confdefs.h. */
50083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50085 #define $ac_func innocuous_$ac_func
50087 /* System header to define __stub macros and hopefully few prototypes,
50088 which can conflict with char $ac_func (); below.
50089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50090 <limits.h> exists even on freestanding compilers. */
50093 # include <limits.h>
50095 # include <assert.h>
50100 /* Override any gcc2 internal prototype to avoid an error. */
50105 /* We use char because int might match the return type of a gcc2
50106 builtin and then its argument prototype would still apply. */
50108 /* The GNU C library defines this for functions which it implements
50109 to always fail with ENOSYS. Some functions are actually named
50110 something starting with __ and the normal name is an alias. */
50111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50114 char (*f) () = $ac_func;
50123 return f != $ac_func;
50128 rm -f conftest.$ac_objext conftest$ac_exeext
50129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50130 (eval $ac_link) 2>conftest.er1
50132 grep -v '^ *+' conftest.er1 >conftest.err
50134 cat conftest.err >&5
50135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50136 (exit $ac_status); } &&
50137 { ac_try='test -z "$ac_c_werror_flag"
50138 || test ! -s conftest.err'
50139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50140 (eval $ac_try) 2>&5
50142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143 (exit $ac_status); }; } &&
50144 { ac_try='test -s conftest$ac_exeext'
50145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50146 (eval $ac_try) 2>&5
50148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50149 (exit $ac_status); }; }; then
50150 eval "$as_ac_var=yes"
50152 echo "$as_me: failed program was:" >&5
50153 sed 's/^/| /' conftest.$ac_ext >&5
50155 eval "$as_ac_var=no"
50157 rm -f conftest.err conftest.$ac_objext \
50158 conftest$ac_exeext conftest.$ac_ext
50160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50162 if test `eval echo '${'$as_ac_var'}'` = yes; then
50163 cat >>confdefs.h <<_ACEOF
50164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50166 ice_have_shmget=yes
50170 if test "${ice_have_shmget}" = yes; then
50171 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
50172 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
50173 if test "${ice_cv_have_shmget_decl+set}" = set; then
50174 echo $ECHO_N "(cached) $ECHO_C" >&6
50177 ice_cv_have_shmget_decl=no
50178 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50179 ice_re_word='(^|[^a-zA-Z0-9_])'
50180 for header in sys/types.h sys/ipc.h sys/shm.h; do
50181 # Check for ordinary declaration
50182 cat >conftest.$ac_ext <<_ACEOF
50185 cat confdefs.h >>conftest.$ac_ext
50186 cat >>conftest.$ac_ext <<_ACEOF
50187 /* end confdefs.h. */
50191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50192 $EGREP "${ice_re_word}shmget[ ]*\(" >/dev/null 2>&1; then
50193 ice_cv_have_shmget_decl=yes
50197 if test "$ice_cv_have_shmget_decl" = yes; then
50200 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50201 cat >conftest.$ac_ext <<_ACEOF
50204 cat confdefs.h >>conftest.$ac_ext
50205 cat >>conftest.$ac_ext <<_ACEOF
50206 /* end confdefs.h. */
50210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50211 $EGREP "${ice_re_word}shmget[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50212 ice_cv_have_shmget_decl=yes
50216 if test "$ice_cv_have_shmget_decl" = yes; then
50223 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
50224 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
50225 if test "$ice_cv_have_shmget_decl" = yes; then
50227 cat >>confdefs.h <<_ACEOF
50228 #define HAVE_SHMGET_DECL 1
50235 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
50236 case "$FORCE_MMAP" in
50238 if test "x$ac_cv_func_shmget" != xyes; then
50239 { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
50240 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
50241 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
50242 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
50243 NO_SERVER_MODE=true
50247 { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
50248 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
50249 { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
50250 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
50251 NO_SERVER_MODE=true
50257 ice_have_snprintf=no
50259 for ac_func in snprintf
50261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50262 echo "$as_me:$LINENO: checking for $ac_func" >&5
50263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50264 if eval "test \"\${$as_ac_var+set}\" = set"; then
50265 echo $ECHO_N "(cached) $ECHO_C" >&6
50267 cat >conftest.$ac_ext <<_ACEOF
50270 cat confdefs.h >>conftest.$ac_ext
50271 cat >>conftest.$ac_ext <<_ACEOF
50272 /* end confdefs.h. */
50273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50275 #define $ac_func innocuous_$ac_func
50277 /* System header to define __stub macros and hopefully few prototypes,
50278 which can conflict with char $ac_func (); below.
50279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50280 <limits.h> exists even on freestanding compilers. */
50283 # include <limits.h>
50285 # include <assert.h>
50290 /* Override any gcc2 internal prototype to avoid an error. */
50295 /* We use char because int might match the return type of a gcc2
50296 builtin and then its argument prototype would still apply. */
50298 /* The GNU C library defines this for functions which it implements
50299 to always fail with ENOSYS. Some functions are actually named
50300 something starting with __ and the normal name is an alias. */
50301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50304 char (*f) () = $ac_func;
50313 return f != $ac_func;
50318 rm -f conftest.$ac_objext conftest$ac_exeext
50319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50320 (eval $ac_link) 2>conftest.er1
50322 grep -v '^ *+' conftest.er1 >conftest.err
50324 cat conftest.err >&5
50325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50326 (exit $ac_status); } &&
50327 { ac_try='test -z "$ac_c_werror_flag"
50328 || test ! -s conftest.err'
50329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50330 (eval $ac_try) 2>&5
50332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50333 (exit $ac_status); }; } &&
50334 { ac_try='test -s conftest$ac_exeext'
50335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50336 (eval $ac_try) 2>&5
50338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50339 (exit $ac_status); }; }; then
50340 eval "$as_ac_var=yes"
50342 echo "$as_me: failed program was:" >&5
50343 sed 's/^/| /' conftest.$ac_ext >&5
50345 eval "$as_ac_var=no"
50347 rm -f conftest.err conftest.$ac_objext \
50348 conftest$ac_exeext conftest.$ac_ext
50350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50352 if test `eval echo '${'$as_ac_var'}'` = yes; then
50353 cat >>confdefs.h <<_ACEOF
50354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50356 ice_have_snprintf=yes
50360 if test "${ice_have_snprintf}" = yes; then
50361 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
50362 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
50363 if test "${ice_cv_have_snprintf_decl+set}" = set; then
50364 echo $ECHO_N "(cached) $ECHO_C" >&6
50367 ice_cv_have_snprintf_decl=no
50368 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50369 ice_re_word='(^|[^a-zA-Z0-9_])'
50370 for header in stdio.h; do
50371 # Check for ordinary declaration
50372 cat >conftest.$ac_ext <<_ACEOF
50375 cat confdefs.h >>conftest.$ac_ext
50376 cat >>conftest.$ac_ext <<_ACEOF
50377 /* end confdefs.h. */
50381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50382 $EGREP "${ice_re_word}snprintf[ ]*\(" >/dev/null 2>&1; then
50383 ice_cv_have_snprintf_decl=yes
50387 if test "$ice_cv_have_snprintf_decl" = yes; then
50390 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50391 cat >conftest.$ac_ext <<_ACEOF
50394 cat confdefs.h >>conftest.$ac_ext
50395 cat >>conftest.$ac_ext <<_ACEOF
50396 /* end confdefs.h. */
50400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50401 $EGREP "${ice_re_word}snprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50402 ice_cv_have_snprintf_decl=yes
50406 if test "$ice_cv_have_snprintf_decl" = yes; then
50413 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
50414 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
50415 if test "$ice_cv_have_snprintf_decl" = yes; then
50417 cat >>confdefs.h <<_ACEOF
50418 #define HAVE_SNPRINTF_DECL 1
50425 ice_have_vsnprintf=no
50427 for ac_func in vsnprintf
50429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50430 echo "$as_me:$LINENO: checking for $ac_func" >&5
50431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50432 if eval "test \"\${$as_ac_var+set}\" = set"; then
50433 echo $ECHO_N "(cached) $ECHO_C" >&6
50435 cat >conftest.$ac_ext <<_ACEOF
50438 cat confdefs.h >>conftest.$ac_ext
50439 cat >>conftest.$ac_ext <<_ACEOF
50440 /* end confdefs.h. */
50441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50443 #define $ac_func innocuous_$ac_func
50445 /* System header to define __stub macros and hopefully few prototypes,
50446 which can conflict with char $ac_func (); below.
50447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50448 <limits.h> exists even on freestanding compilers. */
50451 # include <limits.h>
50453 # include <assert.h>
50458 /* Override any gcc2 internal prototype to avoid an error. */
50463 /* We use char because int might match the return type of a gcc2
50464 builtin and then its argument prototype would still apply. */
50466 /* The GNU C library defines this for functions which it implements
50467 to always fail with ENOSYS. Some functions are actually named
50468 something starting with __ and the normal name is an alias. */
50469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50472 char (*f) () = $ac_func;
50481 return f != $ac_func;
50486 rm -f conftest.$ac_objext conftest$ac_exeext
50487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50488 (eval $ac_link) 2>conftest.er1
50490 grep -v '^ *+' conftest.er1 >conftest.err
50492 cat conftest.err >&5
50493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494 (exit $ac_status); } &&
50495 { ac_try='test -z "$ac_c_werror_flag"
50496 || test ! -s conftest.err'
50497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50498 (eval $ac_try) 2>&5
50500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501 (exit $ac_status); }; } &&
50502 { ac_try='test -s conftest$ac_exeext'
50503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50504 (eval $ac_try) 2>&5
50506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507 (exit $ac_status); }; }; then
50508 eval "$as_ac_var=yes"
50510 echo "$as_me: failed program was:" >&5
50511 sed 's/^/| /' conftest.$ac_ext >&5
50513 eval "$as_ac_var=no"
50515 rm -f conftest.err conftest.$ac_objext \
50516 conftest$ac_exeext conftest.$ac_ext
50518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50520 if test `eval echo '${'$as_ac_var'}'` = yes; then
50521 cat >>confdefs.h <<_ACEOF
50522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50524 ice_have_vsnprintf=yes
50528 if test "${ice_have_vsnprintf}" = yes; then
50529 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
50530 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
50531 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
50532 echo $ECHO_N "(cached) $ECHO_C" >&6
50535 ice_cv_have_vsnprintf_decl=no
50536 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50537 ice_re_word='(^|[^a-zA-Z0-9_])'
50538 for header in stdio.h; do
50539 # Check for ordinary declaration
50540 cat >conftest.$ac_ext <<_ACEOF
50543 cat confdefs.h >>conftest.$ac_ext
50544 cat >>conftest.$ac_ext <<_ACEOF
50545 /* end confdefs.h. */
50549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50550 $EGREP "${ice_re_word}vsnprintf[ ]*\(" >/dev/null 2>&1; then
50551 ice_cv_have_vsnprintf_decl=yes
50555 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50558 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50559 cat >conftest.$ac_ext <<_ACEOF
50562 cat confdefs.h >>conftest.$ac_ext
50563 cat >>conftest.$ac_ext <<_ACEOF
50564 /* end confdefs.h. */
50568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50569 $EGREP "${ice_re_word}vsnprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50570 ice_cv_have_vsnprintf_decl=yes
50574 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50581 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
50582 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
50583 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50585 cat >>confdefs.h <<_ACEOF
50586 #define HAVE_VSNPRINTF_DECL 1
50592 if test x"$ice_have_snprintf" != x"yes" ||
50593 test x"$ice_have_vsnprintf" != x"yes"; then
50595 "snprintf.$ac_objext" | \
50596 *" snprintf.$ac_objext" | \
50597 "snprintf.$ac_objext "* | \
50598 *" snprintf.$ac_objext "* ) ;;
50599 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
50604 for ac_func in snprintf
50606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50607 echo "$as_me:$LINENO: checking for $ac_func" >&5
50608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50609 if eval "test \"\${$as_ac_var+set}\" = set"; then
50610 echo $ECHO_N "(cached) $ECHO_C" >&6
50612 cat >conftest.$ac_ext <<_ACEOF
50615 cat confdefs.h >>conftest.$ac_ext
50616 cat >>conftest.$ac_ext <<_ACEOF
50617 /* end confdefs.h. */
50618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50620 #define $ac_func innocuous_$ac_func
50622 /* System header to define __stub macros and hopefully few prototypes,
50623 which can conflict with char $ac_func (); below.
50624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50625 <limits.h> exists even on freestanding compilers. */
50628 # include <limits.h>
50630 # include <assert.h>
50635 /* Override any gcc2 internal prototype to avoid an error. */
50640 /* We use char because int might match the return type of a gcc2
50641 builtin and then its argument prototype would still apply. */
50643 /* The GNU C library defines this for functions which it implements
50644 to always fail with ENOSYS. Some functions are actually named
50645 something starting with __ and the normal name is an alias. */
50646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50649 char (*f) () = $ac_func;
50658 return f != $ac_func;
50663 rm -f conftest.$ac_objext conftest$ac_exeext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50665 (eval $ac_link) 2>conftest.er1
50667 grep -v '^ *+' conftest.er1 >conftest.err
50669 cat conftest.err >&5
50670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671 (exit $ac_status); } &&
50672 { ac_try='test -z "$ac_c_werror_flag"
50673 || test ! -s conftest.err'
50674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50675 (eval $ac_try) 2>&5
50677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50678 (exit $ac_status); }; } &&
50679 { ac_try='test -s conftest$ac_exeext'
50680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50681 (eval $ac_try) 2>&5
50683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50684 (exit $ac_status); }; }; then
50685 eval "$as_ac_var=yes"
50687 echo "$as_me: failed program was:" >&5
50688 sed 's/^/| /' conftest.$ac_ext >&5
50690 eval "$as_ac_var=no"
50692 rm -f conftest.err conftest.$ac_objext \
50693 conftest$ac_exeext conftest.$ac_ext
50695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50697 if test `eval echo '${'$as_ac_var'}'` = yes; then
50698 cat >>confdefs.h <<_ACEOF
50699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50704 "$ac_func.$ac_objext" | \
50705 *" $ac_func.$ac_objext" | \
50706 "$ac_func.$ac_objext "* | \
50707 *" $ac_func.$ac_objext "* ) ;;
50708 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50721 for ac_func in sigaction sigemptyset sigvec
50723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50724 echo "$as_me:$LINENO: checking for $ac_func" >&5
50725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50726 if eval "test \"\${$as_ac_var+set}\" = set"; then
50727 echo $ECHO_N "(cached) $ECHO_C" >&6
50729 cat >conftest.$ac_ext <<_ACEOF
50732 cat confdefs.h >>conftest.$ac_ext
50733 cat >>conftest.$ac_ext <<_ACEOF
50734 /* end confdefs.h. */
50735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50737 #define $ac_func innocuous_$ac_func
50739 /* System header to define __stub macros and hopefully few prototypes,
50740 which can conflict with char $ac_func (); below.
50741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50742 <limits.h> exists even on freestanding compilers. */
50745 # include <limits.h>
50747 # include <assert.h>
50752 /* Override any gcc2 internal prototype to avoid an error. */
50757 /* We use char because int might match the return type of a gcc2
50758 builtin and then its argument prototype would still apply. */
50760 /* The GNU C library defines this for functions which it implements
50761 to always fail with ENOSYS. Some functions are actually named
50762 something starting with __ and the normal name is an alias. */
50763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50766 char (*f) () = $ac_func;
50775 return f != $ac_func;
50780 rm -f conftest.$ac_objext conftest$ac_exeext
50781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50782 (eval $ac_link) 2>conftest.er1
50784 grep -v '^ *+' conftest.er1 >conftest.err
50786 cat conftest.err >&5
50787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50788 (exit $ac_status); } &&
50789 { ac_try='test -z "$ac_c_werror_flag"
50790 || test ! -s conftest.err'
50791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50792 (eval $ac_try) 2>&5
50794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50795 (exit $ac_status); }; } &&
50796 { ac_try='test -s conftest$ac_exeext'
50797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50798 (eval $ac_try) 2>&5
50800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50801 (exit $ac_status); }; }; then
50802 eval "$as_ac_var=yes"
50804 echo "$as_me: failed program was:" >&5
50805 sed 's/^/| /' conftest.$ac_ext >&5
50807 eval "$as_ac_var=no"
50809 rm -f conftest.err conftest.$ac_objext \
50810 conftest$ac_exeext conftest.$ac_ext
50812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50814 if test `eval echo '${'$as_ac_var'}'` = yes; then
50815 cat >>confdefs.h <<_ACEOF
50816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50825 for ac_func in socket
50827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50828 echo "$as_me:$LINENO: checking for $ac_func" >&5
50829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50830 if eval "test \"\${$as_ac_var+set}\" = set"; then
50831 echo $ECHO_N "(cached) $ECHO_C" >&6
50833 cat >conftest.$ac_ext <<_ACEOF
50836 cat confdefs.h >>conftest.$ac_ext
50837 cat >>conftest.$ac_ext <<_ACEOF
50838 /* end confdefs.h. */
50839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50841 #define $ac_func innocuous_$ac_func
50843 /* System header to define __stub macros and hopefully few prototypes,
50844 which can conflict with char $ac_func (); below.
50845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50846 <limits.h> exists even on freestanding compilers. */
50849 # include <limits.h>
50851 # include <assert.h>
50856 /* Override any gcc2 internal prototype to avoid an error. */
50861 /* We use char because int might match the return type of a gcc2
50862 builtin and then its argument prototype would still apply. */
50864 /* The GNU C library defines this for functions which it implements
50865 to always fail with ENOSYS. Some functions are actually named
50866 something starting with __ and the normal name is an alias. */
50867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50870 char (*f) () = $ac_func;
50879 return f != $ac_func;
50884 rm -f conftest.$ac_objext conftest$ac_exeext
50885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50886 (eval $ac_link) 2>conftest.er1
50888 grep -v '^ *+' conftest.er1 >conftest.err
50890 cat conftest.err >&5
50891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50892 (exit $ac_status); } &&
50893 { ac_try='test -z "$ac_c_werror_flag"
50894 || test ! -s conftest.err'
50895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50896 (eval $ac_try) 2>&5
50898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50899 (exit $ac_status); }; } &&
50900 { ac_try='test -s conftest$ac_exeext'
50901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50902 (eval $ac_try) 2>&5
50904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50905 (exit $ac_status); }; }; then
50906 eval "$as_ac_var=yes"
50908 echo "$as_me: failed program was:" >&5
50909 sed 's/^/| /' conftest.$ac_ext >&5
50911 eval "$as_ac_var=no"
50913 rm -f conftest.err conftest.$ac_objext \
50914 conftest$ac_exeext conftest.$ac_ext
50916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50918 if test `eval echo '${'$as_ac_var'}'` = yes; then
50919 cat >>confdefs.h <<_ACEOF
50920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50922 ice_have_socket=yes
50926 if test "${ice_have_socket}" = yes; then
50927 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
50928 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50929 if test "${ice_cv_have_socket_decl+set}" = set; then
50930 echo $ECHO_N "(cached) $ECHO_C" >&6
50933 ice_cv_have_socket_decl=no
50934 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50935 ice_re_word='(^|[^a-zA-Z0-9_])'
50936 for header in sys/types.h sys/socket.h; do
50937 # Check for ordinary declaration
50938 cat >conftest.$ac_ext <<_ACEOF
50941 cat confdefs.h >>conftest.$ac_ext
50942 cat >>conftest.$ac_ext <<_ACEOF
50943 /* end confdefs.h. */
50947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50948 $EGREP "${ice_re_word}socket[ ]*\(" >/dev/null 2>&1; then
50949 ice_cv_have_socket_decl=yes
50953 if test "$ice_cv_have_socket_decl" = yes; then
50956 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50957 cat >conftest.$ac_ext <<_ACEOF
50960 cat confdefs.h >>conftest.$ac_ext
50961 cat >>conftest.$ac_ext <<_ACEOF
50962 /* end confdefs.h. */
50966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50967 $EGREP "${ice_re_word}socket[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50968 ice_cv_have_socket_decl=yes
50972 if test "$ice_cv_have_socket_decl" = yes; then
50979 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
50980 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
50981 if test "$ice_cv_have_socket_decl" = yes; then
50983 cat >>confdefs.h <<_ACEOF
50984 #define HAVE_SOCKET_DECL 1
50991 ice_have_socketpair=no
50993 for ac_func in socketpair
50995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50996 echo "$as_me:$LINENO: checking for $ac_func" >&5
50997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50998 if eval "test \"\${$as_ac_var+set}\" = set"; then
50999 echo $ECHO_N "(cached) $ECHO_C" >&6
51001 cat >conftest.$ac_ext <<_ACEOF
51004 cat confdefs.h >>conftest.$ac_ext
51005 cat >>conftest.$ac_ext <<_ACEOF
51006 /* end confdefs.h. */
51007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51009 #define $ac_func innocuous_$ac_func
51011 /* System header to define __stub macros and hopefully few prototypes,
51012 which can conflict with char $ac_func (); below.
51013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51014 <limits.h> exists even on freestanding compilers. */
51017 # include <limits.h>
51019 # include <assert.h>
51024 /* Override any gcc2 internal prototype to avoid an error. */
51029 /* We use char because int might match the return type of a gcc2
51030 builtin and then its argument prototype would still apply. */
51032 /* The GNU C library defines this for functions which it implements
51033 to always fail with ENOSYS. Some functions are actually named
51034 something starting with __ and the normal name is an alias. */
51035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51038 char (*f) () = $ac_func;
51047 return f != $ac_func;
51052 rm -f conftest.$ac_objext conftest$ac_exeext
51053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51054 (eval $ac_link) 2>conftest.er1
51056 grep -v '^ *+' conftest.er1 >conftest.err
51058 cat conftest.err >&5
51059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51060 (exit $ac_status); } &&
51061 { ac_try='test -z "$ac_c_werror_flag"
51062 || test ! -s conftest.err'
51063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51064 (eval $ac_try) 2>&5
51066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51067 (exit $ac_status); }; } &&
51068 { ac_try='test -s conftest$ac_exeext'
51069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070 (eval $ac_try) 2>&5
51072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073 (exit $ac_status); }; }; then
51074 eval "$as_ac_var=yes"
51076 echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51079 eval "$as_ac_var=no"
51081 rm -f conftest.err conftest.$ac_objext \
51082 conftest$ac_exeext conftest.$ac_ext
51084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51086 if test `eval echo '${'$as_ac_var'}'` = yes; then
51087 cat >>confdefs.h <<_ACEOF
51088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51090 ice_have_socketpair=yes
51094 if test "${ice_have_socketpair}" = yes; then
51095 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
51096 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
51097 if test "${ice_cv_have_socketpair_decl+set}" = set; then
51098 echo $ECHO_N "(cached) $ECHO_C" >&6
51101 ice_cv_have_socketpair_decl=no
51102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51103 ice_re_word='(^|[^a-zA-Z0-9_])'
51104 for header in sys/types.h sys/socket.h; do
51105 # Check for ordinary declaration
51106 cat >conftest.$ac_ext <<_ACEOF
51109 cat confdefs.h >>conftest.$ac_ext
51110 cat >>conftest.$ac_ext <<_ACEOF
51111 /* end confdefs.h. */
51115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51116 $EGREP "${ice_re_word}socketpair[ ]*\(" >/dev/null 2>&1; then
51117 ice_cv_have_socketpair_decl=yes
51121 if test "$ice_cv_have_socketpair_decl" = yes; then
51124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51125 cat >conftest.$ac_ext <<_ACEOF
51128 cat confdefs.h >>conftest.$ac_ext
51129 cat >>conftest.$ac_ext <<_ACEOF
51130 /* end confdefs.h. */
51134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51135 $EGREP "${ice_re_word}socketpair[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51136 ice_cv_have_socketpair_decl=yes
51140 if test "$ice_cv_have_socketpair_decl" = yes; then
51147 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
51148 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
51149 if test "$ice_cv_have_socketpair_decl" = yes; then
51151 cat >>confdefs.h <<_ACEOF
51152 #define HAVE_SOCKETPAIR_DECL 1
51161 for ac_func in sscanf
51163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51164 echo "$as_me:$LINENO: checking for $ac_func" >&5
51165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51166 if eval "test \"\${$as_ac_var+set}\" = set"; then
51167 echo $ECHO_N "(cached) $ECHO_C" >&6
51169 cat >conftest.$ac_ext <<_ACEOF
51172 cat confdefs.h >>conftest.$ac_ext
51173 cat >>conftest.$ac_ext <<_ACEOF
51174 /* end confdefs.h. */
51175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51177 #define $ac_func innocuous_$ac_func
51179 /* System header to define __stub macros and hopefully few prototypes,
51180 which can conflict with char $ac_func (); below.
51181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51182 <limits.h> exists even on freestanding compilers. */
51185 # include <limits.h>
51187 # include <assert.h>
51192 /* Override any gcc2 internal prototype to avoid an error. */
51197 /* We use char because int might match the return type of a gcc2
51198 builtin and then its argument prototype would still apply. */
51200 /* The GNU C library defines this for functions which it implements
51201 to always fail with ENOSYS. Some functions are actually named
51202 something starting with __ and the normal name is an alias. */
51203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51206 char (*f) () = $ac_func;
51215 return f != $ac_func;
51220 rm -f conftest.$ac_objext conftest$ac_exeext
51221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51222 (eval $ac_link) 2>conftest.er1
51224 grep -v '^ *+' conftest.er1 >conftest.err
51226 cat conftest.err >&5
51227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51228 (exit $ac_status); } &&
51229 { ac_try='test -z "$ac_c_werror_flag"
51230 || test ! -s conftest.err'
51231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51232 (eval $ac_try) 2>&5
51234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51235 (exit $ac_status); }; } &&
51236 { ac_try='test -s conftest$ac_exeext'
51237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51238 (eval $ac_try) 2>&5
51240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51241 (exit $ac_status); }; }; then
51242 eval "$as_ac_var=yes"
51244 echo "$as_me: failed program was:" >&5
51245 sed 's/^/| /' conftest.$ac_ext >&5
51247 eval "$as_ac_var=no"
51249 rm -f conftest.err conftest.$ac_objext \
51250 conftest$ac_exeext conftest.$ac_ext
51252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51254 if test `eval echo '${'$as_ac_var'}'` = yes; then
51255 cat >>confdefs.h <<_ACEOF
51256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51258 ice_have_sscanf=yes
51262 if test "${ice_have_sscanf}" = yes; then
51263 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
51264 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
51265 if test "${ice_cv_have_sscanf_decl+set}" = set; then
51266 echo $ECHO_N "(cached) $ECHO_C" >&6
51269 ice_cv_have_sscanf_decl=no
51270 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51271 ice_re_word='(^|[^a-zA-Z0-9_])'
51272 for header in stdio.h; do
51273 # Check for ordinary declaration
51274 cat >conftest.$ac_ext <<_ACEOF
51277 cat confdefs.h >>conftest.$ac_ext
51278 cat >>conftest.$ac_ext <<_ACEOF
51279 /* end confdefs.h. */
51283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51284 $EGREP "${ice_re_word}sscanf[ ]*\(" >/dev/null 2>&1; then
51285 ice_cv_have_sscanf_decl=yes
51289 if test "$ice_cv_have_sscanf_decl" = yes; then
51292 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51293 cat >conftest.$ac_ext <<_ACEOF
51296 cat confdefs.h >>conftest.$ac_ext
51297 cat >>conftest.$ac_ext <<_ACEOF
51298 /* end confdefs.h. */
51302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51303 $EGREP "${ice_re_word}sscanf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51304 ice_cv_have_sscanf_decl=yes
51308 if test "$ice_cv_have_sscanf_decl" = yes; then
51315 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
51316 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
51317 if test "$ice_cv_have_sscanf_decl" = yes; then
51319 cat >>confdefs.h <<_ACEOF
51320 #define HAVE_SSCANF_DECL 1
51328 for ac_func in statfs statvfs
51330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51331 echo "$as_me:$LINENO: checking for $ac_func" >&5
51332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51333 if eval "test \"\${$as_ac_var+set}\" = set"; then
51334 echo $ECHO_N "(cached) $ECHO_C" >&6
51336 cat >conftest.$ac_ext <<_ACEOF
51339 cat confdefs.h >>conftest.$ac_ext
51340 cat >>conftest.$ac_ext <<_ACEOF
51341 /* end confdefs.h. */
51342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51344 #define $ac_func innocuous_$ac_func
51346 /* System header to define __stub macros and hopefully few prototypes,
51347 which can conflict with char $ac_func (); below.
51348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51349 <limits.h> exists even on freestanding compilers. */
51352 # include <limits.h>
51354 # include <assert.h>
51359 /* Override any gcc2 internal prototype to avoid an error. */
51364 /* We use char because int might match the return type of a gcc2
51365 builtin and then its argument prototype would still apply. */
51367 /* The GNU C library defines this for functions which it implements
51368 to always fail with ENOSYS. Some functions are actually named
51369 something starting with __ and the normal name is an alias. */
51370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51373 char (*f) () = $ac_func;
51382 return f != $ac_func;
51387 rm -f conftest.$ac_objext conftest$ac_exeext
51388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51389 (eval $ac_link) 2>conftest.er1
51391 grep -v '^ *+' conftest.er1 >conftest.err
51393 cat conftest.err >&5
51394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51395 (exit $ac_status); } &&
51396 { ac_try='test -z "$ac_c_werror_flag"
51397 || test ! -s conftest.err'
51398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51399 (eval $ac_try) 2>&5
51401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51402 (exit $ac_status); }; } &&
51403 { ac_try='test -s conftest$ac_exeext'
51404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51405 (eval $ac_try) 2>&5
51407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51408 (exit $ac_status); }; }; then
51409 eval "$as_ac_var=yes"
51411 echo "$as_me: failed program was:" >&5
51412 sed 's/^/| /' conftest.$ac_ext >&5
51414 eval "$as_ac_var=no"
51416 rm -f conftest.err conftest.$ac_objext \
51417 conftest$ac_exeext conftest.$ac_ext
51419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51421 if test `eval echo '${'$as_ac_var'}'` = yes; then
51422 cat >>confdefs.h <<_ACEOF
51423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51430 for ac_func in strerror
51432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51433 echo "$as_me:$LINENO: checking for $ac_func" >&5
51434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51435 if eval "test \"\${$as_ac_var+set}\" = set"; then
51436 echo $ECHO_N "(cached) $ECHO_C" >&6
51438 cat >conftest.$ac_ext <<_ACEOF
51441 cat confdefs.h >>conftest.$ac_ext
51442 cat >>conftest.$ac_ext <<_ACEOF
51443 /* end confdefs.h. */
51444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51446 #define $ac_func innocuous_$ac_func
51448 /* System header to define __stub macros and hopefully few prototypes,
51449 which can conflict with char $ac_func (); below.
51450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51451 <limits.h> exists even on freestanding compilers. */
51454 # include <limits.h>
51456 # include <assert.h>
51461 /* Override any gcc2 internal prototype to avoid an error. */
51466 /* We use char because int might match the return type of a gcc2
51467 builtin and then its argument prototype would still apply. */
51469 /* The GNU C library defines this for functions which it implements
51470 to always fail with ENOSYS. Some functions are actually named
51471 something starting with __ and the normal name is an alias. */
51472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51475 char (*f) () = $ac_func;
51484 return f != $ac_func;
51489 rm -f conftest.$ac_objext conftest$ac_exeext
51490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51491 (eval $ac_link) 2>conftest.er1
51493 grep -v '^ *+' conftest.er1 >conftest.err
51495 cat conftest.err >&5
51496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51497 (exit $ac_status); } &&
51498 { ac_try='test -z "$ac_c_werror_flag"
51499 || test ! -s conftest.err'
51500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51501 (eval $ac_try) 2>&5
51503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51504 (exit $ac_status); }; } &&
51505 { ac_try='test -s conftest$ac_exeext'
51506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51507 (eval $ac_try) 2>&5
51509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51510 (exit $ac_status); }; }; then
51511 eval "$as_ac_var=yes"
51513 echo "$as_me: failed program was:" >&5
51514 sed 's/^/| /' conftest.$ac_ext >&5
51516 eval "$as_ac_var=no"
51518 rm -f conftest.err conftest.$ac_objext \
51519 conftest$ac_exeext conftest.$ac_ext
51521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51523 if test `eval echo '${'$as_ac_var'}'` = yes; then
51524 cat >>confdefs.h <<_ACEOF
51525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51530 "$ac_func.$ac_objext" | \
51531 *" $ac_func.$ac_objext" | \
51532 "$ac_func.$ac_objext "* | \
51533 *" $ac_func.$ac_objext "* ) ;;
51534 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51542 ice_have_strerror=no
51544 for ac_func in strerror
51546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51547 echo "$as_me:$LINENO: checking for $ac_func" >&5
51548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51549 if eval "test \"\${$as_ac_var+set}\" = set"; then
51550 echo $ECHO_N "(cached) $ECHO_C" >&6
51552 cat >conftest.$ac_ext <<_ACEOF
51555 cat confdefs.h >>conftest.$ac_ext
51556 cat >>conftest.$ac_ext <<_ACEOF
51557 /* end confdefs.h. */
51558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51560 #define $ac_func innocuous_$ac_func
51562 /* System header to define __stub macros and hopefully few prototypes,
51563 which can conflict with char $ac_func (); below.
51564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51565 <limits.h> exists even on freestanding compilers. */
51568 # include <limits.h>
51570 # include <assert.h>
51575 /* Override any gcc2 internal prototype to avoid an error. */
51580 /* We use char because int might match the return type of a gcc2
51581 builtin and then its argument prototype would still apply. */
51583 /* The GNU C library defines this for functions which it implements
51584 to always fail with ENOSYS. Some functions are actually named
51585 something starting with __ and the normal name is an alias. */
51586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51589 char (*f) () = $ac_func;
51598 return f != $ac_func;
51603 rm -f conftest.$ac_objext conftest$ac_exeext
51604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51605 (eval $ac_link) 2>conftest.er1
51607 grep -v '^ *+' conftest.er1 >conftest.err
51609 cat conftest.err >&5
51610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51611 (exit $ac_status); } &&
51612 { ac_try='test -z "$ac_c_werror_flag"
51613 || test ! -s conftest.err'
51614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51615 (eval $ac_try) 2>&5
51617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51618 (exit $ac_status); }; } &&
51619 { ac_try='test -s conftest$ac_exeext'
51620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51621 (eval $ac_try) 2>&5
51623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51624 (exit $ac_status); }; }; then
51625 eval "$as_ac_var=yes"
51627 echo "$as_me: failed program was:" >&5
51628 sed 's/^/| /' conftest.$ac_ext >&5
51630 eval "$as_ac_var=no"
51632 rm -f conftest.err conftest.$ac_objext \
51633 conftest$ac_exeext conftest.$ac_ext
51635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51637 if test `eval echo '${'$as_ac_var'}'` = yes; then
51638 cat >>confdefs.h <<_ACEOF
51639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51641 ice_have_strerror=yes
51645 if test "${ice_have_strerror}" = yes; then
51646 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
51647 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
51648 if test "${ice_cv_have_strerror_decl+set}" = set; then
51649 echo $ECHO_N "(cached) $ECHO_C" >&6
51652 ice_cv_have_strerror_decl=no
51653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51654 ice_re_word='(^|[^a-zA-Z0-9_])'
51655 for header in string.h strings.h; do
51656 # Check for ordinary declaration
51657 cat >conftest.$ac_ext <<_ACEOF
51660 cat confdefs.h >>conftest.$ac_ext
51661 cat >>conftest.$ac_ext <<_ACEOF
51662 /* end confdefs.h. */
51666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51667 $EGREP "${ice_re_word}strerror[ ]*\(" >/dev/null 2>&1; then
51668 ice_cv_have_strerror_decl=yes
51672 if test "$ice_cv_have_strerror_decl" = yes; then
51675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51676 cat >conftest.$ac_ext <<_ACEOF
51679 cat confdefs.h >>conftest.$ac_ext
51680 cat >>conftest.$ac_ext <<_ACEOF
51681 /* end confdefs.h. */
51685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51686 $EGREP "${ice_re_word}strerror[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51687 ice_cv_have_strerror_decl=yes
51691 if test "$ice_cv_have_strerror_decl" = yes; then
51698 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
51699 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
51700 if test "$ice_cv_have_strerror_decl" = yes; then
51702 cat >>confdefs.h <<_ACEOF
51703 #define HAVE_STRERROR_DECL 1
51710 for ac_func in strftime
51712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51713 echo "$as_me:$LINENO: checking for $ac_func" >&5
51714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51715 if eval "test \"\${$as_ac_var+set}\" = set"; then
51716 echo $ECHO_N "(cached) $ECHO_C" >&6
51718 cat >conftest.$ac_ext <<_ACEOF
51721 cat confdefs.h >>conftest.$ac_ext
51722 cat >>conftest.$ac_ext <<_ACEOF
51723 /* end confdefs.h. */
51724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51726 #define $ac_func innocuous_$ac_func
51728 /* System header to define __stub macros and hopefully few prototypes,
51729 which can conflict with char $ac_func (); below.
51730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51731 <limits.h> exists even on freestanding compilers. */
51734 # include <limits.h>
51736 # include <assert.h>
51741 /* Override any gcc2 internal prototype to avoid an error. */
51746 /* We use char because int might match the return type of a gcc2
51747 builtin and then its argument prototype would still apply. */
51749 /* The GNU C library defines this for functions which it implements
51750 to always fail with ENOSYS. Some functions are actually named
51751 something starting with __ and the normal name is an alias. */
51752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51755 char (*f) () = $ac_func;
51764 return f != $ac_func;
51769 rm -f conftest.$ac_objext conftest$ac_exeext
51770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51771 (eval $ac_link) 2>conftest.er1
51773 grep -v '^ *+' conftest.er1 >conftest.err
51775 cat conftest.err >&5
51776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51777 (exit $ac_status); } &&
51778 { ac_try='test -z "$ac_c_werror_flag"
51779 || test ! -s conftest.err'
51780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51781 (eval $ac_try) 2>&5
51783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51784 (exit $ac_status); }; } &&
51785 { ac_try='test -s conftest$ac_exeext'
51786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51787 (eval $ac_try) 2>&5
51789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51790 (exit $ac_status); }; }; then
51791 eval "$as_ac_var=yes"
51793 echo "$as_me: failed program was:" >&5
51794 sed 's/^/| /' conftest.$ac_ext >&5
51796 eval "$as_ac_var=no"
51798 rm -f conftest.err conftest.$ac_objext \
51799 conftest$ac_exeext conftest.$ac_ext
51801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51803 if test `eval echo '${'$as_ac_var'}'` = yes; then
51804 cat >>confdefs.h <<_ACEOF
51805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51809 # strftime is in -lintl on SCO UNIX.
51810 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
51811 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
51812 if test "${ac_cv_lib_intl_strftime+set}" = set; then
51813 echo $ECHO_N "(cached) $ECHO_C" >&6
51815 ac_check_lib_save_LIBS=$LIBS
51816 LIBS="-lintl $LIBS"
51817 cat >conftest.$ac_ext <<_ACEOF
51820 cat confdefs.h >>conftest.$ac_ext
51821 cat >>conftest.$ac_ext <<_ACEOF
51822 /* end confdefs.h. */
51824 /* Override any gcc2 internal prototype to avoid an error. */
51828 /* We use char because int might match the return type of a gcc2
51829 builtin and then its argument prototype would still apply. */
51839 rm -f conftest.$ac_objext conftest$ac_exeext
51840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51841 (eval $ac_link) 2>conftest.er1
51843 grep -v '^ *+' conftest.er1 >conftest.err
51845 cat conftest.err >&5
51846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51847 (exit $ac_status); } &&
51848 { ac_try='test -z "$ac_c_werror_flag"
51849 || test ! -s conftest.err'
51850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51851 (eval $ac_try) 2>&5
51853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51854 (exit $ac_status); }; } &&
51855 { ac_try='test -s conftest$ac_exeext'
51856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51857 (eval $ac_try) 2>&5
51859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51860 (exit $ac_status); }; }; then
51861 ac_cv_lib_intl_strftime=yes
51863 echo "$as_me: failed program was:" >&5
51864 sed 's/^/| /' conftest.$ac_ext >&5
51866 ac_cv_lib_intl_strftime=no
51868 rm -f conftest.err conftest.$ac_objext \
51869 conftest$ac_exeext conftest.$ac_ext
51870 LIBS=$ac_check_lib_save_LIBS
51872 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
51873 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
51874 if test $ac_cv_lib_intl_strftime = yes; then
51875 cat >>confdefs.h <<\_ACEOF
51876 #define HAVE_STRFTIME 1
51879 LIBS="-lintl $LIBS"
51886 for ac_func in strftime
51888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51889 echo "$as_me:$LINENO: checking for $ac_func" >&5
51890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51891 if eval "test \"\${$as_ac_var+set}\" = set"; then
51892 echo $ECHO_N "(cached) $ECHO_C" >&6
51894 cat >conftest.$ac_ext <<_ACEOF
51897 cat confdefs.h >>conftest.$ac_ext
51898 cat >>conftest.$ac_ext <<_ACEOF
51899 /* end confdefs.h. */
51900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51902 #define $ac_func innocuous_$ac_func
51904 /* System header to define __stub macros and hopefully few prototypes,
51905 which can conflict with char $ac_func (); below.
51906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51907 <limits.h> exists even on freestanding compilers. */
51910 # include <limits.h>
51912 # include <assert.h>
51917 /* Override any gcc2 internal prototype to avoid an error. */
51922 /* We use char because int might match the return type of a gcc2
51923 builtin and then its argument prototype would still apply. */
51925 /* The GNU C library defines this for functions which it implements
51926 to always fail with ENOSYS. Some functions are actually named
51927 something starting with __ and the normal name is an alias. */
51928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51931 char (*f) () = $ac_func;
51940 return f != $ac_func;
51945 rm -f conftest.$ac_objext conftest$ac_exeext
51946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51947 (eval $ac_link) 2>conftest.er1
51949 grep -v '^ *+' conftest.er1 >conftest.err
51951 cat conftest.err >&5
51952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953 (exit $ac_status); } &&
51954 { ac_try='test -z "$ac_c_werror_flag"
51955 || test ! -s conftest.err'
51956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51957 (eval $ac_try) 2>&5
51959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51960 (exit $ac_status); }; } &&
51961 { ac_try='test -s conftest$ac_exeext'
51962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51963 (eval $ac_try) 2>&5
51965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966 (exit $ac_status); }; }; then
51967 eval "$as_ac_var=yes"
51969 echo "$as_me: failed program was:" >&5
51970 sed 's/^/| /' conftest.$ac_ext >&5
51972 eval "$as_ac_var=no"
51974 rm -f conftest.err conftest.$ac_objext \
51975 conftest$ac_exeext conftest.$ac_ext
51977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51979 if test `eval echo '${'$as_ac_var'}'` = yes; then
51980 cat >>confdefs.h <<_ACEOF
51981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51986 "$ac_func.$ac_objext" | \
51987 *" $ac_func.$ac_objext" | \
51988 "$ac_func.$ac_objext "* | \
51989 *" $ac_func.$ac_objext "* ) ;;
51990 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51998 ice_have_strftime=no
52000 for ac_func in strftime
52002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52003 echo "$as_me:$LINENO: checking for $ac_func" >&5
52004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52005 if eval "test \"\${$as_ac_var+set}\" = set"; then
52006 echo $ECHO_N "(cached) $ECHO_C" >&6
52008 cat >conftest.$ac_ext <<_ACEOF
52011 cat confdefs.h >>conftest.$ac_ext
52012 cat >>conftest.$ac_ext <<_ACEOF
52013 /* end confdefs.h. */
52014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52016 #define $ac_func innocuous_$ac_func
52018 /* System header to define __stub macros and hopefully few prototypes,
52019 which can conflict with char $ac_func (); below.
52020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52021 <limits.h> exists even on freestanding compilers. */
52024 # include <limits.h>
52026 # include <assert.h>
52031 /* Override any gcc2 internal prototype to avoid an error. */
52036 /* We use char because int might match the return type of a gcc2
52037 builtin and then its argument prototype would still apply. */
52039 /* The GNU C library defines this for functions which it implements
52040 to always fail with ENOSYS. Some functions are actually named
52041 something starting with __ and the normal name is an alias. */
52042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52045 char (*f) () = $ac_func;
52054 return f != $ac_func;
52059 rm -f conftest.$ac_objext conftest$ac_exeext
52060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52061 (eval $ac_link) 2>conftest.er1
52063 grep -v '^ *+' conftest.er1 >conftest.err
52065 cat conftest.err >&5
52066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52067 (exit $ac_status); } &&
52068 { ac_try='test -z "$ac_c_werror_flag"
52069 || test ! -s conftest.err'
52070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071 (eval $ac_try) 2>&5
52073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074 (exit $ac_status); }; } &&
52075 { ac_try='test -s conftest$ac_exeext'
52076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52077 (eval $ac_try) 2>&5
52079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52080 (exit $ac_status); }; }; then
52081 eval "$as_ac_var=yes"
52083 echo "$as_me: failed program was:" >&5
52084 sed 's/^/| /' conftest.$ac_ext >&5
52086 eval "$as_ac_var=no"
52088 rm -f conftest.err conftest.$ac_objext \
52089 conftest$ac_exeext conftest.$ac_ext
52091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52093 if test `eval echo '${'$as_ac_var'}'` = yes; then
52094 cat >>confdefs.h <<_ACEOF
52095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52097 ice_have_strftime=yes
52101 if test "${ice_have_strftime}" = yes; then
52102 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
52103 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
52104 if test "${ice_cv_have_strftime_decl+set}" = set; then
52105 echo $ECHO_N "(cached) $ECHO_C" >&6
52108 ice_cv_have_strftime_decl=no
52109 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52110 ice_re_word='(^|[^a-zA-Z0-9_])'
52111 for header in time.h sys/time.h; do
52112 # Check for ordinary declaration
52113 cat >conftest.$ac_ext <<_ACEOF
52116 cat confdefs.h >>conftest.$ac_ext
52117 cat >>conftest.$ac_ext <<_ACEOF
52118 /* end confdefs.h. */
52122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52123 $EGREP "${ice_re_word}strftime[ ]*\(" >/dev/null 2>&1; then
52124 ice_cv_have_strftime_decl=yes
52128 if test "$ice_cv_have_strftime_decl" = yes; then
52131 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52132 cat >conftest.$ac_ext <<_ACEOF
52135 cat confdefs.h >>conftest.$ac_ext
52136 cat >>conftest.$ac_ext <<_ACEOF
52137 /* end confdefs.h. */
52141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52142 $EGREP "${ice_re_word}strftime[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52143 ice_cv_have_strftime_decl=yes
52147 if test "$ice_cv_have_strftime_decl" = yes; then
52154 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
52155 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
52156 if test "$ice_cv_have_strftime_decl" = yes; then
52158 cat >>confdefs.h <<_ACEOF
52159 #define HAVE_STRFTIME_DECL 1
52166 for ac_func in strncasecmp
52168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52169 echo "$as_me:$LINENO: checking for $ac_func" >&5
52170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52171 if eval "test \"\${$as_ac_var+set}\" = set"; then
52172 echo $ECHO_N "(cached) $ECHO_C" >&6
52174 cat >conftest.$ac_ext <<_ACEOF
52177 cat confdefs.h >>conftest.$ac_ext
52178 cat >>conftest.$ac_ext <<_ACEOF
52179 /* end confdefs.h. */
52180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52182 #define $ac_func innocuous_$ac_func
52184 /* System header to define __stub macros and hopefully few prototypes,
52185 which can conflict with char $ac_func (); below.
52186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52187 <limits.h> exists even on freestanding compilers. */
52190 # include <limits.h>
52192 # include <assert.h>
52197 /* Override any gcc2 internal prototype to avoid an error. */
52202 /* We use char because int might match the return type of a gcc2
52203 builtin and then its argument prototype would still apply. */
52205 /* The GNU C library defines this for functions which it implements
52206 to always fail with ENOSYS. Some functions are actually named
52207 something starting with __ and the normal name is an alias. */
52208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52211 char (*f) () = $ac_func;
52220 return f != $ac_func;
52225 rm -f conftest.$ac_objext conftest$ac_exeext
52226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52227 (eval $ac_link) 2>conftest.er1
52229 grep -v '^ *+' conftest.er1 >conftest.err
52231 cat conftest.err >&5
52232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52233 (exit $ac_status); } &&
52234 { ac_try='test -z "$ac_c_werror_flag"
52235 || test ! -s conftest.err'
52236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52237 (eval $ac_try) 2>&5
52239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52240 (exit $ac_status); }; } &&
52241 { ac_try='test -s conftest$ac_exeext'
52242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52243 (eval $ac_try) 2>&5
52245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52246 (exit $ac_status); }; }; then
52247 eval "$as_ac_var=yes"
52249 echo "$as_me: failed program was:" >&5
52250 sed 's/^/| /' conftest.$ac_ext >&5
52252 eval "$as_ac_var=no"
52254 rm -f conftest.err conftest.$ac_objext \
52255 conftest$ac_exeext conftest.$ac_ext
52257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52259 if test `eval echo '${'$as_ac_var'}'` = yes; then
52260 cat >>confdefs.h <<_ACEOF
52261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52266 "$ac_func.$ac_objext" | \
52267 *" $ac_func.$ac_objext" | \
52268 "$ac_func.$ac_objext "* | \
52269 *" $ac_func.$ac_objext "* ) ;;
52270 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52278 ice_have_strncasecmp=no
52280 for ac_func in strncasecmp
52282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52283 echo "$as_me:$LINENO: checking for $ac_func" >&5
52284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52285 if eval "test \"\${$as_ac_var+set}\" = set"; then
52286 echo $ECHO_N "(cached) $ECHO_C" >&6
52288 cat >conftest.$ac_ext <<_ACEOF
52291 cat confdefs.h >>conftest.$ac_ext
52292 cat >>conftest.$ac_ext <<_ACEOF
52293 /* end confdefs.h. */
52294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52296 #define $ac_func innocuous_$ac_func
52298 /* System header to define __stub macros and hopefully few prototypes,
52299 which can conflict with char $ac_func (); below.
52300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52301 <limits.h> exists even on freestanding compilers. */
52304 # include <limits.h>
52306 # include <assert.h>
52311 /* Override any gcc2 internal prototype to avoid an error. */
52316 /* We use char because int might match the return type of a gcc2
52317 builtin and then its argument prototype would still apply. */
52319 /* The GNU C library defines this for functions which it implements
52320 to always fail with ENOSYS. Some functions are actually named
52321 something starting with __ and the normal name is an alias. */
52322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52325 char (*f) () = $ac_func;
52334 return f != $ac_func;
52339 rm -f conftest.$ac_objext conftest$ac_exeext
52340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52341 (eval $ac_link) 2>conftest.er1
52343 grep -v '^ *+' conftest.er1 >conftest.err
52345 cat conftest.err >&5
52346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52347 (exit $ac_status); } &&
52348 { ac_try='test -z "$ac_c_werror_flag"
52349 || test ! -s conftest.err'
52350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52351 (eval $ac_try) 2>&5
52353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52354 (exit $ac_status); }; } &&
52355 { ac_try='test -s conftest$ac_exeext'
52356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52357 (eval $ac_try) 2>&5
52359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52360 (exit $ac_status); }; }; then
52361 eval "$as_ac_var=yes"
52363 echo "$as_me: failed program was:" >&5
52364 sed 's/^/| /' conftest.$ac_ext >&5
52366 eval "$as_ac_var=no"
52368 rm -f conftest.err conftest.$ac_objext \
52369 conftest$ac_exeext conftest.$ac_ext
52371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52373 if test `eval echo '${'$as_ac_var'}'` = yes; then
52374 cat >>confdefs.h <<_ACEOF
52375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52377 ice_have_strncasecmp=yes
52381 if test "${ice_have_strncasecmp}" = yes; then
52382 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
52383 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
52384 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
52385 echo $ECHO_N "(cached) $ECHO_C" >&6
52388 ice_cv_have_strncasecmp_decl=no
52389 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52390 ice_re_word='(^|[^a-zA-Z0-9_])'
52391 for header in string.h strings.h; do
52392 # Check for ordinary declaration
52393 cat >conftest.$ac_ext <<_ACEOF
52396 cat confdefs.h >>conftest.$ac_ext
52397 cat >>conftest.$ac_ext <<_ACEOF
52398 /* end confdefs.h. */
52402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52403 $EGREP "${ice_re_word}strncasecmp[ ]*\(" >/dev/null 2>&1; then
52404 ice_cv_have_strncasecmp_decl=yes
52408 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52411 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52412 cat >conftest.$ac_ext <<_ACEOF
52415 cat confdefs.h >>conftest.$ac_ext
52416 cat >>conftest.$ac_ext <<_ACEOF
52417 /* end confdefs.h. */
52421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52422 $EGREP "${ice_re_word}strncasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52423 ice_cv_have_strncasecmp_decl=yes
52427 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52434 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
52435 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
52436 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52438 cat >>confdefs.h <<_ACEOF
52439 #define HAVE_STRNCASECMP_DECL 1
52446 for ac_func in strstr
52448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52449 echo "$as_me:$LINENO: checking for $ac_func" >&5
52450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52451 if eval "test \"\${$as_ac_var+set}\" = set"; then
52452 echo $ECHO_N "(cached) $ECHO_C" >&6
52454 cat >conftest.$ac_ext <<_ACEOF
52457 cat confdefs.h >>conftest.$ac_ext
52458 cat >>conftest.$ac_ext <<_ACEOF
52459 /* end confdefs.h. */
52460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52462 #define $ac_func innocuous_$ac_func
52464 /* System header to define __stub macros and hopefully few prototypes,
52465 which can conflict with char $ac_func (); below.
52466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52467 <limits.h> exists even on freestanding compilers. */
52470 # include <limits.h>
52472 # include <assert.h>
52477 /* Override any gcc2 internal prototype to avoid an error. */
52482 /* We use char because int might match the return type of a gcc2
52483 builtin and then its argument prototype would still apply. */
52485 /* The GNU C library defines this for functions which it implements
52486 to always fail with ENOSYS. Some functions are actually named
52487 something starting with __ and the normal name is an alias. */
52488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52491 char (*f) () = $ac_func;
52500 return f != $ac_func;
52505 rm -f conftest.$ac_objext conftest$ac_exeext
52506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52507 (eval $ac_link) 2>conftest.er1
52509 grep -v '^ *+' conftest.er1 >conftest.err
52511 cat conftest.err >&5
52512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52513 (exit $ac_status); } &&
52514 { ac_try='test -z "$ac_c_werror_flag"
52515 || test ! -s conftest.err'
52516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52517 (eval $ac_try) 2>&5
52519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52520 (exit $ac_status); }; } &&
52521 { ac_try='test -s conftest$ac_exeext'
52522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52523 (eval $ac_try) 2>&5
52525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52526 (exit $ac_status); }; }; then
52527 eval "$as_ac_var=yes"
52529 echo "$as_me: failed program was:" >&5
52530 sed 's/^/| /' conftest.$ac_ext >&5
52532 eval "$as_ac_var=no"
52534 rm -f conftest.err conftest.$ac_objext \
52535 conftest$ac_exeext conftest.$ac_ext
52537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52539 if test `eval echo '${'$as_ac_var'}'` = yes; then
52540 cat >>confdefs.h <<_ACEOF
52541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52546 "$ac_func.$ac_objext" | \
52547 *" $ac_func.$ac_objext" | \
52548 "$ac_func.$ac_objext "* | \
52549 *" $ac_func.$ac_objext "* ) ;;
52550 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52560 for ac_func in syslog
52562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52563 echo "$as_me:$LINENO: checking for $ac_func" >&5
52564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52565 if eval "test \"\${$as_ac_var+set}\" = set"; then
52566 echo $ECHO_N "(cached) $ECHO_C" >&6
52568 cat >conftest.$ac_ext <<_ACEOF
52571 cat confdefs.h >>conftest.$ac_ext
52572 cat >>conftest.$ac_ext <<_ACEOF
52573 /* end confdefs.h. */
52574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52576 #define $ac_func innocuous_$ac_func
52578 /* System header to define __stub macros and hopefully few prototypes,
52579 which can conflict with char $ac_func (); below.
52580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52581 <limits.h> exists even on freestanding compilers. */
52584 # include <limits.h>
52586 # include <assert.h>
52591 /* Override any gcc2 internal prototype to avoid an error. */
52596 /* We use char because int might match the return type of a gcc2
52597 builtin and then its argument prototype would still apply. */
52599 /* The GNU C library defines this for functions which it implements
52600 to always fail with ENOSYS. Some functions are actually named
52601 something starting with __ and the normal name is an alias. */
52602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52605 char (*f) () = $ac_func;
52614 return f != $ac_func;
52619 rm -f conftest.$ac_objext conftest$ac_exeext
52620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52621 (eval $ac_link) 2>conftest.er1
52623 grep -v '^ *+' conftest.er1 >conftest.err
52625 cat conftest.err >&5
52626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52627 (exit $ac_status); } &&
52628 { ac_try='test -z "$ac_c_werror_flag"
52629 || test ! -s conftest.err'
52630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52631 (eval $ac_try) 2>&5
52633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52634 (exit $ac_status); }; } &&
52635 { ac_try='test -s conftest$ac_exeext'
52636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52637 (eval $ac_try) 2>&5
52639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52640 (exit $ac_status); }; }; then
52641 eval "$as_ac_var=yes"
52643 echo "$as_me: failed program was:" >&5
52644 sed 's/^/| /' conftest.$ac_ext >&5
52646 eval "$as_ac_var=no"
52648 rm -f conftest.err conftest.$ac_objext \
52649 conftest$ac_exeext conftest.$ac_ext
52651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52653 if test `eval echo '${'$as_ac_var'}'` = yes; then
52654 cat >>confdefs.h <<_ACEOF
52655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52657 ice_have_syslog=yes
52661 if test "${ice_have_syslog}" = yes; then
52662 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
52663 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
52664 if test "${ice_cv_have_syslog_decl+set}" = set; then
52665 echo $ECHO_N "(cached) $ECHO_C" >&6
52668 ice_cv_have_syslog_decl=no
52669 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52670 ice_re_word='(^|[^a-zA-Z0-9_])'
52671 for header in syslog.h; do
52672 # Check for ordinary declaration
52673 cat >conftest.$ac_ext <<_ACEOF
52676 cat confdefs.h >>conftest.$ac_ext
52677 cat >>conftest.$ac_ext <<_ACEOF
52678 /* end confdefs.h. */
52682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52683 $EGREP "${ice_re_word}syslog[ ]*\(" >/dev/null 2>&1; then
52684 ice_cv_have_syslog_decl=yes
52688 if test "$ice_cv_have_syslog_decl" = yes; then
52691 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52692 cat >conftest.$ac_ext <<_ACEOF
52695 cat confdefs.h >>conftest.$ac_ext
52696 cat >>conftest.$ac_ext <<_ACEOF
52697 /* end confdefs.h. */
52701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52702 $EGREP "${ice_re_word}syslog[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52703 ice_cv_have_syslog_decl=yes
52707 if test "$ice_cv_have_syslog_decl" = yes; then
52714 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
52715 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
52716 if test "$ice_cv_have_syslog_decl" = yes; then
52718 cat >>confdefs.h <<_ACEOF
52719 #define HAVE_SYSLOG_DECL 1
52728 for ac_func in system
52730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52731 echo "$as_me:$LINENO: checking for $ac_func" >&5
52732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52733 if eval "test \"\${$as_ac_var+set}\" = set"; then
52734 echo $ECHO_N "(cached) $ECHO_C" >&6
52736 cat >conftest.$ac_ext <<_ACEOF
52739 cat confdefs.h >>conftest.$ac_ext
52740 cat >>conftest.$ac_ext <<_ACEOF
52741 /* end confdefs.h. */
52742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52744 #define $ac_func innocuous_$ac_func
52746 /* System header to define __stub macros and hopefully few prototypes,
52747 which can conflict with char $ac_func (); below.
52748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52749 <limits.h> exists even on freestanding compilers. */
52752 # include <limits.h>
52754 # include <assert.h>
52759 /* Override any gcc2 internal prototype to avoid an error. */
52764 /* We use char because int might match the return type of a gcc2
52765 builtin and then its argument prototype would still apply. */
52767 /* The GNU C library defines this for functions which it implements
52768 to always fail with ENOSYS. Some functions are actually named
52769 something starting with __ and the normal name is an alias. */
52770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52773 char (*f) () = $ac_func;
52782 return f != $ac_func;
52787 rm -f conftest.$ac_objext conftest$ac_exeext
52788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52789 (eval $ac_link) 2>conftest.er1
52791 grep -v '^ *+' conftest.er1 >conftest.err
52793 cat conftest.err >&5
52794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52795 (exit $ac_status); } &&
52796 { ac_try='test -z "$ac_c_werror_flag"
52797 || test ! -s conftest.err'
52798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52799 (eval $ac_try) 2>&5
52801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52802 (exit $ac_status); }; } &&
52803 { ac_try='test -s conftest$ac_exeext'
52804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52805 (eval $ac_try) 2>&5
52807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52808 (exit $ac_status); }; }; then
52809 eval "$as_ac_var=yes"
52811 echo "$as_me: failed program was:" >&5
52812 sed 's/^/| /' conftest.$ac_ext >&5
52814 eval "$as_ac_var=no"
52816 rm -f conftest.err conftest.$ac_objext \
52817 conftest$ac_exeext conftest.$ac_ext
52819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52821 if test `eval echo '${'$as_ac_var'}'` = yes; then
52822 cat >>confdefs.h <<_ACEOF
52823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52825 ice_have_system=yes
52829 if test "${ice_have_system}" = yes; then
52830 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
52831 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
52832 if test "${ice_cv_have_system_decl+set}" = set; then
52833 echo $ECHO_N "(cached) $ECHO_C" >&6
52836 ice_cv_have_system_decl=no
52837 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52838 ice_re_word='(^|[^a-zA-Z0-9_])'
52839 for header in stdlib.h; do
52840 # Check for ordinary declaration
52841 cat >conftest.$ac_ext <<_ACEOF
52844 cat confdefs.h >>conftest.$ac_ext
52845 cat >>conftest.$ac_ext <<_ACEOF
52846 /* end confdefs.h. */
52850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52851 $EGREP "${ice_re_word}system[ ]*\(" >/dev/null 2>&1; then
52852 ice_cv_have_system_decl=yes
52856 if test "$ice_cv_have_system_decl" = yes; then
52859 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52860 cat >conftest.$ac_ext <<_ACEOF
52863 cat confdefs.h >>conftest.$ac_ext
52864 cat >>conftest.$ac_ext <<_ACEOF
52865 /* end confdefs.h. */
52869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52870 $EGREP "${ice_re_word}system[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52871 ice_cv_have_system_decl=yes
52875 if test "$ice_cv_have_system_decl" = yes; then
52882 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
52883 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
52884 if test "$ice_cv_have_system_decl" = yes; then
52886 cat >>confdefs.h <<_ACEOF
52887 #define HAVE_SYSTEM_DECL 1
52896 for ac_func in time
52898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52899 echo "$as_me:$LINENO: checking for $ac_func" >&5
52900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52901 if eval "test \"\${$as_ac_var+set}\" = set"; then
52902 echo $ECHO_N "(cached) $ECHO_C" >&6
52904 cat >conftest.$ac_ext <<_ACEOF
52907 cat confdefs.h >>conftest.$ac_ext
52908 cat >>conftest.$ac_ext <<_ACEOF
52909 /* end confdefs.h. */
52910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52912 #define $ac_func innocuous_$ac_func
52914 /* System header to define __stub macros and hopefully few prototypes,
52915 which can conflict with char $ac_func (); below.
52916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52917 <limits.h> exists even on freestanding compilers. */
52920 # include <limits.h>
52922 # include <assert.h>
52927 /* Override any gcc2 internal prototype to avoid an error. */
52932 /* We use char because int might match the return type of a gcc2
52933 builtin and then its argument prototype would still apply. */
52935 /* The GNU C library defines this for functions which it implements
52936 to always fail with ENOSYS. Some functions are actually named
52937 something starting with __ and the normal name is an alias. */
52938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52941 char (*f) () = $ac_func;
52950 return f != $ac_func;
52955 rm -f conftest.$ac_objext conftest$ac_exeext
52956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52957 (eval $ac_link) 2>conftest.er1
52959 grep -v '^ *+' conftest.er1 >conftest.err
52961 cat conftest.err >&5
52962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52963 (exit $ac_status); } &&
52964 { ac_try='test -z "$ac_c_werror_flag"
52965 || test ! -s conftest.err'
52966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52967 (eval $ac_try) 2>&5
52969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52970 (exit $ac_status); }; } &&
52971 { ac_try='test -s conftest$ac_exeext'
52972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52973 (eval $ac_try) 2>&5
52975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52976 (exit $ac_status); }; }; then
52977 eval "$as_ac_var=yes"
52979 echo "$as_me: failed program was:" >&5
52980 sed 's/^/| /' conftest.$ac_ext >&5
52982 eval "$as_ac_var=no"
52984 rm -f conftest.err conftest.$ac_objext \
52985 conftest$ac_exeext conftest.$ac_ext
52987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52989 if test `eval echo '${'$as_ac_var'}'` = yes; then
52990 cat >>confdefs.h <<_ACEOF
52991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52997 if test "${ice_have_time}" = yes; then
52998 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
52999 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
53000 if test "${ice_cv_have_time_decl+set}" = set; then
53001 echo $ECHO_N "(cached) $ECHO_C" >&6
53004 ice_cv_have_time_decl=no
53005 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53006 ice_re_word='(^|[^a-zA-Z0-9_])'
53007 for header in time.h sys/time.h; do
53008 # Check for ordinary declaration
53009 cat >conftest.$ac_ext <<_ACEOF
53012 cat confdefs.h >>conftest.$ac_ext
53013 cat >>conftest.$ac_ext <<_ACEOF
53014 /* end confdefs.h. */
53018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53019 $EGREP "${ice_re_word}time[ ]*\(" >/dev/null 2>&1; then
53020 ice_cv_have_time_decl=yes
53024 if test "$ice_cv_have_time_decl" = yes; then
53027 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53028 cat >conftest.$ac_ext <<_ACEOF
53031 cat confdefs.h >>conftest.$ac_ext
53032 cat >>conftest.$ac_ext <<_ACEOF
53033 /* end confdefs.h. */
53037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53038 $EGREP "${ice_re_word}time[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53039 ice_cv_have_time_decl=yes
53043 if test "$ice_cv_have_time_decl" = yes; then
53050 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
53051 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
53052 if test "$ice_cv_have_time_decl" = yes; then
53054 cat >>confdefs.h <<_ACEOF
53055 #define HAVE_TIME_DECL 1
53062 ice_have_tolower=no
53064 for ac_func in tolower
53066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53067 echo "$as_me:$LINENO: checking for $ac_func" >&5
53068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53069 if eval "test \"\${$as_ac_var+set}\" = set"; then
53070 echo $ECHO_N "(cached) $ECHO_C" >&6
53072 cat >conftest.$ac_ext <<_ACEOF
53075 cat confdefs.h >>conftest.$ac_ext
53076 cat >>conftest.$ac_ext <<_ACEOF
53077 /* end confdefs.h. */
53078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53080 #define $ac_func innocuous_$ac_func
53082 /* System header to define __stub macros and hopefully few prototypes,
53083 which can conflict with char $ac_func (); below.
53084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53085 <limits.h> exists even on freestanding compilers. */
53088 # include <limits.h>
53090 # include <assert.h>
53095 /* Override any gcc2 internal prototype to avoid an error. */
53100 /* We use char because int might match the return type of a gcc2
53101 builtin and then its argument prototype would still apply. */
53103 /* The GNU C library defines this for functions which it implements
53104 to always fail with ENOSYS. Some functions are actually named
53105 something starting with __ and the normal name is an alias. */
53106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53109 char (*f) () = $ac_func;
53118 return f != $ac_func;
53123 rm -f conftest.$ac_objext conftest$ac_exeext
53124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53125 (eval $ac_link) 2>conftest.er1
53127 grep -v '^ *+' conftest.er1 >conftest.err
53129 cat conftest.err >&5
53130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53131 (exit $ac_status); } &&
53132 { ac_try='test -z "$ac_c_werror_flag"
53133 || test ! -s conftest.err'
53134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53135 (eval $ac_try) 2>&5
53137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53138 (exit $ac_status); }; } &&
53139 { ac_try='test -s conftest$ac_exeext'
53140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53141 (eval $ac_try) 2>&5
53143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53144 (exit $ac_status); }; }; then
53145 eval "$as_ac_var=yes"
53147 echo "$as_me: failed program was:" >&5
53148 sed 's/^/| /' conftest.$ac_ext >&5
53150 eval "$as_ac_var=no"
53152 rm -f conftest.err conftest.$ac_objext \
53153 conftest$ac_exeext conftest.$ac_ext
53155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53157 if test `eval echo '${'$as_ac_var'}'` = yes; then
53158 cat >>confdefs.h <<_ACEOF
53159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53161 ice_have_tolower=yes
53165 if test "${ice_have_tolower}" = yes; then
53166 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
53167 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
53168 if test "${ice_cv_have_tolower_decl+set}" = set; then
53169 echo $ECHO_N "(cached) $ECHO_C" >&6
53172 ice_cv_have_tolower_decl=no
53173 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53174 ice_re_word='(^|[^a-zA-Z0-9_])'
53175 for header in ctype.h; do
53176 # Check for ordinary declaration
53177 cat >conftest.$ac_ext <<_ACEOF
53180 cat confdefs.h >>conftest.$ac_ext
53181 cat >>conftest.$ac_ext <<_ACEOF
53182 /* end confdefs.h. */
53186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53187 $EGREP "${ice_re_word}tolower[ ]*\(" >/dev/null 2>&1; then
53188 ice_cv_have_tolower_decl=yes
53192 if test "$ice_cv_have_tolower_decl" = yes; then
53195 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53196 cat >conftest.$ac_ext <<_ACEOF
53199 cat confdefs.h >>conftest.$ac_ext
53200 cat >>conftest.$ac_ext <<_ACEOF
53201 /* end confdefs.h. */
53205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53206 $EGREP "${ice_re_word}tolower[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53207 ice_cv_have_tolower_decl=yes
53211 if test "$ice_cv_have_tolower_decl" = yes; then
53218 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
53219 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
53220 if test "$ice_cv_have_tolower_decl" = yes; then
53222 cat >>confdefs.h <<_ACEOF
53223 #define HAVE_TOLOWER_DECL 1
53230 ice_have_toupper=no
53232 for ac_func in toupper
53234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53235 echo "$as_me:$LINENO: checking for $ac_func" >&5
53236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53237 if eval "test \"\${$as_ac_var+set}\" = set"; then
53238 echo $ECHO_N "(cached) $ECHO_C" >&6
53240 cat >conftest.$ac_ext <<_ACEOF
53243 cat confdefs.h >>conftest.$ac_ext
53244 cat >>conftest.$ac_ext <<_ACEOF
53245 /* end confdefs.h. */
53246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53248 #define $ac_func innocuous_$ac_func
53250 /* System header to define __stub macros and hopefully few prototypes,
53251 which can conflict with char $ac_func (); below.
53252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53253 <limits.h> exists even on freestanding compilers. */
53256 # include <limits.h>
53258 # include <assert.h>
53263 /* Override any gcc2 internal prototype to avoid an error. */
53268 /* We use char because int might match the return type of a gcc2
53269 builtin and then its argument prototype would still apply. */
53271 /* The GNU C library defines this for functions which it implements
53272 to always fail with ENOSYS. Some functions are actually named
53273 something starting with __ and the normal name is an alias. */
53274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53277 char (*f) () = $ac_func;
53286 return f != $ac_func;
53291 rm -f conftest.$ac_objext conftest$ac_exeext
53292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53293 (eval $ac_link) 2>conftest.er1
53295 grep -v '^ *+' conftest.er1 >conftest.err
53297 cat conftest.err >&5
53298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53299 (exit $ac_status); } &&
53300 { ac_try='test -z "$ac_c_werror_flag"
53301 || test ! -s conftest.err'
53302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53303 (eval $ac_try) 2>&5
53305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53306 (exit $ac_status); }; } &&
53307 { ac_try='test -s conftest$ac_exeext'
53308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53309 (eval $ac_try) 2>&5
53311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53312 (exit $ac_status); }; }; then
53313 eval "$as_ac_var=yes"
53315 echo "$as_me: failed program was:" >&5
53316 sed 's/^/| /' conftest.$ac_ext >&5
53318 eval "$as_ac_var=no"
53320 rm -f conftest.err conftest.$ac_objext \
53321 conftest$ac_exeext conftest.$ac_ext
53323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53325 if test `eval echo '${'$as_ac_var'}'` = yes; then
53326 cat >>confdefs.h <<_ACEOF
53327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53329 ice_have_toupper=yes
53333 if test "${ice_have_toupper}" = yes; then
53334 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
53335 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
53336 if test "${ice_cv_have_toupper_decl+set}" = set; then
53337 echo $ECHO_N "(cached) $ECHO_C" >&6
53340 ice_cv_have_toupper_decl=no
53341 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53342 ice_re_word='(^|[^a-zA-Z0-9_])'
53343 for header in ctype.h; do
53344 # Check for ordinary declaration
53345 cat >conftest.$ac_ext <<_ACEOF
53348 cat confdefs.h >>conftest.$ac_ext
53349 cat >>conftest.$ac_ext <<_ACEOF
53350 /* end confdefs.h. */
53354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53355 $EGREP "${ice_re_word}toupper[ ]*\(" >/dev/null 2>&1; then
53356 ice_cv_have_toupper_decl=yes
53360 if test "$ice_cv_have_toupper_decl" = yes; then
53363 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53364 cat >conftest.$ac_ext <<_ACEOF
53367 cat confdefs.h >>conftest.$ac_ext
53368 cat >>conftest.$ac_ext <<_ACEOF
53369 /* end confdefs.h. */
53373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53374 $EGREP "${ice_re_word}toupper[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53375 ice_cv_have_toupper_decl=yes
53379 if test "$ice_cv_have_toupper_decl" = yes; then
53386 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
53387 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
53388 if test "$ice_cv_have_toupper_decl" = yes; then
53390 cat >>confdefs.h <<_ACEOF
53391 #define HAVE_TOUPPER_DECL 1
53400 for ac_func in ungetc
53402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53403 echo "$as_me:$LINENO: checking for $ac_func" >&5
53404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53405 if eval "test \"\${$as_ac_var+set}\" = set"; then
53406 echo $ECHO_N "(cached) $ECHO_C" >&6
53408 cat >conftest.$ac_ext <<_ACEOF
53411 cat confdefs.h >>conftest.$ac_ext
53412 cat >>conftest.$ac_ext <<_ACEOF
53413 /* end confdefs.h. */
53414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53416 #define $ac_func innocuous_$ac_func
53418 /* System header to define __stub macros and hopefully few prototypes,
53419 which can conflict with char $ac_func (); below.
53420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53421 <limits.h> exists even on freestanding compilers. */
53424 # include <limits.h>
53426 # include <assert.h>
53431 /* Override any gcc2 internal prototype to avoid an error. */
53436 /* We use char because int might match the return type of a gcc2
53437 builtin and then its argument prototype would still apply. */
53439 /* The GNU C library defines this for functions which it implements
53440 to always fail with ENOSYS. Some functions are actually named
53441 something starting with __ and the normal name is an alias. */
53442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53445 char (*f) () = $ac_func;
53454 return f != $ac_func;
53459 rm -f conftest.$ac_objext conftest$ac_exeext
53460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53461 (eval $ac_link) 2>conftest.er1
53463 grep -v '^ *+' conftest.er1 >conftest.err
53465 cat conftest.err >&5
53466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53467 (exit $ac_status); } &&
53468 { ac_try='test -z "$ac_c_werror_flag"
53469 || test ! -s conftest.err'
53470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53471 (eval $ac_try) 2>&5
53473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53474 (exit $ac_status); }; } &&
53475 { ac_try='test -s conftest$ac_exeext'
53476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53477 (eval $ac_try) 2>&5
53479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53480 (exit $ac_status); }; }; then
53481 eval "$as_ac_var=yes"
53483 echo "$as_me: failed program was:" >&5
53484 sed 's/^/| /' conftest.$ac_ext >&5
53486 eval "$as_ac_var=no"
53488 rm -f conftest.err conftest.$ac_objext \
53489 conftest$ac_exeext conftest.$ac_ext
53491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53493 if test `eval echo '${'$as_ac_var'}'` = yes; then
53494 cat >>confdefs.h <<_ACEOF
53495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53497 ice_have_ungetc=yes
53501 if test "${ice_have_ungetc}" = yes; then
53502 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
53503 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
53504 if test "${ice_cv_have_ungetc_decl+set}" = set; then
53505 echo $ECHO_N "(cached) $ECHO_C" >&6
53508 ice_cv_have_ungetc_decl=no
53509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53510 ice_re_word='(^|[^a-zA-Z0-9_])'
53511 for header in stdio.h; do
53512 # Check for ordinary declaration
53513 cat >conftest.$ac_ext <<_ACEOF
53516 cat confdefs.h >>conftest.$ac_ext
53517 cat >>conftest.$ac_ext <<_ACEOF
53518 /* end confdefs.h. */
53522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53523 $EGREP "${ice_re_word}ungetc[ ]*\(" >/dev/null 2>&1; then
53524 ice_cv_have_ungetc_decl=yes
53528 if test "$ice_cv_have_ungetc_decl" = yes; then
53531 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53532 cat >conftest.$ac_ext <<_ACEOF
53535 cat confdefs.h >>conftest.$ac_ext
53536 cat >>conftest.$ac_ext <<_ACEOF
53537 /* end confdefs.h. */
53541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53542 $EGREP "${ice_re_word}ungetc[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53543 ice_cv_have_ungetc_decl=yes
53547 if test "$ice_cv_have_ungetc_decl" = yes; then
53554 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
53555 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
53556 if test "$ice_cv_have_ungetc_decl" = yes; then
53558 cat >>confdefs.h <<_ACEOF
53559 #define HAVE_UNGETC_DECL 1
53566 for ac_func in vprintf
53568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53569 echo "$as_me:$LINENO: checking for $ac_func" >&5
53570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53571 if eval "test \"\${$as_ac_var+set}\" = set"; then
53572 echo $ECHO_N "(cached) $ECHO_C" >&6
53574 cat >conftest.$ac_ext <<_ACEOF
53577 cat confdefs.h >>conftest.$ac_ext
53578 cat >>conftest.$ac_ext <<_ACEOF
53579 /* end confdefs.h. */
53580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53582 #define $ac_func innocuous_$ac_func
53584 /* System header to define __stub macros and hopefully few prototypes,
53585 which can conflict with char $ac_func (); below.
53586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53587 <limits.h> exists even on freestanding compilers. */
53590 # include <limits.h>
53592 # include <assert.h>
53597 /* Override any gcc2 internal prototype to avoid an error. */
53602 /* We use char because int might match the return type of a gcc2
53603 builtin and then its argument prototype would still apply. */
53605 /* The GNU C library defines this for functions which it implements
53606 to always fail with ENOSYS. Some functions are actually named
53607 something starting with __ and the normal name is an alias. */
53608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53611 char (*f) () = $ac_func;
53620 return f != $ac_func;
53625 rm -f conftest.$ac_objext conftest$ac_exeext
53626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53627 (eval $ac_link) 2>conftest.er1
53629 grep -v '^ *+' conftest.er1 >conftest.err
53631 cat conftest.err >&5
53632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53633 (exit $ac_status); } &&
53634 { ac_try='test -z "$ac_c_werror_flag"
53635 || test ! -s conftest.err'
53636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53637 (eval $ac_try) 2>&5
53639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53640 (exit $ac_status); }; } &&
53641 { ac_try='test -s conftest$ac_exeext'
53642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53643 (eval $ac_try) 2>&5
53645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53646 (exit $ac_status); }; }; then
53647 eval "$as_ac_var=yes"
53649 echo "$as_me: failed program was:" >&5
53650 sed 's/^/| /' conftest.$ac_ext >&5
53652 eval "$as_ac_var=no"
53654 rm -f conftest.err conftest.$ac_objext \
53655 conftest$ac_exeext conftest.$ac_ext
53657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53659 if test `eval echo '${'$as_ac_var'}'` = yes; then
53660 cat >>confdefs.h <<_ACEOF
53661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53664 echo "$as_me:$LINENO: checking for _doprnt" >&5
53665 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
53666 if test "${ac_cv_func__doprnt+set}" = set; then
53667 echo $ECHO_N "(cached) $ECHO_C" >&6
53669 cat >conftest.$ac_ext <<_ACEOF
53672 cat confdefs.h >>conftest.$ac_ext
53673 cat >>conftest.$ac_ext <<_ACEOF
53674 /* end confdefs.h. */
53675 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
53676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53677 #define _doprnt innocuous__doprnt
53679 /* System header to define __stub macros and hopefully few prototypes,
53680 which can conflict with char _doprnt (); below.
53681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53682 <limits.h> exists even on freestanding compilers. */
53685 # include <limits.h>
53687 # include <assert.h>
53692 /* Override any gcc2 internal prototype to avoid an error. */
53697 /* We use char because int might match the return type of a gcc2
53698 builtin and then its argument prototype would still apply. */
53700 /* The GNU C library defines this for functions which it implements
53701 to always fail with ENOSYS. Some functions are actually named
53702 something starting with __ and the normal name is an alias. */
53703 #if defined (__stub__doprnt) || defined (__stub____doprnt)
53706 char (*f) () = _doprnt;
53715 return f != _doprnt;
53720 rm -f conftest.$ac_objext conftest$ac_exeext
53721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53722 (eval $ac_link) 2>conftest.er1
53724 grep -v '^ *+' conftest.er1 >conftest.err
53726 cat conftest.err >&5
53727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53728 (exit $ac_status); } &&
53729 { ac_try='test -z "$ac_c_werror_flag"
53730 || test ! -s conftest.err'
53731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53732 (eval $ac_try) 2>&5
53734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53735 (exit $ac_status); }; } &&
53736 { ac_try='test -s conftest$ac_exeext'
53737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53738 (eval $ac_try) 2>&5
53740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53741 (exit $ac_status); }; }; then
53742 ac_cv_func__doprnt=yes
53744 echo "$as_me: failed program was:" >&5
53745 sed 's/^/| /' conftest.$ac_ext >&5
53747 ac_cv_func__doprnt=no
53749 rm -f conftest.err conftest.$ac_objext \
53750 conftest$ac_exeext conftest.$ac_ext
53752 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
53753 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
53754 if test $ac_cv_func__doprnt = yes; then
53756 cat >>confdefs.h <<\_ACEOF
53757 #define HAVE_DOPRNT 1
53767 ice_have_vfprintf=no
53769 for ac_func in vfprintf
53771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53772 echo "$as_me:$LINENO: checking for $ac_func" >&5
53773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53774 if eval "test \"\${$as_ac_var+set}\" = set"; then
53775 echo $ECHO_N "(cached) $ECHO_C" >&6
53777 cat >conftest.$ac_ext <<_ACEOF
53780 cat confdefs.h >>conftest.$ac_ext
53781 cat >>conftest.$ac_ext <<_ACEOF
53782 /* end confdefs.h. */
53783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53785 #define $ac_func innocuous_$ac_func
53787 /* System header to define __stub macros and hopefully few prototypes,
53788 which can conflict with char $ac_func (); below.
53789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53790 <limits.h> exists even on freestanding compilers. */
53793 # include <limits.h>
53795 # include <assert.h>
53800 /* Override any gcc2 internal prototype to avoid an error. */
53805 /* We use char because int might match the return type of a gcc2
53806 builtin and then its argument prototype would still apply. */
53808 /* The GNU C library defines this for functions which it implements
53809 to always fail with ENOSYS. Some functions are actually named
53810 something starting with __ and the normal name is an alias. */
53811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53814 char (*f) () = $ac_func;
53823 return f != $ac_func;
53828 rm -f conftest.$ac_objext conftest$ac_exeext
53829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53830 (eval $ac_link) 2>conftest.er1
53832 grep -v '^ *+' conftest.er1 >conftest.err
53834 cat conftest.err >&5
53835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53836 (exit $ac_status); } &&
53837 { ac_try='test -z "$ac_c_werror_flag"
53838 || test ! -s conftest.err'
53839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53840 (eval $ac_try) 2>&5
53842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53843 (exit $ac_status); }; } &&
53844 { ac_try='test -s conftest$ac_exeext'
53845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53846 (eval $ac_try) 2>&5
53848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53849 (exit $ac_status); }; }; then
53850 eval "$as_ac_var=yes"
53852 echo "$as_me: failed program was:" >&5
53853 sed 's/^/| /' conftest.$ac_ext >&5
53855 eval "$as_ac_var=no"
53857 rm -f conftest.err conftest.$ac_objext \
53858 conftest$ac_exeext conftest.$ac_ext
53860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53862 if test `eval echo '${'$as_ac_var'}'` = yes; then
53863 cat >>confdefs.h <<_ACEOF
53864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53866 ice_have_vfprintf=yes
53870 if test "${ice_have_vfprintf}" = yes; then
53871 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
53872 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53873 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
53874 echo $ECHO_N "(cached) $ECHO_C" >&6
53877 ice_cv_have_vfprintf_decl=no
53878 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53879 ice_re_word='(^|[^a-zA-Z0-9_])'
53880 for header in stdio.h stdlib.h; do
53881 # Check for ordinary declaration
53882 cat >conftest.$ac_ext <<_ACEOF
53885 cat confdefs.h >>conftest.$ac_ext
53886 cat >>conftest.$ac_ext <<_ACEOF
53887 /* end confdefs.h. */
53891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53892 $EGREP "${ice_re_word}vfprintf[ ]*\(" >/dev/null 2>&1; then
53893 ice_cv_have_vfprintf_decl=yes
53897 if test "$ice_cv_have_vfprintf_decl" = yes; then
53900 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53901 cat >conftest.$ac_ext <<_ACEOF
53904 cat confdefs.h >>conftest.$ac_ext
53905 cat >>conftest.$ac_ext <<_ACEOF
53906 /* end confdefs.h. */
53910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53911 $EGREP "${ice_re_word}vfprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53912 ice_cv_have_vfprintf_decl=yes
53916 if test "$ice_cv_have_vfprintf_decl" = yes; then
53923 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
53924 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
53925 if test "$ice_cv_have_vfprintf_decl" = yes; then
53927 cat >>confdefs.h <<_ACEOF
53928 #define HAVE_VFPRINTF_DECL 1
53935 ice_have_vprintf=no
53937 for ac_func in vprintf
53939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53940 echo "$as_me:$LINENO: checking for $ac_func" >&5
53941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53942 if eval "test \"\${$as_ac_var+set}\" = set"; then
53943 echo $ECHO_N "(cached) $ECHO_C" >&6
53945 cat >conftest.$ac_ext <<_ACEOF
53948 cat confdefs.h >>conftest.$ac_ext
53949 cat >>conftest.$ac_ext <<_ACEOF
53950 /* end confdefs.h. */
53951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53953 #define $ac_func innocuous_$ac_func
53955 /* System header to define __stub macros and hopefully few prototypes,
53956 which can conflict with char $ac_func (); below.
53957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53958 <limits.h> exists even on freestanding compilers. */
53961 # include <limits.h>
53963 # include <assert.h>
53968 /* Override any gcc2 internal prototype to avoid an error. */
53973 /* We use char because int might match the return type of a gcc2
53974 builtin and then its argument prototype would still apply. */
53976 /* The GNU C library defines this for functions which it implements
53977 to always fail with ENOSYS. Some functions are actually named
53978 something starting with __ and the normal name is an alias. */
53979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53982 char (*f) () = $ac_func;
53991 return f != $ac_func;
53996 rm -f conftest.$ac_objext conftest$ac_exeext
53997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53998 (eval $ac_link) 2>conftest.er1
54000 grep -v '^ *+' conftest.er1 >conftest.err
54002 cat conftest.err >&5
54003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004 (exit $ac_status); } &&
54005 { ac_try='test -z "$ac_c_werror_flag"
54006 || test ! -s conftest.err'
54007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54008 (eval $ac_try) 2>&5
54010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54011 (exit $ac_status); }; } &&
54012 { ac_try='test -s conftest$ac_exeext'
54013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54014 (eval $ac_try) 2>&5
54016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54017 (exit $ac_status); }; }; then
54018 eval "$as_ac_var=yes"
54020 echo "$as_me: failed program was:" >&5
54021 sed 's/^/| /' conftest.$ac_ext >&5
54023 eval "$as_ac_var=no"
54025 rm -f conftest.err conftest.$ac_objext \
54026 conftest$ac_exeext conftest.$ac_ext
54028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54030 if test `eval echo '${'$as_ac_var'}'` = yes; then
54031 cat >>confdefs.h <<_ACEOF
54032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54034 ice_have_vprintf=yes
54038 if test "${ice_have_vprintf}" = yes; then
54039 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
54040 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
54041 if test "${ice_cv_have_vprintf_decl+set}" = set; then
54042 echo $ECHO_N "(cached) $ECHO_C" >&6
54045 ice_cv_have_vprintf_decl=no
54046 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54047 ice_re_word='(^|[^a-zA-Z0-9_])'
54048 for header in stdio.h stdlib.h; do
54049 # Check for ordinary declaration
54050 cat >conftest.$ac_ext <<_ACEOF
54053 cat confdefs.h >>conftest.$ac_ext
54054 cat >>conftest.$ac_ext <<_ACEOF
54055 /* end confdefs.h. */
54059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54060 $EGREP "${ice_re_word}vprintf[ ]*\(" >/dev/null 2>&1; then
54061 ice_cv_have_vprintf_decl=yes
54065 if test "$ice_cv_have_vprintf_decl" = yes; then
54068 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54069 cat >conftest.$ac_ext <<_ACEOF
54072 cat confdefs.h >>conftest.$ac_ext
54073 cat >>conftest.$ac_ext <<_ACEOF
54074 /* end confdefs.h. */
54078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54079 $EGREP "${ice_re_word}vprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54080 ice_cv_have_vprintf_decl=yes
54084 if test "$ice_cv_have_vprintf_decl" = yes; then
54091 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
54092 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
54093 if test "$ice_cv_have_vprintf_decl" = yes; then
54095 cat >>confdefs.h <<_ACEOF
54096 #define HAVE_VPRINTF_DECL 1
54103 ice_have_vsprintf=no
54105 for ac_func in vsprintf
54107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54108 echo "$as_me:$LINENO: checking for $ac_func" >&5
54109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54110 if eval "test \"\${$as_ac_var+set}\" = set"; then
54111 echo $ECHO_N "(cached) $ECHO_C" >&6
54113 cat >conftest.$ac_ext <<_ACEOF
54116 cat confdefs.h >>conftest.$ac_ext
54117 cat >>conftest.$ac_ext <<_ACEOF
54118 /* end confdefs.h. */
54119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54121 #define $ac_func innocuous_$ac_func
54123 /* System header to define __stub macros and hopefully few prototypes,
54124 which can conflict with char $ac_func (); below.
54125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54126 <limits.h> exists even on freestanding compilers. */
54129 # include <limits.h>
54131 # include <assert.h>
54136 /* Override any gcc2 internal prototype to avoid an error. */
54141 /* We use char because int might match the return type of a gcc2
54142 builtin and then its argument prototype would still apply. */
54144 /* The GNU C library defines this for functions which it implements
54145 to always fail with ENOSYS. Some functions are actually named
54146 something starting with __ and the normal name is an alias. */
54147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54150 char (*f) () = $ac_func;
54159 return f != $ac_func;
54164 rm -f conftest.$ac_objext conftest$ac_exeext
54165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54166 (eval $ac_link) 2>conftest.er1
54168 grep -v '^ *+' conftest.er1 >conftest.err
54170 cat conftest.err >&5
54171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54172 (exit $ac_status); } &&
54173 { ac_try='test -z "$ac_c_werror_flag"
54174 || test ! -s conftest.err'
54175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54176 (eval $ac_try) 2>&5
54178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54179 (exit $ac_status); }; } &&
54180 { ac_try='test -s conftest$ac_exeext'
54181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54182 (eval $ac_try) 2>&5
54184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54185 (exit $ac_status); }; }; then
54186 eval "$as_ac_var=yes"
54188 echo "$as_me: failed program was:" >&5
54189 sed 's/^/| /' conftest.$ac_ext >&5
54191 eval "$as_ac_var=no"
54193 rm -f conftest.err conftest.$ac_objext \
54194 conftest$ac_exeext conftest.$ac_ext
54196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54198 if test `eval echo '${'$as_ac_var'}'` = yes; then
54199 cat >>confdefs.h <<_ACEOF
54200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54202 ice_have_vsprintf=yes
54206 if test "${ice_have_vsprintf}" = yes; then
54207 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
54208 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
54209 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
54210 echo $ECHO_N "(cached) $ECHO_C" >&6
54213 ice_cv_have_vsprintf_decl=no
54214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54215 ice_re_word='(^|[^a-zA-Z0-9_])'
54216 for header in stdio.h stdlib.h; do
54217 # Check for ordinary declaration
54218 cat >conftest.$ac_ext <<_ACEOF
54221 cat confdefs.h >>conftest.$ac_ext
54222 cat >>conftest.$ac_ext <<_ACEOF
54223 /* end confdefs.h. */
54227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54228 $EGREP "${ice_re_word}vsprintf[ ]*\(" >/dev/null 2>&1; then
54229 ice_cv_have_vsprintf_decl=yes
54233 if test "$ice_cv_have_vsprintf_decl" = yes; then
54236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54237 cat >conftest.$ac_ext <<_ACEOF
54240 cat confdefs.h >>conftest.$ac_ext
54241 cat >>conftest.$ac_ext <<_ACEOF
54242 /* end confdefs.h. */
54246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54247 $EGREP "${ice_re_word}vsprintf[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54248 ice_cv_have_vsprintf_decl=yes
54252 if test "$ice_cv_have_vsprintf_decl" = yes; then
54259 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
54260 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
54261 if test "$ice_cv_have_vsprintf_decl" = yes; then
54263 cat >>confdefs.h <<_ACEOF
54264 #define HAVE_VSPRINTF_DECL 1
54270 echo "$as_me:$LINENO: checking for wait4" >&5
54271 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
54272 if test "${ac_cv_func_wait4+set}" = set; then
54273 echo $ECHO_N "(cached) $ECHO_C" >&6
54275 cat >conftest.$ac_ext <<_ACEOF
54278 cat confdefs.h >>conftest.$ac_ext
54279 cat >>conftest.$ac_ext <<_ACEOF
54280 /* end confdefs.h. */
54281 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
54282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54283 #define wait4 innocuous_wait4
54285 /* System header to define __stub macros and hopefully few prototypes,
54286 which can conflict with char wait4 (); below.
54287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54288 <limits.h> exists even on freestanding compilers. */
54291 # include <limits.h>
54293 # include <assert.h>
54298 /* Override any gcc2 internal prototype to avoid an error. */
54303 /* We use char because int might match the return type of a gcc2
54304 builtin and then its argument prototype would still apply. */
54306 /* The GNU C library defines this for functions which it implements
54307 to always fail with ENOSYS. Some functions are actually named
54308 something starting with __ and the normal name is an alias. */
54309 #if defined (__stub_wait4) || defined (__stub___wait4)
54312 char (*f) () = wait4;
54326 rm -f conftest.$ac_objext conftest$ac_exeext
54327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54328 (eval $ac_link) 2>conftest.er1
54330 grep -v '^ *+' conftest.er1 >conftest.err
54332 cat conftest.err >&5
54333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54334 (exit $ac_status); } &&
54335 { ac_try='test -z "$ac_c_werror_flag"
54336 || test ! -s conftest.err'
54337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54338 (eval $ac_try) 2>&5
54340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54341 (exit $ac_status); }; } &&
54342 { ac_try='test -s conftest$ac_exeext'
54343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54344 (eval $ac_try) 2>&5
54346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54347 (exit $ac_status); }; }; then
54348 ac_cv_func_wait4=yes
54350 echo "$as_me: failed program was:" >&5
54351 sed 's/^/| /' conftest.$ac_ext >&5
54353 ac_cv_func_wait4=no
54355 rm -f conftest.err conftest.$ac_objext \
54356 conftest$ac_exeext conftest.$ac_ext
54358 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
54359 echo "${ECHO_T}$ac_cv_func_wait4" >&6
54362 for ac_func in waitpid
54364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54365 echo "$as_me:$LINENO: checking for $ac_func" >&5
54366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54367 if eval "test \"\${$as_ac_var+set}\" = set"; then
54368 echo $ECHO_N "(cached) $ECHO_C" >&6
54370 cat >conftest.$ac_ext <<_ACEOF
54373 cat confdefs.h >>conftest.$ac_ext
54374 cat >>conftest.$ac_ext <<_ACEOF
54375 /* end confdefs.h. */
54376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54378 #define $ac_func innocuous_$ac_func
54380 /* System header to define __stub macros and hopefully few prototypes,
54381 which can conflict with char $ac_func (); below.
54382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54383 <limits.h> exists even on freestanding compilers. */
54386 # include <limits.h>
54388 # include <assert.h>
54393 /* Override any gcc2 internal prototype to avoid an error. */
54398 /* We use char because int might match the return type of a gcc2
54399 builtin and then its argument prototype would still apply. */
54401 /* The GNU C library defines this for functions which it implements
54402 to always fail with ENOSYS. Some functions are actually named
54403 something starting with __ and the normal name is an alias. */
54404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54407 char (*f) () = $ac_func;
54416 return f != $ac_func;
54421 rm -f conftest.$ac_objext conftest$ac_exeext
54422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54423 (eval $ac_link) 2>conftest.er1
54425 grep -v '^ *+' conftest.er1 >conftest.err
54427 cat conftest.err >&5
54428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54429 (exit $ac_status); } &&
54430 { ac_try='test -z "$ac_c_werror_flag"
54431 || test ! -s conftest.err'
54432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54433 (eval $ac_try) 2>&5
54435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54436 (exit $ac_status); }; } &&
54437 { ac_try='test -s conftest$ac_exeext'
54438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54439 (eval $ac_try) 2>&5
54441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54442 (exit $ac_status); }; }; then
54443 eval "$as_ac_var=yes"
54445 echo "$as_me: failed program was:" >&5
54446 sed 's/^/| /' conftest.$ac_ext >&5
54448 eval "$as_ac_var=no"
54450 rm -f conftest.err conftest.$ac_objext \
54451 conftest$ac_exeext conftest.$ac_ext
54453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54455 if test `eval echo '${'$as_ac_var'}'` = yes; then
54456 cat >>confdefs.h <<_ACEOF
54457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54462 "$ac_func.$ac_objext" | \
54463 *" $ac_func.$ac_objext" | \
54464 "$ac_func.$ac_objext "* | \
54465 *" $ac_func.$ac_objext "* ) ;;
54466 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54474 for ac_func in writev
54476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54477 echo "$as_me:$LINENO: checking for $ac_func" >&5
54478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54479 if eval "test \"\${$as_ac_var+set}\" = set"; then
54480 echo $ECHO_N "(cached) $ECHO_C" >&6
54482 cat >conftest.$ac_ext <<_ACEOF
54485 cat confdefs.h >>conftest.$ac_ext
54486 cat >>conftest.$ac_ext <<_ACEOF
54487 /* end confdefs.h. */
54488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54490 #define $ac_func innocuous_$ac_func
54492 /* System header to define __stub macros and hopefully few prototypes,
54493 which can conflict with char $ac_func (); below.
54494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54495 <limits.h> exists even on freestanding compilers. */
54498 # include <limits.h>
54500 # include <assert.h>
54505 /* Override any gcc2 internal prototype to avoid an error. */
54510 /* We use char because int might match the return type of a gcc2
54511 builtin and then its argument prototype would still apply. */
54513 /* The GNU C library defines this for functions which it implements
54514 to always fail with ENOSYS. Some functions are actually named
54515 something starting with __ and the normal name is an alias. */
54516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54519 char (*f) () = $ac_func;
54528 return f != $ac_func;
54533 rm -f conftest.$ac_objext conftest$ac_exeext
54534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54535 (eval $ac_link) 2>conftest.er1
54537 grep -v '^ *+' conftest.er1 >conftest.err
54539 cat conftest.err >&5
54540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54541 (exit $ac_status); } &&
54542 { ac_try='test -z "$ac_c_werror_flag"
54543 || test ! -s conftest.err'
54544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54545 (eval $ac_try) 2>&5
54547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54548 (exit $ac_status); }; } &&
54549 { ac_try='test -s conftest$ac_exeext'
54550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54551 (eval $ac_try) 2>&5
54553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54554 (exit $ac_status); }; }; then
54555 eval "$as_ac_var=yes"
54557 echo "$as_me: failed program was:" >&5
54558 sed 's/^/| /' conftest.$ac_ext >&5
54560 eval "$as_ac_var=no"
54562 rm -f conftest.err conftest.$ac_objext \
54563 conftest$ac_exeext conftest.$ac_ext
54565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54567 if test `eval echo '${'$as_ac_var'}'` = yes; then
54568 cat >>confdefs.h <<_ACEOF
54569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54574 "$ac_func.$ac_objext" | \
54575 *" $ac_func.$ac_objext" | \
54576 "$ac_func.$ac_objext "* | \
54577 *" $ac_func.$ac_objext "* ) ;;
54578 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54588 for ac_func in writev
54590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54591 echo "$as_me:$LINENO: checking for $ac_func" >&5
54592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54593 if eval "test \"\${$as_ac_var+set}\" = set"; then
54594 echo $ECHO_N "(cached) $ECHO_C" >&6
54596 cat >conftest.$ac_ext <<_ACEOF
54599 cat confdefs.h >>conftest.$ac_ext
54600 cat >>conftest.$ac_ext <<_ACEOF
54601 /* end confdefs.h. */
54602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54604 #define $ac_func innocuous_$ac_func
54606 /* System header to define __stub macros and hopefully few prototypes,
54607 which can conflict with char $ac_func (); below.
54608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54609 <limits.h> exists even on freestanding compilers. */
54612 # include <limits.h>
54614 # include <assert.h>
54619 /* Override any gcc2 internal prototype to avoid an error. */
54624 /* We use char because int might match the return type of a gcc2
54625 builtin and then its argument prototype would still apply. */
54627 /* The GNU C library defines this for functions which it implements
54628 to always fail with ENOSYS. Some functions are actually named
54629 something starting with __ and the normal name is an alias. */
54630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54633 char (*f) () = $ac_func;
54642 return f != $ac_func;
54647 rm -f conftest.$ac_objext conftest$ac_exeext
54648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54649 (eval $ac_link) 2>conftest.er1
54651 grep -v '^ *+' conftest.er1 >conftest.err
54653 cat conftest.err >&5
54654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54655 (exit $ac_status); } &&
54656 { ac_try='test -z "$ac_c_werror_flag"
54657 || test ! -s conftest.err'
54658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54659 (eval $ac_try) 2>&5
54661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54662 (exit $ac_status); }; } &&
54663 { ac_try='test -s conftest$ac_exeext'
54664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54665 (eval $ac_try) 2>&5
54667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54668 (exit $ac_status); }; }; then
54669 eval "$as_ac_var=yes"
54671 echo "$as_me: failed program was:" >&5
54672 sed 's/^/| /' conftest.$ac_ext >&5
54674 eval "$as_ac_var=no"
54676 rm -f conftest.err conftest.$ac_objext \
54677 conftest$ac_exeext conftest.$ac_ext
54679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54681 if test `eval echo '${'$as_ac_var'}'` = yes; then
54682 cat >>confdefs.h <<_ACEOF
54683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54685 ice_have_writev=yes
54689 if test "${ice_have_writev}" = yes; then
54690 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
54691 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
54692 if test "${ice_cv_have_writev_decl+set}" = set; then
54693 echo $ECHO_N "(cached) $ECHO_C" >&6
54696 ice_cv_have_writev_decl=no
54697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54698 ice_re_word='(^|[^a-zA-Z0-9_])'
54699 for header in unistd.h sys/uio.h; do
54700 # Check for ordinary declaration
54701 cat >conftest.$ac_ext <<_ACEOF
54704 cat confdefs.h >>conftest.$ac_ext
54705 cat >>conftest.$ac_ext <<_ACEOF
54706 /* end confdefs.h. */
54710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54711 $EGREP "${ice_re_word}writev[ ]*\(" >/dev/null 2>&1; then
54712 ice_cv_have_writev_decl=yes
54716 if test "$ice_cv_have_writev_decl" = yes; then
54719 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54720 cat >conftest.$ac_ext <<_ACEOF
54723 cat confdefs.h >>conftest.$ac_ext
54724 cat >>conftest.$ac_ext <<_ACEOF
54725 /* end confdefs.h. */
54729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54730 $EGREP "${ice_re_word}writev[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54731 ice_cv_have_writev_decl=yes
54735 if test "$ice_cv_have_writev_decl" = yes; then
54742 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
54743 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
54744 if test "$ice_cv_have_writev_decl" = yes; then
54746 cat >>confdefs.h <<_ACEOF
54747 #define HAVE_WRITEV_DECL 1
54754 for ac_func in strcasecmp
54756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54757 echo "$as_me:$LINENO: checking for $ac_func" >&5
54758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54759 if eval "test \"\${$as_ac_var+set}\" = set"; then
54760 echo $ECHO_N "(cached) $ECHO_C" >&6
54762 cat >conftest.$ac_ext <<_ACEOF
54765 cat confdefs.h >>conftest.$ac_ext
54766 cat >>conftest.$ac_ext <<_ACEOF
54767 /* end confdefs.h. */
54768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54770 #define $ac_func innocuous_$ac_func
54772 /* System header to define __stub macros and hopefully few prototypes,
54773 which can conflict with char $ac_func (); below.
54774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54775 <limits.h> exists even on freestanding compilers. */
54778 # include <limits.h>
54780 # include <assert.h>
54785 /* Override any gcc2 internal prototype to avoid an error. */
54790 /* We use char because int might match the return type of a gcc2
54791 builtin and then its argument prototype would still apply. */
54793 /* The GNU C library defines this for functions which it implements
54794 to always fail with ENOSYS. Some functions are actually named
54795 something starting with __ and the normal name is an alias. */
54796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54799 char (*f) () = $ac_func;
54808 return f != $ac_func;
54813 rm -f conftest.$ac_objext conftest$ac_exeext
54814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54815 (eval $ac_link) 2>conftest.er1
54817 grep -v '^ *+' conftest.er1 >conftest.err
54819 cat conftest.err >&5
54820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54821 (exit $ac_status); } &&
54822 { ac_try='test -z "$ac_c_werror_flag"
54823 || test ! -s conftest.err'
54824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54825 (eval $ac_try) 2>&5
54827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54828 (exit $ac_status); }; } &&
54829 { ac_try='test -s conftest$ac_exeext'
54830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54831 (eval $ac_try) 2>&5
54833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54834 (exit $ac_status); }; }; then
54835 eval "$as_ac_var=yes"
54837 echo "$as_me: failed program was:" >&5
54838 sed 's/^/| /' conftest.$ac_ext >&5
54840 eval "$as_ac_var=no"
54842 rm -f conftest.err conftest.$ac_objext \
54843 conftest$ac_exeext conftest.$ac_ext
54845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54847 if test `eval echo '${'$as_ac_var'}'` = yes; then
54848 cat >>confdefs.h <<_ACEOF
54849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54854 "$ac_func.$ac_objext" | \
54855 *" $ac_func.$ac_objext" | \
54856 "$ac_func.$ac_objext "* | \
54857 *" $ac_func.$ac_objext "* ) ;;
54858 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54866 ice_have_strcasecmp=no
54868 for ac_func in strcasecmp
54870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54871 echo "$as_me:$LINENO: checking for $ac_func" >&5
54872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54873 if eval "test \"\${$as_ac_var+set}\" = set"; then
54874 echo $ECHO_N "(cached) $ECHO_C" >&6
54876 cat >conftest.$ac_ext <<_ACEOF
54879 cat confdefs.h >>conftest.$ac_ext
54880 cat >>conftest.$ac_ext <<_ACEOF
54881 /* end confdefs.h. */
54882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54884 #define $ac_func innocuous_$ac_func
54886 /* System header to define __stub macros and hopefully few prototypes,
54887 which can conflict with char $ac_func (); below.
54888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54889 <limits.h> exists even on freestanding compilers. */
54892 # include <limits.h>
54894 # include <assert.h>
54899 /* Override any gcc2 internal prototype to avoid an error. */
54904 /* We use char because int might match the return type of a gcc2
54905 builtin and then its argument prototype would still apply. */
54907 /* The GNU C library defines this for functions which it implements
54908 to always fail with ENOSYS. Some functions are actually named
54909 something starting with __ and the normal name is an alias. */
54910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54913 char (*f) () = $ac_func;
54922 return f != $ac_func;
54927 rm -f conftest.$ac_objext conftest$ac_exeext
54928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54929 (eval $ac_link) 2>conftest.er1
54931 grep -v '^ *+' conftest.er1 >conftest.err
54933 cat conftest.err >&5
54934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54935 (exit $ac_status); } &&
54936 { ac_try='test -z "$ac_c_werror_flag"
54937 || test ! -s conftest.err'
54938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54939 (eval $ac_try) 2>&5
54941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54942 (exit $ac_status); }; } &&
54943 { ac_try='test -s conftest$ac_exeext'
54944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54945 (eval $ac_try) 2>&5
54947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54948 (exit $ac_status); }; }; then
54949 eval "$as_ac_var=yes"
54951 echo "$as_me: failed program was:" >&5
54952 sed 's/^/| /' conftest.$ac_ext >&5
54954 eval "$as_ac_var=no"
54956 rm -f conftest.err conftest.$ac_objext \
54957 conftest$ac_exeext conftest.$ac_ext
54959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54961 if test `eval echo '${'$as_ac_var'}'` = yes; then
54962 cat >>confdefs.h <<_ACEOF
54963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54965 ice_have_strcasecmp=yes
54969 if test "${ice_have_strcasecmp}" = yes; then
54970 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
54971 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
54972 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
54973 echo $ECHO_N "(cached) $ECHO_C" >&6
54976 ice_cv_have_strcasecmp_decl=no
54977 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54978 ice_re_word='(^|[^a-zA-Z0-9_])'
54979 for header in string.h strings.h; do
54980 # Check for ordinary declaration
54981 cat >conftest.$ac_ext <<_ACEOF
54984 cat confdefs.h >>conftest.$ac_ext
54985 cat >>conftest.$ac_ext <<_ACEOF
54986 /* end confdefs.h. */
54990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54991 $EGREP "${ice_re_word}strcasecmp[ ]*\(" >/dev/null 2>&1; then
54992 ice_cv_have_strcasecmp_decl=yes
54996 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54999 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55000 cat >conftest.$ac_ext <<_ACEOF
55003 cat confdefs.h >>conftest.$ac_ext
55004 cat >>conftest.$ac_ext <<_ACEOF
55005 /* end confdefs.h. */
55009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55010 $EGREP "${ice_re_word}strcasecmp[ ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55011 ice_cv_have_strcasecmp_decl=yes
55015 if test "$ice_cv_have_strcasecmp_decl" = yes; then
55022 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
55023 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
55024 if test "$ice_cv_have_strcasecmp_decl" = yes; then
55026 cat >>confdefs.h <<_ACEOF
55027 #define HAVE_STRCASECMP_DECL 1
55035 for ac_func in fnmatch
55037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55038 echo "$as_me:$LINENO: checking for $ac_func" >&5
55039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55040 if eval "test \"\${$as_ac_var+set}\" = set"; then
55041 echo $ECHO_N "(cached) $ECHO_C" >&6
55043 cat >conftest.$ac_ext <<_ACEOF
55046 cat confdefs.h >>conftest.$ac_ext
55047 cat >>conftest.$ac_ext <<_ACEOF
55048 /* end confdefs.h. */
55049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55051 #define $ac_func innocuous_$ac_func
55053 /* System header to define __stub macros and hopefully few prototypes,
55054 which can conflict with char $ac_func (); below.
55055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55056 <limits.h> exists even on freestanding compilers. */
55059 # include <limits.h>
55061 # include <assert.h>
55066 /* Override any gcc2 internal prototype to avoid an error. */
55071 /* We use char because int might match the return type of a gcc2
55072 builtin and then its argument prototype would still apply. */
55074 /* The GNU C library defines this for functions which it implements
55075 to always fail with ENOSYS. Some functions are actually named
55076 something starting with __ and the normal name is an alias. */
55077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55080 char (*f) () = $ac_func;
55089 return f != $ac_func;
55094 rm -f conftest.$ac_objext conftest$ac_exeext
55095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55096 (eval $ac_link) 2>conftest.er1
55098 grep -v '^ *+' conftest.er1 >conftest.err
55100 cat conftest.err >&5
55101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55102 (exit $ac_status); } &&
55103 { ac_try='test -z "$ac_c_werror_flag"
55104 || test ! -s conftest.err'
55105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55106 (eval $ac_try) 2>&5
55108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55109 (exit $ac_status); }; } &&
55110 { ac_try='test -s conftest$ac_exeext'
55111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55112 (eval $ac_try) 2>&5
55114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55115 (exit $ac_status); }; }; then
55116 eval "$as_ac_var=yes"
55118 echo "$as_me: failed program was:" >&5
55119 sed 's/^/| /' conftest.$ac_ext >&5
55121 eval "$as_ac_var=no"
55123 rm -f conftest.err conftest.$ac_objext \
55124 conftest$ac_exeext conftest.$ac_ext
55126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55128 if test `eval echo '${'$as_ac_var'}'` = yes; then
55129 cat >>confdefs.h <<_ACEOF
55130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55138 echo "$as_me:$LINENO: checking disk device prefixes" >&5
55139 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
55141 df / | while read line; do
55143 while test $# -gt 0; do
55144 if test "x$1" = "x/"; then
55151 ) | sed 's/(//' | sed 's/)//' `
55155 while test $# -gt 0; do
55156 if expr "$1" : '.*dev' >/dev/null 2>&1; then
55164 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
55165 echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
55166 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
55168 if test -d /dev/dsk; then
55169 DEV_PREFIX=/dev/dsk/
55170 if test -d /dev/rdsk; then
55171 RDEV_PREFIX=/dev/rdsk/
55173 RDEV_PREFIX=/dev/dsk/
55175 elif test -d /dev; then
55178 dev_prefix=/dev/dsk/
55179 rdev_prefix=/dev/rdsk/
55180 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
55181 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
55186 # Some systems, notably Linux, do not have raw disk devices
55187 # names. Check this by trying to see if a raw disk device name
55188 # exists using the normal raw device path prepended to the
55189 # mount point of the root filesystem.
55190 if test "$mount"; then
55191 dev_name="/dev/r`basename $mount`"
55192 if test -b $dev_name -o -c $dev_name; then
55206 echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
55207 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
55211 cat >>confdefs.h <<_ACEOF
55212 #define DEV_PREFIX "${DEV_PREFIX}"
55216 cat >>confdefs.h <<_ACEOF
55217 #define RDEV_PREFIX "${RDEV_PREFIX}"
55223 { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
55224 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
55228 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
55229 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
55230 if test "${amanda_cv_posix_filelocking+set}" = set; then
55231 echo $ECHO_N "(cached) $ECHO_C" >&6
55234 if test "$cross_compiling" = yes; then
55236 amanda_cv_posix_filelocking="no (cannot run test)"
55239 cat >conftest.$ac_ext <<_ACEOF
55242 cat confdefs.h >>conftest.$ac_ext
55243 cat >>conftest.$ac_ext <<_ACEOF
55244 /* end confdefs.h. */
55247 #define CONFIGURE_TEST
55248 #define USE_POSIX_FCNTL
55249 #include "${srcdir-.}/common-src/amflock.c"
55252 rm -f conftest$ac_exeext
55253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55254 (eval $ac_link) 2>&5
55256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55259 (eval $ac_try) 2>&5
55261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55262 (exit $ac_status); }; }; then
55264 amanda_cv_posix_filelocking=yes
55267 echo "$as_me: program exited with status $ac_status" >&5
55268 echo "$as_me: failed program was:" >&5
55269 sed 's/^/| /' conftest.$ac_ext >&5
55271 ( exit $ac_status )
55273 amanda_cv_posix_filelocking="no"
55276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55278 rm -f /tmp/conftest.lock
55281 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
55282 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
55283 if test "x$amanda_cv_posix_filelocking" = xyes; then
55285 cat >>confdefs.h <<\_ACEOF
55286 #define USE_POSIX_FCNTL 1
55289 HAS_WORKING_FILE_LOCK=1
55292 if test -z "$HAS_WORKING_FILE_LOCK"; then
55293 echo "$as_me:$LINENO: checking whether flock locking works" >&5
55294 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
55295 if test "${amanda_cv_flock_filelocking+set}" = set; then
55296 echo $ECHO_N "(cached) $ECHO_C" >&6
55299 if test "$cross_compiling" = yes; then
55301 amanda_cv_flock_filelocking="no (cannot run test)"
55304 cat >conftest.$ac_ext <<_ACEOF
55307 cat confdefs.h >>conftest.$ac_ext
55308 cat >>conftest.$ac_ext <<_ACEOF
55309 /* end confdefs.h. */
55312 #define CONFIGURE_TEST
55314 #include "${srcdir-.}/common-src/amflock.c"
55317 rm -f conftest$ac_exeext
55318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55319 (eval $ac_link) 2>&5
55321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55324 (eval $ac_try) 2>&5
55326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55327 (exit $ac_status); }; }; then
55329 amanda_cv_flock_filelocking="yes"
55332 echo "$as_me: program exited with status $ac_status" >&5
55333 echo "$as_me: failed program was:" >&5
55334 sed 's/^/| /' conftest.$ac_ext >&5
55336 ( exit $ac_status )
55338 amanda_cv_flock_filelocking="no"
55341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55343 rm -f /tmp/conftest.lock
55346 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
55347 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
55348 if test "x$amanda_cv_flock_filelocking" = xyes; then
55350 cat >>confdefs.h <<\_ACEOF
55351 #define USE_FLOCK 1
55354 HAS_WORKING_FILE_LOCK=1
55358 if test -z "$HAS_WORKING_FILE_LOCK"; then
55359 echo "$as_me:$LINENO: checking whether lockf locking works" >&5
55360 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
55361 if test "${amanda_cv_lockf_filelocking+set}" = set; then
55362 echo $ECHO_N "(cached) $ECHO_C" >&6
55365 if test "$cross_compiling" = yes; then
55367 amanda_cv_lockf_filelocking="no (cannot run test)"
55370 cat >conftest.$ac_ext <<_ACEOF
55373 cat confdefs.h >>conftest.$ac_ext
55374 cat >>conftest.$ac_ext <<_ACEOF
55375 /* end confdefs.h. */
55378 #define CONFIGURE_TEST
55380 #include "${srcdir-.}/common-src/amflock.c"
55383 rm -f conftest$ac_exeext
55384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55385 (eval $ac_link) 2>&5
55387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55390 (eval $ac_try) 2>&5
55392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55393 (exit $ac_status); }; }; then
55395 amanda_cv_lockf_filelocking="yes"
55398 echo "$as_me: program exited with status $ac_status" >&5
55399 echo "$as_me: failed program was:" >&5
55400 sed 's/^/| /' conftest.$ac_ext >&5
55402 ( exit $ac_status )
55404 amanda_cv_lockf_filelocking="no"
55407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55409 rm -f /tmp/conftest.lock
55412 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
55413 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
55414 if test "x$amanda_cv_lockf_filelocking" = xyes; then
55416 cat >>confdefs.h <<\_ACEOF
55417 #define USE_LOCKF 1
55420 HAS_WORKING_FILE_LOCK=1
55424 if test -z "$HAS_WORKING_FILE_LOCK"; then
55425 echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
55426 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
55427 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
55428 echo $ECHO_N "(cached) $ECHO_C" >&6
55431 if test "$cross_compiling" = yes; then
55433 amanda_cv_lnlock_filelocking="no (cannot run test)"
55436 cat >conftest.$ac_ext <<_ACEOF
55439 cat confdefs.h >>conftest.$ac_ext
55440 cat >>conftest.$ac_ext <<_ACEOF
55441 /* end confdefs.h. */
55444 #define CONFIGURE_TEST
55446 #include "${srcdir-.}/common-src/amflock.c"
55447 #include "${srcdir-.}/common-src/alloc.c"
55448 #include "${srcdir-.}/common-src/error.c"
55449 #include "${srcdir-.}/common-src/snprintf.c"
55452 rm -f conftest$ac_exeext
55453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55454 (eval $ac_link) 2>&5
55456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55459 (eval $ac_try) 2>&5
55461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55462 (exit $ac_status); }; }; then
55464 amanda_cv_lnlock_filelocking="yes"
55467 echo "$as_me: program exited with status $ac_status" >&5
55468 echo "$as_me: failed program was:" >&5
55469 sed 's/^/| /' conftest.$ac_ext >&5
55471 ( exit $ac_status )
55473 amanda_cv_lnlock_filelocking="no"
55476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55478 rm -f /tmp/conftest.lock
55481 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
55482 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
55483 if test "x$amanda_cv_lnlock_filelocking" = xyes; then
55485 cat >>confdefs.h <<\_ACEOF
55486 #define USE_LNLOCK 1
55489 HAS_WORKING_FILE_LOCK=1
55493 if test -z "$HAS_WORKING_FILE_LOCK"; then
55494 { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
55495 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
55496 { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
55497 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
55508 if test x"$NO_CLIENT_MODE" != x"true"; then
55510 WANT_CLIENT_FALSE='#'
55512 WANT_CLIENT_TRUE='#'
55518 if test ! -z "$SAMBA_CLIENT"; then
55520 WANT_SAMBA_FALSE='#'
55522 WANT_SAMBA_TRUE='#'
55528 if test x"$NO_RESTORE_MODE" != x"true"; then
55530 WANT_RESTORE_FALSE='#'
55532 WANT_RESTORE_TRUE='#'
55533 WANT_RESTORE_FALSE=
55538 if test x"$NO_SERVER_MODE" != x"true"; then
55540 WANT_SERVER_FALSE='#'
55542 WANT_SERVER_TRUE='#'
55548 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
55550 WANT_RECOVER_FALSE='#'
55552 WANT_RECOVER_TRUE='#'
55553 WANT_RECOVER_FALSE=
55558 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
55560 WANT_TAPE_FALSE='#'
55568 if test x"$NO_AMPLOT_MODE" != x"true"; then
55570 WANT_AMPLOT_FALSE='#'
55572 WANT_AMPLOT_TRUE='#'
55578 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
55579 WANT_CHG_SCSI_TRUE=
55580 WANT_CHG_SCSI_FALSE='#'
55582 WANT_CHG_SCSI_TRUE='#'
55583 WANT_CHG_SCSI_FALSE=
55588 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
55589 WANT_CHIO_SCSI_TRUE=
55590 WANT_CHIO_SCSI_FALSE='#'
55592 WANT_CHIO_SCSI_TRUE='#'
55593 WANT_CHIO_SCSI_FALSE=
55598 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
55599 WANT_RUNTIME_PSEUDO_RELOC_TRUE=
55600 WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
55602 WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
55603 WANT_RUNTIME_PSEUDO_RELOC_FALSE=
55608 if test x"$NEED_SETUID_CLIENT" != x"false"; then
55609 WANT_SETUID_CLIENT_TRUE=
55610 WANT_SETUID_CLIENT_FALSE='#'
55612 WANT_SETUID_CLIENT_TRUE='#'
55613 WANT_SETUID_CLIENT_FALSE=
55618 if test x"$SSH_SECURITY_SET" = x"true"; then
55619 WANT_SSH_SECURITY_TRUE=
55620 WANT_SSH_SECURITY_FALSE='#'
55622 WANT_SSH_SECURITY_TRUE='#'
55623 WANT_SSH_SECURITY_FALSE=
55627 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
55629 cat >>confdefs.h <<\_ACEOF
55630 #define USE_RUNDUMP 1
55635 # This is necessary so that .o files in LIBOBJS are also built via
55636 # the ANSI2KNR-filtering rules.
55637 LIBOBJS=`echo "$LIBOBJS" |
55638 sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
55639 LTLIBOBJS=`echo "$LIBOBJS" |
55640 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
55643 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
55646 ## This stuff is needed for the documentation.
55647 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
55651 # Check whether --with-built-manpages or --without-built-manpages was given.
55652 if test "${with_built_manpages+set}" = set; then
55653 withval="$with_built_manpages"
55654 BUILDMANPAGES=$withval;
55660 if test "x$BUILDMANPAGES" = "xyes"; then
55661 BUILD_MAN_PAGES_TRUE=
55662 BUILD_MAN_PAGES_FALSE='#'
55664 BUILD_MAN_PAGES_TRUE='#'
55665 BUILD_MAN_PAGES_FALSE=
55669 for ac_prog in xsltproc
55671 # Extract the first word of "$ac_prog", so it can be a program name with args.
55672 set dummy $ac_prog; ac_word=$2
55673 echo "$as_me:$LINENO: checking for $ac_word" >&5
55674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
55675 if test "${ac_cv_path_XSLTPROC+set}" = set; then
55676 echo $ECHO_N "(cached) $ECHO_C" >&6
55680 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
55683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55684 for as_dir in $LOCSYSPATH
55687 test -z "$as_dir" && as_dir=.
55688 for ac_exec_ext in '' $ac_executable_extensions; do
55689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55690 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
55691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55700 XSLTPROC=$ac_cv_path_XSLTPROC
55702 if test -n "$XSLTPROC"; then
55703 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
55704 echo "${ECHO_T}$XSLTPROC" >&6
55706 echo "$as_me:$LINENO: result: no" >&5
55707 echo "${ECHO_T}no" >&6
55710 test -n "$XSLTPROC" && break
55713 if test -z "$XSLTPROC"; then
55715 { echo "$as_me:$LINENO: WARNING: can't find xsltproc, xsltproc support is unavailable" >&5
55716 echo "$as_me: WARNING: can't find xsltproc, xsltproc support is unavailable" >&2;}
55720 cat >>confdefs.h <<\_ACEOF
55721 #define HAVE_XSLTPROC 1
55727 if test "x$USE_XSLTPROC" = "xyes"; then
55728 HAVE_XSLTPROC_TRUE=
55729 HAVE_XSLTPROC_FALSE='#'
55731 HAVE_XSLTPROC_TRUE='#'
55732 HAVE_XSLTPROC_FALSE=
55736 #### Enforce amanda code cleanliness rules.
55737 #### Done here to allow configuration code to remain intact.
55738 if test "x$CC" = "xgcc"; then
55739 AM_CFLAGS="$AM_CFLAGS -Wall"
55740 $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
55741 if test $? -eq 0; then
55742 AM_CFLAGS="$AM_CFLAGS -Wextra"
55744 AM_CFLAGS="$AM_CFLAGS -W"
55747 $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
55748 if test $? -eq 0; then
55749 AM_CFLAGS="$AM_CFLAGS -Wparentheses"
55752 $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
55753 if test $? -eq 0; then
55754 AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
55757 $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
55758 if test $? -eq 0; then
55759 AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
55762 $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
55763 if test $? -eq 0; then
55764 AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
55767 $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
55768 if test $? -eq 0; then
55769 AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
55772 $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
55773 if test $? -eq 0; then
55774 AM_CFLAGS="$AM_CFLAGS -Wformat"
55777 $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
55778 if test $? -eq 0; then
55779 AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
55782 $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
55783 if test $? -eq 0; then
55784 AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
55787 $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
55788 if test $? -eq 0; then
55789 AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
55792 $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
55793 if test $? -eq 0; then
55794 AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
55799 ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/Makefile amandad-src/Makefile changer-src/chg-manual.sh changer-src/chg-multi.sh changer-src/chg-mtx.sh changer-src/chg-chs.sh changer-src/chg-rth.pl changer-src/chg-chio.pl changer-src/chg-zd-mtx.sh changer-src/Makefile changer-src/chg-juke.sh changer-src/chg-rait.sh changer-src/chg-null.sh changer-src/chg-mcutil.sh changer-src/chg-disk.sh changer-src/chg-iomega.pl client-src/patch-system.sh client-src/Makefile dumper-src/gnutar.pl dumper-src/generic-dumper.pl dumper-src/Makefile common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/chg-mcutil.conf example/amanda-client.conf man/Makefile docs/Makefile recover-src/Makefile oldrecover-src/Makefile restore-src/Makefile server-src/amcheckdb.sh server-src/amcleanup.sh server-src/amdump.sh server-src/amfreetapes.sh server-src/amoverview.pl server-src/amrmtape.sh server-src/amtoc.pl server-src/amverify.sh server-src/Makefile server-src/amstatus.pl server-src/amverifyrun.sh server-src/amcrypt.sh server-src/amaespipe.sh server-src/amcrypt-ossl.sh server-src/amcrypt-ossl-asym.sh tape-src/Makefile config/Makefile Makefile"
55802 cat >confcache <<\_ACEOF
55803 # This file is a shell script that caches the results of configure
55804 # tests run on this system so they can be shared between configure
55805 # scripts and configure runs, see configure's option --config-cache.
55806 # It is not useful on other systems. If it contains results you don't
55807 # want to keep, you may remove or edit it.
55809 # config.status only pays attention to the cache file if you give it
55810 # the --recheck option to rerun configure.
55812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55814 # following values.
55818 # The following way of writing the cache mishandles newlines in values,
55819 # but we know of no workaround that is simple, portable, and efficient.
55820 # So, don't put newlines in cache variables' values.
55821 # Ultrix sh set writes to stderr and can't be redirected directly,
55822 # and sets the high bit in the cache file unless we assign to the vars.
55825 case `(ac_space=' '; set | grep ac_space) 2>&1` in
55827 # `set' does not quote correctly, so add quotes (double-quote
55828 # substitution turns \\\\ into \\, and sed turns \\ into \).
55831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55834 # `set' quotes correctly as required by POSIX, so do not add quotes.
55836 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
55843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55845 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55847 if diff $cache_file confcache >/dev/null 2>&1; then :; else
55848 if test -w $cache_file; then
55849 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
55850 cat confcache >$cache_file
55852 echo "not updating unwritable cache $cache_file"
55857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55858 # Let make expand exec_prefix.
55859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55863 # trailing colons and then remove the whole line if VPATH becomes empty
55864 # (actually we leave an empty line to preserve line numbers).
55865 if test "x$srcdir" = x.; then
55866 ac_vpsub='/^[ ]*VPATH[ ]*=/{
55867 s/:*\$(srcdir):*/:/;
55868 s/:*\${srcdir}:*/:/;
55870 s/^\([^=]*=[ ]*\):*/\1/;
55876 DEFS=-DHAVE_CONFIG_H
55880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55881 # 1. Remove the extension, and $U if already installed.
55882 ac_i=`echo "$ac_i" |
55883 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
55885 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
55886 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
55888 LIBOBJS=$ac_libobjs
55890 LTLIBOBJS=$ac_ltlibobjs
55893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
55894 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
55895 Usually this means the macro was only invoked conditionally." >&5
55896 echo "$as_me: error: conditional \"AMDEP\" was never defined.
55897 Usually this means the macro was only invoked conditionally." >&2;}
55898 { (exit 1); exit 1; }; }
55900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
55901 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
55902 Usually this means the macro was only invoked conditionally." >&5
55903 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
55904 Usually this means the macro was only invoked conditionally." >&2;}
55905 { (exit 1); exit 1; }; }
55907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
55908 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
55909 Usually this means the macro was only invoked conditionally." >&5
55910 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
55911 Usually this means the macro was only invoked conditionally." >&2;}
55912 { (exit 1); exit 1; }; }
55914 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
55915 { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
55916 Usually this means the macro was only invoked conditionally." >&5
55917 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
55918 Usually this means the macro was only invoked conditionally." >&2;}
55919 { (exit 1); exit 1; }; }
55921 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
55922 { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
55923 Usually this means the macro was only invoked conditionally." >&5
55924 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
55925 Usually this means the macro was only invoked conditionally." >&2;}
55926 { (exit 1); exit 1; }; }
55928 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
55929 { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
55930 Usually this means the macro was only invoked conditionally." >&5
55931 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
55932 Usually this means the macro was only invoked conditionally." >&2;}
55933 { (exit 1); exit 1; }; }
55935 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
55936 { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
55937 Usually this means the macro was only invoked conditionally." >&5
55938 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
55939 Usually this means the macro was only invoked conditionally." >&2;}
55940 { (exit 1); exit 1; }; }
55942 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
55943 { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
55944 Usually this means the macro was only invoked conditionally." >&5
55945 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
55946 Usually this means the macro was only invoked conditionally." >&2;}
55947 { (exit 1); exit 1; }; }
55949 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
55950 { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
55951 Usually this means the macro was only invoked conditionally." >&5
55952 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
55953 Usually this means the macro was only invoked conditionally." >&2;}
55954 { (exit 1); exit 1; }; }
55956 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
55957 { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
55958 Usually this means the macro was only invoked conditionally." >&5
55959 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
55960 Usually this means the macro was only invoked conditionally." >&2;}
55961 { (exit 1); exit 1; }; }
55963 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
55964 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
55965 Usually this means the macro was only invoked conditionally." >&5
55966 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
55967 Usually this means the macro was only invoked conditionally." >&2;}
55968 { (exit 1); exit 1; }; }
55970 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
55971 { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55972 Usually this means the macro was only invoked conditionally." >&5
55973 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55974 Usually this means the macro was only invoked conditionally." >&2;}
55975 { (exit 1); exit 1; }; }
55977 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
55978 { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55979 Usually this means the macro was only invoked conditionally." >&5
55980 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55981 Usually this means the macro was only invoked conditionally." >&2;}
55982 { (exit 1); exit 1; }; }
55984 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
55985 { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55986 Usually this means the macro was only invoked conditionally." >&5
55987 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55988 Usually this means the macro was only invoked conditionally." >&2;}
55989 { (exit 1); exit 1; }; }
55991 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
55992 { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55993 Usually this means the macro was only invoked conditionally." >&5
55994 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55995 Usually this means the macro was only invoked conditionally." >&2;}
55996 { (exit 1); exit 1; }; }
55998 if test -z "${BUILD_MAN_PAGES_TRUE}" && test -z "${BUILD_MAN_PAGES_FALSE}"; then
55999 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MAN_PAGES\" was never defined.
56000 Usually this means the macro was only invoked conditionally." >&5
56001 echo "$as_me: error: conditional \"BUILD_MAN_PAGES\" was never defined.
56002 Usually this means the macro was only invoked conditionally." >&2;}
56003 { (exit 1); exit 1; }; }
56005 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
56006 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
56007 Usually this means the macro was only invoked conditionally." >&5
56008 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
56009 Usually this means the macro was only invoked conditionally." >&2;}
56010 { (exit 1); exit 1; }; }
56013 : ${CONFIG_STATUS=./config.status}
56014 ac_clean_files_save=$ac_clean_files
56015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56016 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
56017 echo "$as_me: creating $CONFIG_STATUS" >&6;}
56018 cat >$CONFIG_STATUS <<_ACEOF
56020 # Generated by $as_me.
56021 # Run this file to recreate the current configuration.
56022 # Compiler output produced by configure, useful for debugging
56023 # configure, is in config.log if it exists.
56026 ac_cs_recheck=false
56028 SHELL=\${CONFIG_SHELL-$SHELL}
56031 cat >>$CONFIG_STATUS <<\_ACEOF
56032 ## --------------------- ##
56033 ## M4sh Initialization. ##
56034 ## --------------------- ##
56036 # Be Bourne compatible
56037 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56040 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56041 # is contrary to our usage. Disable this feature.
56042 alias -g '${1+"$@"}'='"$@"'
56043 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
56046 DUALCASE=1; export DUALCASE # for MKS sh
56048 # Support unset when possible.
56049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56056 # Work around bugs in pre-3.0 UWIN ksh.
56057 $as_unset ENV MAIL MAILPATH
56064 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56065 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56066 LC_TELEPHONE LC_TIME
56068 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56069 eval $as_var=C; export $as_var
56075 # Required to use basename.
56076 if expr a : '\(a\)' >/dev/null 2>&1; then
56082 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56083 as_basename=basename
56089 # Name of the executable.
56090 as_me=`$as_basename "$0" ||
56091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56092 X"$0" : 'X\(//\)$' \| \
56093 X"$0" : 'X\(/\)$' \| \
56094 . : '\(.\)' 2>/dev/null ||
56096 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
56097 /^X\/\(\/\/\)$/{ s//\1/; q; }
56098 /^X\/\(\/\).*/{ s//\1/; q; }
56102 # PATH needs CR, and LINENO needs CR and PATH.
56103 # Avoid depending upon Character Ranges.
56104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56107 as_cr_digits='0123456789'
56108 as_cr_alnum=$as_cr_Letters$as_cr_digits
56110 # The user is always right.
56111 if test "${PATH_SEPARATOR+set}" != set; then
56112 echo "#! /bin/sh" >conf$$.sh
56113 echo "exit 0" >>conf$$.sh
56115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56124 as_lineno_1=$LINENO
56125 as_lineno_2=$LINENO
56126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56127 test "x$as_lineno_1" != "x$as_lineno_2" &&
56128 test "x$as_lineno_3" = "x$as_lineno_2" || {
56129 # Find who we are. Look in the path if we contain no path at all
56132 *[\\/]* ) as_myself=$0 ;;
56133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56134 for as_dir in $PATH
56137 test -z "$as_dir" && as_dir=.
56138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56143 # We did not find ourselves, most probably we were run as `sh COMMAND'
56144 # in which case we are not to be found in the path.
56145 if test "x$as_myself" = x; then
56148 if test ! -f "$as_myself"; then
56149 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
56150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
56151 { (exit 1); exit 1; }; }
56153 case $CONFIG_SHELL in
56155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56156 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
56159 test -z "$as_dir" && as_dir=.
56160 for as_base in sh bash ksh sh5; do
56163 if ("$as_dir/$as_base" -c '
56164 as_lineno_1=$LINENO
56165 as_lineno_2=$LINENO
56166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56167 test "x$as_lineno_1" != "x$as_lineno_2" &&
56168 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
56169 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
56170 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
56171 CONFIG_SHELL=$as_dir/$as_base
56172 export CONFIG_SHELL
56173 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
56181 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56182 # uniformly replaced by the line number. The first 'sed' inserts a
56183 # line-number line before each line; the second 'sed' does the real
56184 # work. The second script uses 'N' to pair each line-number line
56185 # with the numbered line, and appends trailing '-' during
56186 # substitution so that $LINENO is not a special case at line end.
56187 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56188 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
56189 sed '=' <$as_myself |
56194 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
56197 s,^['$as_cr_digits']*\n,,
56198 ' >$as_me.lineno &&
56199 chmod +x $as_me.lineno ||
56200 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
56201 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
56202 { (exit 1); exit 1; }; }
56204 # Don't try to exec as it changes $[0], causing all sort of problems
56205 # (the dirname of $[0] is not the place where we might find the
56206 # original and so on. Autoconf is especially sensible to this).
56208 # Exit status is that of the last command.
56213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
56214 *c*,-n*) ECHO_N= ECHO_C='
56216 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
56217 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
56220 if expr a : '\(a\)' >/dev/null 2>&1; then
56226 rm -f conf$$ conf$$.exe conf$$.file
56228 if ln -s conf$$.file conf$$ 2>/dev/null; then
56229 # We could just check for DJGPP; but this test a) works b) is more generic
56230 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
56231 if test -f conf$$.exe; then
56232 # Don't use ln at all; we don't have any links
56237 elif ln conf$$.file conf$$ 2>/dev/null; then
56242 rm -f conf$$ conf$$.exe conf$$.file
56244 if mkdir -p . 2>/dev/null; then
56247 test -d ./-p && rmdir ./-p
56251 as_executable_p="test -f"
56253 # Sed expression to map a string onto a valid CPP name.
56254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56256 # Sed expression to map a string onto a valid variable name.
56257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56261 # We need space, tab and new line, in precisely that order.
56271 # Open the log real soon, to keep \$[0] and so on meaningful, and to
56272 # report actual input values of CONFIG_FILES etc. instead of their
56273 # values after options handling. Logging --version etc. is OK.
56277 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56278 ## Running $as_me. ##
56283 This file was extended by $as_me, which was
56284 generated by GNU Autoconf 2.59. Invocation command line was
56286 CONFIG_FILES = $CONFIG_FILES
56287 CONFIG_HEADERS = $CONFIG_HEADERS
56288 CONFIG_LINKS = $CONFIG_LINKS
56289 CONFIG_COMMANDS = $CONFIG_COMMANDS
56293 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
56297 # Files that config.status was made for.
56298 if test -n "$ac_config_files"; then
56299 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
56302 if test -n "$ac_config_headers"; then
56303 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
56306 if test -n "$ac_config_links"; then
56307 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
56310 if test -n "$ac_config_commands"; then
56311 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
56314 cat >>$CONFIG_STATUS <<\_ACEOF
56317 \`$as_me' instantiates files from templates according to the
56318 current configuration.
56320 Usage: $0 [OPTIONS] [FILE]...
56322 -h, --help print this help, then exit
56323 -V, --version print version number, then exit
56324 -q, --quiet do not print progress messages
56325 -d, --debug don't remove temporary files
56326 --recheck update $as_me by reconfiguring in the same conditions
56327 --file=FILE[:TEMPLATE]
56328 instantiate the configuration file FILE
56329 --header=FILE[:TEMPLATE]
56330 instantiate the configuration header FILE
56332 Configuration files:
56335 Configuration headers:
56338 Configuration commands:
56341 Report bugs to <bug-autoconf@gnu.org>."
56344 cat >>$CONFIG_STATUS <<_ACEOF
56347 configured by $0, generated by GNU Autoconf 2.59,
56348 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
56350 Copyright (C) 2003 Free Software Foundation, Inc.
56351 This config.status script is free software; the Free Software Foundation
56352 gives unlimited permission to copy, distribute and modify it."
56357 cat >>$CONFIG_STATUS <<\_ACEOF
56358 # If no file are specified by the user, then we need to provide default
56359 # value. By we need to know if files were specified by the user.
56365 ac_option=`expr "x$1" : 'x\([^=]*\)='`
56366 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
56374 *) # This is not an option, so the user has probably given explicit
56377 ac_need_defaults=false;;
56381 # Handling of the options.
56383 cat >>$CONFIG_STATUS <<\_ACEOF
56384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56386 --version | --vers* | -V )
56387 echo "$ac_cs_version"; exit 0 ;;
56389 # Conflict between --help and --header
56390 { { echo "$as_me:$LINENO: error: ambiguous option: $1
56391 Try \`$0 --help' for more information." >&5
56392 echo "$as_me: error: ambiguous option: $1
56393 Try \`$0 --help' for more information." >&2;}
56394 { (exit 1); exit 1; }; };;
56395 --help | --hel | -h )
56396 echo "$ac_cs_usage"; exit 0 ;;
56397 --debug | --d* | -d )
56399 --file | --fil | --fi | --f )
56401 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56402 ac_need_defaults=false;;
56403 --header | --heade | --head | --hea )
56405 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56406 ac_need_defaults=false;;
56407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
56411 # This is an error.
56412 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
56413 Try \`$0 --help' for more information." >&5
56414 echo "$as_me: error: unrecognized option: $1
56415 Try \`$0 --help' for more information." >&2;}
56416 { (exit 1); exit 1; }; } ;;
56418 *) ac_config_targets="$ac_config_targets $1" ;;
56424 ac_configure_extra_args=
56426 if $ac_cs_silent; then
56428 ac_configure_extra_args="$ac_configure_extra_args --silent"
56432 cat >>$CONFIG_STATUS <<_ACEOF
56433 if \$ac_cs_recheck; then
56434 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56435 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56440 cat >>$CONFIG_STATUS <<_ACEOF
56442 # INIT-COMMANDS section.
56445 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56446 # variables for create stdint.h replacement
56449 ac_stdint_h="$ac_stdint_h"
56450 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
56451 ac_cv_stdint_message="$ac_cv_stdint_message"
56452 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
56453 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
56454 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
56455 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
56456 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
56457 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
56458 ac_cv_char_data_model="$ac_cv_char_data_model"
56459 ac_cv_long_data_model="$ac_cv_long_data_model"
56460 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
56461 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
56462 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
56469 cat >>$CONFIG_STATUS <<\_ACEOF
56470 for ac_config_target in $ac_config_targets
56472 case "$ac_config_target" in
56473 # Handling of arguments.
56474 "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
56475 "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
56476 "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
56477 "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
56478 "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
56479 "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
56480 "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
56481 "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
56482 "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
56483 "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
56484 "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
56485 "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
56486 "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
56487 "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
56488 "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
56489 "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
56490 "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
56491 "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
56492 "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
56493 "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
56494 "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
56495 "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
56496 "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
56497 "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
56498 "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
56499 "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
56500 "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
56501 "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
56502 "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
56503 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
56504 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
56505 "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
56506 "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
56507 "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
56508 "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
56509 "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
56510 "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
56511 "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
56512 "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
56513 "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
56514 "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
56515 "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
56516 "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
56517 "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
56518 "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
56519 "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
56520 "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
56521 "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
56522 "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
56523 "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
56524 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
56525 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56526 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56527 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
56528 "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
56529 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56530 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56531 { (exit 1); exit 1; }; };;
56535 # If the user did not use the arguments to specify the items to instantiate,
56536 # then the envvar interface is used. Set only those that are not.
56537 # We use the long form for the default assignment because of an extremely
56538 # bizarre bug on SunOS 4.1.3.
56539 if $ac_need_defaults; then
56540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56545 # Have a temporary directory for convenience. Make it in the build tree
56546 # simply because there is no reason to put it here, and in addition,
56547 # creating and moving files from /tmp can sometimes cause problems.
56548 # Create a temporary directory, and hook for its removal unless debugging.
56551 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
56552 trap '{ (exit 1); exit 1; }' 1 2 13 15
56555 # Create a (secure) tmp directory for tmp files.
56558 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
56559 test -n "$tmp" && test -d "$tmp"
56562 tmp=./confstat$$-$RANDOM
56563 (umask 077 && mkdir $tmp)
56566 echo "$me: cannot create a temporary directory in ." >&2
56567 { (exit 1); exit 1; }
56572 cat >>$CONFIG_STATUS <<_ACEOF
56575 # CONFIG_FILES section.
56578 # No need to generate the scripts if there are no CONFIG_FILES.
56579 # This happens for instance when ./config.status config.h
56580 if test -n "\$CONFIG_FILES"; then
56581 # Protect against being on the right side of a sed subst in config.status.
56582 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
56583 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
56584 s,@SHELL@,$SHELL,;t t
56585 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
56586 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
56587 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
56588 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
56589 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
56590 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
56591 s,@exec_prefix@,$exec_prefix,;t t
56592 s,@prefix@,$prefix,;t t
56593 s,@program_transform_name@,$program_transform_name,;t t
56594 s,@bindir@,$bindir,;t t
56595 s,@sbindir@,$sbindir,;t t
56596 s,@libexecdir@,$libexecdir,;t t
56597 s,@datadir@,$datadir,;t t
56598 s,@sysconfdir@,$sysconfdir,;t t
56599 s,@sharedstatedir@,$sharedstatedir,;t t
56600 s,@localstatedir@,$localstatedir,;t t
56601 s,@libdir@,$libdir,;t t
56602 s,@includedir@,$includedir,;t t
56603 s,@oldincludedir@,$oldincludedir,;t t
56604 s,@infodir@,$infodir,;t t
56605 s,@mandir@,$mandir,;t t
56606 s,@build_alias@,$build_alias,;t t
56607 s,@host_alias@,$host_alias,;t t
56608 s,@target_alias@,$target_alias,;t t
56609 s,@DEFS@,$DEFS,;t t
56610 s,@ECHO_C@,$ECHO_C,;t t
56611 s,@ECHO_N@,$ECHO_N,;t t
56612 s,@ECHO_T@,$ECHO_T,;t t
56613 s,@LIBS@,$LIBS,;t t
56614 s,@build@,$build,;t t
56615 s,@build_cpu@,$build_cpu,;t t
56616 s,@build_vendor@,$build_vendor,;t t
56617 s,@build_os@,$build_os,;t t
56618 s,@host@,$host,;t t
56619 s,@host_cpu@,$host_cpu,;t t
56620 s,@host_vendor@,$host_vendor,;t t
56621 s,@host_os@,$host_os,;t t
56622 s,@target@,$target,;t t
56623 s,@target_cpu@,$target_cpu,;t t
56624 s,@target_vendor@,$target_vendor,;t t
56625 s,@target_os@,$target_os,;t t
56626 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
56627 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
56628 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
56629 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
56630 s,@CYGPATH_W@,$CYGPATH_W,;t t
56631 s,@PACKAGE@,$PACKAGE,;t t
56632 s,@VERSION@,$VERSION,;t t
56633 s,@ACLOCAL@,$ACLOCAL,;t t
56634 s,@AUTOCONF@,$AUTOCONF,;t t
56635 s,@AUTOMAKE@,$AUTOMAKE,;t t
56636 s,@AUTOHEADER@,$AUTOHEADER,;t t
56637 s,@MAKEINFO@,$MAKEINFO,;t t
56638 s,@install_sh@,$install_sh,;t t
56639 s,@STRIP@,$STRIP,;t t
56640 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
56641 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
56642 s,@mkdir_p@,$mkdir_p,;t t
56644 s,@SET_MAKE@,$SET_MAKE,;t t
56645 s,@am__leading_dot@,$am__leading_dot,;t t
56646 s,@AMTAR@,$AMTAR,;t t
56647 s,@am__tar@,$am__tar,;t t
56648 s,@am__untar@,$am__untar,;t t
56649 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
56650 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
56651 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
56652 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
56653 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
56654 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
56656 s,@CFLAGS@,$CFLAGS,;t t
56657 s,@LDFLAGS@,$LDFLAGS,;t t
56658 s,@CPPFLAGS@,$CPPFLAGS,;t t
56659 s,@ac_ct_CC@,$ac_ct_CC,;t t
56660 s,@EXEEXT@,$EXEEXT,;t t
56661 s,@OBJEXT@,$OBJEXT,;t t
56662 s,@DEPDIR@,$DEPDIR,;t t
56663 s,@am__include@,$am__include,;t t
56664 s,@am__quote@,$am__quote,;t t
56665 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
56666 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
56667 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
56668 s,@CCDEPMODE@,$CCDEPMODE,;t t
56669 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
56670 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
56671 s,@GREP@,$GREP,;t t
56672 s,@EGREP@,$EGREP,;t t
56673 s,@AMLINT@,$AMLINT,;t t
56674 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
56675 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
56676 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
56677 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
56678 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
56679 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
56680 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
56681 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
56682 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
56683 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
56684 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
56685 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
56686 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
56687 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
56688 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
56689 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
56690 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
56691 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
56692 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
56693 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
56694 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
56695 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
56698 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
56699 s,@YACC@,$YACC,;t t
56701 s,@COMPRESS@,$COMPRESS,;t t
56703 s,@GETCONF@,$GETCONF,;t t
56704 s,@GNUPLOT@,$GNUPLOT,;t t
56705 s,@GNUTAR@,$GNUTAR,;t t
56706 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
56707 s,@GZIP@,$GZIP,;t t
56708 s,@SORT@,$SORT,;t t
56709 s,@MAILER@,$MAILER,;t t
56711 s,@CHIO@,$CHIO,;t t
56714 s,@MCUTIL@,$MCUTIL,;t t
56715 s,@PRINT@,$PRINT,;t t
56716 s,@PCAT@,$PCAT,;t t
56717 s,@PERL@,$PERL,;t t
56718 s,@DUMP@,$DUMP,;t t
56719 s,@RESTORE@,$RESTORE,;t t
56720 s,@XFSDUMP@,$XFSDUMP,;t t
56721 s,@XFSRESTORE@,$XFSRESTORE,;t t
56722 s,@VXDUMP@,$VXDUMP,;t t
56723 s,@VXRESTORE@,$VXRESTORE,;t t
56724 s,@VDUMP@,$VDUMP,;t t
56725 s,@VRESTORE@,$VRESTORE,;t t
56726 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
56727 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
56728 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
56729 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
56730 s,@LL_FMT@,$LL_FMT,;t t
56731 s,@LL_RFMT@,$LL_RFMT,;t t
56732 s,@LN_S@,$LN_S,;t t
56733 s,@ECHO@,$ECHO,;t t
56734 s,@ac_ct_AR@,$ac_ct_AR,;t t
56735 s,@RANLIB@,$RANLIB,;t t
56736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
56738 s,@CXXFLAGS@,$CXXFLAGS,;t t
56739 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
56740 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
56741 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
56742 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
56743 s,@CXXCPP@,$CXXCPP,;t t
56745 s,@FFLAGS@,$FFLAGS,;t t
56746 s,@ac_ct_F77@,$ac_ct_F77,;t t
56747 s,@LIBTOOL@,$LIBTOOL,;t t
56748 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
56750 s,@LEXLIB@,$LEXLIB,;t t
56751 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
56752 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
56753 s,@DB_EXT@,$DB_EXT,;t t
56754 s,@ALLOCA@,$ALLOCA,;t t
56755 s,@LIBOBJS@,$LIBOBJS,;t t
56756 s,@ac_n@,$ac_n,;t t
56757 s,@ac_c@,$ac_c,;t t
56758 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
56759 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
56760 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
56761 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
56762 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
56763 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
56764 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
56765 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
56766 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
56767 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
56768 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
56769 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
56770 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
56771 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
56772 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
56773 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
56774 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
56775 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
56776 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
56777 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
56778 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
56779 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
56780 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
56781 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
56782 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
56783 s,@LTALLOCA@,$LTALLOCA,;t t
56784 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
56785 s,@BUILD_MAN_PAGES_TRUE@,$BUILD_MAN_PAGES_TRUE,;t t
56786 s,@BUILD_MAN_PAGES_FALSE@,$BUILD_MAN_PAGES_FALSE,;t t
56787 s,@XSLTPROC@,$XSLTPROC,;t t
56788 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
56789 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
56790 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
56795 cat >>$CONFIG_STATUS <<\_ACEOF
56796 # Split the substitutions into bite-sized pieces for seds with
56797 # small command number limits, like on Digital OSF/1 and HP-UX.
56798 ac_max_sed_lines=48
56799 ac_sed_frag=1 # Number of current file.
56800 ac_beg=1 # First line for current file.
56801 ac_end=$ac_max_sed_lines # Line after last line for current file.
56804 while $ac_more_lines; do
56805 if test $ac_beg -gt 1; then
56806 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56808 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56810 if test ! -s $tmp/subs.frag; then
56811 ac_more_lines=false
56813 # The purpose of the label and of the branching condition is to
56814 # speed up the sed processing (if there are no `@' at all, there
56815 # is no need to browse any of the substitutions).
56816 # These are the two extra sed commands mentioned above.
56818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
56819 if test -z "$ac_sed_cmds"; then
56820 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
56822 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
56824 ac_sed_frag=`expr $ac_sed_frag + 1`
56826 ac_end=`expr $ac_end + $ac_max_sed_lines`
56829 if test -z "$ac_sed_cmds"; then
56832 fi # test -n "$CONFIG_FILES"
56835 cat >>$CONFIG_STATUS <<\_ACEOF
56836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
56837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56839 - | *:- | *:-:* ) # input from stdin
56841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56845 * ) ac_file_in=$ac_file.in ;;
56848 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
56849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56851 X"$ac_file" : 'X\(//\)[^/]' \| \
56852 X"$ac_file" : 'X\(//\)$' \| \
56853 X"$ac_file" : 'X\(/\)' \| \
56854 . : '\(.\)' 2>/dev/null ||
56856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56858 /^X\(\/\/\)$/{ s//\1/; q; }
56859 /^X\(\/\).*/{ s//\1/; q; }
56861 { if $as_mkdir_p; then
56866 while test ! -d "$as_dir"; do
56867 as_dirs="$as_dir $as_dirs"
56868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
56869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56870 X"$as_dir" : 'X\(//\)[^/]' \| \
56871 X"$as_dir" : 'X\(//\)$' \| \
56872 X"$as_dir" : 'X\(/\)' \| \
56873 . : '\(.\)' 2>/dev/null ||
56875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56877 /^X\(\/\/\)$/{ s//\1/; q; }
56878 /^X\(\/\).*/{ s//\1/; q; }
56881 test ! -n "$as_dirs" || mkdir $as_dirs
56882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56884 { (exit 1); exit 1; }; }; }
56888 if test "$ac_dir" != .; then
56889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56890 # A "../" for each directory in $ac_dir_suffix.
56891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56893 ac_dir_suffix= ac_top_builddir=
56897 .) # No --srcdir option. We are building in place.
56899 if test -z "$ac_top_builddir"; then
56902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56904 [\\/]* | ?:[\\/]* ) # Absolute path.
56905 ac_srcdir=$srcdir$ac_dir_suffix;
56906 ac_top_srcdir=$srcdir ;;
56907 *) # Relative path.
56908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
56912 # Do not use `cd foo && pwd` to compute absolute paths, because
56913 # the directories may not exist.
56915 .) ac_abs_builddir="$ac_dir";;
56918 .) ac_abs_builddir=`pwd`;;
56919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
56923 case $ac_abs_builddir in
56924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56926 case ${ac_top_builddir}. in
56927 .) ac_abs_top_builddir=$ac_abs_builddir;;
56928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56932 case $ac_abs_builddir in
56933 .) ac_abs_srcdir=$ac_srcdir;;
56936 .) ac_abs_srcdir=$ac_abs_builddir;;
56937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56941 case $ac_abs_builddir in
56942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56944 case $ac_top_srcdir in
56945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
56946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
56954 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
56957 if test x"$ac_file" != x-; then
56958 { echo "$as_me:$LINENO: creating $ac_file" >&5
56959 echo "$as_me: creating $ac_file" >&6;}
56962 # Let's still pretend it is `configure' which instantiates (i.e., don't
56963 # use $as_me), people would be surprised to read:
56964 # /* config.h. Generated by config.status. */
56965 if test x"$ac_file" = x-; then
56968 configure_input="$ac_file. "
56970 configure_input=$configure_input"Generated from `echo $ac_file_in |
56971 sed 's,.*/,,'` by configure."
56973 # First look for the input files in the build tree, otherwise in the
56975 ac_file_inputs=`IFS=:
56976 for f in $ac_file_in; do
56978 -) echo $tmp/stdin ;;
56980 # Absolute (can't be DOS-style, as IFS=:)
56981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56982 echo "$as_me: error: cannot find input file: $f" >&2;}
56983 { (exit 1); exit 1; }; }
56986 if test -f "$f"; then
56989 elif test -f "$srcdir/$f"; then
56994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56995 echo "$as_me: error: cannot find input file: $f" >&2;}
56996 { (exit 1); exit 1; }; }
56999 done` || { (exit 1); exit 1; }
57001 cat >>$CONFIG_STATUS <<_ACEOF
57005 cat >>$CONFIG_STATUS <<\_ACEOF
57007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57008 s,@configure_input@,$configure_input,;t t
57009 s,@srcdir@,$ac_srcdir,;t t
57010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
57011 s,@top_srcdir@,$ac_top_srcdir,;t t
57012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
57013 s,@builddir@,$ac_builddir,;t t
57014 s,@abs_builddir@,$ac_abs_builddir,;t t
57015 s,@top_builddir@,$ac_top_builddir,;t t
57016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
57017 s,@INSTALL@,$ac_INSTALL,;t t
57018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
57020 if test x"$ac_file" != x-; then
57021 mv $tmp/out $ac_file
57029 cat >>$CONFIG_STATUS <<\_ACEOF
57032 # CONFIG_HEADER section.
57035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
57036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
57038 # ac_d sets the value in "#define NAME VALUE" lines.
57039 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
57040 ac_dB='[ ].*$,\1#\2'
57043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
57044 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
57045 ac_uB='$,\1#\2define\3'
57049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
57050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
57052 - | *:- | *:-:* ) # input from stdin
57054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57058 * ) ac_file_in=$ac_file.in ;;
57061 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
57062 echo "$as_me: creating $ac_file" >&6;}
57064 # First look for the input files in the build tree, otherwise in the
57066 ac_file_inputs=`IFS=:
57067 for f in $ac_file_in; do
57069 -) echo $tmp/stdin ;;
57071 # Absolute (can't be DOS-style, as IFS=:)
57072 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
57073 echo "$as_me: error: cannot find input file: $f" >&2;}
57074 { (exit 1); exit 1; }; }
57075 # Do quote $f, to prevent DOS paths from being IFS'd.
57078 if test -f "$f"; then
57081 elif test -f "$srcdir/$f"; then
57086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
57087 echo "$as_me: error: cannot find input file: $f" >&2;}
57088 { (exit 1); exit 1; }; }
57091 done` || { (exit 1); exit 1; }
57092 # Remove the trailing spaces.
57093 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
57097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
57098 # `conftest.undefs', that substitutes the proper values into
57099 # config.h.in to produce config.h. The first handles `#define'
57100 # templates, and the second `#undef' templates.
57101 # And first: Protect against being on the right side of a sed subst in
57102 # config.status. Protect against being in an unquoted here document
57103 # in config.status.
57104 rm -f conftest.defines conftest.undefs
57105 # Using a here document instead of a string reduces the quoting nightmare.
57106 # Putting comments in sed scripts is not portable.
57108 # `end' is used to avoid that the second main sed command (meant for
57109 # 0-ary CPP macros) applies to n-ary macro definitions.
57110 # See the Autoconf documentation for `clear'.
57111 cat >confdef2sed.sed <<\_ACEOF
57116 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
57118 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
57121 # If some macros were called several times there might be several times
57122 # the same #defines, which is useless. Nevertheless, we may not want to
57123 # sort them, since we want the *last* AC-DEFINE to be honored.
57124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
57125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
57126 rm -f confdef2sed.sed
57128 # This sed command replaces #undef with comments. This is necessary, for
57129 # example, in the case of _POSIX_SOURCE, which is predefined and required
57130 # on some systems where configure will not decide to define it.
57131 cat >>conftest.undefs <<\_ACEOF
57132 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
57135 # Break up conftest.defines because some shells have a limit on the size
57136 # of here documents, and old seds have small limits too (100 cmds).
57137 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
57138 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
57139 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
57140 echo ' :' >>$CONFIG_STATUS
57141 rm -f conftest.tail
57142 while grep . conftest.defines >/dev/null
57144 # Write a limited-size here document to $tmp/defines.sed.
57145 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
57146 # Speed up: don't consider the non `#define' lines.
57147 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
57148 # Work around the forget-to-reset-the-flag bug.
57149 echo 't clr' >>$CONFIG_STATUS
57150 echo ': clr' >>$CONFIG_STATUS
57151 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
57153 sed -f $tmp/defines.sed $tmp/in >$tmp/out
57155 mv $tmp/out $tmp/in
57157 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
57158 rm -f conftest.defines
57159 mv conftest.tail conftest.defines
57161 rm -f conftest.defines
57162 echo ' fi # grep' >>$CONFIG_STATUS
57163 echo >>$CONFIG_STATUS
57165 # Break up conftest.undefs because some shells have a limit on the size
57166 # of here documents, and old seds have small limits too (100 cmds).
57167 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
57168 rm -f conftest.tail
57169 while grep . conftest.undefs >/dev/null
57171 # Write a limited-size here document to $tmp/undefs.sed.
57172 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
57173 # Speed up: don't consider the non `#undef'
57174 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
57175 # Work around the forget-to-reset-the-flag bug.
57176 echo 't clr' >>$CONFIG_STATUS
57177 echo ': clr' >>$CONFIG_STATUS
57178 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
57180 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
57182 mv $tmp/out $tmp/in
57184 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
57185 rm -f conftest.undefs
57186 mv conftest.tail conftest.undefs
57188 rm -f conftest.undefs
57190 cat >>$CONFIG_STATUS <<\_ACEOF
57191 # Let's still pretend it is `configure' which instantiates (i.e., don't
57192 # use $as_me), people would be surprised to read:
57193 # /* config.h. Generated by config.status. */
57194 if test x"$ac_file" = x-; then
57195 echo "/* Generated by configure. */" >$tmp/config.h
57197 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
57199 cat $tmp/in >>$tmp/config.h
57201 if test x"$ac_file" != x-; then
57202 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
57203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57204 echo "$as_me: $ac_file is unchanged" >&6;}
57206 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
57207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57208 X"$ac_file" : 'X\(//\)[^/]' \| \
57209 X"$ac_file" : 'X\(//\)$' \| \
57210 X"$ac_file" : 'X\(/\)' \| \
57211 . : '\(.\)' 2>/dev/null ||
57213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57215 /^X\(\/\/\)$/{ s//\1/; q; }
57216 /^X\(\/\).*/{ s//\1/; q; }
57218 { if $as_mkdir_p; then
57223 while test ! -d "$as_dir"; do
57224 as_dirs="$as_dir $as_dirs"
57225 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57227 X"$as_dir" : 'X\(//\)[^/]' \| \
57228 X"$as_dir" : 'X\(//\)$' \| \
57229 X"$as_dir" : 'X\(/\)' \| \
57230 . : '\(.\)' 2>/dev/null ||
57232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57234 /^X\(\/\/\)$/{ s//\1/; q; }
57235 /^X\(\/\).*/{ s//\1/; q; }
57238 test ! -n "$as_dirs" || mkdir $as_dirs
57239 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57241 { (exit 1); exit 1; }; }; }
57244 mv $tmp/config.h $ac_file
57248 rm -f $tmp/config.h
57250 # Compute $ac_file's index in $config_headers.
57252 for _am_header in $config_headers :; do
57253 case $_am_header in
57254 $ac_file | $ac_file:* )
57257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
57261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57262 X$ac_file : 'X\(//\)[^/]' \| \
57263 X$ac_file : 'X\(//\)$' \| \
57264 X$ac_file : 'X\(/\)' \| \
57265 . : '\(.\)' 2>/dev/null ||
57267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57269 /^X\(\/\/\)$/{ s//\1/; q; }
57270 /^X\(\/\).*/{ s//\1/; q; }
57271 s/.*/./; q'`/stamp-h$_am_stamp_count
57274 cat >>$CONFIG_STATUS <<\_ACEOF
57277 # CONFIG_COMMANDS section.
57279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
57280 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
57281 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
57282 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
57283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57284 X"$ac_dest" : 'X\(//\)[^/]' \| \
57285 X"$ac_dest" : 'X\(//\)$' \| \
57286 X"$ac_dest" : 'X\(/\)' \| \
57287 . : '\(.\)' 2>/dev/null ||
57289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57291 /^X\(\/\/\)$/{ s//\1/; q; }
57292 /^X\(\/\).*/{ s//\1/; q; }
57294 { if $as_mkdir_p; then
57299 while test ! -d "$as_dir"; do
57300 as_dirs="$as_dir $as_dirs"
57301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57303 X"$as_dir" : 'X\(//\)[^/]' \| \
57304 X"$as_dir" : 'X\(//\)$' \| \
57305 X"$as_dir" : 'X\(/\)' \| \
57306 . : '\(.\)' 2>/dev/null ||
57308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57310 /^X\(\/\/\)$/{ s//\1/; q; }
57311 /^X\(\/\).*/{ s//\1/; q; }
57314 test ! -n "$as_dirs" || mkdir $as_dirs
57315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57317 { (exit 1); exit 1; }; }; }
57321 if test "$ac_dir" != .; then
57322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57323 # A "../" for each directory in $ac_dir_suffix.
57324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
57326 ac_dir_suffix= ac_top_builddir=
57330 .) # No --srcdir option. We are building in place.
57332 if test -z "$ac_top_builddir"; then
57335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
57337 [\\/]* | ?:[\\/]* ) # Absolute path.
57338 ac_srcdir=$srcdir$ac_dir_suffix;
57339 ac_top_srcdir=$srcdir ;;
57340 *) # Relative path.
57341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
57342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
57345 # Do not use `cd foo && pwd` to compute absolute paths, because
57346 # the directories may not exist.
57348 .) ac_abs_builddir="$ac_dir";;
57351 .) ac_abs_builddir=`pwd`;;
57352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
57353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
57356 case $ac_abs_builddir in
57357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
57359 case ${ac_top_builddir}. in
57360 .) ac_abs_top_builddir=$ac_abs_builddir;;
57361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
57362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
57365 case $ac_abs_builddir in
57366 .) ac_abs_srcdir=$ac_srcdir;;
57369 .) ac_abs_srcdir=$ac_abs_builddir;;
57370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
57371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
57374 case $ac_abs_builddir in
57375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
57377 case $ac_top_srcdir in
57378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
57379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
57380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
57385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
57386 echo "$as_me: executing $ac_dest commands" >&6;}
57388 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
57389 # Strip MF so we end up with the name of the file.
57390 mf=`echo "$mf" | sed -e 's/:.*$//'`
57391 # Check whether this is an Automake generated Makefile or not.
57392 # We used to match only the files named `Makefile.in', but
57393 # some people rename them; so instead we look at the file content.
57394 # Grep'ing the first line is not enough: some people post-process
57395 # each Makefile.in and add a new line on top of each file to say so.
57396 # So let's grep whole file.
57397 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
57398 dirpart=`(dirname "$mf") 2>/dev/null ||
57399 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57400 X"$mf" : 'X\(//\)[^/]' \| \
57401 X"$mf" : 'X\(//\)$' \| \
57402 X"$mf" : 'X\(/\)' \| \
57403 . : '\(.\)' 2>/dev/null ||
57405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57407 /^X\(\/\/\)$/{ s//\1/; q; }
57408 /^X\(\/\).*/{ s//\1/; q; }
57413 # Extract the definition of DEPDIR, am__include, and am__quote
57414 # from the Makefile without running `make'.
57415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57416 test -z "$DEPDIR" && continue
57417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
57418 test -z "am__include" && continue
57419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57420 # When using ansi2knr, U may be empty or an underscore; expand it
57421 U=`sed -n 's/^U = //p' < "$mf"`
57422 # Find all dependency output files, they are included files with
57423 # $(DEPDIR) in their names. We invoke sed twice because it is the
57424 # simplest approach to changing $(DEPDIR) to its actual value in the
57426 for file in `sed -n "
57427 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57428 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57429 # Make sure the directory exists.
57430 test -f "$dirpart/$file" && continue
57431 fdir=`(dirname "$file") 2>/dev/null ||
57432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57433 X"$file" : 'X\(//\)[^/]' \| \
57434 X"$file" : 'X\(//\)$' \| \
57435 X"$file" : 'X\(/\)' \| \
57436 . : '\(.\)' 2>/dev/null ||
57438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57440 /^X\(\/\/\)$/{ s//\1/; q; }
57441 /^X\(\/\).*/{ s//\1/; q; }
57443 { if $as_mkdir_p; then
57444 mkdir -p $dirpart/$fdir
57446 as_dir=$dirpart/$fdir
57448 while test ! -d "$as_dir"; do
57449 as_dirs="$as_dir $as_dirs"
57450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57452 X"$as_dir" : 'X\(//\)[^/]' \| \
57453 X"$as_dir" : 'X\(//\)$' \| \
57454 X"$as_dir" : 'X\(/\)' \| \
57455 . : '\(.\)' 2>/dev/null ||
57457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57459 /^X\(\/\/\)$/{ s//\1/; q; }
57460 /^X\(\/\).*/{ s//\1/; q; }
57463 test ! -n "$as_dirs" || mkdir $as_dirs
57464 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
57465 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
57466 { (exit 1); exit 1; }; }; }
57468 # echo "creating $dirpart/$file"
57469 echo '# dummy' > "$dirpart/$file"
57474 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
57475 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
57476 ac_stdint=$tmp/_stdint.h
57478 echo "#ifndef" $_ac_stdint_h >$ac_stdint
57479 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
57480 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
57481 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
57482 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
57483 if test "_$ac_cv_header_stdint_t" != "_" ; then
57484 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
57485 echo "#include <stdint.h>" >>$ac_stdint
57486 echo "#endif" >>$ac_stdint
57487 echo "#endif" >>$ac_stdint
57490 cat >>$ac_stdint <<STDINT_EOF
57492 /* ................... shortcircuit part ........................... */
57494 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
57495 #include <stdint.h>
57497 #include <stddef.h>
57499 /* .................... configured part ............................ */
57503 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
57504 if test "_$ac_cv_header_stdint_x" != "_" ; then
57505 ac_header="$ac_cv_header_stdint_x"
57506 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
57508 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
57511 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
57512 if test "_$ac_cv_header_stdint_o" != "_" ; then
57513 ac_header="$ac_cv_header_stdint_o"
57514 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
57516 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
57519 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
57520 if test "_$ac_cv_header_stdint_u" != "_" ; then
57521 ac_header="$ac_cv_header_stdint_u"
57522 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
57524 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
57527 echo "" >>$ac_stdint
57529 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
57530 echo "#include <$ac_header>" >>$ac_stdint
57531 echo "" >>$ac_stdint
57534 echo "/* which 64bit typedef has been found */" >>$ac_stdint
57535 if test "$ac_cv_type_uint64_t" = "yes" ; then
57536 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
57538 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
57540 if test "$ac_cv_type_u_int64_t" = "yes" ; then
57541 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
57543 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
57545 echo "" >>$ac_stdint
57547 echo "/* which type model has been detected */" >>$ac_stdint
57548 if test "_$ac_cv_char_data_model" != "_" ; then
57549 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
57550 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
57552 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
57553 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
57555 echo "" >>$ac_stdint
57557 echo "/* whether int_least types were detected */" >>$ac_stdint
57558 if test "$ac_cv_type_int_least32_t" = "yes"; then
57559 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
57561 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
57563 echo "/* whether int_fast types were detected */" >>$ac_stdint
57564 if test "$ac_cv_type_int_fast32_t" = "yes"; then
57565 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
57567 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
57569 echo "/* whether intmax_t type was detected */" >>$ac_stdint
57570 if test "$ac_cv_type_intmax_t" = "yes"; then
57571 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
57573 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
57575 echo "" >>$ac_stdint
57577 cat >>$ac_stdint <<STDINT_EOF
57578 /* .................... detections part ............................ */
57580 /* whether we need to define bitspecific types from compiler base types */
57581 #ifndef _STDINT_HEADER_INTPTR
57582 #ifndef _STDINT_HEADER_UINT32
57583 #ifndef _STDINT_HEADER_U_INT32
57584 #define _STDINT_NEED_INT_MODEL_T
57586 #define _STDINT_HAVE_U_INT_TYPES
57591 #ifdef _STDINT_HAVE_U_INT_TYPES
57592 #undef _STDINT_NEED_INT_MODEL_T
57595 #ifdef _STDINT_CHAR_MODEL
57596 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
57597 #ifndef _STDINT_BYTE_MODEL
57598 #define _STDINT_BYTE_MODEL 12
57603 #ifndef _STDINT_HAVE_INT_LEAST32_T
57604 #define _STDINT_NEED_INT_LEAST_T
57607 #ifndef _STDINT_HAVE_INT_FAST32_T
57608 #define _STDINT_NEED_INT_FAST_T
57611 #ifndef _STDINT_HEADER_INTPTR
57612 #define _STDINT_NEED_INTPTR_T
57613 #ifndef _STDINT_HAVE_INTMAX_T
57614 #define _STDINT_NEED_INTMAX_T
57619 /* .................... definition part ............................ */
57621 /* some system headers have good uint64_t */
57622 #ifndef _HAVE_UINT64_T
57623 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
57624 #define _HAVE_UINT64_T
57625 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
57626 #define _HAVE_UINT64_T
57627 typedef u_int64_t uint64_t;
57631 #ifndef _HAVE_UINT64_T
57632 /* .. here are some common heuristics using compiler runtime specifics */
57633 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
57634 #define _HAVE_UINT64_T
57635 #define _HAVE_LONGLONG_UINT64_T
57636 typedef long long int64_t;
57637 typedef unsigned long long uint64_t;
57639 #elif !defined __STRICT_ANSI__
57640 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
57641 #define _HAVE_UINT64_T
57642 typedef __int64 int64_t;
57643 typedef unsigned __int64 uint64_t;
57645 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
57646 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
57647 #if !defined _NO_LONGLONG
57648 #define _HAVE_UINT64_T
57649 #define _HAVE_LONGLONG_UINT64_T
57650 typedef long long int64_t;
57651 typedef unsigned long long uint64_t;
57654 #elif defined __alpha || (defined __mips && defined _ABIN32)
57655 #if !defined _NO_LONGLONG
57656 #define _HAVE_UINT64_T
57657 typedef long int64_t;
57658 typedef unsigned long uint64_t;
57660 /* compiler/cpu type to define int64_t */
57665 #if defined _STDINT_HAVE_U_INT_TYPES
57666 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
57667 typedef u_int8_t uint8_t;
57668 typedef u_int16_t uint16_t;
57669 typedef u_int32_t uint32_t;
57671 /* glibc compatibility */
57672 #ifndef __int8_t_defined
57673 #define __int8_t_defined
57677 #ifdef _STDINT_NEED_INT_MODEL_T
57678 /* we must guess all the basic types. Apart from byte-adressable system, */
57679 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
57680 /* (btw, those nibble-addressable systems are way off, or so we assume) */
57683 #if defined _STDINT_BYTE_MODEL
57684 #if _STDINT_LONG_MODEL+0 == 242
57685 /* 2:4:2 = IP16 = a normal 16-bit system */
57686 typedef unsigned char uint8_t;
57687 typedef unsigned short uint16_t;
57688 typedef unsigned long uint32_t;
57689 #ifndef __int8_t_defined
57690 #define __int8_t_defined
57691 typedef char int8_t;
57692 typedef short int16_t;
57693 typedef long int32_t;
57695 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
57696 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
57697 /* 4:4:4 = ILP32 = a normal 32-bit system */
57698 typedef unsigned char uint8_t;
57699 typedef unsigned short uint16_t;
57700 typedef unsigned int uint32_t;
57701 #ifndef __int8_t_defined
57702 #define __int8_t_defined
57703 typedef char int8_t;
57704 typedef short int16_t;
57705 typedef int int32_t;
57707 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
57708 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
57709 /* 4:8:8 = LP64 = a normal 64-bit system */
57710 typedef unsigned char uint8_t;
57711 typedef unsigned short uint16_t;
57712 typedef unsigned int uint32_t;
57713 #ifndef __int8_t_defined
57714 #define __int8_t_defined
57715 typedef char int8_t;
57716 typedef short int16_t;
57717 typedef int int32_t;
57719 /* this system has a "long" of 64bit */
57720 #ifndef _HAVE_UINT64_T
57721 #define _HAVE_UINT64_T
57722 typedef unsigned long uint64_t;
57723 typedef long int64_t;
57725 #elif _STDINT_LONG_MODEL+0 == 448
57726 /* LLP64 a 64-bit system derived from a 32-bit system */
57727 typedef unsigned char uint8_t;
57728 typedef unsigned short uint16_t;
57729 typedef unsigned int uint32_t;
57730 #ifndef __int8_t_defined
57731 #define __int8_t_defined
57732 typedef char int8_t;
57733 typedef short int16_t;
57734 typedef int int32_t;
57736 /* assuming the system has a "long long" */
57737 #ifndef _HAVE_UINT64_T
57738 #define _HAVE_UINT64_T
57739 #define _HAVE_LONGLONG_UINT64_T
57740 typedef unsigned long long uint64_t;
57741 typedef long long int64_t;
57744 #define _STDINT_NO_INT32_T
57747 #define _STDINT_NO_INT8_T
57748 #define _STDINT_NO_INT32_T
57753 * quote from SunOS-5.8 sys/inttypes.h:
57754 * Use at your own risk. As of February 1996, the committee is squarely
57755 * behind the fixed sized types; the "least" and "fast" types are still being
57756 * discussed. The probability that the "fast" types may be removed before
57757 * the standard is finalized is high enough that they are not currently
57761 #if defined _STDINT_NEED_INT_LEAST_T
57762 typedef int8_t int_least8_t;
57763 typedef int16_t int_least16_t;
57764 typedef int32_t int_least32_t;
57765 #ifdef _HAVE_UINT64_T
57766 typedef int64_t int_least64_t;
57769 typedef uint8_t uint_least8_t;
57770 typedef uint16_t uint_least16_t;
57771 typedef uint32_t uint_least32_t;
57772 #ifdef _HAVE_UINT64_T
57773 typedef uint64_t uint_least64_t;
57778 #if defined _STDINT_NEED_INT_FAST_T
57779 typedef int8_t int_fast8_t;
57780 typedef int int_fast16_t;
57781 typedef int32_t int_fast32_t;
57782 #ifdef _HAVE_UINT64_T
57783 typedef int64_t int_fast64_t;
57786 typedef uint8_t uint_fast8_t;
57787 typedef unsigned uint_fast16_t;
57788 typedef uint32_t uint_fast32_t;
57789 #ifdef _HAVE_UINT64_T
57790 typedef uint64_t uint_fast64_t;
57795 #ifdef _STDINT_NEED_INTMAX_T
57796 #ifdef _HAVE_UINT64_T
57797 typedef int64_t intmax_t;
57798 typedef uint64_t uintmax_t;
57800 typedef long intmax_t;
57801 typedef unsigned long uintmax_t;
57805 #ifdef _STDINT_NEED_INTPTR_T
57806 #ifndef __intptr_t_defined
57807 #define __intptr_t_defined
57808 /* we encourage using "long" to store pointer values, never use "int" ! */
57809 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
57810 typedef unsinged int uintptr_t;
57811 typedef int intptr_t;
57812 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
57813 typedef unsigned long uintptr_t;
57814 typedef long intptr_t;
57815 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
57816 typedef uint64_t uintptr_t;
57817 typedef int64_t intptr_t;
57818 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
57819 typedef unsigned long uintptr_t;
57820 typedef long intptr_t;
57825 /* The ISO C99 standard specifies that in C++ implementations these
57826 should only be defined if explicitly requested. */
57827 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
57831 # define INT8_C(c) c
57832 # define INT16_C(c) c
57833 # define INT32_C(c) c
57834 # ifdef _HAVE_LONGLONG_UINT64_T
57835 # define INT64_C(c) c ## L
57837 # define INT64_C(c) c ## LL
57841 # define UINT8_C(c) c ## U
57842 # define UINT16_C(c) c ## U
57843 # define UINT32_C(c) c ## U
57844 # ifdef _HAVE_LONGLONG_UINT64_T
57845 # define UINT64_C(c) c ## UL
57847 # define UINT64_C(c) c ## ULL
57850 /* Maximal type. */
57851 # ifdef _HAVE_LONGLONG_UINT64_T
57852 # define INTMAX_C(c) c ## L
57853 # define UINTMAX_C(c) c ## UL
57855 # define INTMAX_C(c) c ## LL
57856 # define UINTMAX_C(c) c ## ULL
57859 /* literalnumbers */
57863 /* These limits are merily those of a two complement byte-oriented system */
57865 /* Minimum of signed integral types. */
57866 # define INT8_MIN (-128)
57867 # define INT16_MIN (-32767-1)
57868 # define INT32_MIN (-2147483647-1)
57869 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
57870 /* Maximum of signed integral types. */
57871 # define INT8_MAX (127)
57872 # define INT16_MAX (32767)
57873 # define INT32_MAX (2147483647)
57874 # define INT64_MAX (__INT64_C(9223372036854775807))
57876 /* Maximum of unsigned integral types. */
57877 # define UINT8_MAX (255)
57878 # define UINT16_MAX (65535)
57879 # define UINT32_MAX (4294967295U)
57880 # define UINT64_MAX (__UINT64_C(18446744073709551615))
57882 /* Minimum of signed integral types having a minimum size. */
57883 # define INT_LEAST8_MIN INT8_MIN
57884 # define INT_LEAST16_MIN INT16_MIN
57885 # define INT_LEAST32_MIN INT32_MIN
57886 # define INT_LEAST64_MIN INT64_MIN
57887 /* Maximum of signed integral types having a minimum size. */
57888 # define INT_LEAST8_MAX INT8_MAX
57889 # define INT_LEAST16_MAX INT16_MAX
57890 # define INT_LEAST32_MAX INT32_MAX
57891 # define INT_LEAST64_MAX INT64_MAX
57893 /* Maximum of unsigned integral types having a minimum size. */
57894 # define UINT_LEAST8_MAX UINT8_MAX
57895 # define UINT_LEAST16_MAX UINT16_MAX
57896 # define UINT_LEAST32_MAX UINT32_MAX
57897 # define UINT_LEAST64_MAX UINT64_MAX
57906 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
57907 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
57908 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
57910 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
57911 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57912 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
57913 X"$ac_stdint_h" : 'X\(//\)$' \| \
57914 X"$ac_stdint_h" : 'X\(/\)' \| \
57915 . : '\(.\)' 2>/dev/null ||
57916 echo X"$ac_stdint_h" |
57917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57919 /^X\(\/\/\)$/{ s//\1/; q; }
57920 /^X\(\/\).*/{ s//\1/; q; }
57922 { if $as_mkdir_p; then
57927 while test ! -d "$as_dir"; do
57928 as_dirs="$as_dir $as_dirs"
57929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
57930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57931 X"$as_dir" : 'X\(//\)[^/]' \| \
57932 X"$as_dir" : 'X\(//\)$' \| \
57933 X"$as_dir" : 'X\(/\)' \| \
57934 . : '\(.\)' 2>/dev/null ||
57936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57938 /^X\(\/\/\)$/{ s//\1/; q; }
57939 /^X\(\/\).*/{ s//\1/; q; }
57942 test ! -n "$as_dirs" || mkdir $as_dirs
57943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57945 { (exit 1); exit 1; }; }; }
57948 mv $ac_stdint $ac_stdint_h
57955 cat >>$CONFIG_STATUS <<\_ACEOF
57957 { (exit 0); exit 0; }
57959 chmod +x $CONFIG_STATUS
57960 ac_clean_files=$ac_clean_files_save
57963 # configure is writing to config.log, and then calls config.status.
57964 # config.status does its own redirection, appending to config.log.
57965 # Unfortunately, on DOS this fails, as config.log is still kept open
57966 # by configure, so config.status won't be able to write to it; its
57967 # output is simply discarded. So we exec the FD to /dev/null,
57968 # effectively closing config.log, so it can be properly (re)opened and
57969 # appended to by config.status. When coming back to configure, we
57970 # need to make the FD available again.
57971 if test "$no_create" != yes; then
57973 ac_config_status_args=
57974 test "$silent" = yes &&
57975 ac_config_status_args="$ac_config_status_args --quiet"
57977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57980 # would make configure fail if this is the last instruction.
57981 $ac_cs_success || { (exit 1); exit 1; }